]>
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 |
a5f46f6a AK |
599 | udevdir |
600 | udev_prefix | |
ec6a6fbe AK |
601 | tmpdir |
602 | kernelvsn | |
603 | missingkernel | |
604 | kerneldir | |
605 | interface | |
6e5c1f75 | 606 | DMEVENTD_PIDFILE |
23b059e7 | 607 | WRITE_INSTALL |
0878503f | 608 | UDEV_SYNC |
a5f46f6a | 609 | UDEV_RULES |
f7f0854e | 610 | UDEV_PC |
54b362f9 | 611 | TESTING |
ec6a6fbe AK |
612 | STATIC_LINK |
613 | STATICDIR | |
614 | SNAPSHOTS | |
f7f0854e | 615 | SELINUX_PC |
e1b8a236 | 616 | SELINUX_LIBS |
cac52ca4 | 617 | REPLICATORS |
539f4a77 | 618 | READLINE_LIBS |
cac52ca4 | 619 | RAID |
f30875db | 620 | PTHREAD_LIBS |
ec6a6fbe AK |
621 | POOL |
622 | PKGCONFIG | |
606d0858 | 623 | OCFDIR |
37ddf259 | 624 | OCF |
ec6a6fbe AK |
625 | MIRRORS |
626 | LVM_RELEASE_DATE | |
627 | LVM_RELEASE | |
628 | LVM_PATCHLEVEL | |
629 | LVM_MINOR | |
630 | LVM_MAJOR | |
bf456146 | 631 | LVM_LIBAPI |
ec6a6fbe | 632 | LVM_VERSION |
ec6a6fbe AK |
633 | LVM1_FALLBACK |
634 | LVM1 | |
635 | LOCALEDIR | |
636 | LIB_SUFFIX | |
637 | LDDEPS | |
638 | JOBS | |
639 | INTL_PACKAGE | |
640 | INTL | |
ec6a6fbe AK |
641 | HAVE_REALTIME |
642 | HAVE_LIBDL | |
ec6a6fbe AK |
643 | FSADM |
644 | DM_LIB_PATCHLEVEL | |
645 | DM_LIB_VERSION | |
646 | DM_IOCTLS | |
647 | DM_DEVICE_UID | |
648 | DM_DEVICE_MODE | |
649 | DM_DEVICE_GID | |
650 | DM_COMPAT | |
d1e8046f | 651 | DMEVENTD_PATH |
ec6a6fbe | 652 | DMEVENTD |
19a2c6e0 | 653 | DL_LIBS |
ec6a6fbe | 654 | DEVMAPPER |
b1f08e51 | 655 | DEFAULT_RUN_DIR |
3399ae32 | 656 | DEFAULT_LOCK_DIR |
fea55602 | 657 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
658 | DEFAULT_CACHE_SUBDIR |
659 | DEFAULT_BACKUP_SUBDIR | |
660 | DEFAULT_ARCHIVE_SUBDIR | |
661 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
662 | DEBUG |
663 | COPTIMISE_FLAG | |
e2997b73 | 664 | CONFDIR |
ec6a6fbe | 665 | CMDLIB |
c89bc357 | 666 | CLVMD_CMANAGERS |
ec6a6fbe AK |
667 | CLVMD |
668 | CLUSTER | |
669 | CLDWHOLEARCHIVE | |
670 | CLDNOWHOLEARCHIVE | |
671 | CLDFLAGS | |
13db5983 AK |
672 | CCS_LIBS |
673 | CCS_CFLAGS | |
ec6a6fbe | 674 | BUILD_DMEVENTD |
66fd4529 | 675 | BUILD_CMIRRORD |
572fefeb | 676 | APPLIB |
ec6a6fbe AK |
677 | MODPROBE_CMD |
678 | MSGFMT | |
679 | LVM2CMD_LIB | |
572fefeb | 680 | LVM2APP_LIB |
d93275eb PR |
681 | UDEV_LIBS |
682 | UDEV_CFLAGS | |
54b362f9 AK |
683 | VALGRIND |
684 | RUBY19 | |
fd4728e1 | 685 | GENPNG |
ec6a6fbe AK |
686 | GENHTML |
687 | LCOV | |
90c80887 AK |
688 | SACKPT_LIBS |
689 | SACKPT_CFLAGS | |
a946372e AK |
690 | DLM_LIBS |
691 | DLM_CFLAGS | |
e2997b73 AK |
692 | CPG_LIBS |
693 | CPG_CFLAGS | |
694 | CONFDB_LIBS | |
695 | CONFDB_CFLAGS | |
a946372e AK |
696 | SALCK_LIBS |
697 | SALCK_CFLAGS | |
e2997b73 AK |
698 | QUORUM_LIBS |
699 | QUORUM_CFLAGS | |
a946372e AK |
700 | COROSYNC_LIBS |
701 | COROSYNC_CFLAGS | |
702 | CMAN_LIBS | |
703 | CMAN_CFLAGS | |
a946372e AK |
704 | PKGCONFIGINIT_LIBS |
705 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
706 | PKG_CONFIG_LIBDIR |
707 | PKG_CONFIG_PATH | |
e2997b73 | 708 | PKG_CONFIG |
ec6a6fbe AK |
709 | POW_LIB |
710 | LIBOBJS | |
711 | ALLOCA | |
712 | CSCOPE_CMD | |
713 | CFLOW_CMD | |
714 | RANLIB | |
715 | MKDIR_P | |
716 | SET_MAKE | |
717 | LN_S | |
718 | INSTALL_DATA | |
719 | INSTALL_SCRIPT | |
720 | INSTALL_PROGRAM | |
721 | EGREP | |
722 | GREP | |
723 | CPP | |
724 | OBJEXT | |
725 | EXEEXT | |
726 | ac_ct_CC | |
727 | CPPFLAGS | |
728 | LDFLAGS | |
729 | CFLAGS | |
730 | CC | |
731 | AWK | |
732 | SED | |
733 | target_os | |
734 | target_vendor | |
735 | target_cpu | |
736 | target | |
737 | host_os | |
738 | host_vendor | |
739 | host_cpu | |
740 | host | |
741 | build_os | |
742 | build_vendor | |
743 | build_cpu | |
744 | build | |
745 | target_alias | |
746 | host_alias | |
747 | build_alias | |
748 | LIBS | |
749 | ECHO_T | |
750 | ECHO_N | |
751 | ECHO_C | |
752 | DEFS | |
753 | mandir | |
754 | localedir | |
755 | libdir | |
756 | psdir | |
757 | pdfdir | |
758 | dvidir | |
759 | htmldir | |
760 | infodir | |
761 | docdir | |
762 | oldincludedir | |
763 | includedir | |
764 | localstatedir | |
765 | sharedstatedir | |
766 | sysconfdir | |
767 | datadir | |
768 | datarootdir | |
769 | libexecdir | |
770 | sbindir | |
771 | bindir | |
772 | program_transform_name | |
773 | prefix | |
774 | exec_prefix | |
f11781c5 | 775 | PACKAGE_URL |
ec6a6fbe AK |
776 | PACKAGE_BUGREPORT |
777 | PACKAGE_STRING | |
778 | PACKAGE_VERSION | |
779 | PACKAGE_TARNAME | |
780 | PACKAGE_NAME | |
781 | PATH_SEPARATOR | |
782 | SHELL' | |
ad6254c5 | 783 | ac_subst_files='' |
ec6a6fbe AK |
784 | ac_user_opts=' |
785 | enable_option_checking | |
786 | enable_static_link | |
787 | with_user | |
788 | with_group | |
789 | with_device_uid | |
790 | with_device_gid | |
791 | with_device_mode | |
d0df875d | 792 | with_device_nodes_on |
ec6a6fbe AK |
793 | enable_lvm1_fallback |
794 | with_lvm1 | |
795 | with_pool | |
796 | with_cluster | |
797 | with_snapshots | |
798 | with_mirrors | |
cac52ca4 | 799 | with_raid |
8fea97b7 | 800 | with_replicators |
ec6a6fbe AK |
801 | enable_readline |
802 | enable_realtime | |
37ddf259 | 803 | enable_ocf |
606d0858 | 804 | with_ocfdir |
ec6a6fbe | 805 | with_clvmd |
8c4e8a18 | 806 | with_clvmd_pidfile |
66fd4529 AK |
807 | enable_cmirrord |
808 | with_cmirrord_pidfile | |
ec6a6fbe AK |
809 | enable_debug |
810 | with_optimisation | |
811 | enable_profiling | |
54b362f9 | 812 | enable_testing |
d1e8046f | 813 | enable_valgrind_pool |
ec6a6fbe | 814 | enable_devmapper |
a5f46f6a AK |
815 | enable_udev_sync |
816 | enable_udev_rules | |
ec6a6fbe | 817 | enable_compat |
95eaa683 | 818 | enable_units_compat |
ec6a6fbe AK |
819 | enable_ioctl |
820 | enable_o_direct | |
572fefeb | 821 | enable_applib |
ec6a6fbe AK |
822 | enable_cmdlib |
823 | enable_pkgconfig | |
23b059e7 | 824 | enable_write_install |
ec6a6fbe AK |
825 | enable_fsadm |
826 | enable_dmeventd | |
827 | enable_selinux | |
828 | enable_nls | |
829 | with_localedir | |
830 | with_confdir | |
831 | with_staticdir | |
832 | with_usrlibdir | |
833 | with_usrsbindir | |
a5f46f6a | 834 | with_udev_prefix |
78ce7acc | 835 | with_udevdir |
ec6a6fbe AK |
836 | with_dmeventd_pidfile |
837 | with_dmeventd_path | |
8bae0a1e | 838 | with_default_run_dir |
3399ae32 AK |
839 | with_default_system_dir |
840 | with_default_archive_subdir | |
841 | with_default_backup_subdir | |
842 | with_default_cache_subdir | |
843 | with_default_locking_dir | |
fea55602 | 844 | with_default_data_alignment |
ec6a6fbe AK |
845 | with_interface |
846 | ' | |
7a197a62 AK |
847 | ac_precious_vars='build_alias |
848 | host_alias | |
849 | target_alias | |
850 | CC | |
851 | CFLAGS | |
852 | LDFLAGS | |
25fbec5b | 853 | LIBS |
7a197a62 | 854 | CPPFLAGS |
e2997b73 AK |
855 | CPP |
856 | PKG_CONFIG | |
f11781c5 AK |
857 | PKG_CONFIG_PATH |
858 | PKG_CONFIG_LIBDIR | |
a946372e AK |
859 | PKGCONFIGINIT_CFLAGS |
860 | PKGCONFIGINIT_LIBS | |
a946372e AK |
861 | CMAN_CFLAGS |
862 | CMAN_LIBS | |
863 | COROSYNC_CFLAGS | |
864 | COROSYNC_LIBS | |
e2997b73 AK |
865 | QUORUM_CFLAGS |
866 | QUORUM_LIBS | |
a946372e AK |
867 | SALCK_CFLAGS |
868 | SALCK_LIBS | |
e2997b73 AK |
869 | CONFDB_CFLAGS |
870 | CONFDB_LIBS | |
871 | CPG_CFLAGS | |
a946372e AK |
872 | CPG_LIBS |
873 | DLM_CFLAGS | |
90c80887 AK |
874 | DLM_LIBS |
875 | SACKPT_CFLAGS | |
d93275eb PR |
876 | SACKPT_LIBS |
877 | UDEV_CFLAGS | |
878 | UDEV_LIBS' | |
7a197a62 | 879 | |
795ca3e5 AK |
880 | |
881 | # Initialize some variables set by options. | |
ad6254c5 AK |
882 | ac_init_help= |
883 | ac_init_version=false | |
ec6a6fbe AK |
884 | ac_unrecognized_opts= |
885 | ac_unrecognized_sep= | |
795ca3e5 AK |
886 | # The variables have the same names as the options, with |
887 | # dashes changed to underlines. | |
ad6254c5 | 888 | cache_file=/dev/null |
795ca3e5 | 889 | exec_prefix=NONE |
795ca3e5 | 890 | no_create= |
795ca3e5 AK |
891 | no_recursion= |
892 | prefix=NONE | |
893 | program_prefix=NONE | |
894 | program_suffix=NONE | |
895 | program_transform_name=s,x,x, | |
896 | silent= | |
897 | site= | |
898 | srcdir= | |
795ca3e5 AK |
899 | verbose= |
900 | x_includes=NONE | |
901 | x_libraries=NONE | |
ad6254c5 AK |
902 | |
903 | # Installation directory options. | |
904 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
905 | # and all the variables that are supposed to be based on exec_prefix | |
906 | # by default will actually change. | |
907 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 908 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
909 | bindir='${exec_prefix}/bin' |
910 | sbindir='${exec_prefix}/sbin' | |
911 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
912 | datarootdir='${prefix}/share' |
913 | datadir='${datarootdir}' | |
795ca3e5 AK |
914 | sysconfdir='${prefix}/etc' |
915 | sharedstatedir='${prefix}/com' | |
916 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
917 | includedir='${prefix}/include' |
918 | oldincludedir='/usr/include' | |
7a197a62 AK |
919 | docdir='${datarootdir}/doc/${PACKAGE}' |
920 | infodir='${datarootdir}/info' | |
921 | htmldir='${docdir}' | |
922 | dvidir='${docdir}' | |
923 | pdfdir='${docdir}' | |
924 | psdir='${docdir}' | |
925 | libdir='${exec_prefix}/lib' | |
926 | localedir='${datarootdir}/locale' | |
927 | mandir='${datarootdir}/man' | |
795ca3e5 | 928 | |
795ca3e5 | 929 | ac_prev= |
7a197a62 | 930 | ac_dashdash= |
795ca3e5 AK |
931 | for ac_option |
932 | do | |
795ca3e5 AK |
933 | # If the previous option needs an argument, assign it. |
934 | if test -n "$ac_prev"; then | |
7a197a62 | 935 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
936 | ac_prev= |
937 | continue | |
938 | fi | |
939 | ||
7a197a62 AK |
940 | case $ac_option in |
941 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
942 | *) ac_optarg=yes ;; | |
943 | esac | |
795ca3e5 AK |
944 | |
945 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
946 | ||
7a197a62 AK |
947 | case $ac_dashdash$ac_option in |
948 | --) | |
949 | ac_dashdash=yes ;; | |
795ca3e5 AK |
950 | |
951 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
952 | ac_prev=bindir ;; | |
953 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 954 | bindir=$ac_optarg ;; |
795ca3e5 AK |
955 | |
956 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 957 | ac_prev=build_alias ;; |
795ca3e5 | 958 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 959 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
960 | |
961 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
962 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
963 | ac_prev=cache_file ;; | |
964 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
965 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
966 | cache_file=$ac_optarg ;; |
967 | ||
968 | --config-cache | -C) | |
969 | cache_file=config.cache ;; | |
795ca3e5 | 970 | |
7a197a62 | 971 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 972 | ac_prev=datadir ;; |
7a197a62 | 973 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 974 | datadir=$ac_optarg ;; |
795ca3e5 | 975 | |
7a197a62 AK |
976 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
977 | | --dataroo | --dataro | --datar) | |
978 | ac_prev=datarootdir ;; | |
979 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
980 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
981 | datarootdir=$ac_optarg ;; | |
982 | ||
795ca3e5 | 983 | -disable-* | --disable-*) |
ec6a6fbe | 984 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 985 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 986 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 987 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
988 | ac_useropt_orig=$ac_useropt |
989 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
990 | case $ac_user_opts in | |
991 | *" | |
992 | "enable_$ac_useropt" | |
993 | "*) ;; | |
994 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
995 | ac_unrecognized_sep=', ';; | |
996 | esac | |
997 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
998 | |
999 | -docdir | --docdir | --docdi | --doc | --do) | |
1000 | ac_prev=docdir ;; | |
1001 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1002 | docdir=$ac_optarg ;; | |
1003 | ||
1004 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1005 | ac_prev=dvidir ;; | |
1006 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1007 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1008 | |
1009 | -enable-* | --enable-*) | |
ec6a6fbe | 1010 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1011 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1012 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1013 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1014 | ac_useropt_orig=$ac_useropt |
1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1016 | case $ac_user_opts in | |
1017 | *" | |
1018 | "enable_$ac_useropt" | |
1019 | "*) ;; | |
1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
1022 | esac | |
1023 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1024 | |
1025 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1026 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1027 | | --exec | --exe | --ex) | |
1028 | ac_prev=exec_prefix ;; | |
1029 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1030 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1031 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1032 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1033 | |
1034 | -gas | --gas | --ga | --g) | |
1035 | # Obsolete; use --with-gas. | |
1036 | with_gas=yes ;; | |
1037 | ||
ad6254c5 AK |
1038 | -help | --help | --hel | --he | -h) |
1039 | ac_init_help=long ;; | |
1040 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1041 | ac_init_help=recursive ;; | |
1042 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1043 | ac_init_help=short ;; | |
795ca3e5 AK |
1044 | |
1045 | -host | --host | --hos | --ho) | |
ad6254c5 | 1046 | ac_prev=host_alias ;; |
795ca3e5 | 1047 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1048 | host_alias=$ac_optarg ;; |
795ca3e5 | 1049 | |
7a197a62 AK |
1050 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1051 | ac_prev=htmldir ;; | |
1052 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1053 | | --ht=*) | |
1054 | htmldir=$ac_optarg ;; | |
1055 | ||
795ca3e5 AK |
1056 | -includedir | --includedir | --includedi | --included | --include \ |
1057 | | --includ | --inclu | --incl | --inc) | |
1058 | ac_prev=includedir ;; | |
1059 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1060 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1061 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1062 | |
1063 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1064 | ac_prev=infodir ;; | |
1065 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1066 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1067 | |
1068 | -libdir | --libdir | --libdi | --libd) | |
1069 | ac_prev=libdir ;; | |
1070 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1071 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1072 | |
1073 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1074 | | --libexe | --libex | --libe) | |
1075 | ac_prev=libexecdir ;; | |
1076 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1077 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1078 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1079 | |
7a197a62 AK |
1080 | -localedir | --localedir | --localedi | --localed | --locale) |
1081 | ac_prev=localedir ;; | |
1082 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1083 | localedir=$ac_optarg ;; | |
1084 | ||
795ca3e5 | 1085 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1086 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1087 | ac_prev=localstatedir ;; |
1088 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1089 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1090 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1091 | |
1092 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1093 | ac_prev=mandir ;; | |
1094 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1095 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -nfp | --nfp | --nf) | |
1098 | # Obsolete; use --without-fp. | |
1099 | with_fp=no ;; | |
1100 | ||
1101 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1102 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1103 | no_create=yes ;; |
1104 | ||
1105 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1106 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1107 | no_recursion=yes ;; | |
1108 | ||
1109 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1110 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1111 | | --oldin | --oldi | --old | --ol | --o) | |
1112 | ac_prev=oldincludedir ;; | |
1113 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1114 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1115 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1116 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1117 | |
1118 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1119 | ac_prev=prefix ;; | |
1120 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1121 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1122 | |
1123 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1124 | | --program-pre | --program-pr | --program-p) | |
1125 | ac_prev=program_prefix ;; | |
1126 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1127 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1128 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1129 | |
1130 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1131 | | --program-suf | --program-su | --program-s) | |
1132 | ac_prev=program_suffix ;; | |
1133 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1134 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1135 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1136 | |
1137 | -program-transform-name | --program-transform-name \ | |
1138 | | --program-transform-nam | --program-transform-na \ | |
1139 | | --program-transform-n | --program-transform- \ | |
1140 | | --program-transform | --program-transfor \ | |
1141 | | --program-transfo | --program-transf \ | |
1142 | | --program-trans | --program-tran \ | |
1143 | | --progr-tra | --program-tr | --program-t) | |
1144 | ac_prev=program_transform_name ;; | |
1145 | -program-transform-name=* | --program-transform-name=* \ | |
1146 | | --program-transform-nam=* | --program-transform-na=* \ | |
1147 | | --program-transform-n=* | --program-transform-=* \ | |
1148 | | --program-transform=* | --program-transfor=* \ | |
1149 | | --program-transfo=* | --program-transf=* \ | |
1150 | | --program-trans=* | --program-tran=* \ | |
1151 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1152 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1153 | |
7a197a62 AK |
1154 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1155 | ac_prev=pdfdir ;; | |
1156 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1157 | pdfdir=$ac_optarg ;; | |
1158 | ||
1159 | -psdir | --psdir | --psdi | --psd | --ps) | |
1160 | ac_prev=psdir ;; | |
1161 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1162 | psdir=$ac_optarg ;; | |
1163 | ||
795ca3e5 AK |
1164 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1165 | | -silent | --silent | --silen | --sile | --sil) | |
1166 | silent=yes ;; | |
1167 | ||
1168 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1169 | ac_prev=sbindir ;; | |
1170 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1171 | | --sbi=* | --sb=*) | |
ad6254c5 | 1172 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1173 | |
1174 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1175 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1176 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1177 | | --sha | --sh) | |
1178 | ac_prev=sharedstatedir ;; | |
1179 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1180 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1181 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1182 | | --sha=* | --sh=*) | |
ad6254c5 | 1183 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1184 | |
1185 | -site | --site | --sit) | |
1186 | ac_prev=site ;; | |
1187 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1188 | site=$ac_optarg ;; |
795ca3e5 AK |
1189 | |
1190 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1191 | ac_prev=srcdir ;; | |
1192 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1193 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1194 | |
1195 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1196 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1197 | ac_prev=sysconfdir ;; | |
1198 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1199 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1200 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1201 | |
1202 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1203 | ac_prev=target_alias ;; |
795ca3e5 | 1204 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1205 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1206 | |
1207 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1208 | verbose=yes ;; | |
1209 | ||
ad6254c5 AK |
1210 | -version | --version | --versio | --versi | --vers | -V) |
1211 | ac_init_version=: ;; | |
795ca3e5 AK |
1212 | |
1213 | -with-* | --with-*) | |
ec6a6fbe | 1214 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1215 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1216 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1217 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1218 | ac_useropt_orig=$ac_useropt |
1219 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1220 | case $ac_user_opts in | |
1221 | *" | |
1222 | "with_$ac_useropt" | |
1223 | "*) ;; | |
1224 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1225 | ac_unrecognized_sep=', ';; | |
1226 | esac | |
1227 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1228 | |
1229 | -without-* | --without-*) | |
ec6a6fbe | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1231 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1233 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1234 | ac_useropt_orig=$ac_useropt |
1235 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1236 | case $ac_user_opts in | |
1237 | *" | |
1238 | "with_$ac_useropt" | |
1239 | "*) ;; | |
1240 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1241 | ac_unrecognized_sep=', ';; | |
1242 | esac | |
1243 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1244 | |
1245 | --x) | |
1246 | # Obsolete; use --with-x. | |
1247 | with_x=yes ;; | |
1248 | ||
1249 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1250 | | --x-incl | --x-inc | --x-in | --x-i) | |
1251 | ac_prev=x_includes ;; | |
1252 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1253 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1254 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1255 | |
1256 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1257 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1258 | ac_prev=x_libraries ;; | |
1259 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1260 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1261 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1262 | |
f11781c5 AK |
1263 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1264 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1265 | ;; |
1266 | ||
ad6254c5 AK |
1267 | *=*) |
1268 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1269 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1270 | case $ac_envvar in #( |
1271 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1272 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1273 | esac | |
7a197a62 | 1274 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1275 | export $ac_envvar ;; |
1276 | ||
795ca3e5 | 1277 | *) |
ad6254c5 | 1278 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1279 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1280 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1281 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1282 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1283 | ;; |
1284 | ||
1285 | esac | |
1286 | done | |
1287 | ||
1288 | if test -n "$ac_prev"; then | |
ad6254c5 | 1289 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1290 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1291 | fi |
795ca3e5 | 1292 | |
ec6a6fbe AK |
1293 | if test -n "$ac_unrecognized_opts"; then |
1294 | case $enable_option_checking in | |
1295 | no) ;; | |
f11781c5 | 1296 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1297 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1298 | esac | |
1299 | fi | |
1300 | ||
1301 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1302 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1303 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1304 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1305 | libdir localedir mandir | |
795ca3e5 | 1306 | do |
7a197a62 | 1307 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1308 | # Remove trailing slashes. |
1309 | case $ac_val in | |
1310 | */ ) | |
1311 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1312 | eval $ac_var=\$ac_val;; | |
1313 | esac | |
1314 | # Be sure to have absolute directory names. | |
ad6254c5 | 1315 | case $ac_val in |
7a197a62 AK |
1316 | [\\/$]* | ?:[\\/]* ) continue;; |
1317 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1318 | esac |
f11781c5 | 1319 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1320 | done |
1321 | ||
ad6254c5 AK |
1322 | # There might be people who depend on the old broken behavior: `$host' |
1323 | # used to hold the argument of --host etc. | |
1324 | # FIXME: To remove some day. | |
1325 | build=$build_alias | |
1326 | host=$host_alias | |
1327 | target=$target_alias | |
1328 | ||
1329 | # FIXME: To remove some day. | |
1330 | if test "x$host_alias" != x; then | |
1331 | if test "x$build_alias" = x; then | |
1332 | cross_compiling=maybe | |
f11781c5 AK |
1333 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1334 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1335 | elif test "x$build_alias" != "x$host_alias"; then |
1336 | cross_compiling=yes | |
1337 | fi | |
1338 | fi | |
8106cdd5 | 1339 | |
ad6254c5 AK |
1340 | ac_tool_prefix= |
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1342 | ||
1343 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1344 | |
795ca3e5 | 1345 | |
7a197a62 AK |
1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1347 | ac_ls_di=`ls -di .` && | |
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1349 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1350 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1351 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1352 | |
1353 | ||
795ca3e5 AK |
1354 | # Find the source files, if location was not specified. |
1355 | if test -z "$srcdir"; then | |
1356 | ac_srcdir_defaulted=yes | |
7a197a62 | 1357 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1358 | ac_confdir=`$as_dirname -- "$as_myself" || |
1359 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1360 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1361 | X"$as_myself" : 'X\(//\)$' \| \ | |
1362 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1363 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)[^/].*/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)$/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\).*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | s/.*/./; q'` | |
795ca3e5 | 1381 | srcdir=$ac_confdir |
7a197a62 | 1382 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1383 | srcdir=.. |
1384 | fi | |
1385 | else | |
1386 | ac_srcdir_defaulted=no | |
1387 | fi | |
7a197a62 AK |
1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1390 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1391 | fi |
7a197a62 AK |
1392 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1393 | ac_abs_confdir=`( | |
f11781c5 | 1394 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1395 | pwd)` |
1396 | # When building in place, set srcdir=. | |
1397 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1398 | srcdir=. | |
1399 | fi | |
1400 | # Remove unnecessary trailing slashes from srcdir. | |
1401 | # Double slashes in file names in object file debugging info | |
1402 | # mess up M-x gdb in Emacs. | |
1403 | case $srcdir in | |
1404 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1405 | esac | |
1406 | for ac_var in $ac_precious_vars; do | |
1407 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1408 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1409 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1410 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1411 | done | |
ad6254c5 AK |
1412 | |
1413 | # | |
1414 | # Report the --help message. | |
1415 | # | |
1416 | if test "$ac_init_help" = "long"; then | |
1417 | # Omit some internal or obsolete options to make the list less imposing. | |
1418 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1419 | cat <<_ACEOF | |
1420 | \`configure' configures this package to adapt to many kinds of systems. | |
1421 | ||
1422 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1423 | ||
1424 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1425 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1426 | ||
1427 | Defaults for the options are specified in brackets. | |
1428 | ||
1429 | Configuration: | |
1430 | -h, --help display this help and exit | |
1431 | --help=short display options specific to this package | |
1432 | --help=recursive display the short help of all the included packages | |
1433 | -V, --version display version information and exit | |
f11781c5 | 1434 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1435 | --cache-file=FILE cache test results in FILE [disabled] |
1436 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1437 | -n, --no-create do not create output files | |
1438 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1439 | ||
ad6254c5 AK |
1440 | Installation directories: |
1441 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1442 | [$ac_default_prefix] |
ad6254c5 | 1443 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1444 | [PREFIX] |
ad6254c5 AK |
1445 | |
1446 | By default, \`make install' will install all the files in | |
1447 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1448 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1449 | for instance \`--prefix=\$HOME'. | |
1450 | ||
1451 | For better control, use the options below. | |
1452 | ||
1453 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1454 | --bindir=DIR user executables [EPREFIX/bin] |
1455 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1456 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1457 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1458 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1459 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1460 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1461 | --includedir=DIR C header files [PREFIX/include] | |
1462 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1463 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1464 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1465 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1466 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1467 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1468 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1469 | --htmldir=DIR html documentation [DOCDIR] | |
1470 | --dvidir=DIR dvi documentation [DOCDIR] | |
1471 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1472 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1473 | _ACEOF |
1474 | ||
1475 | cat <<\_ACEOF | |
1476 | ||
1477 | System types: | |
1478 | --build=BUILD configure for building on BUILD [guessed] | |
1479 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1480 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1481 | _ACEOF | |
1482 | fi | |
1483 | ||
1484 | if test -n "$ac_init_help"; then | |
1485 | ||
1486 | cat <<\_ACEOF | |
1487 | ||
1488 | Optional Features: | |
ec6a6fbe | 1489 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1490 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1491 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1492 | --enable-static_link use this to link the tools to their libraries |
1493 | statically (default is dynamic linking | |
1494 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1495 | device-mapper is missing from the kernel |
71082be4 ZK |
1496 | --disable-readline disable readline support |
1497 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1498 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1499 | resource agents | |
71082be4 ZK |
1500 | --enable-cmirrord enable the cluster mirror log daemon |
1501 | --enable-debug enable debugging | |
1502 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1503 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1504 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1505 | --disable-devmapper disable LVM2 device-mapper interaction |
1506 | --enable-udev_sync enable synchronisation with udev processing | |
1507 | --enable-udev_rules install rule files needed for udev synchronisation | |
1508 | --enable-compat enable support for old device-mapper versions | |
1509 | --enable-units-compat enable output compatibility with old versions that | |
1510 | that do not use KiB-style unit suffixes | |
1511 | --disable-driver disable calls to device-mapper in the kernel | |
1512 | --disable-o_direct disable O_DIRECT | |
1513 | --enable-applib build application library | |
1514 | --enable-cmdlib build shared command library | |
1515 | --enable-pkgconfig install pkgconfig support | |
1516 | --enable-write_install install user writable files | |
1517 | --disable-fsadm disable fsadm | |
1518 | --enable-dmeventd enable the device-mapper event daemon | |
1519 | --disable-selinux disable selinux support | |
1520 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1521 | |
1522 | Optional Packages: | |
1523 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1524 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1525 | --with-user=USER set the owner of installed files [[USER=]] |
1526 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1527 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1528 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1529 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1530 | --with-device-nodes-on=ON |
1531 | create nodes on resume or create [[ON=resume]] | |
ad6254c5 | 1532 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1533 | [[TYPE=internal]] |
ad6254c5 | 1534 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1535 | [[TYPE=internal]] |
71082be4 | 1536 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1537 | [[TYPE=internal]] |
71082be4 | 1538 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1539 | [[TYPE=internal]] |
71082be4 | 1540 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1541 | [[TYPE=internal]] |
cac52ca4 JEB |
1542 | --with-raid=TYPE mirror support: internal/shared/none |
1543 | [[TYPE=internal]] | |
71082be4 | 1544 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1545 | [[TYPE=none]] |
606d0858 AK |
1546 | --with-ocfdir=DIR install OCF files in DIR |
1547 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1548 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1549 | The following cluster manager combinations are valid: |
a946372e AK |
1550 | * cman (RHEL5 or equivalent) |
1551 | * cman,corosync,openais (or selection of them) | |
1091650a | 1552 | * singlenode (localhost only) |
a946372e AK |
1553 | * all (autodetect) |
1554 | * none (disable build) | |
71082be4 | 1555 | [TYPE=none] |
8c4e8a18 | 1556 | --with-clvmd-pidfile=PATH |
f11781c5 | 1557 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1558 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1559 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1560 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1561 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1562 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1563 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1564 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1565 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1566 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1567 | install udev rule files in UPREFIX [[EPREFIX]] |
1568 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
71082be4 | 1569 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1570 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1571 | --with-dmeventd-path=PATH |
f11781c5 | 1572 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1573 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1574 | --with-default-system-dir=DIR |
f11781c5 | 1575 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1576 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1577 | default metadata archive subdir [[archive]] |
71082be4 | 1578 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1579 | default metadata backup subdir [[backup]] |
71082be4 | 1580 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1581 | default metadata cache subdir [[cache]] |
71082be4 | 1582 | --with-default-locking-dir=DIR |
f11781c5 | 1583 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1584 | --with-default-data-alignment=NUM |
f11781c5 AK |
1585 | set the default data alignment in MiB [[1]] |
1586 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1587 | |
1588 | Some influential environment variables: | |
1589 | CC C compiler command | |
1590 | CFLAGS C compiler flags | |
1591 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1592 | nonstandard directory <lib dir> | |
25fbec5b | 1593 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1594 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1595 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1596 | CPP C preprocessor |
e2997b73 | 1597 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1598 | PKG_CONFIG_PATH |
1599 | directories to add to pkg-config's search path | |
1600 | PKG_CONFIG_LIBDIR | |
1601 | path overriding pkg-config's built-in search path | |
a946372e AK |
1602 | PKGCONFIGINIT_CFLAGS |
1603 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1604 | PKGCONFIGINIT_LIBS | |
1605 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1606 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1607 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1608 | COROSYNC_CFLAGS | |
1609 | C compiler flags for COROSYNC, overriding pkg-config | |
1610 | COROSYNC_LIBS | |
1611 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1612 | QUORUM_CFLAGS |
1613 | C compiler flags for QUORUM, overriding pkg-config | |
1614 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1615 | SALCK_CFLAGS |
1616 | C compiler flags for SALCK, overriding pkg-config | |
1617 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1618 | CONFDB_CFLAGS |
1619 | C compiler flags for CONFDB, overriding pkg-config | |
1620 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1621 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1622 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1623 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1624 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1625 | SACKPT_CFLAGS |
1626 | C compiler flags for SACKPT, overriding pkg-config | |
1627 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
d93275eb PR |
1628 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1629 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1630 | |
1631 | Use these variables to override the choices made by `configure' or to help | |
1632 | it to find libraries and programs with nonstandard names/locations. | |
1633 | ||
f11781c5 | 1634 | Report bugs to the package provider. |
ad6254c5 | 1635 | _ACEOF |
7a197a62 | 1636 | ac_status=$? |
ad6254c5 AK |
1637 | fi |
1638 | ||
1639 | if test "$ac_init_help" = "recursive"; then | |
1640 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1641 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1642 | test -d "$ac_dir" || |
1643 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1644 | continue | |
ad6254c5 AK |
1645 | ac_builddir=. |
1646 | ||
7a197a62 AK |
1647 | case "$ac_dir" in |
1648 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1649 | *) | |
ec6a6fbe | 1650 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1651 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1652 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1653 | case $ac_top_builddir_sub in |
1654 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1655 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1656 | esac ;; | |
1657 | esac | |
1658 | ac_abs_top_builddir=$ac_pwd | |
1659 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1660 | # for backward compatibility: | |
1661 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1662 | |
1663 | case $srcdir in | |
7a197a62 | 1664 | .) # We are building in place. |
ad6254c5 | 1665 | ac_srcdir=. |
7a197a62 AK |
1666 | ac_top_srcdir=$ac_top_builddir_sub |
1667 | ac_abs_top_srcdir=$ac_pwd ;; | |
1668 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1669 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1670 | ac_top_srcdir=$srcdir |
1671 | ac_abs_top_srcdir=$srcdir ;; | |
1672 | *) # Relative name. | |
1673 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1674 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1675 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1676 | esac |
7a197a62 AK |
1677 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1678 | ||
1679 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1680 | # Check for guested configure. | |
1681 | if test -f "$ac_srcdir/configure.gnu"; then | |
1682 | echo && | |
1683 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1684 | elif test -f "$ac_srcdir/configure"; then | |
1685 | echo && | |
1686 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1687 | else |
ec6a6fbe | 1688 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1689 | fi || ac_status=$? |
1690 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1691 | done |
1692 | fi | |
1693 | ||
7a197a62 | 1694 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1695 | if $ac_init_version; then |
1696 | cat <<\_ACEOF | |
7a197a62 | 1697 | configure |
f11781c5 | 1698 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1699 | |
f11781c5 | 1700 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1701 | This configure script is free software; the Free Software Foundation |
1702 | gives unlimited permission to copy, distribute and modify it. | |
1703 | _ACEOF | |
7a197a62 | 1704 | exit |
ad6254c5 | 1705 | fi |
ad6254c5 | 1706 | |
f11781c5 AK |
1707 | ## ------------------------ ## |
1708 | ## Autoconf initialization. ## | |
1709 | ## ------------------------ ## | |
ad6254c5 | 1710 | |
f11781c5 AK |
1711 | # ac_fn_c_try_compile LINENO |
1712 | # -------------------------- | |
1713 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1714 | ac_fn_c_try_compile () | |
ad6254c5 | 1715 | { |
f11781c5 AK |
1716 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1717 | rm -f conftest.$ac_objext | |
1718 | if { { ac_try="$ac_compile" | |
1719 | case "(($ac_try" in | |
1720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1721 | *) ac_try_echo=$ac_try;; | |
1722 | esac | |
1723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1724 | $as_echo "$ac_try_echo"; } >&5 | |
1725 | (eval "$ac_compile") 2>conftest.err | |
1726 | ac_status=$? | |
1727 | if test -s conftest.err; then | |
1728 | grep -v '^ *+' conftest.err >conftest.er1 | |
1729 | cat conftest.er1 >&5 | |
1730 | mv -f conftest.er1 conftest.err | |
1731 | fi | |
1732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1733 | test $ac_status = 0; } && { | |
1734 | test -z "$ac_c_werror_flag" || | |
1735 | test ! -s conftest.err | |
1736 | } && test -s conftest.$ac_objext; then : | |
1737 | ac_retval=0 | |
1738 | else | |
1739 | $as_echo "$as_me: failed program was:" >&5 | |
1740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1741 | |
f11781c5 AK |
1742 | ac_retval=1 |
1743 | fi | |
1744 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1745 | as_fn_set_status $ac_retval | |
ad6254c5 | 1746 | |
f11781c5 | 1747 | } # ac_fn_c_try_compile |
ad6254c5 | 1748 | |
f11781c5 AK |
1749 | # ac_fn_c_try_cpp LINENO |
1750 | # ---------------------- | |
1751 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1752 | ac_fn_c_try_cpp () | |
1753 | { | |
1754 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1755 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1756 | case "(($ac_try" in | |
1757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1758 | *) ac_try_echo=$ac_try;; | |
1759 | esac | |
1760 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1761 | $as_echo "$ac_try_echo"; } >&5 | |
1762 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1763 | ac_status=$? | |
1764 | if test -s conftest.err; then | |
1765 | grep -v '^ *+' conftest.err >conftest.er1 | |
1766 | cat conftest.er1 >&5 | |
1767 | mv -f conftest.er1 conftest.err | |
1768 | fi | |
1769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1770 | test $ac_status = 0; } >/dev/null && { | |
1771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1772 | test ! -s conftest.err | |
1773 | }; then : | |
1774 | ac_retval=0 | |
1775 | else | |
1776 | $as_echo "$as_me: failed program was:" >&5 | |
1777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1778 | |
f11781c5 AK |
1779 | ac_retval=1 |
1780 | fi | |
1781 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1782 | as_fn_set_status $ac_retval | |
ad6254c5 | 1783 | |
f11781c5 | 1784 | } # ac_fn_c_try_cpp |
d911ec67 | 1785 | |
f11781c5 AK |
1786 | # ac_fn_c_try_link LINENO |
1787 | # ----------------------- | |
1788 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1789 | ac_fn_c_try_link () | |
d911ec67 | 1790 | { |
f11781c5 AK |
1791 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1793 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1794 | case "(($ac_try" in |
1795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1796 | *) ac_try_echo=$ac_try;; | |
1797 | esac | |
f11781c5 AK |
1798 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1799 | $as_echo "$ac_try_echo"; } >&5 | |
1800 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1801 | ac_status=$? |
f11781c5 AK |
1802 | if test -s conftest.err; then |
1803 | grep -v '^ *+' conftest.err >conftest.er1 | |
1804 | cat conftest.er1 >&5 | |
1805 | mv -f conftest.er1 conftest.err | |
1806 | fi | |
1807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1808 | test $ac_status = 0; } && { | |
1809 | test -z "$ac_c_werror_flag" || | |
1810 | test ! -s conftest.err | |
1811 | } && test -s conftest$ac_exeext && { | |
1812 | test "$cross_compiling" = yes || | |
1813 | $as_test_x conftest$ac_exeext | |
1814 | }; then : | |
1815 | ac_retval=0 | |
d911ec67 | 1816 | else |
f11781c5 | 1817 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1818 | sed 's/^/| /' conftest.$ac_ext >&5 |
1819 | ||
f11781c5 | 1820 | ac_retval=1 |
d911ec67 | 1821 | fi |
f11781c5 AK |
1822 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1823 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1824 | # interfere with the next link command; also delete a directory that is | |
1825 | # left behind by Apple's compiler. We do this before executing the actions. | |
1826 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1827 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1828 | as_fn_set_status $ac_retval | |
d911ec67 | 1829 | |
f11781c5 | 1830 | } # ac_fn_c_try_link |
d911ec67 | 1831 | |
f11781c5 AK |
1832 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1833 | # ------------------------------------------------------- | |
1834 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1835 | # the include files in INCLUDES and setting the cache variable VAR | |
1836 | # accordingly. | |
1837 | ac_fn_c_check_header_mongrel () | |
1838 | { | |
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1840 | if eval "test \"\${$3+set}\"" = set; then : | |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1842 | $as_echo_n "checking for $2... " >&6; } | |
1843 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1844 | $as_echo_n "(cached) " >&6 |
1845 | fi | |
f11781c5 AK |
1846 | eval ac_res=\$$3 |
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1848 | $as_echo "$ac_res" >&6; } |
1849 | else | |
1850 | # Is the header compilable? | |
f11781c5 AK |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1852 | $as_echo_n "checking $2 usability... " >&6; } | |
1853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1854 | /* end confdefs.h. */ |
f11781c5 AK |
1855 | $4 |
1856 | #include <$2> | |
d911ec67 | 1857 | _ACEOF |
f11781c5 | 1858 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1859 | ac_header_compiler=yes |
1860 | else | |
f11781c5 | 1861 | ac_header_compiler=no |
d911ec67 | 1862 | fi |
d911ec67 | 1863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1865 | $as_echo "$ac_header_compiler" >&6; } |
1866 | ||
1867 | # Is the header present? | |
f11781c5 AK |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1869 | $as_echo_n "checking $2 presence... " >&6; } | |
1870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1871 | /* end confdefs.h. */ |
f11781c5 | 1872 | #include <$2> |
d911ec67 | 1873 | _ACEOF |
f11781c5 | 1874 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1875 | ac_header_preproc=yes |
1876 | else | |
d911ec67 AK |
1877 | ac_header_preproc=no |
1878 | fi | |
d911ec67 | 1879 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1881 | $as_echo "$ac_header_preproc" >&6; } |
1882 | ||
1883 | # So? What about this header? | |
f11781c5 | 1884 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1885 | yes:no: ) |
f11781c5 AK |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1887 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1889 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1890 | ;; |
1891 | no:yes:* ) | |
f11781c5 AK |
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1893 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1895 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1897 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1899 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1901 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1902 | ;; |
1903 | esac | |
f11781c5 AK |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1905 | $as_echo_n "checking for $2... " >&6; } | |
1906 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1907 | $as_echo_n "(cached) " >&6 |
1908 | else | |
f11781c5 | 1909 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1910 | fi |
f11781c5 AK |
1911 | eval ac_res=\$$3 |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1913 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1914 | fi |
f11781c5 | 1915 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1916 | |
f11781c5 | 1917 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1918 | |
f11781c5 AK |
1919 | # ac_fn_c_try_run LINENO |
1920 | # ---------------------- | |
1921 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1922 | # that executables *can* be run. | |
1923 | ac_fn_c_try_run () | |
ad6254c5 | 1924 | { |
f11781c5 AK |
1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1926 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1927 | case "(($ac_try" in |
1928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1929 | *) ac_try_echo=$ac_try;; | |
1930 | esac | |
f11781c5 AK |
1931 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1932 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1933 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1934 | ac_status=$? |
f11781c5 AK |
1935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1936 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1937 | { { case "(($ac_try" in | |
7a197a62 AK |
1938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1939 | *) ac_try_echo=$ac_try;; | |
1940 | esac | |
f11781c5 AK |
1941 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1942 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1943 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1944 | ac_status=$? |
f11781c5 AK |
1945 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1946 | test $ac_status = 0; }; }; then : | |
1947 | ac_retval=0 | |
ad6254c5 | 1948 | else |
ec6a6fbe | 1949 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1950 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1951 | sed 's/^/| /' conftest.$ac_ext >&5 |
1952 | ||
f11781c5 | 1953 | ac_retval=$ac_status |
ad6254c5 | 1954 | fi |
f11781c5 AK |
1955 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1956 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1957 | as_fn_set_status $ac_retval | |
ad6254c5 | 1958 | |
f11781c5 | 1959 | } # ac_fn_c_try_run |
ad6254c5 | 1960 | |
f11781c5 AK |
1961 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1962 | # ------------------------------------------------------- | |
1963 | # Tests whether HEADER exists and can be compiled using the include files in | |
1964 | # INCLUDES, setting the cache variable VAR accordingly. | |
1965 | ac_fn_c_check_header_compile () | |
1966 | { | |
1967 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1969 | $as_echo_n "checking for $2... " >&6; } | |
1970 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 1971 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1972 | else |
f11781c5 | 1973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 1974 | /* end confdefs.h. */ |
f11781c5 AK |
1975 | $4 |
1976 | #include <$2> | |
ad6254c5 | 1977 | _ACEOF |
f11781c5 AK |
1978 | if ac_fn_c_try_compile "$LINENO"; then : |
1979 | eval "$3=yes" | |
ad6254c5 | 1980 | else |
f11781c5 | 1981 | eval "$3=no" |
ad6254c5 | 1982 | fi |
7a197a62 | 1983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 1984 | fi |
f11781c5 AK |
1985 | eval ac_res=\$$3 |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 1987 | $as_echo "$ac_res" >&6; } |
f11781c5 | 1988 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1989 | |
f11781c5 | 1990 | } # ac_fn_c_check_header_compile |
ad6254c5 | 1991 | |
f11781c5 AK |
1992 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1993 | # ---------------------------------------------------- | |
1994 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1995 | # INCLUDES, setting cache variable VAR accordingly. | |
1996 | ac_fn_c_check_member () | |
1997 | { | |
1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2000 | $as_echo_n "checking for $2.$3... " >&6; } | |
2001 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2002 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2003 | else |
f11781c5 AK |
2004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2005 | /* end confdefs.h. */ | |
2006 | $5 | |
2007 | int | |
2008 | main () | |
2009 | { | |
2010 | static $2 ac_aggr; | |
2011 | if (ac_aggr.$3) | |
2012 | return 0; | |
2013 | ; | |
2014 | return 0; | |
2015 | } | |
ad6254c5 | 2016 | _ACEOF |
f11781c5 AK |
2017 | if ac_fn_c_try_compile "$LINENO"; then : |
2018 | eval "$4=yes" | |
2019 | else | |
2020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2021 | /* end confdefs.h. */ |
f11781c5 AK |
2022 | $5 |
2023 | int | |
2024 | main () | |
2025 | { | |
2026 | static $2 ac_aggr; | |
2027 | if (sizeof ac_aggr.$3) | |
2028 | return 0; | |
2029 | ; | |
2030 | return 0; | |
2031 | } | |
2032 | _ACEOF | |
2033 | if ac_fn_c_try_compile "$LINENO"; then : | |
2034 | eval "$4=yes" | |
2035 | else | |
2036 | eval "$4=no" | |
2037 | fi | |
2038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2039 | fi | |
2040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2041 | fi | |
2042 | eval ac_res=\$$4 | |
2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2044 | $as_echo "$ac_res" >&6; } | |
2045 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2046 | ||
2047 | } # ac_fn_c_check_member | |
795ca3e5 | 2048 | |
f11781c5 AK |
2049 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2050 | # ------------------------------------------- | |
2051 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2052 | # variable VAR accordingly. | |
2053 | ac_fn_c_check_type () | |
2054 | { | |
2055 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2057 | $as_echo_n "checking for $2... " >&6; } | |
2058 | if eval "test \"\${$3+set}\"" = set; then : | |
2059 | $as_echo_n "(cached) " >&6 | |
2060 | else | |
2061 | eval "$3=no" | |
2062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2063 | /* end confdefs.h. */ | |
2064 | $4 | |
ad6254c5 AK |
2065 | int |
2066 | main () | |
2067 | { | |
f11781c5 AK |
2068 | if (sizeof ($2)) |
2069 | return 0; | |
ad6254c5 AK |
2070 | ; |
2071 | return 0; | |
2072 | } | |
2073 | _ACEOF | |
f11781c5 AK |
2074 | if ac_fn_c_try_compile "$LINENO"; then : |
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2076 | /* end confdefs.h. */ | |
2077 | $4 | |
2078 | int | |
2079 | main () | |
2080 | { | |
2081 | if (sizeof (($2))) | |
2082 | return 0; | |
2083 | ; | |
2084 | return 0; | |
2085 | } | |
2086 | _ACEOF | |
2087 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2088 | |
f11781c5 AK |
2089 | else |
2090 | eval "$3=yes" | |
795ca3e5 | 2091 | fi |
f11781c5 AK |
2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2093 | fi | |
2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2095 | fi |
f11781c5 AK |
2096 | eval ac_res=\$$3 |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2098 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2099 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2100 | |
f11781c5 | 2101 | } # ac_fn_c_check_type |
ad6254c5 | 2102 | |
f11781c5 AK |
2103 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2104 | # ----------------------------------- | |
2105 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2106 | # accordingly. | |
2107 | ac_fn_c_find_intX_t () | |
2108 | { | |
2109 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2111 | $as_echo_n "checking for int$2_t... " >&6; } | |
2112 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2113 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2114 | else |
f11781c5 AK |
2115 | eval "$3=no" |
2116 | # Order is important - never check a type that is potentially smaller | |
2117 | # than half of the expected target width. | |
2118 | for ac_type in int$2_t 'int' 'long int' \ | |
2119 | 'long long int' 'short int' 'signed char'; do | |
2120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2121 | /* end confdefs.h. */ |
2122 | $ac_includes_default | |
f11781c5 | 2123 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2124 | int |
2125 | main () | |
2126 | { | |
f11781c5 AK |
2127 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2128 | test_array [0] = 0 | |
7a197a62 | 2129 | |
f11781c5 AK |
2130 | ; |
2131 | return 0; | |
2132 | } | |
2133 | _ACEOF | |
2134 | if ac_fn_c_try_compile "$LINENO"; then : | |
2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2136 | /* end confdefs.h. */ | |
2137 | $ac_includes_default | |
2138 | enum { N = $2 / 2 - 1 }; | |
2139 | int | |
2140 | main () | |
2141 | { | |
2142 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2143 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2144 | test_array [0] = 0 | |
7a197a62 AK |
2145 | |
2146 | ; | |
2147 | return 0; | |
2148 | } | |
ad6254c5 | 2149 | _ACEOF |
f11781c5 | 2150 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2151 | |
f11781c5 AK |
2152 | else |
2153 | case $ac_type in #( | |
2154 | int$2_t) : | |
2155 | eval "$3=yes" ;; #( | |
2156 | *) : | |
2157 | eval "$3=\$ac_type" ;; | |
2158 | esac | |
ad6254c5 | 2159 | fi |
f11781c5 | 2160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2161 | fi |
f11781c5 AK |
2162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2163 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2164 | |
2165 | else | |
f11781c5 | 2166 | break |
ad6254c5 | 2167 | fi |
f11781c5 | 2168 | done |
ad6254c5 | 2169 | fi |
f11781c5 AK |
2170 | eval ac_res=\$$3 |
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2172 | $as_echo "$ac_res" >&6; } | |
2173 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2174 | ||
2175 | } # ac_fn_c_find_intX_t | |
2176 | ||
2177 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2178 | # ------------------------------------ | |
2179 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2180 | # accordingly. | |
2181 | ac_fn_c_find_uintX_t () | |
2182 | { | |
2183 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2185 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2186 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2187 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2188 | else |
f11781c5 AK |
2189 | eval "$3=no" |
2190 | # Order is important - never check a type that is potentially smaller | |
2191 | # than half of the expected target width. | |
2192 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2193 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2195 | /* end confdefs.h. */ |
7a197a62 | 2196 | $ac_includes_default |
ad6254c5 AK |
2197 | int |
2198 | main () | |
2199 | { | |
f11781c5 AK |
2200 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2201 | test_array [0] = 0 | |
ad6254c5 | 2202 | |
f11781c5 AK |
2203 | ; |
2204 | return 0; | |
ad6254c5 AK |
2205 | } |
2206 | _ACEOF | |
f11781c5 AK |
2207 | if ac_fn_c_try_compile "$LINENO"; then : |
2208 | case $ac_type in #( | |
2209 | uint$2_t) : | |
2210 | eval "$3=yes" ;; #( | |
2211 | *) : | |
2212 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2213 | esac |
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 : | |
7a197a62 | 2217 | |
f11781c5 AK |
2218 | else |
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;} | |
ad6254c5 | 2227 | |
f11781c5 | 2228 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2229 | |
f11781c5 AK |
2230 | # ac_fn_c_check_func LINENO FUNC VAR |
2231 | # ---------------------------------- | |
2232 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2233 | ac_fn_c_check_func () | |
2234 | { | |
2235 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2237 | $as_echo_n "checking for $2... " >&6; } | |
2238 | if eval "test \"\${$3+set}\"" = set; then : | |
2239 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2240 | else |
f11781c5 AK |
2241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2242 | /* end confdefs.h. */ | |
2243 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2245 | #define $2 innocuous_$2 | |
ad6254c5 | 2246 | |
f11781c5 AK |
2247 | /* System header to define __stub macros and hopefully few prototypes, |
2248 | which can conflict with char $2 (); below. | |
2249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2250 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2251 | |
f11781c5 AK |
2252 | #ifdef __STDC__ |
2253 | # include <limits.h> | |
2254 | #else | |
2255 | # include <assert.h> | |
2256 | #endif | |
ad6254c5 | 2257 | |
f11781c5 AK |
2258 | #undef $2 |
2259 | ||
2260 | /* Override any GCC internal prototype to avoid an error. | |
2261 | Use char because int might match the return type of a GCC | |
2262 | builtin and then its argument prototype would still apply. */ | |
2263 | #ifdef __cplusplus | |
2264 | extern "C" | |
2265 | #endif | |
2266 | char $2 (); | |
2267 | /* The GNU C library defines this for functions which it implements | |
2268 | to always fail with ENOSYS. Some functions are actually named | |
2269 | something starting with __ and the normal name is an alias. */ | |
2270 | #if defined __stub_$2 || defined __stub___$2 | |
2271 | choke me | |
2272 | #endif | |
ad6254c5 | 2273 | |
ad6254c5 AK |
2274 | int |
2275 | main () | |
2276 | { | |
f11781c5 | 2277 | return $2 (); |
ad6254c5 AK |
2278 | ; |
2279 | return 0; | |
2280 | } | |
2281 | _ACEOF | |
f11781c5 AK |
2282 | if ac_fn_c_try_link "$LINENO"; then : |
2283 | eval "$3=yes" | |
ad6254c5 | 2284 | else |
f11781c5 | 2285 | eval "$3=no" |
ad6254c5 | 2286 | fi |
f11781c5 AK |
2287 | rm -f core conftest.err conftest.$ac_objext \ |
2288 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2289 | fi |
f11781c5 AK |
2290 | eval ac_res=\$$3 |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2292 | $as_echo "$ac_res" >&6; } | |
2293 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2294 | |
f11781c5 AK |
2295 | } # ac_fn_c_check_func |
2296 | cat >config.log <<_ACEOF | |
2297 | This file contains any messages produced by compilers while | |
2298 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2299 | |
f11781c5 AK |
2300 | It was created by $as_me, which was |
2301 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2302 | |
f11781c5 | 2303 | $ $0 $@ |
ad6254c5 | 2304 | |
ad6254c5 | 2305 | _ACEOF |
f11781c5 AK |
2306 | exec 5>>config.log |
2307 | { | |
2308 | cat <<_ASUNAME | |
2309 | ## --------- ## | |
2310 | ## Platform. ## | |
2311 | ## --------- ## | |
ad6254c5 | 2312 | |
f11781c5 AK |
2313 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2314 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2315 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2316 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2317 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2318 | |
f11781c5 AK |
2319 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2320 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2321 | |
f11781c5 AK |
2322 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2323 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2324 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2325 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2326 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2327 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2328 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2329 | ||
2330 | _ASUNAME | |
2331 | ||
2332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2333 | for as_dir in $PATH | |
2334 | do | |
2335 | IFS=$as_save_IFS | |
2336 | test -z "$as_dir" && as_dir=. | |
2337 | $as_echo "PATH: $as_dir" | |
2338 | done | |
2339 | IFS=$as_save_IFS | |
2340 | ||
2341 | } >&5 | |
2342 | ||
2343 | cat >&5 <<_ACEOF | |
2344 | ||
2345 | ||
2346 | ## ----------- ## | |
2347 | ## Core tests. ## | |
2348 | ## ----------- ## | |
ad6254c5 | 2349 | |
ad6254c5 | 2350 | _ACEOF |
ad6254c5 | 2351 | |
7a197a62 | 2352 | |
f11781c5 AK |
2353 | # Keep a trace of the command line. |
2354 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2355 | # Strip out --silent because we don't want to record it for future runs. | |
2356 | # Also quote any args containing shell meta-characters. | |
2357 | # Make two passes to allow for proper duplicate-argument suppression. | |
2358 | ac_configure_args= | |
2359 | ac_configure_args0= | |
2360 | ac_configure_args1= | |
2361 | ac_must_keep_next=false | |
2362 | for ac_pass in 1 2 | |
2363 | do | |
2364 | for ac_arg | |
2365 | do | |
2366 | case $ac_arg in | |
2367 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2368 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2369 | | -silent | --silent | --silen | --sile | --sil) | |
2370 | continue ;; | |
2371 | *\'*) | |
2372 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2373 | esac | |
2374 | case $ac_pass in | |
2375 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2376 | 2) | |
2377 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2378 | if test $ac_must_keep_next = true; then | |
2379 | ac_must_keep_next=false # Got value, back to normal. | |
2380 | else | |
2381 | case $ac_arg in | |
2382 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2383 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2384 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2385 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2386 | case "$ac_configure_args0 " in | |
2387 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2388 | esac | |
2389 | ;; | |
2390 | -* ) ac_must_keep_next=true ;; | |
2391 | esac | |
2392 | fi | |
2393 | as_fn_append ac_configure_args " '$ac_arg'" | |
2394 | ;; | |
2395 | esac | |
2396 | done | |
2397 | done | |
2398 | { ac_configure_args0=; unset ac_configure_args0;} | |
2399 | { ac_configure_args1=; unset ac_configure_args1;} | |
2400 | ||
2401 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2402 | # config.log. We remove comments because anyway the quotes in there | |
2403 | # would cause problems or look ugly. | |
2404 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2405 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2406 | trap 'exit_status=$? | |
2407 | # Save into config.log some information that might help in debugging. | |
2408 | { | |
2409 | echo | |
2410 | ||
2411 | $as_echo "## ---------------- ## | |
2412 | ## Cache variables. ## | |
2413 | ## ---------------- ##" | |
2414 | echo | |
2415 | # The following way of writing the cache mishandles newlines in values, | |
2416 | ( | |
2417 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2418 | eval ac_val=\$$ac_var | |
2419 | case $ac_val in #( | |
2420 | *${as_nl}*) | |
2421 | case $ac_var in #( | |
2422 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2423 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2424 | esac | |
2425 | case $ac_var in #( | |
2426 | _ | IFS | as_nl) ;; #( | |
2427 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2428 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2429 | esac ;; | |
2430 | esac | |
2431 | done | |
2432 | (set) 2>&1 | | |
2433 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2434 | *${as_nl}ac_space=\ *) | |
2435 | sed -n \ | |
2436 | "s/'\''/'\''\\\\'\'''\''/g; | |
2437 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2438 | ;; #( | |
2439 | *) | |
2440 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2441 | ;; | |
2442 | esac | | |
2443 | sort | |
2444 | ) | |
2445 | echo | |
2446 | ||
2447 | $as_echo "## ----------------- ## | |
2448 | ## Output variables. ## | |
2449 | ## ----------------- ##" | |
2450 | echo | |
2451 | for ac_var in $ac_subst_vars | |
2452 | do | |
2453 | eval ac_val=\$$ac_var | |
2454 | case $ac_val in | |
2455 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2456 | esac | |
2457 | $as_echo "$ac_var='\''$ac_val'\''" | |
2458 | done | sort | |
2459 | echo | |
2460 | ||
2461 | if test -n "$ac_subst_files"; then | |
2462 | $as_echo "## ------------------- ## | |
2463 | ## File substitutions. ## | |
2464 | ## ------------------- ##" | |
2465 | echo | |
2466 | for ac_var in $ac_subst_files | |
2467 | do | |
2468 | eval ac_val=\$$ac_var | |
2469 | case $ac_val in | |
2470 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2471 | esac | |
2472 | $as_echo "$ac_var='\''$ac_val'\''" | |
2473 | done | sort | |
2474 | echo | |
2475 | fi | |
2476 | ||
2477 | if test -s confdefs.h; then | |
2478 | $as_echo "## ----------- ## | |
2479 | ## confdefs.h. ## | |
2480 | ## ----------- ##" | |
2481 | echo | |
2482 | cat confdefs.h | |
2483 | echo | |
2484 | fi | |
2485 | test "$ac_signal" != 0 && | |
2486 | $as_echo "$as_me: caught signal $ac_signal" | |
2487 | $as_echo "$as_me: exit $exit_status" | |
2488 | } >&5 | |
2489 | rm -f core *.core core.conftest.* && | |
2490 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2491 | exit $exit_status | |
2492 | ' 0 | |
2493 | for ac_signal in 1 2 13 15; do | |
2494 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2495 | done | |
2496 | ac_signal=0 | |
2497 | ||
2498 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2499 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2500 | |
f11781c5 | 2501 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2502 | |
f11781c5 | 2503 | # Predefined preprocessor variables. |
ad6254c5 AK |
2504 | |
2505 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2506 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2507 | _ACEOF |
2508 | ||
f11781c5 AK |
2509 | cat >>confdefs.h <<_ACEOF |
2510 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2511 | _ACEOF |
ad6254c5 | 2512 | |
f11781c5 AK |
2513 | cat >>confdefs.h <<_ACEOF |
2514 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2515 | _ACEOF |
f11781c5 AK |
2516 | |
2517 | cat >>confdefs.h <<_ACEOF | |
2518 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2519 | _ACEOF |
ad6254c5 | 2520 | |
f11781c5 AK |
2521 | cat >>confdefs.h <<_ACEOF |
2522 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2523 | _ACEOF | |
7a197a62 | 2524 | |
f11781c5 AK |
2525 | cat >>confdefs.h <<_ACEOF |
2526 | #define PACKAGE_URL "$PACKAGE_URL" | |
2527 | _ACEOF | |
ad6254c5 | 2528 | |
7a197a62 | 2529 | |
f11781c5 AK |
2530 | # Let the site file select an alternate cache file if it wants to. |
2531 | # Prefer an explicitly selected file to automatically selected ones. | |
2532 | ac_site_file1=NONE | |
2533 | ac_site_file2=NONE | |
2534 | if test -n "$CONFIG_SITE"; then | |
2535 | # We do not want a PATH search for config.site. | |
2536 | case $CONFIG_SITE in #(( | |
2537 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2538 | */*) ac_site_file1=$CONFIG_SITE;; | |
2539 | *) ac_site_file1=./$CONFIG_SITE;; | |
2540 | esac | |
2541 | elif test "x$prefix" != xNONE; then | |
2542 | ac_site_file1=$prefix/share/config.site | |
2543 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2544 | else |
f11781c5 AK |
2545 | ac_site_file1=$ac_default_prefix/share/config.site |
2546 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2547 | fi |
f11781c5 AK |
2548 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2549 | do | |
2550 | test "x$ac_site_file" = xNONE && continue | |
2551 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2553 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2554 | sed 's/^/| /' "$ac_site_file" >&5 | |
2555 | . "$ac_site_file" \ | |
2556 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2557 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2558 | as_fn_error $? "failed to load site script $ac_site_file | |
2559 | See \`config.log' for more details" "$LINENO" 5; } | |
2560 | fi | |
2561 | done | |
ad6254c5 | 2562 | |
f11781c5 AK |
2563 | if test -r "$cache_file"; then |
2564 | # Some versions of bash will fail to source /dev/null (special files | |
2565 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2566 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2568 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2569 | case $cache_file in | |
2570 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2571 | *) . "./$cache_file";; | |
2572 | esac | |
2573 | fi | |
2574 | else | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2576 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2577 | >$cache_file | |
ad6254c5 | 2578 | fi |
ad6254c5 | 2579 | |
f11781c5 AK |
2580 | as_fn_append ac_header_list " stdlib.h" |
2581 | as_fn_append ac_header_list " unistd.h" | |
2582 | as_fn_append ac_header_list " sys/param.h" | |
2583 | # Check that the precious variables saved in the cache have kept the same | |
2584 | # value. | |
2585 | ac_cache_corrupted=false | |
2586 | for ac_var in $ac_precious_vars; do | |
2587 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2588 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2589 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2590 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2591 | case $ac_old_set,$ac_new_set in | |
2592 | set,) | |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2594 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2595 | ac_cache_corrupted=: ;; | |
2596 | ,set) | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2598 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2599 | ac_cache_corrupted=: ;; | |
2600 | ,);; | |
2601 | *) | |
2602 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2603 | # differences in whitespace do not lead to failure. | |
2604 | ac_old_val_w=`echo x $ac_old_val` | |
2605 | ac_new_val_w=`echo x $ac_new_val` | |
2606 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2608 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2609 | ac_cache_corrupted=: | |
2610 | else | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2612 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2613 | eval $ac_var=\$ac_old_val | |
2614 | fi | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2616 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2618 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2619 | fi;; | |
2620 | esac | |
2621 | # Pass precious variables to config.status. | |
2622 | if test "$ac_new_set" = set; then | |
2623 | case $ac_new_val in | |
2624 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2625 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2626 | esac | |
2627 | case " $ac_configure_args " in | |
2628 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2629 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2630 | esac | |
2631 | fi | |
2632 | done | |
2633 | if $ac_cache_corrupted; then | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2637 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2638 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2639 | fi |
f11781c5 AK |
2640 | ## -------------------- ## |
2641 | ## Main body of script. ## | |
2642 | ## -------------------- ## | |
ad6254c5 | 2643 | |
f11781c5 AK |
2644 | ac_ext=c |
2645 | ac_cpp='$CPP $CPPFLAGS' | |
2646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2649 | |
ad6254c5 | 2650 | |
ad6254c5 | 2651 | |
f11781c5 | 2652 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2653 | |
2654 | ||
f11781c5 AK |
2655 | ################################################################################ |
2656 | ac_aux_dir= | |
2657 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2658 | if test -f "$ac_dir/install-sh"; then | |
2659 | ac_aux_dir=$ac_dir | |
2660 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2661 | break | |
2662 | elif test -f "$ac_dir/install.sh"; then | |
2663 | ac_aux_dir=$ac_dir | |
2664 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2665 | break | |
2666 | elif test -f "$ac_dir/shtool"; then | |
2667 | ac_aux_dir=$ac_dir | |
2668 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2669 | break | |
2670 | fi | |
2671 | done | |
2672 | if test -z "$ac_aux_dir"; then | |
2673 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2674 | fi |
ad6254c5 | 2675 | |
f11781c5 AK |
2676 | # These three variables are undocumented and unsupported, |
2677 | # and are intended to be withdrawn in a future Autoconf release. | |
2678 | # They can cause serious problems if a builder's source tree is in a directory | |
2679 | # whose full name contains unusual characters. | |
2680 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2681 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2682 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2683 | |
ad6254c5 | 2684 | |
8a2fc586 | 2685 | |
f11781c5 AK |
2686 | ################################################################################ |
2687 | # Make sure we can run config.sub. | |
2688 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2689 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2690 | |
f11781c5 AK |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2692 | $as_echo_n "checking build system type... " >&6; } | |
2693 | if test "${ac_cv_build+set}" = set; then : | |
2694 | $as_echo_n "(cached) " >&6 | |
2695 | else | |
2696 | ac_build_alias=$build_alias | |
2697 | test "x$ac_build_alias" = x && | |
2698 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2699 | test "x$ac_build_alias" = x && | |
2700 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2701 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2702 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2703 | |
2704 | fi | |
f11781c5 AK |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2706 | $as_echo "$ac_cv_build" >&6; } | |
2707 | case $ac_cv_build in | |
2708 | *-*-*) ;; | |
2709 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2710 | esac | |
2711 | build=$ac_cv_build | |
2712 | ac_save_IFS=$IFS; IFS='-' | |
2713 | set x $ac_cv_build | |
2714 | shift | |
2715 | build_cpu=$1 | |
2716 | build_vendor=$2 | |
2717 | shift; shift | |
2718 | # Remember, the first character of IFS is used to create $*, | |
2719 | # except with old shells: | |
2720 | build_os=$* | |
2721 | IFS=$ac_save_IFS | |
2722 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2723 | |
2724 | ||
f11781c5 AK |
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2726 | $as_echo_n "checking host system type... " >&6; } | |
2727 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2728 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2729 | else |
f11781c5 AK |
2730 | if test "x$host_alias" = x; then |
2731 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2732 | else |
f11781c5 AK |
2733 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2734 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2735 | fi | |
ad6254c5 | 2736 | |
f11781c5 AK |
2737 | fi |
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2739 | $as_echo "$ac_cv_host" >&6; } | |
2740 | case $ac_cv_host in | |
2741 | *-*-*) ;; | |
2742 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2743 | esac | |
2744 | host=$ac_cv_host | |
2745 | ac_save_IFS=$IFS; IFS='-' | |
2746 | set x $ac_cv_host | |
2747 | shift | |
2748 | host_cpu=$1 | |
2749 | host_vendor=$2 | |
2750 | shift; shift | |
2751 | # Remember, the first character of IFS is used to create $*, | |
2752 | # except with old shells: | |
2753 | host_os=$* | |
2754 | IFS=$ac_save_IFS | |
2755 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2756 | |
ad6254c5 | 2757 | |
f11781c5 AK |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2759 | $as_echo_n "checking target system type... " >&6; } | |
2760 | if test "${ac_cv_target+set}" = set; then : | |
2761 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2762 | else |
f11781c5 AK |
2763 | if test "x$target_alias" = x; then |
2764 | ac_cv_target=$ac_cv_host | |
2765 | else | |
2766 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2767 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2768 | fi |
7a197a62 | 2769 | |
ad6254c5 | 2770 | fi |
f11781c5 AK |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2772 | $as_echo "$ac_cv_target" >&6; } | |
2773 | case $ac_cv_target in | |
2774 | *-*-*) ;; | |
2775 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2776 | esac |
f11781c5 AK |
2777 | target=$ac_cv_target |
2778 | ac_save_IFS=$IFS; IFS='-' | |
2779 | set x $ac_cv_target | |
2780 | shift | |
2781 | target_cpu=$1 | |
2782 | target_vendor=$2 | |
2783 | shift; shift | |
2784 | # Remember, the first character of IFS is used to create $*, | |
2785 | # except with old shells: | |
2786 | target_os=$* | |
2787 | IFS=$ac_save_IFS | |
2788 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2789 | |
ad6254c5 | 2790 | |
f11781c5 AK |
2791 | # The aliases save the names the user supplied, while $host etc. |
2792 | # will get canonicalized. | |
2793 | test -n "$target_alias" && | |
2794 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2795 | NONENONEs,x,x, && | |
2796 | program_prefix=${target_alias}- | |
ad6254c5 | 2797 | |
f11781c5 AK |
2798 | case "$host_os" in |
2799 | linux*) | |
2800 | CFLAGS="$CFLAGS" | |
2801 | COPTIMISE_FLAG="-O2" | |
2802 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2803 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2804 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2805 | LDDEPS="$LDDEPS .export.sym" | |
2806 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
2807 | LIB_SUFFIX=so | |
2808 | DEVMAPPER=yes | |
2809 | ODIRECT=yes | |
2810 | DM_IOCTLS=yes | |
2811 | SELINUX=yes | |
2812 | CLUSTER=internal | |
2813 | FSADM=yes | |
2814 | ;; | |
2815 | darwin*) | |
2816 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2817 | COPTIMISE_FLAG="-O2" | |
2818 | CLDFLAGS="$CLDFLAGS" | |
2819 | CLDWHOLEARCHIVE="-all_load" | |
2820 | CLDNOWHOLEARCHIVE= | |
2821 | LIB_SUFFIX=dylib | |
2822 | DEVMAPPER=yes | |
2823 | ODIRECT=no | |
2824 | DM_IOCTLS=no | |
2825 | SELINUX=no | |
2826 | CLUSTER=none | |
2827 | FSADM=no | |
2828 | ;; | |
2829 | esac | |
ad6254c5 | 2830 | |
f11781c5 AK |
2831 | ################################################################################ |
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2833 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2834 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2835 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2836 | else |
f11781c5 AK |
2837 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2838 | for ac_i in 1 2 3 4 5 6 7; do | |
2839 | ac_script="$ac_script$as_nl$ac_script" | |
2840 | done | |
2841 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2842 | { ac_script=; unset ac_script;} | |
2843 | if test -z "$SED"; then | |
2844 | ac_path_SED_found=false | |
2845 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2847 | for as_dir in $PATH | |
2848 | do | |
2849 | IFS=$as_save_IFS | |
2850 | test -z "$as_dir" && as_dir=. | |
2851 | for ac_prog in sed gsed; do | |
2852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2853 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2854 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2855 | # Check for GNU ac_path_SED and select it if it is found. | |
2856 | # Check for GNU $ac_path_SED | |
2857 | case `"$ac_path_SED" --version 2>&1` in | |
2858 | *GNU*) | |
2859 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2860 | *) | |
2861 | ac_count=0 | |
2862 | $as_echo_n 0123456789 >"conftest.in" | |
2863 | while : | |
2864 | do | |
2865 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2866 | mv "conftest.tmp" "conftest.in" | |
2867 | cp "conftest.in" "conftest.nl" | |
2868 | $as_echo '' >> "conftest.nl" | |
2869 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2870 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2871 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2872 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2873 | # Best one so far, save it but keep looking for a better one | |
2874 | ac_cv_path_SED="$ac_path_SED" | |
2875 | ac_path_SED_max=$ac_count | |
2876 | fi | |
2877 | # 10*(2^10) chars as input seems more than enough | |
2878 | test $ac_count -gt 10 && break | |
2879 | done | |
2880 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2881 | esac |
ad6254c5 | 2882 | |
f11781c5 AK |
2883 | $ac_path_SED_found && break 3 |
2884 | done | |
2885 | done | |
2886 | done | |
2887 | IFS=$as_save_IFS | |
2888 | if test -z "$ac_cv_path_SED"; then | |
2889 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2890 | fi | |
2891 | else | |
2892 | ac_cv_path_SED=$SED | |
ad6254c5 | 2893 | fi |
7a197a62 | 2894 | |
f11781c5 AK |
2895 | fi |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2897 | $as_echo "$ac_cv_path_SED" >&6; } | |
2898 | SED="$ac_cv_path_SED" | |
2899 | rm -f conftest.sed | |
ad6254c5 | 2900 | |
f11781c5 AK |
2901 | for ac_prog in gawk mawk nawk awk |
2902 | do | |
2903 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2904 | set dummy $ac_prog; ac_word=$2 | |
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2906 | $as_echo_n "checking for $ac_word... " >&6; } | |
2907 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2908 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2909 | else |
f11781c5 AK |
2910 | if test -n "$AWK"; then |
2911 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2912 | else | |
2913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2914 | for as_dir in $PATH | |
2915 | do | |
2916 | IFS=$as_save_IFS | |
2917 | test -z "$as_dir" && as_dir=. | |
2918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2920 | ac_cv_prog_AWK="$ac_prog" | |
2921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2922 | break 2 | |
2923 | fi | |
2924 | done | |
2925 | done | |
2926 | IFS=$as_save_IFS | |
ad6254c5 | 2927 | |
ad6254c5 | 2928 | fi |
ad6254c5 | 2929 | fi |
f11781c5 AK |
2930 | AWK=$ac_cv_prog_AWK |
2931 | if test -n "$AWK"; then | |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2933 | $as_echo "$AWK" >&6; } | |
2934 | else | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2936 | $as_echo "no" >&6; } | |
ad6254c5 | 2937 | fi |
ad6254c5 | 2938 | |
ad6254c5 | 2939 | |
f11781c5 | 2940 | test -n "$AWK" && break |
ad6254c5 AK |
2941 | done |
2942 | ||
f11781c5 AK |
2943 | ac_ext=c |
2944 | ac_cpp='$CPP $CPPFLAGS' | |
2945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2948 | if test -n "$ac_tool_prefix"; then | |
2949 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2950 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2952 | $as_echo_n "checking for $ac_word... " >&6; } | |
2953 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2954 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2955 | else |
f11781c5 AK |
2956 | if test -n "$CC"; then |
2957 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2958 | else |
f11781c5 AK |
2959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2960 | for as_dir in $PATH | |
2961 | do | |
2962 | IFS=$as_save_IFS | |
2963 | test -z "$as_dir" && as_dir=. | |
2964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2966 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2968 | break 2 | |
2969 | fi | |
2970 | done | |
2971 | done | |
2972 | IFS=$as_save_IFS | |
ad6254c5 | 2973 | |
ad6254c5 | 2974 | fi |
ad6254c5 | 2975 | fi |
f11781c5 AK |
2976 | CC=$ac_cv_prog_CC |
2977 | if test -n "$CC"; then | |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2979 | $as_echo "$CC" >&6; } | |
2980 | else | |
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2982 | $as_echo "no" >&6; } | |
ad6254c5 | 2983 | fi |
ad6254c5 | 2984 | |
f11781c5 AK |
2985 | |
2986 | fi | |
2987 | if test -z "$ac_cv_prog_CC"; then | |
2988 | ac_ct_CC=$CC | |
2989 | # Extract the first word of "gcc", so it can be a program name with args. | |
2990 | set dummy gcc; ac_word=$2 | |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2992 | $as_echo_n "checking for $ac_word... " >&6; } | |
2993 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 2994 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2995 | else |
f11781c5 AK |
2996 | if test -n "$ac_ct_CC"; then |
2997 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 2998 | else |
f11781c5 AK |
2999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3000 | for as_dir in $PATH | |
3001 | do | |
3002 | IFS=$as_save_IFS | |
3003 | test -z "$as_dir" && as_dir=. | |
3004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3006 | ac_cv_prog_ac_ct_CC="gcc" | |
3007 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3008 | break 2 | |
3009 | fi | |
3010 | done | |
3011 | done | |
3012 | IFS=$as_save_IFS | |
d911ec67 | 3013 | |
d911ec67 | 3014 | fi |
d911ec67 | 3015 | fi |
f11781c5 AK |
3016 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3017 | if test -n "$ac_ct_CC"; then | |
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3019 | $as_echo "$ac_ct_CC" >&6; } | |
3020 | else | |
3021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3022 | $as_echo "no" >&6; } | |
d911ec67 | 3023 | fi |
d911ec67 | 3024 | |
f11781c5 AK |
3025 | if test "x$ac_ct_CC" = x; then |
3026 | CC="" | |
3027 | else | |
3028 | case $cross_compiling:$ac_tool_warned in | |
3029 | yes:) | |
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3031 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3032 | ac_tool_warned=yes ;; | |
3033 | esac | |
3034 | CC=$ac_ct_CC | |
3035 | fi | |
3036 | else | |
3037 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3038 | fi |
d911ec67 | 3039 | |
f11781c5 AK |
3040 | if test -z "$CC"; then |
3041 | if test -n "$ac_tool_prefix"; then | |
3042 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3043 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3045 | $as_echo_n "checking for $ac_word... " >&6; } | |
3046 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3047 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3048 | else |
f11781c5 AK |
3049 | if test -n "$CC"; then |
3050 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3051 | else |
f11781c5 AK |
3052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3053 | for as_dir in $PATH | |
3054 | do | |
3055 | IFS=$as_save_IFS | |
3056 | test -z "$as_dir" && as_dir=. | |
3057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3059 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3061 | break 2 | |
3062 | fi | |
3063 | done | |
3064 | done | |
3065 | IFS=$as_save_IFS | |
d911ec67 | 3066 | |
f11781c5 AK |
3067 | fi |
3068 | fi | |
3069 | CC=$ac_cv_prog_CC | |
3070 | if test -n "$CC"; then | |
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3072 | $as_echo "$CC" >&6; } | |
3073 | else | |
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3075 | $as_echo "no" >&6; } | |
d911ec67 AK |
3076 | fi |
3077 | ||
d911ec67 | 3078 | |
f11781c5 AK |
3079 | fi |
3080 | fi | |
3081 | if test -z "$CC"; then | |
3082 | # Extract the first word of "cc", so it can be a program name with args. | |
3083 | set dummy cc; ac_word=$2 | |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3085 | $as_echo_n "checking for $ac_word... " >&6; } | |
3086 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3087 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3088 | else |
f11781c5 AK |
3089 | if test -n "$CC"; then |
3090 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3091 | else | |
3092 | ac_prog_rejected=no | |
3093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3094 | for as_dir in $PATH | |
3095 | do | |
3096 | IFS=$as_save_IFS | |
3097 | test -z "$as_dir" && as_dir=. | |
3098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3100 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3101 | ac_prog_rejected=yes | |
3102 | continue | |
3103 | fi | |
3104 | ac_cv_prog_CC="cc" | |
3105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3106 | break 2 | |
3107 | fi | |
3108 | done | |
3109 | done | |
3110 | IFS=$as_save_IFS | |
d911ec67 | 3111 | |
f11781c5 AK |
3112 | if test $ac_prog_rejected = yes; then |
3113 | # We found a bogon in the path, so make sure we never use it. | |
3114 | set dummy $ac_cv_prog_CC | |
3115 | shift | |
3116 | if test $# != 0; then | |
3117 | # We chose a different compiler from the bogus one. | |
3118 | # However, it has the same basename, so the bogon will be chosen | |
3119 | # first if we set CC to just the basename; use the full file name. | |
3120 | shift | |
3121 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3122 | fi | |
3123 | fi | |
3124 | fi | |
3125 | fi | |
3126 | CC=$ac_cv_prog_CC | |
3127 | if test -n "$CC"; then | |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3129 | $as_echo "$CC" >&6; } | |
3130 | else | |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3132 | $as_echo "no" >&6; } | |
d911ec67 AK |
3133 | fi |
3134 | ||
d911ec67 | 3135 | |
f11781c5 AK |
3136 | fi |
3137 | if test -z "$CC"; then | |
3138 | if test -n "$ac_tool_prefix"; then | |
3139 | for ac_prog in cl.exe | |
3140 | do | |
3141 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3142 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3144 | $as_echo_n "checking for $ac_word... " >&6; } | |
3145 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3146 | $as_echo_n "(cached) " >&6 |
3147 | else | |
f11781c5 AK |
3148 | if test -n "$CC"; then |
3149 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3150 | else | |
3151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3152 | for as_dir in $PATH | |
3153 | do | |
3154 | IFS=$as_save_IFS | |
3155 | test -z "$as_dir" && as_dir=. | |
3156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3158 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3160 | break 2 | |
3161 | fi | |
3162 | done | |
3163 | done | |
3164 | IFS=$as_save_IFS | |
d911ec67 AK |
3165 | |
3166 | fi | |
f11781c5 AK |
3167 | fi |
3168 | CC=$ac_cv_prog_CC | |
3169 | if test -n "$CC"; then | |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3171 | $as_echo "$CC" >&6; } | |
3172 | else | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3174 | $as_echo "no" >&6; } | |
d911ec67 AK |
3175 | fi |
3176 | ||
d911ec67 | 3177 | |
f11781c5 AK |
3178 | test -n "$CC" && break |
3179 | done | |
3180 | fi | |
3181 | if test -z "$CC"; then | |
3182 | ac_ct_CC=$CC | |
3183 | for ac_prog in cl.exe | |
3184 | do | |
3185 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3186 | set dummy $ac_prog; ac_word=$2 | |
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3188 | $as_echo_n "checking for $ac_word... " >&6; } | |
3189 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3190 | $as_echo_n "(cached) " >&6 |
3191 | else | |
f11781c5 AK |
3192 | if test -n "$ac_ct_CC"; then |
3193 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3194 | else |
f11781c5 AK |
3195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3196 | for as_dir in $PATH | |
3197 | do | |
3198 | IFS=$as_save_IFS | |
3199 | test -z "$as_dir" && as_dir=. | |
3200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3201 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3202 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3204 | break 2 | |
3205 | fi | |
3206 | done | |
3207 | done | |
3208 | IFS=$as_save_IFS | |
ad6254c5 | 3209 | |
ad6254c5 | 3210 | fi |
ad6254c5 | 3211 | fi |
f11781c5 AK |
3212 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3213 | if test -n "$ac_ct_CC"; then | |
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3215 | $as_echo "$ac_ct_CC" >&6; } | |
3216 | else | |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3218 | $as_echo "no" >&6; } | |
ad6254c5 | 3219 | fi |
ad6254c5 | 3220 | |
d911ec67 | 3221 | |
f11781c5 AK |
3222 | test -n "$ac_ct_CC" && break |
3223 | done | |
d911ec67 | 3224 | |
f11781c5 AK |
3225 | if test "x$ac_ct_CC" = x; then |
3226 | CC="" | |
3227 | else | |
3228 | case $cross_compiling:$ac_tool_warned in | |
3229 | yes:) | |
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3232 | ac_tool_warned=yes ;; | |
d911ec67 | 3233 | esac |
f11781c5 AK |
3234 | CC=$ac_ct_CC |
3235 | fi | |
3236 | fi | |
ad6254c5 AK |
3237 | |
3238 | fi | |
d911ec67 AK |
3239 | |
3240 | ||
f11781c5 AK |
3241 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3242 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3243 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3244 | See \`config.log' for more details" "$LINENO" 5; } | |
3245 | ||
3246 | # Provide some information about the compiler. | |
3247 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3248 | set X $ac_compile | |
3249 | ac_compiler=$2 | |
3250 | for ac_option in --version -v -V -qversion; do | |
3251 | { { ac_try="$ac_compiler $ac_option >&5" | |
3252 | case "(($ac_try" in | |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3254 | *) ac_try_echo=$ac_try;; | |
3255 | esac | |
3256 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3257 | $as_echo "$ac_try_echo"; } >&5 | |
3258 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3259 | ac_status=$? | |
3260 | if test -s conftest.err; then | |
3261 | sed '10a\ | |
3262 | ... rest of stderr output deleted ... | |
3263 | 10q' conftest.err >conftest.er1 | |
3264 | cat conftest.er1 >&5 | |
3265 | fi | |
3266 | rm -f conftest.er1 conftest.err | |
3267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3268 | test $ac_status = 0; } | |
3269 | done | |
ad6254c5 | 3270 | |
f11781c5 | 3271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3272 | /* end confdefs.h. */ |
f11781c5 | 3273 | |
ad6254c5 AK |
3274 | int |
3275 | main () | |
3276 | { | |
f11781c5 | 3277 | |
ad6254c5 AK |
3278 | ; |
3279 | return 0; | |
3280 | } | |
3281 | _ACEOF | |
f11781c5 AK |
3282 | ac_clean_files_save=$ac_clean_files |
3283 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3284 | # Try to create an executable without -o first, disregard a.out. | |
3285 | # It will help us diagnose broken compilers, and finding out an intuition | |
3286 | # of exeext. | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3288 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3289 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3290 | ||
3291 | # The possible output files: | |
3292 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3293 | ||
3294 | ac_rmfiles= | |
3295 | for ac_file in $ac_files | |
3296 | do | |
3297 | case $ac_file in | |
3298 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3299 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3300 | esac | |
3301 | done | |
3302 | rm -f $ac_rmfiles | |
3303 | ||
3304 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3305 | case "(($ac_try" in |
3306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3307 | *) ac_try_echo=$ac_try;; | |
3308 | esac | |
f11781c5 AK |
3309 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3310 | $as_echo "$ac_try_echo"; } >&5 | |
3311 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3312 | ac_status=$? |
f11781c5 AK |
3313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3314 | test $ac_status = 0; }; then : | |
3315 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3316 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3317 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3318 | # so that the user can short-circuit this test for compilers unknown to | |
3319 | # Autoconf. | |
3320 | for ac_file in $ac_files '' | |
3321 | do | |
3322 | test -f "$ac_file" || continue | |
3323 | case $ac_file in | |
3324 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3325 | ;; | |
3326 | [ab].out ) | |
3327 | # We found the default executable, but exeext='' is most | |
3328 | # certainly right. | |
3329 | break;; | |
3330 | *.* ) | |
3331 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3332 | then :; else | |
3333 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3334 | fi | |
3335 | # We set ac_cv_exeext here because the later test for it is not | |
3336 | # safe: cross compilers may not add the suffix if given an `-o' | |
3337 | # argument, so we may need to know it at that point already. | |
3338 | # Even if this section looks crufty: it has the advantage of | |
3339 | # actually working. | |
3340 | break;; | |
3341 | * ) | |
3342 | break;; | |
3343 | esac | |
3344 | done | |
3345 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3346 | ||
ad6254c5 | 3347 | else |
f11781c5 AK |
3348 | ac_file='' |
3349 | fi | |
3350 | if test -z "$ac_file"; then : | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3352 | $as_echo "no" >&6; } | |
ec6a6fbe | 3353 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3354 | sed 's/^/| /' conftest.$ac_ext >&5 |
3355 | ||
f11781c5 AK |
3356 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3357 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3358 | as_fn_error 77 "C compiler cannot create executables | |
3359 | See \`config.log' for more details" "$LINENO" 5; } | |
3360 | else | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3362 | $as_echo "yes" >&6; } | |
ad6254c5 | 3363 | fi |
f11781c5 AK |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3365 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3367 | $as_echo "$ac_file" >&6; } | |
3368 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3369 | |
f11781c5 AK |
3370 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3371 | ac_clean_files=$ac_clean_files_save | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3373 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3374 | if { { ac_try="$ac_link" | |
3375 | case "(($ac_try" in | |
3376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3377 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3378 | esac |
f11781c5 AK |
3379 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3380 | $as_echo "$ac_try_echo"; } >&5 | |
3381 | (eval "$ac_link") 2>&5 | |
3382 | ac_status=$? | |
3383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3384 | test $ac_status = 0; }; then : | |
3385 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3386 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3387 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3388 | # `rm'. | |
3389 | for ac_file in conftest.exe conftest conftest.*; do | |
3390 | test -f "$ac_file" || continue | |
3391 | case $ac_file in | |
3392 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3393 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3394 | break;; | |
3395 | * ) break;; | |
3396 | esac | |
3397 | done | |
3398 | else | |
3399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3401 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3402 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3403 | fi |
f11781c5 AK |
3404 | rm -f conftest conftest$ac_cv_exeext |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3406 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3407 | |
f11781c5 AK |
3408 | rm -f conftest.$ac_ext |
3409 | EXEEXT=$ac_cv_exeext | |
3410 | ac_exeext=$EXEEXT | |
3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3412 | /* end confdefs.h. */ |
f11781c5 | 3413 | #include <stdio.h> |
ad6254c5 | 3414 | int |
f11781c5 | 3415 | main () |
ad6254c5 | 3416 | { |
f11781c5 AK |
3417 | FILE *f = fopen ("conftest.out", "w"); |
3418 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3419 | |
f11781c5 | 3420 | ; |
7a197a62 | 3421 | return 0; |
ad6254c5 | 3422 | } |
ad6254c5 | 3423 | _ACEOF |
f11781c5 AK |
3424 | ac_clean_files="$ac_clean_files conftest.out" |
3425 | # Check that the compiler produces executables we can run. If not, either | |
3426 | # the compiler is broken, or we cross compile. | |
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3428 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3429 | if test "$cross_compiling" != yes; then | |
3430 | { { ac_try="$ac_link" | |
7a197a62 AK |
3431 | case "(($ac_try" in |
3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3433 | *) ac_try_echo=$ac_try;; | |
3434 | esac | |
f11781c5 AK |
3435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3436 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3437 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3438 | ac_status=$? |
f11781c5 AK |
3439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3440 | test $ac_status = 0; } | |
3441 | if { ac_try='./conftest$ac_cv_exeext' | |
3442 | { { case "(($ac_try" in | |
7a197a62 AK |
3443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3444 | *) ac_try_echo=$ac_try;; | |
3445 | esac | |
f11781c5 AK |
3446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3447 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3448 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3449 | ac_status=$? |
f11781c5 AK |
3450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3451 | test $ac_status = 0; }; }; then | |
3452 | cross_compiling=no | |
3453 | else | |
3454 | if test "$cross_compiling" = maybe; then | |
3455 | cross_compiling=yes | |
3456 | else | |
3457 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3458 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3459 | as_fn_error $? "cannot run C compiled programs. | |
3460 | If you meant to cross compile, use \`--host'. | |
3461 | See \`config.log' for more details" "$LINENO" 5; } | |
3462 | fi | |
3463 | fi | |
3464 | fi | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3466 | $as_echo "$cross_compiling" >&6; } | |
3467 | ||
3468 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3469 | ac_clean_files=$ac_clean_files_save | |
3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3471 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3472 | if test "${ac_cv_objext+set}" = set; then : | |
3473 | $as_echo_n "(cached) " >&6 | |
3474 | else | |
3475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3476 | /* end confdefs.h. */ | |
ad6254c5 AK |
3477 | |
3478 | int | |
3479 | main () | |
3480 | { | |
f11781c5 | 3481 | |
ad6254c5 AK |
3482 | ; |
3483 | return 0; | |
3484 | } | |
3485 | _ACEOF | |
f11781c5 AK |
3486 | rm -f conftest.o conftest.obj |
3487 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3488 | case "(($ac_try" in |
3489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3490 | *) ac_try_echo=$ac_try;; | |
3491 | esac | |
f11781c5 AK |
3492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3493 | $as_echo "$ac_try_echo"; } >&5 | |
3494 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3495 | ac_status=$? |
f11781c5 AK |
3496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3497 | test $ac_status = 0; }; then : | |
3498 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3499 | test -f "$ac_file" || continue; | |
3500 | case $ac_file in | |
3501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3502 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3503 | break;; | |
3504 | esac | |
3505 | done | |
ad6254c5 | 3506 | else |
ec6a6fbe | 3507 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3508 | sed 's/^/| /' conftest.$ac_ext >&5 |
3509 | ||
f11781c5 AK |
3510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3512 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3513 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3514 | fi |
f11781c5 | 3515 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3516 | fi |
f11781c5 AK |
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3518 | $as_echo "$ac_cv_objext" >&6; } | |
3519 | OBJEXT=$ac_cv_objext | |
3520 | ac_objext=$OBJEXT | |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3522 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3523 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3524 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3525 | else |
f11781c5 | 3526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3527 | /* end confdefs.h. */ |
3528 | ||
ad6254c5 AK |
3529 | int |
3530 | main () | |
3531 | { | |
f11781c5 AK |
3532 | #ifndef __GNUC__ |
3533 | choke me | |
3534 | #endif | |
3535 | ||
ad6254c5 AK |
3536 | ; |
3537 | return 0; | |
3538 | } | |
3539 | _ACEOF | |
f11781c5 AK |
3540 | if ac_fn_c_try_compile "$LINENO"; then : |
3541 | ac_compiler_gnu=yes | |
ad6254c5 | 3542 | else |
f11781c5 | 3543 | ac_compiler_gnu=no |
ad6254c5 | 3544 | fi |
f11781c5 AK |
3545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3546 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3547 | |
d0191583 | 3548 | fi |
f11781c5 AK |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3550 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3551 | if test $ac_compiler_gnu = yes; then | |
3552 | GCC=yes | |
d0191583 | 3553 | else |
f11781c5 | 3554 | GCC= |
d0191583 | 3555 | fi |
f11781c5 AK |
3556 | ac_test_CFLAGS=${CFLAGS+set} |
3557 | ac_save_CFLAGS=$CFLAGS | |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3559 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3560 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3561 | $as_echo_n "(cached) " >&6 | |
3562 | else | |
3563 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3564 | ac_c_werror_flag=yes | |
3565 | ac_cv_prog_cc_g=no | |
3566 | CFLAGS="-g" | |
3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3568 | /* end confdefs.h. */ | |
72b2cb61 | 3569 | |
f11781c5 AK |
3570 | int |
3571 | main () | |
3572 | { | |
72b2cb61 | 3573 | |
f11781c5 AK |
3574 | ; |
3575 | return 0; | |
3576 | } | |
3577 | _ACEOF | |
3578 | if ac_fn_c_try_compile "$LINENO"; then : | |
3579 | ac_cv_prog_cc_g=yes | |
3580 | else | |
3581 | CFLAGS="" | |
3582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3583 | /* end confdefs.h. */ | |
ad6254c5 | 3584 | |
f11781c5 AK |
3585 | int |
3586 | main () | |
3587 | { | |
ad6254c5 | 3588 | |
f11781c5 AK |
3589 | ; |
3590 | return 0; | |
3591 | } | |
d0191583 | 3592 | _ACEOF |
f11781c5 AK |
3593 | if ac_fn_c_try_compile "$LINENO"; then : |
3594 | ||
3595 | else | |
3596 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3597 | CFLAGS="-g" | |
3598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3599 | /* end confdefs.h. */ |
7a197a62 | 3600 | |
f11781c5 AK |
3601 | int |
3602 | main () | |
3603 | { | |
ad6254c5 | 3604 | |
f11781c5 AK |
3605 | ; |
3606 | return 0; | |
3607 | } | |
3608 | _ACEOF | |
3609 | if ac_fn_c_try_compile "$LINENO"; then : | |
3610 | ac_cv_prog_cc_g=yes | |
3611 | fi | |
3612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3613 | fi | |
3614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3615 | fi | |
3616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3617 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3618 | fi | |
3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3620 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3621 | if test "$ac_test_CFLAGS" = set; then | |
3622 | CFLAGS=$ac_save_CFLAGS | |
3623 | elif test $ac_cv_prog_cc_g = yes; then | |
3624 | if test "$GCC" = yes; then | |
3625 | CFLAGS="-g -O2" | |
3626 | else | |
3627 | CFLAGS="-g" | |
3628 | fi | |
3629 | else | |
3630 | if test "$GCC" = yes; then | |
3631 | CFLAGS="-O2" | |
3632 | else | |
3633 | CFLAGS= | |
3634 | fi | |
3635 | fi | |
3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3637 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3638 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3639 | $as_echo_n "(cached) " >&6 | |
3640 | else | |
3641 | ac_cv_prog_cc_c89=no | |
3642 | ac_save_CC=$CC | |
3643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3644 | /* end confdefs.h. */ | |
3645 | #include <stdarg.h> | |
3646 | #include <stdio.h> | |
3647 | #include <sys/types.h> | |
3648 | #include <sys/stat.h> | |
3649 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3650 | struct buf { int x; }; | |
3651 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3652 | static char *e (p, i) | |
3653 | char **p; | |
3654 | int i; | |
3655 | { | |
3656 | return p[i]; | |
3657 | } | |
3658 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3659 | { | |
3660 | char *s; | |
3661 | va_list v; | |
3662 | va_start (v,p); | |
3663 | s = g (p, va_arg (v,int)); | |
3664 | va_end (v); | |
3665 | return s; | |
3666 | } | |
ad6254c5 | 3667 | |
f11781c5 AK |
3668 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3669 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3670 | These don't provoke an error unfortunately, instead are silently treated | |
3671 | as 'x'. The following induces an error, until -std is added to get | |
3672 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3673 | array size at least. It's necessary to write '\x00'==0 to get something | |
3674 | that's true only with -std. */ | |
3675 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3676 | |
f11781c5 AK |
3677 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3678 | inside strings and character constants. */ | |
3679 | #define FOO(x) 'x' | |
3680 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3681 | |
f11781c5 AK |
3682 | int test (int i, double x); |
3683 | struct s1 {int (*f) (int a);}; | |
3684 | struct s2 {int (*f) (double a);}; | |
3685 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3686 | int argc; | |
3687 | char **argv; | |
d0191583 JM |
3688 | int |
3689 | main () | |
3690 | { | |
f11781c5 | 3691 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3692 | ; |
3693 | return 0; | |
3694 | } | |
72b2cb61 | 3695 | _ACEOF |
f11781c5 AK |
3696 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3697 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3698 | do | |
3699 | CC="$ac_save_CC $ac_arg" | |
3700 | if ac_fn_c_try_compile "$LINENO"; then : | |
3701 | ac_cv_prog_cc_c89=$ac_arg | |
3702 | fi | |
3703 | rm -f core conftest.err conftest.$ac_objext | |
3704 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3705 | done | |
3706 | rm -f conftest.$ac_ext | |
3707 | CC=$ac_save_CC | |
3708 | ||
3709 | fi | |
3710 | # AC_CACHE_VAL | |
3711 | case "x$ac_cv_prog_cc_c89" in | |
3712 | x) | |
3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3714 | $as_echo "none needed" >&6; } ;; | |
3715 | xno) | |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3717 | $as_echo "unsupported" >&6; } ;; | |
3718 | *) | |
3719 | CC="$CC $ac_cv_prog_cc_c89" | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3721 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3722 | esac |
f11781c5 AK |
3723 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3724 | ||
3725 | fi | |
3726 | ||
3727 | ac_ext=c | |
3728 | ac_cpp='$CPP $CPPFLAGS' | |
3729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3732 | |
ad6254c5 | 3733 | |
7a197a62 | 3734 | |
f11781c5 AK |
3735 | ac_ext=c |
3736 | ac_cpp='$CPP $CPPFLAGS' | |
3737 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3738 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3739 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3741 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3742 | # On Suns, sometimes $CPP names a directory. | |
3743 | if test -n "$CPP" && test -d "$CPP"; then | |
3744 | CPP= | |
3745 | fi | |
3746 | if test -z "$CPP"; then | |
3747 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3748 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3749 | else |
f11781c5 AK |
3750 | # Double quotes because CPP needs to be expanded |
3751 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3752 | do | |
3753 | ac_preproc_ok=false | |
3754 | for ac_c_preproc_warn_flag in '' yes | |
3755 | do | |
3756 | # Use a header file that comes with gcc, so configuring glibc | |
3757 | # with a fresh cross-compiler works. | |
3758 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3759 | # <limits.h> exists even on freestanding compilers. | |
3760 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3761 | # not just through cpp. "Syntax error" is here to catch this case. | |
3762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3763 | /* end confdefs.h. */ |
d0191583 JM |
3764 | #ifdef __STDC__ |
3765 | # include <limits.h> | |
3766 | #else | |
3767 | # include <assert.h> | |
3768 | #endif | |
f11781c5 AK |
3769 | Syntax error |
3770 | _ACEOF | |
3771 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3772 | |
f11781c5 AK |
3773 | else |
3774 | # Broken: fails on valid input. | |
3775 | continue | |
3776 | fi | |
3777 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3778 | |
f11781c5 AK |
3779 | # OK, works on sane cases. Now check whether nonexistent headers |
3780 | # can be detected and how. | |
3781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3782 | /* end confdefs.h. */ | |
3783 | #include <ac_nonexistent.h> | |
72b2cb61 | 3784 | _ACEOF |
f11781c5 AK |
3785 | if ac_fn_c_try_cpp "$LINENO"; then : |
3786 | # Broken: success on invalid input. | |
3787 | continue | |
d0191583 | 3788 | else |
f11781c5 AK |
3789 | # Passes both tests. |
3790 | ac_preproc_ok=: | |
3791 | break | |
ad6254c5 | 3792 | fi |
f11781c5 | 3793 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3794 | |
f11781c5 AK |
3795 | done |
3796 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3797 | rm -f conftest.err conftest.$ac_ext | |
3798 | if $ac_preproc_ok; then : | |
3799 | break | |
7a197a62 AK |
3800 | fi |
3801 | ||
f11781c5 AK |
3802 | done |
3803 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3804 | |
7a197a62 | 3805 | fi |
f11781c5 AK |
3806 | CPP=$ac_cv_prog_CPP |
3807 | else | |
3808 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3809 | fi |
f11781c5 AK |
3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3811 | $as_echo "$CPP" >&6; } | |
3812 | ac_preproc_ok=false | |
3813 | for ac_c_preproc_warn_flag in '' yes | |
3814 | do | |
3815 | # Use a header file that comes with gcc, so configuring glibc | |
3816 | # with a fresh cross-compiler works. | |
3817 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3818 | # <limits.h> exists even on freestanding compilers. | |
3819 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3820 | # not just through cpp. "Syntax error" is here to catch this case. | |
3821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3822 | /* end confdefs.h. */ | |
3823 | #ifdef __STDC__ | |
3824 | # include <limits.h> | |
3825 | #else | |
3826 | # include <assert.h> | |
3827 | #endif | |
3828 | Syntax error | |
3829 | _ACEOF | |
3830 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3831 | |
9c961554 | 3832 | else |
f11781c5 AK |
3833 | # Broken: fails on valid input. |
3834 | continue | |
9c961554 | 3835 | fi |
f11781c5 | 3836 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3837 | |
f11781c5 AK |
3838 | # OK, works on sane cases. Now check whether nonexistent headers |
3839 | # can be detected and how. | |
3840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3841 | /* end confdefs.h. */ | |
3842 | #include <ac_nonexistent.h> | |
3843 | _ACEOF | |
3844 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3845 | # Broken: success on invalid input. | |
3846 | continue | |
3847 | else | |
3848 | # Passes both tests. | |
3849 | ac_preproc_ok=: | |
3850 | break | |
3851 | fi | |
3852 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3853 | |
f11781c5 AK |
3854 | done |
3855 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3856 | rm -f conftest.err conftest.$ac_ext | |
3857 | if $ac_preproc_ok; then : | |
d0191583 | 3858 | |
f11781c5 AK |
3859 | else |
3860 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3862 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3863 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3864 | fi |
3865 | ||
f11781c5 AK |
3866 | ac_ext=c |
3867 | ac_cpp='$CPP $CPPFLAGS' | |
3868 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3869 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3870 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3871 | |
ad6254c5 | 3872 | |
f11781c5 AK |
3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3874 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3875 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3876 | $as_echo_n "(cached) " >&6 | |
3877 | else | |
3878 | if test -z "$GREP"; then | |
3879 | ac_path_GREP_found=false | |
3880 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3882 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3883 | do | |
3884 | IFS=$as_save_IFS | |
3885 | test -z "$as_dir" && as_dir=. | |
3886 | for ac_prog in grep ggrep; do | |
3887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3888 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3889 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3890 | # Check for GNU ac_path_GREP and select it if it is found. | |
3891 | # Check for GNU $ac_path_GREP | |
3892 | case `"$ac_path_GREP" --version 2>&1` in | |
3893 | *GNU*) | |
3894 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3895 | *) | |
3896 | ac_count=0 | |
3897 | $as_echo_n 0123456789 >"conftest.in" | |
3898 | while : | |
3899 | do | |
3900 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3901 | mv "conftest.tmp" "conftest.in" | |
3902 | cp "conftest.in" "conftest.nl" | |
3903 | $as_echo 'GREP' >> "conftest.nl" | |
3904 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3905 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3906 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3907 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3908 | # Best one so far, save it but keep looking for a better one | |
3909 | ac_cv_path_GREP="$ac_path_GREP" | |
3910 | ac_path_GREP_max=$ac_count | |
3911 | fi | |
3912 | # 10*(2^10) chars as input seems more than enough | |
3913 | test $ac_count -gt 10 && break | |
3914 | done | |
3915 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3916 | esac | |
ad6254c5 | 3917 | |
f11781c5 AK |
3918 | $ac_path_GREP_found && break 3 |
3919 | done | |
3920 | done | |
3921 | done | |
3922 | IFS=$as_save_IFS | |
3923 | if test -z "$ac_cv_path_GREP"; then | |
3924 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3925 | fi | |
3926 | else | |
3927 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3928 | fi |
3929 | ||
d0191583 | 3930 | fi |
f11781c5 AK |
3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3932 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3933 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3934 | |
24bbc4d7 | 3935 | |
f11781c5 AK |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3937 | $as_echo_n "checking for egrep... " >&6; } | |
3938 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3939 | $as_echo_n "(cached) " >&6 | |
3940 | else | |
3941 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3942 | then ac_cv_path_EGREP="$GREP -E" | |
3943 | else | |
3944 | if test -z "$EGREP"; then | |
3945 | ac_path_EGREP_found=false | |
3946 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3948 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3949 | do | |
3950 | IFS=$as_save_IFS | |
3951 | test -z "$as_dir" && as_dir=. | |
3952 | for ac_prog in egrep; do | |
3953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3954 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3955 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3956 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3957 | # Check for GNU $ac_path_EGREP | |
3958 | case `"$ac_path_EGREP" --version 2>&1` in | |
3959 | *GNU*) | |
3960 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3961 | *) | |
3962 | ac_count=0 | |
3963 | $as_echo_n 0123456789 >"conftest.in" | |
3964 | while : | |
3965 | do | |
3966 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3967 | mv "conftest.tmp" "conftest.in" | |
3968 | cp "conftest.in" "conftest.nl" | |
3969 | $as_echo 'EGREP' >> "conftest.nl" | |
3970 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3971 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3972 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3973 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3974 | # Best one so far, save it but keep looking for a better one | |
3975 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3976 | ac_path_EGREP_max=$ac_count | |
3977 | fi | |
3978 | # 10*(2^10) chars as input seems more than enough | |
3979 | test $ac_count -gt 10 && break | |
3980 | done | |
3981 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3982 | esac | |
24bbc4d7 | 3983 | |
f11781c5 AK |
3984 | $ac_path_EGREP_found && break 3 |
3985 | done | |
3986 | done | |
3987 | done | |
3988 | IFS=$as_save_IFS | |
3989 | if test -z "$ac_cv_path_EGREP"; then | |
3990 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3991 | fi | |
24bbc4d7 | 3992 | else |
f11781c5 | 3993 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
3994 | fi |
3995 | ||
f11781c5 | 3996 | fi |
24bbc4d7 | 3997 | fi |
f11781c5 AK |
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3999 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4000 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4001 | |
4002 | ||
f11781c5 AK |
4003 | if test $ac_cv_c_compiler_gnu = yes; then |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4005 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4006 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4007 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4008 | else |
f11781c5 AK |
4009 | ac_pattern="Autoconf.*'x'" |
4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4011 | /* end confdefs.h. */ | |
4012 | #include <sgtty.h> | |
4013 | Autoconf TIOCGETP | |
4014 | _ACEOF | |
4015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4016 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4017 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4018 | else |
f11781c5 | 4019 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4020 | fi |
f11781c5 | 4021 | rm -f conftest* |
7a197a62 | 4022 | |
72b2cb61 | 4023 | |
f11781c5 AK |
4024 | if test $ac_cv_prog_gcc_traditional = no; then |
4025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4026 | /* end confdefs.h. */ | |
4027 | #include <termio.h> | |
4028 | Autoconf TCGETA | |
72b2cb61 | 4029 | _ACEOF |
f11781c5 AK |
4030 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4031 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4032 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4033 | fi |
f11781c5 | 4034 | rm -f conftest* |
ad6254c5 | 4035 | |
f11781c5 | 4036 | fi |
7a197a62 | 4037 | fi |
f11781c5 AK |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4039 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4040 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4041 | CC="$CC -traditional" | |
4042 | fi | |
ad6254c5 AK |
4043 | fi |
4044 | ||
f11781c5 AK |
4045 | # Find a good install program. We prefer a C program (faster), |
4046 | # so one script is as good as another. But avoid the broken or | |
4047 | # incompatible versions: | |
4048 | # SysV /etc/install, /usr/sbin/install | |
4049 | # SunOS /usr/etc/install | |
4050 | # IRIX /sbin/install | |
4051 | # AIX /bin/install | |
4052 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4053 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4054 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4055 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4056 | # OS/2's system install, which has a completely different semantic | |
4057 | # ./install, which can be erroneously created by make from ./install.sh. | |
4058 | # Reject install programs that cannot install multiple files. | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4060 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4061 | if test -z "$INSTALL"; then | |
4062 | if test "${ac_cv_path_install+set}" = set; then : | |
4063 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4064 | else |
f11781c5 AK |
4065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4066 | for as_dir in $PATH | |
4067 | do | |
4068 | IFS=$as_save_IFS | |
4069 | test -z "$as_dir" && as_dir=. | |
4070 | # Account for people who put trailing slashes in PATH elements. | |
4071 | case $as_dir/ in #(( | |
4072 | ./ | .// | /[cC]/* | \ | |
4073 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4074 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4075 | /usr/ucb/* ) ;; | |
4076 | *) | |
4077 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4078 | # Don't use installbsd from OSF since it installs stuff as root | |
4079 | # by default. | |
4080 | for ac_prog in ginstall scoinst install; do | |
4081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4082 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4083 | if test $ac_prog = install && | |
4084 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4085 | # AIX install. It has an incompatible calling convention. | |
4086 | : | |
4087 | elif test $ac_prog = install && | |
4088 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4089 | # program-specific install script used by HP pwplus--don't use. | |
4090 | : | |
4091 | else | |
4092 | rm -rf conftest.one conftest.two conftest.dir | |
4093 | echo one > conftest.one | |
4094 | echo two > conftest.two | |
4095 | mkdir conftest.dir | |
4096 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4097 | test -s conftest.one && test -s conftest.two && | |
4098 | test -s conftest.dir/conftest.one && | |
4099 | test -s conftest.dir/conftest.two | |
4100 | then | |
4101 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4102 | break 3 | |
4103 | fi | |
4104 | fi | |
4105 | fi | |
4106 | done | |
4107 | done | |
4108 | ;; | |
4109 | esac | |
7a197a62 | 4110 | |
f11781c5 AK |
4111 | done |
4112 | IFS=$as_save_IFS | |
d0191583 | 4113 | |
f11781c5 | 4114 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4115 | |
4116 | fi | |
f11781c5 AK |
4117 | if test "${ac_cv_path_install+set}" = set; then |
4118 | INSTALL=$ac_cv_path_install | |
4119 | else | |
4120 | # As a last resort, use the slow shell script. Don't cache a | |
4121 | # value for INSTALL within a source directory, because that will | |
4122 | # break other packages using the cache if that directory is | |
4123 | # removed, or if the value is a relative name. | |
4124 | INSTALL=$ac_install_sh | |
4125 | fi | |
7a197a62 | 4126 | fi |
f11781c5 AK |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4128 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4129 | |
f11781c5 AK |
4130 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4131 | # It thinks the first close brace ends the variable substitution. | |
4132 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4133 | |
f11781c5 | 4134 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4135 | |
f11781c5 | 4136 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4137 | |
f11781c5 AK |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4139 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4140 | LN_S=$as_ln_s | |
4141 | if test "$LN_S" = "ln -s"; then | |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4143 | $as_echo "yes" >&6; } | |
4144 | else | |
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4146 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4147 | fi |
ad6254c5 | 4148 | |
f11781c5 AK |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4150 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4151 | set x ${MAKE-make} | |
4152 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4153 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4154 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4155 | else |
f11781c5 AK |
4156 | cat >conftest.make <<\_ACEOF |
4157 | SHELL = /bin/sh | |
4158 | all: | |
4159 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4160 | _ACEOF | |
4161 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4162 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4163 | *@@@%%%=?*=@@@%%%*) | |
4164 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4165 | *) | |
4166 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4167 | esac | |
4168 | rm -f conftest.make | |
4169 | fi | |
4170 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4172 | $as_echo "yes" >&6; } | |
4173 | SET_MAKE= | |
4174 | else | |
4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4176 | $as_echo "no" >&6; } | |
4177 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4178 | fi |
4179 | ||
f11781c5 AK |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4181 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4182 | if test -z "$MKDIR_P"; then | |
4183 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4184 | $as_echo_n "(cached) " >&6 | |
4185 | else | |
4186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4187 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4188 | do | |
4189 | IFS=$as_save_IFS | |
4190 | test -z "$as_dir" && as_dir=. | |
4191 | for ac_prog in mkdir gmkdir; do | |
4192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4193 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4194 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4195 | 'mkdir (GNU coreutils) '* | \ | |
4196 | 'mkdir (coreutils) '* | \ | |
4197 | 'mkdir (fileutils) '4.1*) | |
4198 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4199 | break 3;; | |
4200 | esac | |
4201 | done | |
4202 | done | |
4203 | done | |
4204 | IFS=$as_save_IFS | |
d0191583 | 4205 | |
f11781c5 | 4206 | fi |
ad6254c5 | 4207 | |
f11781c5 AK |
4208 | test -d ./--version && rmdir ./--version |
4209 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4210 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4211 | else | |
4212 | # As a last resort, use the slow shell script. Don't cache a | |
4213 | # value for MKDIR_P within a source directory, because that will | |
4214 | # break other packages using the cache if that directory is | |
4215 | # removed, or if the value is a relative name. | |
4216 | MKDIR_P="$ac_install_sh -d" | |
4217 | fi | |
ad6254c5 | 4218 | fi |
f11781c5 AK |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4220 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4221 | |
f11781c5 AK |
4222 | if test -n "$ac_tool_prefix"; then |
4223 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4224 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4226 | $as_echo_n "checking for $ac_word... " >&6; } | |
4227 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4228 | $as_echo_n "(cached) " >&6 | |
4229 | else | |
4230 | if test -n "$RANLIB"; then | |
4231 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4232 | else | |
4233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4234 | for as_dir in $PATH | |
4235 | do | |
4236 | IFS=$as_save_IFS | |
4237 | test -z "$as_dir" && as_dir=. | |
4238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4240 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4242 | break 2 | |
4243 | fi | |
4244 | done | |
4245 | done | |
4246 | IFS=$as_save_IFS | |
d0191583 | 4247 | |
f11781c5 AK |
4248 | fi |
4249 | fi | |
4250 | RANLIB=$ac_cv_prog_RANLIB | |
4251 | if test -n "$RANLIB"; then | |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4253 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4254 | else |
f11781c5 AK |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4256 | $as_echo "no" >&6; } | |
ad6254c5 | 4257 | fi |
ad6254c5 | 4258 | |
8a2fc586 | 4259 | |
d0191583 | 4260 | fi |
f11781c5 AK |
4261 | if test -z "$ac_cv_prog_RANLIB"; then |
4262 | ac_ct_RANLIB=$RANLIB | |
4263 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4264 | set dummy ranlib; ac_word=$2 | |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4266 | $as_echo_n "checking for $ac_word... " >&6; } | |
4267 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4268 | $as_echo_n "(cached) " >&6 | |
4269 | else | |
4270 | if test -n "$ac_ct_RANLIB"; then | |
4271 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4272 | else | |
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4274 | for as_dir in $PATH | |
4275 | do | |
4276 | IFS=$as_save_IFS | |
4277 | test -z "$as_dir" && as_dir=. | |
4278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4280 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4281 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4282 | break 2 | |
4283 | fi | |
4284 | done | |
4285 | done | |
4286 | IFS=$as_save_IFS | |
8a2fc586 | 4287 | |
f11781c5 AK |
4288 | fi |
4289 | fi | |
4290 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4291 | if test -n "$ac_ct_RANLIB"; then | |
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4293 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4294 | else |
f11781c5 AK |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4296 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4297 | fi |
4298 | ||
f11781c5 AK |
4299 | if test "x$ac_ct_RANLIB" = x; then |
4300 | RANLIB=":" | |
4301 | else | |
4302 | case $cross_compiling:$ac_tool_warned in | |
4303 | yes:) | |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4305 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4306 | ac_tool_warned=yes ;; | |
8fea97b7 | 4307 | esac |
f11781c5 AK |
4308 | RANLIB=$ac_ct_RANLIB |
4309 | fi | |
d0191583 | 4310 | else |
f11781c5 | 4311 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4312 | fi |
8a2fc586 | 4313 | |
f11781c5 AK |
4314 | # Extract the first word of "cflow", so it can be a program name with args. |
4315 | set dummy cflow; ac_word=$2 | |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4317 | $as_echo_n "checking for $ac_word... " >&6; } | |
4318 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4319 | $as_echo_n "(cached) " >&6 | |
4320 | else | |
4321 | case $CFLOW_CMD in | |
4322 | [\\/]* | ?:[\\/]*) | |
4323 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4324 | ;; | |
4325 | *) | |
4326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4327 | for as_dir in $PATH | |
4328 | do | |
4329 | IFS=$as_save_IFS | |
4330 | test -z "$as_dir" && as_dir=. | |
4331 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4333 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4335 | break 2 | |
4336 | fi | |
4337 | done | |
4338 | done | |
4339 | IFS=$as_save_IFS | |
8a2fc586 | 4340 | |
f11781c5 AK |
4341 | ;; |
4342 | esac | |
ad6254c5 | 4343 | fi |
f11781c5 AK |
4344 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4345 | if test -n "$CFLOW_CMD"; then | |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4347 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4348 | else |
f11781c5 AK |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4350 | $as_echo "no" >&6; } | |
37ddf259 AK |
4351 | fi |
4352 | ||
e2997b73 | 4353 | |
f11781c5 AK |
4354 | # Extract the first word of "cscope", so it can be a program name with args. |
4355 | set dummy cscope; ac_word=$2 | |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4357 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4358 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4359 | $as_echo_n "(cached) " >&6 |
4360 | else | |
f11781c5 | 4361 | case $CSCOPE_CMD in |
e2997b73 | 4362 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4363 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4364 | ;; |
4365 | *) | |
4366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4367 | for as_dir in $PATH | |
4368 | do | |
4369 | IFS=$as_save_IFS | |
4370 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4371 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4373 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4375 | break 2 |
4376 | fi | |
4377 | done | |
f11781c5 | 4378 | done |
e2997b73 AK |
4379 | IFS=$as_save_IFS |
4380 | ||
4381 | ;; | |
4382 | esac | |
4383 | fi | |
f11781c5 AK |
4384 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4385 | if test -n "$CSCOPE_CMD"; then | |
4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4387 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4388 | else |
f11781c5 | 4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4390 | $as_echo "no" >&6; } |
4391 | fi | |
f11781c5 AK |
4392 | |
4393 | ||
4394 | ||
4395 | ################################################################################ | |
4396 | ac_header_dirent=no | |
4397 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4398 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4400 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4401 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4402 | $as_echo_n "(cached) " >&6 | |
4403 | else | |
4404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4405 | /* end confdefs.h. */ | |
4406 | #include <sys/types.h> | |
4407 | #include <$ac_hdr> | |
4408 | ||
4409 | int | |
4410 | main () | |
4411 | { | |
4412 | if ((DIR *) 0) | |
4413 | return 0; | |
4414 | ; | |
4415 | return 0; | |
4416 | } | |
4417 | _ACEOF | |
4418 | if ac_fn_c_try_compile "$LINENO"; then : | |
4419 | eval "$as_ac_Header=yes" | |
4420 | else | |
4421 | eval "$as_ac_Header=no" | |
4422 | fi | |
4423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4424 | fi | |
4425 | eval ac_res=\$$as_ac_Header | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4427 | $as_echo "$ac_res" >&6; } | |
4428 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4429 | cat >>confdefs.h <<_ACEOF | |
4430 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4431 | _ACEOF | |
4432 | ||
4433 | ac_header_dirent=$ac_hdr; break | |
4434 | fi | |
4435 | ||
4436 | done | |
4437 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4438 | if test $ac_header_dirent = dirent.h; then | |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4440 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4441 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4442 | $as_echo_n "(cached) " >&6 | |
4443 | else | |
4444 | ac_func_search_save_LIBS=$LIBS | |
4445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4446 | /* end confdefs.h. */ | |
4447 | ||
4448 | /* Override any GCC internal prototype to avoid an error. | |
4449 | Use char because int might match the return type of a GCC | |
4450 | builtin and then its argument prototype would still apply. */ | |
4451 | #ifdef __cplusplus | |
4452 | extern "C" | |
4453 | #endif | |
4454 | char opendir (); | |
4455 | int | |
4456 | main () | |
4457 | { | |
4458 | return opendir (); | |
4459 | ; | |
4460 | return 0; | |
4461 | } | |
4462 | _ACEOF | |
4463 | for ac_lib in '' dir; do | |
4464 | if test -z "$ac_lib"; then | |
4465 | ac_res="none required" | |
4466 | else | |
4467 | ac_res=-l$ac_lib | |
4468 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4469 | fi | |
4470 | if ac_fn_c_try_link "$LINENO"; then : | |
4471 | ac_cv_search_opendir=$ac_res | |
4472 | fi | |
4473 | rm -f core conftest.err conftest.$ac_objext \ | |
4474 | conftest$ac_exeext | |
4475 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4476 | break | |
4477 | fi | |
4478 | done | |
4479 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4480 | ||
4481 | else | |
4482 | ac_cv_search_opendir=no | |
4483 | fi | |
4484 | rm conftest.$ac_ext | |
4485 | LIBS=$ac_func_search_save_LIBS | |
4486 | fi | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4488 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4489 | ac_res=$ac_cv_search_opendir | |
4490 | if test "$ac_res" != no; then : | |
4491 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4492 | |
4493 | fi | |
f11781c5 AK |
4494 | |
4495 | else | |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4497 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4498 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4499 | $as_echo_n "(cached) " >&6 |
4500 | else | |
f11781c5 AK |
4501 | ac_func_search_save_LIBS=$LIBS |
4502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4503 | /* end confdefs.h. */ | |
e2997b73 | 4504 | |
f11781c5 AK |
4505 | /* Override any GCC internal prototype to avoid an error. |
4506 | Use char because int might match the return type of a GCC | |
4507 | builtin and then its argument prototype would still apply. */ | |
4508 | #ifdef __cplusplus | |
4509 | extern "C" | |
4510 | #endif | |
4511 | char opendir (); | |
4512 | int | |
4513 | main () | |
4514 | { | |
4515 | return opendir (); | |
4516 | ; | |
4517 | return 0; | |
4518 | } | |
4519 | _ACEOF | |
4520 | for ac_lib in '' x; do | |
4521 | if test -z "$ac_lib"; then | |
4522 | ac_res="none required" | |
4523 | else | |
4524 | ac_res=-l$ac_lib | |
4525 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4526 | fi | |
4527 | if ac_fn_c_try_link "$LINENO"; then : | |
4528 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4529 | fi |
f11781c5 AK |
4530 | rm -f core conftest.err conftest.$ac_objext \ |
4531 | conftest$ac_exeext | |
4532 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4533 | break | |
e2997b73 | 4534 | fi |
f11781c5 AK |
4535 | done |
4536 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4537 | |
e2997b73 | 4538 | else |
f11781c5 AK |
4539 | ac_cv_search_opendir=no |
4540 | fi | |
4541 | rm conftest.$ac_ext | |
4542 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4543 | fi |
f11781c5 AK |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4545 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4546 | ac_res=$ac_cv_search_opendir | |
4547 | if test "$ac_res" != no; then : | |
4548 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4549 | |
4550 | fi | |
8c4e8a18 | 4551 | |
e2997b73 AK |
4552 | fi |
4553 | ||
f11781c5 AK |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4555 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4556 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4557 | $as_echo_n "(cached) " >&6 | |
4558 | else | |
4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4560 | /* end confdefs.h. */ | |
4561 | #include <stdlib.h> | |
4562 | #include <stdarg.h> | |
4563 | #include <string.h> | |
4564 | #include <float.h> | |
e2997b73 | 4565 | |
f11781c5 AK |
4566 | int |
4567 | main () | |
4568 | { | |
4569 | ||
4570 | ; | |
4571 | return 0; | |
4572 | } | |
4573 | _ACEOF | |
4574 | if ac_fn_c_try_compile "$LINENO"; then : | |
4575 | ac_cv_header_stdc=yes | |
e2997b73 | 4576 | else |
f11781c5 | 4577 | ac_cv_header_stdc=no |
e2997b73 | 4578 | fi |
f11781c5 AK |
4579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4580 | ||
4581 | if test $ac_cv_header_stdc = yes; then | |
4582 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4584 | /* end confdefs.h. */ | |
4585 | #include <string.h> | |
4586 | ||
4587 | _ACEOF | |
4588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4589 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4590 | ||
e2997b73 | 4591 | else |
f11781c5 | 4592 | ac_cv_header_stdc=no |
e2997b73 | 4593 | fi |
f11781c5 | 4594 | rm -f conftest* |
e2997b73 | 4595 | |
f11781c5 | 4596 | fi |
e2997b73 | 4597 | |
f11781c5 AK |
4598 | if test $ac_cv_header_stdc = yes; then |
4599 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4601 | /* end confdefs.h. */ | |
4602 | #include <stdlib.h> | |
e2997b73 | 4603 | |
f11781c5 AK |
4604 | _ACEOF |
4605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4606 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4607 | |
e2997b73 | 4608 | else |
f11781c5 | 4609 | ac_cv_header_stdc=no |
e2997b73 | 4610 | fi |
f11781c5 | 4611 | rm -f conftest* |
e2997b73 | 4612 | |
e2997b73 | 4613 | fi |
90c80887 | 4614 | |
f11781c5 AK |
4615 | if test $ac_cv_header_stdc = yes; then |
4616 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4617 | if test "$cross_compiling" = yes; then : | |
4618 | : | |
4619 | else | |
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4621 | /* end confdefs.h. */ | |
4622 | #include <ctype.h> | |
4623 | #include <stdlib.h> | |
4624 | #if ((' ' & 0x0FF) == 0x020) | |
4625 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4626 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4627 | #else | |
4628 | # define ISLOWER(c) \ | |
4629 | (('a' <= (c) && (c) <= 'i') \ | |
4630 | || ('j' <= (c) && (c) <= 'r') \ | |
4631 | || ('s' <= (c) && (c) <= 'z')) | |
4632 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4633 | #endif | |
4634 | ||
4635 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4636 | int | |
4637 | main () | |
4638 | { | |
4639 | int i; | |
4640 | for (i = 0; i < 256; i++) | |
4641 | if (XOR (islower (i), ISLOWER (i)) | |
4642 | || toupper (i) != TOUPPER (i)) | |
4643 | return 2; | |
4644 | return 0; | |
4645 | } | |
4646 | _ACEOF | |
4647 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4648 | |
90c80887 | 4649 | else |
f11781c5 | 4650 | ac_cv_header_stdc=no |
90c80887 | 4651 | fi |
f11781c5 AK |
4652 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4653 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4654 | fi |
90c80887 | 4655 | |
90c80887 | 4656 | fi |
90c80887 | 4657 | fi |
f11781c5 AK |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4659 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4660 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4661 | |
f11781c5 | 4662 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4663 | |
90c80887 | 4664 | fi |
f11781c5 AK |
4665 | |
4666 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4667 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4668 | inttypes.h stdint.h unistd.h | |
4669 | do : | |
4670 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4671 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4672 | " | |
4673 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4674 | cat >>confdefs.h <<_ACEOF | |
4675 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4676 | _ACEOF | |
4677 | ||
90c80887 | 4678 | fi |
f11781c5 AK |
4679 | |
4680 | done | |
4681 | ||
4682 | ||
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4684 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4685 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4686 | $as_echo_n "(cached) " >&6 | |
4687 | else | |
4688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4689 | /* end confdefs.h. */ | |
4690 | #include <sys/types.h> | |
4691 | int | |
4692 | main () | |
4693 | { | |
4694 | return makedev(0, 0); | |
4695 | ; | |
4696 | return 0; | |
4697 | } | |
4698 | _ACEOF | |
4699 | if ac_fn_c_try_link "$LINENO"; then : | |
4700 | ac_cv_header_sys_types_h_makedev=yes | |
4701 | else | |
4702 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4703 | fi |
f11781c5 AK |
4704 | rm -f core conftest.err conftest.$ac_objext \ |
4705 | conftest$ac_exeext conftest.$ac_ext | |
4706 | ||
90c80887 | 4707 | fi |
f11781c5 AK |
4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4709 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4710 | ||
4711 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4712 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4713 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4714 | ||
4715 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4716 | |
a946372e | 4717 | fi |
e2997b73 | 4718 | |
e2997b73 | 4719 | |
a946372e | 4720 | |
f11781c5 AK |
4721 | if test $ac_cv_header_sys_mkdev_h = no; then |
4722 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4723 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4724 | ||
4725 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4726 | ||
e2997b73 | 4727 | fi |
a946372e | 4728 | |
a946372e | 4729 | |
f11781c5 AK |
4730 | fi |
4731 | fi | |
4732 | ||
4733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4734 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4735 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4736 | $as_echo_n "(cached) " >&6 |
4737 | else | |
f11781c5 | 4738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4739 | /* end confdefs.h. */ |
f11781c5 AK |
4740 | #include <stdlib.h> |
4741 | #include <stdarg.h> | |
4742 | #include <string.h> | |
4743 | #include <float.h> | |
a946372e | 4744 | |
a946372e AK |
4745 | int |
4746 | main () | |
4747 | { | |
f11781c5 | 4748 | |
a946372e AK |
4749 | ; |
4750 | return 0; | |
4751 | } | |
4752 | _ACEOF | |
f11781c5 AK |
4753 | if ac_fn_c_try_compile "$LINENO"; then : |
4754 | ac_cv_header_stdc=yes | |
e2997b73 | 4755 | else |
f11781c5 AK |
4756 | ac_cv_header_stdc=no |
4757 | fi | |
4758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4759 | ||
4760 | if test $ac_cv_header_stdc = yes; then | |
4761 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4763 | /* end confdefs.h. */ | |
4764 | #include <string.h> | |
4765 | ||
4766 | _ACEOF | |
4767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4768 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4769 | |
f11781c5 AK |
4770 | else |
4771 | ac_cv_header_stdc=no | |
a946372e | 4772 | fi |
f11781c5 | 4773 | rm -f conftest* |
e2997b73 | 4774 | |
a946372e | 4775 | fi |
e2997b73 | 4776 | |
f11781c5 AK |
4777 | if test $ac_cv_header_stdc = yes; then |
4778 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4780 | /* end confdefs.h. */ | |
4781 | #include <stdlib.h> | |
4782 | ||
4783 | _ACEOF | |
4784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4785 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4786 | |
e2997b73 | 4787 | else |
f11781c5 | 4788 | ac_cv_header_stdc=no |
e2997b73 | 4789 | fi |
f11781c5 | 4790 | rm -f conftest* |
e2997b73 | 4791 | |
f11781c5 | 4792 | fi |
a946372e | 4793 | |
f11781c5 AK |
4794 | if test $ac_cv_header_stdc = yes; then |
4795 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4796 | if test "$cross_compiling" = yes; then : | |
4797 | : | |
4798 | else | |
4799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4800 | /* end confdefs.h. */ | |
4801 | #include <ctype.h> | |
4802 | #include <stdlib.h> | |
4803 | #if ((' ' & 0x0FF) == 0x020) | |
4804 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4805 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4806 | #else | |
4807 | # define ISLOWER(c) \ | |
4808 | (('a' <= (c) && (c) <= 'i') \ | |
4809 | || ('j' <= (c) && (c) <= 'r') \ | |
4810 | || ('s' <= (c) && (c) <= 'z')) | |
4811 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4812 | #endif | |
e2997b73 | 4813 | |
f11781c5 AK |
4814 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4815 | int | |
4816 | main () | |
4817 | { | |
4818 | int i; | |
4819 | for (i = 0; i < 256; i++) | |
4820 | if (XOR (islower (i), ISLOWER (i)) | |
4821 | || toupper (i) != TOUPPER (i)) | |
4822 | return 2; | |
4823 | return 0; | |
4824 | } | |
4825 | _ACEOF | |
4826 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4827 | |
e2997b73 | 4828 | else |
f11781c5 | 4829 | ac_cv_header_stdc=no |
e2997b73 | 4830 | fi |
f11781c5 AK |
4831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4832 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4833 | fi |
f11781c5 | 4834 | |
e2997b73 | 4835 | fi |
e2997b73 | 4836 | fi |
f11781c5 AK |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4838 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4839 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4840 | |
f11781c5 | 4841 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4842 | |
f11781c5 | 4843 | fi |
e2997b73 | 4844 | |
f11781c5 AK |
4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4846 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4847 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4848 | $as_echo_n "(cached) " >&6 | |
4849 | else | |
4850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4851 | /* end confdefs.h. */ | |
4852 | #include <sys/types.h> | |
4853 | #include <sys/wait.h> | |
4854 | #ifndef WEXITSTATUS | |
4855 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4856 | #endif | |
4857 | #ifndef WIFEXITED | |
4858 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4859 | #endif | |
e2997b73 | 4860 | |
f11781c5 AK |
4861 | int |
4862 | main () | |
4863 | { | |
4864 | int s; | |
4865 | wait (&s); | |
4866 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4867 | ; | |
4868 | return 0; | |
4869 | } | |
4870 | _ACEOF | |
4871 | if ac_fn_c_try_compile "$LINENO"; then : | |
4872 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4873 | else |
f11781c5 | 4874 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4875 | fi |
f11781c5 AK |
4876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4877 | fi | |
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4879 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4880 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4881 | |
f11781c5 | 4882 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4883 | |
d0191583 | 4884 | fi |
f11781c5 AK |
4885 | |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4887 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4888 | if test "${ac_cv_header_time+set}" = set; then : | |
4889 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4890 | else |
f11781c5 | 4891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4892 | /* end confdefs.h. */ |
f11781c5 AK |
4893 | #include <sys/types.h> |
4894 | #include <sys/time.h> | |
4895 | #include <time.h> | |
4896 | ||
4897 | int | |
4898 | main () | |
4899 | { | |
4900 | if ((struct tm *) 0) | |
4901 | return 0; | |
4902 | ; | |
4903 | return 0; | |
4904 | } | |
a946372e | 4905 | _ACEOF |
f11781c5 AK |
4906 | if ac_fn_c_try_compile "$LINENO"; then : |
4907 | ac_cv_header_time=yes | |
a946372e | 4908 | else |
f11781c5 AK |
4909 | ac_cv_header_time=no |
4910 | fi | |
4911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4912 | fi | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4914 | $as_echo "$ac_cv_header_time" >&6; } | |
4915 | if test $ac_cv_header_time = yes; then | |
4916 | ||
4917 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4918 | ||
4919 | fi | |
4920 | ||
4921 | ||
4922 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4923 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4924 | sys/wait.h time.h | |
4925 | do : | |
4926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4927 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4928 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4929 | cat >>confdefs.h <<_ACEOF | |
4930 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4931 | _ACEOF | |
d0191583 | 4932 | |
f11781c5 AK |
4933 | else |
4934 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4935 | fi |
4936 | ||
f11781c5 | 4937 | done |
fddafd51 | 4938 | |
f11781c5 AK |
4939 | |
4940 | case "$host_os" in | |
4941 | linux*) | |
4942 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4943 | do : | |
4944 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4945 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4946 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4947 | cat >>confdefs.h <<_ACEOF | |
4948 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4949 | _ACEOF |
a946372e | 4950 | |
f11781c5 AK |
4951 | else |
4952 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4953 | fi |
4954 | ||
f11781c5 AK |
4955 | done |
4956 | ;; | |
4957 | darwin*) | |
4958 | for ac_header in machine/endian.h sys/disk.h | |
4959 | do : | |
4960 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4961 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4962 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4963 | cat >>confdefs.h <<_ACEOF | |
4964 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4965 | _ACEOF | |
a946372e | 4966 | |
f11781c5 AK |
4967 | else |
4968 | as_fn_error $? "bailing out" "$LINENO" 5 | |
4969 | fi | |
a946372e | 4970 | |
f11781c5 AK |
4971 | done |
4972 | ;; | |
a946372e | 4973 | esac |
f11781c5 AK |
4974 | |
4975 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4976 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4977 | sys/types.h unistd.h | |
4978 | do : | |
4979 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4980 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4981 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4982 | cat >>confdefs.h <<_ACEOF | |
4983 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4984 | _ACEOF | |
4985 | ||
a946372e | 4986 | else |
f11781c5 | 4987 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 4988 | fi |
a946372e | 4989 | |
f11781c5 AK |
4990 | done |
4991 | ||
4992 | for ac_header in termios.h sys/statvfs.h | |
4993 | do : | |
4994 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4995 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4996 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
4997 | cat >>confdefs.h <<_ACEOF |
4998 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4999 | _ACEOF | |
5000 | ||
a946372e AK |
5001 | fi |
5002 | ||
5003 | done | |
5004 | ||
a946372e | 5005 | |
f11781c5 AK |
5006 | ################################################################################ |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5008 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5009 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5010 | $as_echo_n "(cached) " >&6 |
a946372e | 5011 | else |
f11781c5 | 5012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5013 | /* end confdefs.h. */ |
a946372e | 5014 | |
f11781c5 AK |
5015 | int |
5016 | main () | |
5017 | { | |
5018 | /* FIXME: Include the comments suggested by Paul. */ | |
5019 | #ifndef __cplusplus | |
5020 | /* Ultrix mips cc rejects this. */ | |
5021 | typedef int charset[2]; | |
5022 | const charset cs; | |
5023 | /* SunOS 4.1.1 cc rejects this. */ | |
5024 | char const *const *pcpcc; | |
5025 | char **ppc; | |
5026 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5027 | struct point {int x, y;}; | |
5028 | static struct point const zero = {0,0}; | |
5029 | /* AIX XL C 1.02.0.0 rejects this. | |
5030 | It does not let you subtract one const X* pointer from another in | |
5031 | an arm of an if-expression whose if-part is not a constant | |
5032 | expression */ | |
5033 | const char *g = "string"; | |
5034 | pcpcc = &g + (g ? g-g : 0); | |
5035 | /* HPUX 7.0 cc rejects these. */ | |
5036 | ++pcpcc; | |
5037 | ppc = (char**) pcpcc; | |
5038 | pcpcc = (char const *const *) ppc; | |
5039 | { /* SCO 3.2v4 cc rejects this. */ | |
5040 | char *t; | |
5041 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5042 | |
f11781c5 AK |
5043 | *t++ = 0; |
5044 | if (s) return 0; | |
5045 | } | |
5046 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5047 | int x[] = {25, 17}; | |
5048 | const int *foo = &x[0]; | |
5049 | ++foo; | |
5050 | } | |
5051 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5052 | typedef const int *iptr; | |
5053 | iptr p = 0; | |
5054 | ++p; | |
5055 | } | |
5056 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5057 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5058 | struct s { int j; const int *ap[3]; }; | |
5059 | struct s *b; b->j = 5; | |
5060 | } | |
5061 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5062 | const int foo = 10; | |
5063 | if (!foo) return 0; | |
5064 | } | |
5065 | return !cs[0] && !zero.x; | |
5066 | #endif | |
a946372e | 5067 | |
f11781c5 AK |
5068 | ; |
5069 | return 0; | |
5070 | } | |
a946372e | 5071 | _ACEOF |
f11781c5 AK |
5072 | if ac_fn_c_try_compile "$LINENO"; then : |
5073 | ac_cv_c_const=yes | |
a946372e | 5074 | else |
f11781c5 AK |
5075 | ac_cv_c_const=no |
5076 | fi | |
5077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5078 | fi |
f11781c5 AK |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5080 | $as_echo "$ac_cv_c_const" >&6; } | |
5081 | if test $ac_cv_c_const = no; then | |
a946372e | 5082 | |
f11781c5 | 5083 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5084 | |
f11781c5 | 5085 | fi |
a946372e | 5086 | |
f11781c5 AK |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5088 | $as_echo_n "checking for inline... " >&6; } | |
5089 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5090 | $as_echo_n "(cached) " >&6 |
5091 | else | |
f11781c5 AK |
5092 | ac_cv_c_inline=no |
5093 | for ac_kw in inline __inline__ __inline; do | |
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5095 | /* end confdefs.h. */ | |
5096 | #ifndef __cplusplus | |
5097 | typedef int foo_t; | |
5098 | static $ac_kw foo_t static_foo () {return 0; } | |
5099 | $ac_kw foo_t foo () {return 0; } | |
5100 | #endif | |
5101 | ||
5102 | _ACEOF | |
5103 | if ac_fn_c_try_compile "$LINENO"; then : | |
5104 | ac_cv_c_inline=$ac_kw | |
a946372e | 5105 | fi |
f11781c5 AK |
5106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5107 | test "$ac_cv_c_inline" != no && break | |
5108 | done | |
a946372e AK |
5109 | |
5110 | fi | |
f11781c5 AK |
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5112 | $as_echo "$ac_cv_c_inline" >&6; } | |
5113 | ||
5114 | case $ac_cv_c_inline in | |
5115 | inline | yes) ;; | |
5116 | *) | |
5117 | case $ac_cv_c_inline in | |
5118 | no) ac_val=;; | |
5119 | *) ac_val=$ac_cv_c_inline;; | |
5120 | esac | |
5121 | cat >>confdefs.h <<_ACEOF | |
5122 | #ifndef __cplusplus | |
5123 | #define inline $ac_val | |
5124 | #endif | |
5125 | _ACEOF | |
5126 | ;; | |
5127 | esac | |
5128 | ||
5129 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5130 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5131 | ||
5132 | cat >>confdefs.h <<_ACEOF | |
5133 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5134 | _ACEOF |
5135 | ||
f11781c5 | 5136 | |
a946372e AK |
5137 | fi |
5138 | ||
f11781c5 AK |
5139 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5140 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5141 | |
a946372e | 5142 | else |
f11781c5 AK |
5143 | |
5144 | cat >>confdefs.h <<_ACEOF | |
5145 | #define off_t long int | |
5146 | _ACEOF | |
5147 | ||
a946372e AK |
5148 | fi |
5149 | ||
f11781c5 AK |
5150 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5151 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5152 | |
a946372e | 5153 | else |
f11781c5 AK |
5154 | |
5155 | cat >>confdefs.h <<_ACEOF | |
5156 | #define pid_t int | |
5157 | _ACEOF | |
5158 | ||
5159 | fi | |
5160 | ||
5161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5162 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5163 | if test "${ac_cv_type_signal+set}" = set; then : | |
5164 | $as_echo_n "(cached) " >&6 | |
a946372e | 5165 | else |
f11781c5 AK |
5166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5167 | /* end confdefs.h. */ | |
5168 | #include <sys/types.h> | |
5169 | #include <signal.h> | |
5170 | ||
5171 | int | |
5172 | main () | |
5173 | { | |
5174 | return *(signal (0, 0)) (0) == 1; | |
5175 | ; | |
5176 | return 0; | |
5177 | } | |
5178 | _ACEOF | |
5179 | if ac_fn_c_try_compile "$LINENO"; then : | |
5180 | ac_cv_type_signal=int | |
5181 | else | |
5182 | ac_cv_type_signal=void | |
a946372e | 5183 | fi |
f11781c5 | 5184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5185 | fi |
f11781c5 AK |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5187 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5188 | |
f11781c5 AK |
5189 | cat >>confdefs.h <<_ACEOF |
5190 | #define RETSIGTYPE $ac_cv_type_signal | |
5191 | _ACEOF | |
a946372e AK |
5192 | |
5193 | ||
f11781c5 AK |
5194 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5195 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5196 | |
a946372e | 5197 | else |
a946372e | 5198 | |
f11781c5 AK |
5199 | cat >>confdefs.h <<_ACEOF |
5200 | #define size_t unsigned int | |
5201 | _ACEOF | |
a946372e | 5202 | |
a946372e | 5203 | fi |
f11781c5 AK |
5204 | |
5205 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5206 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5207 | ||
a946372e | 5208 | else |
f11781c5 AK |
5209 | |
5210 | cat >>confdefs.h <<_ACEOF | |
5211 | #define mode_t int | |
a946372e | 5212 | _ACEOF |
a946372e | 5213 | |
a946372e AK |
5214 | fi |
5215 | ||
f11781c5 AK |
5216 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5217 | case $ac_cv_c_int8_t in #( | |
5218 | no|yes) ;; #( | |
5219 | *) | |
a946372e | 5220 | |
f11781c5 AK |
5221 | cat >>confdefs.h <<_ACEOF |
5222 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5223 | _ACEOF |
f11781c5 | 5224 | ;; |
a946372e | 5225 | esac |
a946372e | 5226 | |
f11781c5 AK |
5227 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5228 | case $ac_cv_c_int16_t in #( | |
5229 | no|yes) ;; #( | |
5230 | *) | |
a946372e | 5231 | |
f11781c5 AK |
5232 | cat >>confdefs.h <<_ACEOF |
5233 | #define int16_t $ac_cv_c_int16_t | |
5234 | _ACEOF | |
5235 | ;; | |
5236 | esac | |
a946372e | 5237 | |
f11781c5 AK |
5238 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5239 | case $ac_cv_c_int32_t in #( | |
5240 | no|yes) ;; #( | |
5241 | *) | |
a946372e | 5242 | |
f11781c5 AK |
5243 | cat >>confdefs.h <<_ACEOF |
5244 | #define int32_t $ac_cv_c_int32_t | |
5245 | _ACEOF | |
5246 | ;; | |
a946372e | 5247 | esac |
a946372e | 5248 | |
f11781c5 AK |
5249 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5250 | case $ac_cv_c_int64_t in #( | |
5251 | no|yes) ;; #( | |
5252 | *) | |
5253 | ||
5254 | cat >>confdefs.h <<_ACEOF | |
5255 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5256 | _ACEOF |
f11781c5 AK |
5257 | ;; |
5258 | esac | |
5259 | ||
5260 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5261 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5262 | |
5263 | else | |
a946372e | 5264 | |
f11781c5 AK |
5265 | cat >>confdefs.h <<_ACEOF |
5266 | #define ssize_t int | |
5267 | _ACEOF | |
a946372e | 5268 | |
f11781c5 | 5269 | fi |
a946372e | 5270 | |
f11781c5 AK |
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5272 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5273 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5274 | $as_echo_n "(cached) " >&6 |
a946372e | 5275 | else |
f11781c5 | 5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5277 | /* end confdefs.h. */ |
f11781c5 AK |
5278 | #include <sys/types.h> |
5279 | ||
a946372e | 5280 | _ACEOF |
f11781c5 AK |
5281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5282 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5283 | ac_cv_type_uid_t=yes | |
a946372e | 5284 | else |
f11781c5 AK |
5285 | ac_cv_type_uid_t=no |
5286 | fi | |
5287 | rm -f conftest* | |
a946372e | 5288 | |
a946372e | 5289 | fi |
f11781c5 AK |
5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5291 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5292 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5293 | |
f11781c5 | 5294 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5295 | |
f11781c5 AK |
5296 | |
5297 | $as_echo "#define gid_t int" >>confdefs.h | |
5298 | ||
5299 | fi | |
5300 | ||
5301 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5302 | case $ac_cv_c_uint8_t in #( | |
5303 | no|yes) ;; #( | |
5304 | *) | |
5305 | ||
5306 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5307 | ||
5308 | ||
5309 | cat >>confdefs.h <<_ACEOF | |
5310 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5311 | _ACEOF |
f11781c5 AK |
5312 | ;; |
5313 | esac | |
5314 | ||
5315 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5316 | case $ac_cv_c_uint16_t in #( | |
5317 | no|yes) ;; #( | |
5318 | *) | |
5319 | ||
5320 | ||
5321 | cat >>confdefs.h <<_ACEOF | |
5322 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5323 | _ACEOF |
f11781c5 AK |
5324 | ;; |
5325 | esac | |
a946372e | 5326 | |
f11781c5 AK |
5327 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5328 | case $ac_cv_c_uint32_t in #( | |
5329 | no|yes) ;; #( | |
5330 | *) | |
a946372e | 5331 | |
f11781c5 | 5332 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5333 | |
a946372e | 5334 | |
f11781c5 AK |
5335 | cat >>confdefs.h <<_ACEOF |
5336 | #define uint32_t $ac_cv_c_uint32_t | |
5337 | _ACEOF | |
5338 | ;; | |
5339 | esac | |
5340 | ||
5341 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5342 | case $ac_cv_c_uint64_t in #( | |
5343 | no|yes) ;; #( | |
5344 | *) | |
5345 | ||
5346 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5347 | ||
5348 | ||
5349 | cat >>confdefs.h <<_ACEOF | |
5350 | #define uint64_t $ac_cv_c_uint64_t | |
5351 | _ACEOF | |
5352 | ;; | |
5353 | esac | |
5354 | ||
5355 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5356 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5357 | ||
5358 | cat >>confdefs.h <<_ACEOF | |
5359 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5360 | _ACEOF | |
5361 | ||
5362 | ||
5363 | fi | |
5364 | ||
5365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5366 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5367 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5368 | $as_echo_n "(cached) " >&6 |
5369 | else | |
f11781c5 AK |
5370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5371 | /* end confdefs.h. */ | |
5372 | #include <sys/types.h> | |
5373 | #include <time.h> | |
5374 | ||
5375 | int | |
5376 | main () | |
5377 | { | |
5378 | struct tm tm; | |
5379 | int *p = &tm.tm_sec; | |
5380 | return !p; | |
5381 | ; | |
5382 | return 0; | |
5383 | } | |
5384 | _ACEOF | |
5385 | if ac_fn_c_try_compile "$LINENO"; then : | |
5386 | ac_cv_struct_tm=time.h | |
5387 | else | |
5388 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5389 | fi |
f11781c5 AK |
5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5391 | fi | |
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5393 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5394 | if test $ac_cv_struct_tm = sys/time.h; then | |
5395 | ||
5396 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5397 | |
5398 | fi | |
f11781c5 AK |
5399 | |
5400 | ||
5401 | ################################################################################ | |
5402 | for ac_func in ftruncate gethostname getpagesize \ | |
5403 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5404 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5405 | strstr strtol strtoul uname | |
5406 | do : | |
5407 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5408 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5409 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5410 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5411 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5412 | _ACEOF |
5413 | ||
5414 | else | |
f11781c5 | 5415 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5416 | fi |
a946372e AK |
5417 | done |
5418 | ||
f11781c5 AK |
5419 | for ac_func in siginterrupt |
5420 | do : | |
5421 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5422 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5423 | cat >>confdefs.h <<_ACEOF | |
5424 | #define HAVE_SIGINTERRUPT 1 | |
5425 | _ACEOF | |
a946372e | 5426 | |
f11781c5 AK |
5427 | fi |
5428 | done | |
a946372e | 5429 | |
f11781c5 AK |
5430 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5431 | # for constant arguments. Useless! | |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5433 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5434 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5435 | $as_echo_n "(cached) " >&6 | |
a946372e | 5436 | else |
f11781c5 AK |
5437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5438 | /* end confdefs.h. */ | |
5439 | #include <alloca.h> | |
5440 | int | |
5441 | main () | |
5442 | { | |
5443 | char *p = (char *) alloca (2 * sizeof (int)); | |
5444 | if (p) return 0; | |
5445 | ; | |
5446 | return 0; | |
5447 | } | |
5448 | _ACEOF | |
5449 | if ac_fn_c_try_link "$LINENO"; then : | |
5450 | ac_cv_working_alloca_h=yes | |
a946372e | 5451 | else |
f11781c5 | 5452 | ac_cv_working_alloca_h=no |
a946372e | 5453 | fi |
f11781c5 AK |
5454 | rm -f core conftest.err conftest.$ac_objext \ |
5455 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5456 | fi |
f11781c5 AK |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5458 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5459 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5460 | |
f11781c5 | 5461 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5462 | |
a946372e | 5463 | fi |
a946372e | 5464 | |
f11781c5 AK |
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5466 | $as_echo_n "checking for alloca... " >&6; } | |
5467 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5468 | $as_echo_n "(cached) " >&6 |
a946372e | 5469 | else |
f11781c5 | 5470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5471 | /* end confdefs.h. */ |
f11781c5 AK |
5472 | #ifdef __GNUC__ |
5473 | # define alloca __builtin_alloca | |
5474 | #else | |
5475 | # ifdef _MSC_VER | |
5476 | # include <malloc.h> | |
5477 | # define alloca _alloca | |
5478 | # else | |
5479 | # ifdef HAVE_ALLOCA_H | |
5480 | # include <alloca.h> | |
5481 | # else | |
5482 | # ifdef _AIX | |
5483 | #pragma alloca | |
5484 | # else | |
5485 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5486 | char *alloca (); | |
5487 | # endif | |
5488 | # endif | |
5489 | # endif | |
5490 | # endif | |
5491 | #endif | |
a946372e | 5492 | |
f11781c5 AK |
5493 | int |
5494 | main () | |
5495 | { | |
5496 | char *p = (char *) alloca (1); | |
5497 | if (p) return 0; | |
5498 | ; | |
5499 | return 0; | |
5500 | } | |
a946372e | 5501 | _ACEOF |
f11781c5 AK |
5502 | if ac_fn_c_try_link "$LINENO"; then : |
5503 | ac_cv_func_alloca_works=yes | |
a946372e | 5504 | else |
f11781c5 | 5505 | ac_cv_func_alloca_works=no |
a946372e | 5506 | fi |
f11781c5 AK |
5507 | rm -f core conftest.err conftest.$ac_objext \ |
5508 | conftest$ac_exeext conftest.$ac_ext | |
5509 | fi | |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5511 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5512 | |
f11781c5 | 5513 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5514 | |
f11781c5 | 5515 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5516 | |
a946372e | 5517 | else |
f11781c5 AK |
5518 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5519 | # that cause trouble. Some versions do not even contain alloca or | |
5520 | # contain a buggy version. If you still want to use their alloca, | |
5521 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5522 | |
f11781c5 | 5523 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5524 | |
f11781c5 | 5525 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5526 | |
a946372e | 5527 | |
f11781c5 AK |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5529 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5530 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5531 | $as_echo_n "(cached) " >&6 |
a946372e | 5532 | else |
f11781c5 | 5533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5534 | /* end confdefs.h. */ |
f11781c5 AK |
5535 | #if defined CRAY && ! defined CRAY2 |
5536 | webecray | |
5537 | #else | |
5538 | wenotbecray | |
5539 | #endif | |
5540 | ||
a946372e | 5541 | _ACEOF |
f11781c5 AK |
5542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5543 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5544 | ac_cv_os_cray=yes | |
a946372e | 5545 | else |
f11781c5 | 5546 | ac_cv_os_cray=no |
a946372e | 5547 | fi |
f11781c5 | 5548 | rm -f conftest* |
a946372e | 5549 | |
f11781c5 AK |
5550 | fi |
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5552 | $as_echo "$ac_cv_os_cray" >&6; } | |
5553 | if test $ac_cv_os_cray = yes; then | |
5554 | for ac_func in _getb67 GETB67 getb67; do | |
5555 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5556 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5557 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5558 | |
f11781c5 AK |
5559 | cat >>confdefs.h <<_ACEOF |
5560 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5561 | _ACEOF |
a946372e | 5562 | |
f11781c5 | 5563 | break |
a946372e AK |
5564 | fi |
5565 | ||
f11781c5 AK |
5566 | done |
5567 | fi | |
a946372e | 5568 | |
f11781c5 AK |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5570 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5571 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5572 | $as_echo_n "(cached) " >&6 |
5573 | else | |
f11781c5 AK |
5574 | if test "$cross_compiling" = yes; then : |
5575 | ac_cv_c_stack_direction=0 | |
5576 | else | |
5577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5578 | /* end confdefs.h. */ | |
5579 | $ac_includes_default | |
5580 | int | |
5581 | find_stack_direction () | |
5582 | { | |
5583 | static char *addr = 0; | |
5584 | auto char dummy; | |
5585 | if (addr == 0) | |
5586 | { | |
5587 | addr = &dummy; | |
5588 | return find_stack_direction (); | |
5589 | } | |
5590 | else | |
5591 | return (&dummy > addr) ? 1 : -1; | |
5592 | } | |
5593 | ||
5594 | int | |
5595 | main () | |
5596 | { | |
5597 | return find_stack_direction () < 0; | |
5598 | } | |
5599 | _ACEOF | |
5600 | if ac_fn_c_try_run "$LINENO"; then : | |
5601 | ac_cv_c_stack_direction=1 | |
5602 | else | |
5603 | ac_cv_c_stack_direction=-1 | |
5604 | fi | |
5605 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5606 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5607 | fi |
a946372e AK |
5608 | |
5609 | fi | |
f11781c5 AK |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5611 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5612 | cat >>confdefs.h <<_ACEOF | |
5613 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5614 | _ACEOF |
5615 | ||
f11781c5 | 5616 | |
a946372e AK |
5617 | fi |
5618 | ||
f11781c5 AK |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5620 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5621 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5622 | $as_echo_n "(cached) " >&6 | |
5623 | else | |
5624 | if test "$cross_compiling" = yes; then : | |
5625 | ac_cv_func_closedir_void=yes | |
5626 | else | |
5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5628 | /* end confdefs.h. */ | |
5629 | $ac_includes_default | |
5630 | #include <$ac_header_dirent> | |
5631 | #ifndef __cplusplus | |
5632 | int closedir (); | |
5633 | #endif | |
a946372e | 5634 | |
f11781c5 AK |
5635 | int |
5636 | main () | |
5637 | { | |
5638 | return closedir (opendir (".")) != 0; | |
5639 | ; | |
5640 | return 0; | |
5641 | } | |
5642 | _ACEOF | |
5643 | if ac_fn_c_try_run "$LINENO"; then : | |
5644 | ac_cv_func_closedir_void=no | |
a946372e | 5645 | else |
f11781c5 | 5646 | ac_cv_func_closedir_void=yes |
a946372e | 5647 | fi |
f11781c5 AK |
5648 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5649 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5650 | fi |
5651 | ||
f11781c5 AK |
5652 | fi |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5654 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5655 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5656 | |
f11781c5 | 5657 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5658 | |
a946372e AK |
5659 | fi |
5660 | ||
f11781c5 AK |
5661 | for ac_header in unistd.h |
5662 | do : | |
5663 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5664 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5665 | cat >>confdefs.h <<_ACEOF | |
5666 | #define HAVE_UNISTD_H 1 | |
5667 | _ACEOF | |
a946372e | 5668 | |
f11781c5 | 5669 | fi |
a946372e | 5670 | |
f11781c5 | 5671 | done |
a946372e | 5672 | |
f11781c5 AK |
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5674 | $as_echo_n "checking for working chown... " >&6; } | |
5675 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5676 | $as_echo_n "(cached) " >&6 | |
a946372e | 5677 | else |
f11781c5 AK |
5678 | if test "$cross_compiling" = yes; then : |
5679 | ac_cv_func_chown_works=no | |
a946372e | 5680 | else |
f11781c5 AK |
5681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5682 | /* end confdefs.h. */ | |
5683 | $ac_includes_default | |
5684 | #include <fcntl.h> | |
a946372e | 5685 | |
f11781c5 AK |
5686 | int |
5687 | main () | |
5688 | { | |
5689 | char *f = "conftest.chown"; | |
5690 | struct stat before, after; | |
a946372e | 5691 | |
f11781c5 AK |
5692 | if (creat (f, 0600) < 0) |
5693 | return 1; | |
5694 | if (stat (f, &before) < 0) | |
5695 | return 1; | |
5696 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5697 | return 1; | |
5698 | if (stat (f, &after) < 0) | |
5699 | return 1; | |
5700 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5701 | |
f11781c5 AK |
5702 | ; |
5703 | return 0; | |
5704 | } | |
5705 | _ACEOF | |
5706 | if ac_fn_c_try_run "$LINENO"; then : | |
5707 | ac_cv_func_chown_works=yes | |
a946372e | 5708 | else |
f11781c5 | 5709 | ac_cv_func_chown_works=no |
a946372e | 5710 | fi |
f11781c5 AK |
5711 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5712 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5713 | fi |
5714 | ||
f11781c5 | 5715 | rm -f conftest.chown |
a946372e | 5716 | |
f11781c5 AK |
5717 | fi |
5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5719 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5720 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5721 | |
f11781c5 | 5722 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5723 | |
a946372e | 5724 | fi |
a946372e | 5725 | |
f11781c5 AK |
5726 | for ac_header in vfork.h |
5727 | do : | |
5728 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5729 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5730 | cat >>confdefs.h <<_ACEOF | |
5731 | #define HAVE_VFORK_H 1 | |
5732 | _ACEOF | |
a946372e | 5733 | |
f11781c5 | 5734 | fi |
a946372e | 5735 | |
f11781c5 | 5736 | done |
a946372e | 5737 | |
f11781c5 AK |
5738 | for ac_func in fork vfork |
5739 | do : | |
5740 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5741 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5742 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5743 | cat >>confdefs.h <<_ACEOF | |
5744 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5745 | _ACEOF | |
a946372e | 5746 | |
f11781c5 AK |
5747 | fi |
5748 | done | |
a946372e | 5749 | |
f11781c5 AK |
5750 | if test "x$ac_cv_func_fork" = xyes; then |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5752 | $as_echo_n "checking for working fork... " >&6; } | |
5753 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5754 | $as_echo_n "(cached) " >&6 | |
5755 | else | |
5756 | if test "$cross_compiling" = yes; then : | |
5757 | ac_cv_func_fork_works=cross | |
5758 | else | |
5759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5760 | /* end confdefs.h. */ | |
5761 | $ac_includes_default | |
5762 | int | |
5763 | main () | |
5764 | { | |
a946372e | 5765 | |
f11781c5 AK |
5766 | /* By Ruediger Kuhlmann. */ |
5767 | return fork () < 0; | |
a946372e | 5768 | |
f11781c5 AK |
5769 | ; |
5770 | return 0; | |
5771 | } | |
5772 | _ACEOF | |
5773 | if ac_fn_c_try_run "$LINENO"; then : | |
5774 | ac_cv_func_fork_works=yes | |
a946372e | 5775 | else |
f11781c5 AK |
5776 | ac_cv_func_fork_works=no |
5777 | fi | |
5778 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5779 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5780 | fi |
a946372e | 5781 | |
f11781c5 AK |
5782 | fi |
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5784 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5785 | ||
a946372e | 5786 | else |
f11781c5 | 5787 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5788 | fi |
f11781c5 AK |
5789 | if test "x$ac_cv_func_fork_works" = xcross; then |
5790 | case $host in | |
5791 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5792 | # Override, as these systems have only a dummy fork() stub | |
5793 | ac_cv_func_fork_works=no | |
5794 | ;; | |
5795 | *) | |
5796 | ac_cv_func_fork_works=yes | |
5797 | ;; | |
5798 | esac | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5800 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5801 | fi |
f11781c5 AK |
5802 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5803 | if test "x$ac_cv_func_vfork" = xyes; then | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5805 | $as_echo_n "checking for working vfork... " >&6; } | |
5806 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5807 | $as_echo_n "(cached) " >&6 | |
5808 | else | |
5809 | if test "$cross_compiling" = yes; then : | |
5810 | ac_cv_func_vfork_works=cross | |
5811 | else | |
5812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5813 | /* end confdefs.h. */ | |
5814 | /* Thanks to Paul Eggert for this test. */ | |
5815 | $ac_includes_default | |
5816 | #include <sys/wait.h> | |
5817 | #ifdef HAVE_VFORK_H | |
5818 | # include <vfork.h> | |
5819 | #endif | |
5820 | /* On some sparc systems, changes by the child to local and incoming | |
5821 | argument registers are propagated back to the parent. The compiler | |
5822 | is told about this with #include <vfork.h>, but some compilers | |
5823 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5824 | static variable whose address is put into a register that is | |
5825 | clobbered by the vfork. */ | |
5826 | static void | |
5827 | #ifdef __cplusplus | |
5828 | sparc_address_test (int arg) | |
5829 | # else | |
5830 | sparc_address_test (arg) int arg; | |
5831 | #endif | |
5832 | { | |
5833 | static pid_t child; | |
5834 | if (!child) { | |
5835 | child = vfork (); | |
5836 | if (child < 0) { | |
5837 | perror ("vfork"); | |
5838 | _exit(2); | |
5839 | } | |
5840 | if (!child) { | |
5841 | arg = getpid(); | |
5842 | write(-1, "", 0); | |
5843 | _exit (arg); | |
5844 | } | |
5845 | } | |
5846 | } | |
a946372e | 5847 | |
f11781c5 AK |
5848 | int |
5849 | main () | |
5850 | { | |
5851 | pid_t parent = getpid (); | |
5852 | pid_t child; | |
a946372e | 5853 | |
f11781c5 | 5854 | sparc_address_test (0); |
a946372e | 5855 | |
f11781c5 | 5856 | child = vfork (); |
a946372e | 5857 | |
f11781c5 AK |
5858 | if (child == 0) { |
5859 | /* Here is another test for sparc vfork register problems. This | |
5860 | test uses lots of local variables, at least as many local | |
5861 | variables as main has allocated so far including compiler | |
5862 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5863 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5864 | reuse the register of parent for one of the local variables, | |
5865 | since it will think that parent can't possibly be used any more | |
5866 | in this routine. Assigning to the local variable will thus | |
5867 | munge parent in the parent process. */ | |
5868 | pid_t | |
5869 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5870 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5871 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5872 | use the same hardware register for all 8 local variables. */ | |
5873 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5874 | || p != p5 || p != p6 || p != p7) | |
5875 | _exit(1); | |
a946372e | 5876 | |
f11781c5 AK |
5877 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5878 | from child file descriptors. If the child closes a descriptor | |
5879 | before it execs or exits, this munges the parent's descriptor | |
5880 | as well. Test for this by closing stdout in the child. */ | |
5881 | _exit(close(fileno(stdout)) != 0); | |
5882 | } else { | |
5883 | int status; | |
5884 | struct stat st; | |
5885 | ||
5886 | while (wait(&status) != child) | |
5887 | ; | |
5888 | return ( | |
5889 | /* Was there some problem with vforking? */ | |
5890 | child < 0 | |
5891 | ||
5892 | /* Did the child fail? (This shouldn't happen.) */ | |
5893 | || status | |
5894 | ||
5895 | /* Did the vfork/compiler bug occur? */ | |
5896 | || parent != getpid() | |
5897 | ||
5898 | /* Did the file descriptor bug occur? */ | |
5899 | || fstat(fileno(stdout), &st) != 0 | |
5900 | ); | |
5901 | } | |
5902 | } | |
5903 | _ACEOF | |
5904 | if ac_fn_c_try_run "$LINENO"; then : | |
5905 | ac_cv_func_vfork_works=yes | |
a946372e | 5906 | else |
f11781c5 | 5907 | ac_cv_func_vfork_works=no |
a946372e | 5908 | fi |
f11781c5 AK |
5909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5910 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5911 | fi |
f11781c5 | 5912 | |
a946372e | 5913 | fi |
f11781c5 AK |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5915 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5916 | |
f11781c5 AK |
5917 | fi; |
5918 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5919 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5921 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5922 | fi | |
a946372e | 5923 | |
f11781c5 | 5924 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5925 | |
f11781c5 | 5926 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5927 | |
a946372e | 5928 | else |
a946372e | 5929 | |
f11781c5 AK |
5930 | $as_echo "#define vfork fork" >>confdefs.h |
5931 | ||
a946372e | 5932 | fi |
f11781c5 | 5933 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5934 | |
f11781c5 | 5935 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5936 | |
a946372e | 5937 | fi |
f11781c5 AK |
5938 | |
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5940 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5941 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5942 | $as_echo_n "(cached) " >&6 | |
a946372e | 5943 | else |
f11781c5 AK |
5944 | rm -f conftest.sym conftest.file |
5945 | echo >conftest.file | |
5946 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5947 | if test "$cross_compiling" = yes; then : | |
5948 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5949 | else |
f11781c5 | 5950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5951 | /* end confdefs.h. */ |
f11781c5 AK |
5952 | $ac_includes_default |
5953 | int | |
5954 | main () | |
5955 | { | |
5956 | struct stat sbuf; | |
5957 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5958 | That is better in the sense that it means we will not | |
5959 | have to compile and use the lstat wrapper. */ | |
5960 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5961 | ; | |
5962 | return 0; | |
5963 | } | |
a946372e | 5964 | _ACEOF |
f11781c5 AK |
5965 | if ac_fn_c_try_run "$LINENO"; then : |
5966 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 5967 | else |
f11781c5 | 5968 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 5969 | fi |
f11781c5 AK |
5970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5971 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5972 | fi |
a946372e | 5973 | |
a946372e | 5974 | else |
f11781c5 AK |
5975 | # If the `ln -s' command failed, then we probably don't even |
5976 | # have an lstat function. | |
5977 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5978 | fi |
f11781c5 | 5979 | rm -f conftest.sym conftest.file |
a946372e | 5980 | |
f11781c5 AK |
5981 | fi |
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5983 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 5984 | |
f11781c5 | 5985 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 5986 | |
f11781c5 AK |
5987 | cat >>confdefs.h <<_ACEOF |
5988 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5989 | _ACEOF | |
a946372e | 5990 | |
a946372e | 5991 | |
f11781c5 AK |
5992 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
5993 | case " $LIBOBJS " in | |
5994 | *" lstat.$ac_objext "* ) ;; | |
5995 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
5996 | ;; | |
5997 | esac | |
a946372e | 5998 | |
f11781c5 | 5999 | fi |
a946372e | 6000 | |
f11781c5 AK |
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6002 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6003 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6004 | $as_echo_n "(cached) " >&6 | |
a946372e | 6005 | else |
f11781c5 AK |
6006 | if test "$cross_compiling" = yes; then : |
6007 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6008 | else |
f11781c5 AK |
6009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6010 | /* end confdefs.h. */ | |
6011 | $ac_includes_default | |
6012 | int | |
6013 | main () | |
6014 | { | |
6015 | struct stat sbuf; | |
6016 | return lstat ("", &sbuf) == 0; | |
6017 | ; | |
6018 | return 0; | |
6019 | } | |
6020 | _ACEOF | |
6021 | if ac_fn_c_try_run "$LINENO"; then : | |
6022 | ac_cv_func_lstat_empty_string_bug=no | |
6023 | else | |
6024 | ac_cv_func_lstat_empty_string_bug=yes | |
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 AK |
6028 | fi |
6029 | ||
f11781c5 AK |
6030 | fi |
6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6032 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6033 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6034 | case " $LIBOBJS " in | |
6035 | *" lstat.$ac_objext "* ) ;; | |
6036 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6037 | ;; | |
6038 | esac | |
a946372e AK |
6039 | |
6040 | ||
f11781c5 AK |
6041 | cat >>confdefs.h <<_ACEOF |
6042 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6043 | _ACEOF | |
a946372e | 6044 | |
a946372e | 6045 | fi |
a946372e | 6046 | |
f11781c5 AK |
6047 | for ac_header in stdlib.h |
6048 | do : | |
6049 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6050 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6051 | cat >>confdefs.h <<_ACEOF | |
6052 | #define HAVE_STDLIB_H 1 | |
6053 | _ACEOF | |
6054 | ||
a946372e AK |
6055 | fi |
6056 | ||
f11781c5 | 6057 | done |
a946372e | 6058 | |
f11781c5 AK |
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6060 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6061 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6062 | $as_echo_n "(cached) " >&6 | |
6063 | else | |
6064 | if test "$cross_compiling" = yes; then : | |
6065 | ac_cv_func_malloc_0_nonnull=no | |
6066 | else | |
6067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6068 | /* end confdefs.h. */ | |
6069 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6070 | # include <stdlib.h> | |
6071 | #else | |
6072 | char *malloc (); | |
6073 | #endif | |
a946372e | 6074 | |
f11781c5 AK |
6075 | int |
6076 | main () | |
6077 | { | |
6078 | return ! malloc (0); | |
6079 | ; | |
6080 | return 0; | |
6081 | } | |
6082 | _ACEOF | |
6083 | if ac_fn_c_try_run "$LINENO"; then : | |
6084 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6085 | else |
f11781c5 | 6086 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6087 | fi |
f11781c5 AK |
6088 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6089 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6090 | fi |
f11781c5 | 6091 | |
a946372e | 6092 | fi |
f11781c5 AK |
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6094 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6095 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6096 | |
f11781c5 | 6097 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6098 | |
f11781c5 AK |
6099 | else |
6100 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6101 | |
f11781c5 AK |
6102 | case " $LIBOBJS " in |
6103 | *" malloc.$ac_objext "* ) ;; | |
6104 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6105 | ;; | |
6106 | esac | |
6107 | ||
6108 | ||
6109 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6110 | |
a946372e | 6111 | fi |
a946372e | 6112 | |
a946372e | 6113 | |
f11781c5 AK |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6115 | $as_echo_n "checking for working memcmp... " >&6; } | |
6116 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6117 | $as_echo_n "(cached) " >&6 |
a946372e | 6118 | else |
f11781c5 AK |
6119 | if test "$cross_compiling" = yes; then : |
6120 | ac_cv_func_memcmp_working=no | |
6121 | else | |
6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6123 | /* end confdefs.h. */ |
6124 | $ac_includes_default | |
f11781c5 AK |
6125 | int |
6126 | main () | |
6127 | { | |
a946372e | 6128 | |
f11781c5 AK |
6129 | /* Some versions of memcmp are not 8-bit clean. */ |
6130 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6131 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6132 | return 1; | |
a946372e | 6133 | |
f11781c5 AK |
6134 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6135 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6136 | William Lewis provided this test program. */ | |
6137 | { | |
6138 | char foo[21]; | |
6139 | char bar[21]; | |
6140 | int i; | |
6141 | for (i = 0; i < 4; i++) | |
6142 | { | |
6143 | char *a = foo + i; | |
6144 | char *b = bar + i; | |
6145 | strcpy (a, "--------01111111"); | |
6146 | strcpy (b, "--------10000000"); | |
6147 | if (memcmp (a, b, 16) >= 0) | |
6148 | return 1; | |
6149 | } | |
6150 | return 0; | |
6151 | } | |
a946372e | 6152 | |
f11781c5 AK |
6153 | ; |
6154 | return 0; | |
6155 | } | |
a946372e | 6156 | _ACEOF |
f11781c5 AK |
6157 | if ac_fn_c_try_run "$LINENO"; then : |
6158 | ac_cv_func_memcmp_working=yes | |
a946372e | 6159 | else |
f11781c5 AK |
6160 | ac_cv_func_memcmp_working=no |
6161 | fi | |
6162 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6163 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6164 | fi | |
a946372e | 6165 | |
a946372e | 6166 | fi |
f11781c5 AK |
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6168 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6169 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6170 | *" memcmp.$ac_objext "* ) ;; | |
6171 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6172 | ;; | |
6173 | esac | |
a946372e | 6174 | |
a946372e | 6175 | |
a946372e | 6176 | |
a946372e | 6177 | |
f11781c5 AK |
6178 | |
6179 | for ac_header in $ac_header_list | |
6180 | do : | |
6181 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6182 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6183 | " | |
6184 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6185 | cat >>confdefs.h <<_ACEOF |
6186 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6187 | _ACEOF | |
6188 | ||
a946372e AK |
6189 | fi |
6190 | ||
6191 | done | |
6192 | ||
a946372e | 6193 | |
f11781c5 AK |
6194 | |
6195 | ||
6196 | ||
6197 | ||
6198 | ||
6199 | ||
6200 | for ac_func in getpagesize | |
6201 | do : | |
6202 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6203 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6204 | cat >>confdefs.h <<_ACEOF | |
6205 | #define HAVE_GETPAGESIZE 1 | |
6206 | _ACEOF | |
6207 | ||
a946372e | 6208 | fi |
f11781c5 AK |
6209 | done |
6210 | ||
6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6212 | $as_echo_n "checking for working mmap... " >&6; } | |
6213 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6214 | $as_echo_n "(cached) " >&6 | |
a946372e | 6215 | else |
f11781c5 AK |
6216 | if test "$cross_compiling" = yes; then : |
6217 | ac_cv_func_mmap_fixed_mapped=no | |
6218 | else | |
6219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6220 | /* end confdefs.h. */ |
6221 | $ac_includes_default | |
f11781c5 AK |
6222 | /* malloc might have been renamed as rpl_malloc. */ |
6223 | #undef malloc | |
6224 | ||
6225 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6226 | Here is a matrix of mmap possibilities: | |
6227 | mmap private not fixed | |
6228 | mmap private fixed at somewhere currently unmapped | |
6229 | mmap private fixed at somewhere already mapped | |
6230 | mmap shared not fixed | |
6231 | mmap shared fixed at somewhere currently unmapped | |
6232 | mmap shared fixed at somewhere already mapped | |
6233 | For private mappings, we should verify that changes cannot be read() | |
6234 | back from the file, nor mmap's back from the file at a different | |
6235 | address. (There have been systems where private was not correctly | |
6236 | implemented like the infamous i386 svr4.0, and systems where the | |
6237 | VM page cache was not coherent with the file system buffer cache | |
6238 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6239 | For shared mappings, we should conversely verify that changes get | |
6240 | propagated back to all the places they're supposed to be. | |
6241 | ||
6242 | Grep wants private fixed already mapped. | |
6243 | The main things grep needs to know about mmap are: | |
6244 | * does it exist and is it safe to write into the mmap'd area | |
6245 | * how to use it (BSD variants) */ | |
6246 | ||
6247 | #include <fcntl.h> | |
6248 | #include <sys/mman.h> | |
6249 | ||
6250 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6251 | char *malloc (); | |
6252 | #endif | |
6253 | ||
6254 | /* This mess was copied from the GNU getpagesize.h. */ | |
6255 | #ifndef HAVE_GETPAGESIZE | |
6256 | # ifdef _SC_PAGESIZE | |
6257 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6258 | # else /* no _SC_PAGESIZE */ | |
6259 | # ifdef HAVE_SYS_PARAM_H | |
6260 | # include <sys/param.h> | |
6261 | # ifdef EXEC_PAGESIZE | |
6262 | # define getpagesize() EXEC_PAGESIZE | |
6263 | # else /* no EXEC_PAGESIZE */ | |
6264 | # ifdef NBPG | |
6265 | # define getpagesize() NBPG * CLSIZE | |
6266 | # ifndef CLSIZE | |
6267 | # define CLSIZE 1 | |
6268 | # endif /* no CLSIZE */ | |
6269 | # else /* no NBPG */ | |
6270 | # ifdef NBPC | |
6271 | # define getpagesize() NBPC | |
6272 | # else /* no NBPC */ | |
6273 | # ifdef PAGESIZE | |
6274 | # define getpagesize() PAGESIZE | |
6275 | # endif /* PAGESIZE */ | |
6276 | # endif /* no NBPC */ | |
6277 | # endif /* no NBPG */ | |
6278 | # endif /* no EXEC_PAGESIZE */ | |
6279 | # else /* no HAVE_SYS_PARAM_H */ | |
6280 | # define getpagesize() 8192 /* punt totally */ | |
6281 | # endif /* no HAVE_SYS_PARAM_H */ | |
6282 | # endif /* no _SC_PAGESIZE */ | |
6283 | ||
6284 | #endif /* no HAVE_GETPAGESIZE */ | |
6285 | ||
6286 | int | |
6287 | main () | |
6288 | { | |
6289 | char *data, *data2, *data3; | |
6290 | const char *cdata2; | |
6291 | int i, pagesize; | |
6292 | int fd, fd2; | |
6293 | ||
6294 | pagesize = getpagesize (); | |
6295 | ||
6296 | /* First, make a file with some known garbage in it. */ | |
6297 | data = (char *) malloc (pagesize); | |
6298 | if (!data) | |
6299 | return 1; | |
6300 | for (i = 0; i < pagesize; ++i) | |
6301 | *(data + i) = rand (); | |
6302 | umask (0); | |
6303 | fd = creat ("conftest.mmap", 0600); | |
6304 | if (fd < 0) | |
6305 | return 2; | |
6306 | if (write (fd, data, pagesize) != pagesize) | |
6307 | return 3; | |
6308 | close (fd); | |
6309 | ||
6310 | /* Next, check that the tail of a page is zero-filled. File must have | |
6311 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6312 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6313 | if (fd2 < 0) | |
6314 | return 4; | |
6315 | cdata2 = ""; | |
6316 | if (write (fd2, cdata2, 1) != 1) | |
6317 | return 5; | |
6318 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6319 | if (data2 == MAP_FAILED) | |
6320 | return 6; | |
6321 | for (i = 0; i < pagesize; ++i) | |
6322 | if (*(data2 + i)) | |
6323 | return 7; | |
6324 | close (fd2); | |
6325 | if (munmap (data2, pagesize)) | |
6326 | return 8; | |
6327 | ||
6328 | /* Next, try to mmap the file at a fixed address which already has | |
6329 | something else allocated at it. If we can, also make sure that | |
6330 | we see the same garbage. */ | |
6331 | fd = open ("conftest.mmap", O_RDWR); | |
6332 | if (fd < 0) | |
6333 | return 9; | |
6334 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6335 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6336 | return 10; | |
6337 | for (i = 0; i < pagesize; ++i) | |
6338 | if (*(data + i) != *(data2 + i)) | |
6339 | return 11; | |
6340 | ||
6341 | /* Finally, make sure that changes to the mapped area do not | |
6342 | percolate back to the file as seen by read(). (This is a bug on | |
6343 | some variants of i386 svr4.0.) */ | |
6344 | for (i = 0; i < pagesize; ++i) | |
6345 | *(data2 + i) = *(data2 + i) + 1; | |
6346 | data3 = (char *) malloc (pagesize); | |
6347 | if (!data3) | |
6348 | return 12; | |
6349 | if (read (fd, data3, pagesize) != pagesize) | |
6350 | return 13; | |
6351 | for (i = 0; i < pagesize; ++i) | |
6352 | if (*(data + i) != *(data3 + i)) | |
6353 | return 14; | |
6354 | close (fd); | |
6355 | return 0; | |
6356 | } | |
a946372e | 6357 | _ACEOF |
f11781c5 AK |
6358 | if ac_fn_c_try_run "$LINENO"; then : |
6359 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6360 | else |
f11781c5 AK |
6361 | ac_cv_func_mmap_fixed_mapped=no |
6362 | fi | |
6363 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6364 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6365 | fi | |
a946372e | 6366 | |
a946372e | 6367 | fi |
f11781c5 AK |
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6369 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6370 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6371 | |
f11781c5 | 6372 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6373 | |
f11781c5 AK |
6374 | fi |
6375 | rm -f conftest.mmap conftest.txt | |
6376 | ||
6377 | for ac_header in stdlib.h | |
6378 | do : | |
6379 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6380 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6381 | cat >>confdefs.h <<_ACEOF | |
6382 | #define HAVE_STDLIB_H 1 | |
a946372e | 6383 | _ACEOF |
f11781c5 AK |
6384 | |
6385 | fi | |
6386 | ||
6387 | done | |
6388 | ||
6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6390 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6391 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6392 | $as_echo_n "(cached) " >&6 | |
6393 | else | |
6394 | if test "$cross_compiling" = yes; then : | |
6395 | ac_cv_func_realloc_0_nonnull=no | |
6396 | else | |
6397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6398 | /* end confdefs.h. */ |
f11781c5 AK |
6399 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6400 | # include <stdlib.h> | |
6401 | #else | |
6402 | char *realloc (); | |
6403 | #endif | |
6404 | ||
6405 | int | |
6406 | main () | |
6407 | { | |
6408 | return ! realloc (0, 0); | |
6409 | ; | |
6410 | return 0; | |
6411 | } | |
a946372e | 6412 | _ACEOF |
f11781c5 AK |
6413 | if ac_fn_c_try_run "$LINENO"; then : |
6414 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6415 | else |
f11781c5 AK |
6416 | ac_cv_func_realloc_0_nonnull=no |
6417 | fi | |
6418 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6419 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6420 | fi |
6421 | ||
f11781c5 AK |
6422 | fi |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6424 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6425 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6426 | |
f11781c5 | 6427 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6428 | |
a946372e | 6429 | else |
f11781c5 AK |
6430 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6431 | ||
6432 | case " $LIBOBJS " in | |
6433 | *" realloc.$ac_objext "* ) ;; | |
6434 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6435 | ;; | |
6436 | esac | |
a946372e | 6437 | |
a946372e | 6438 | |
f11781c5 AK |
6439 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6440 | ||
a946372e AK |
6441 | fi |
6442 | ||
a946372e | 6443 | |
f11781c5 AK |
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6445 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6446 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6447 | $as_echo_n "(cached) " >&6 | |
a946372e | 6448 | else |
f11781c5 AK |
6449 | if test "$cross_compiling" = yes; then : |
6450 | ac_cv_func_stat_empty_string_bug=yes | |
6451 | else | |
6452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6453 | /* end confdefs.h. */ | |
6454 | $ac_includes_default | |
6455 | int | |
6456 | main () | |
6457 | { | |
6458 | struct stat sbuf; | |
6459 | return stat ("", &sbuf) == 0; | |
6460 | ; | |
6461 | return 0; | |
6462 | } | |
6463 | _ACEOF | |
6464 | if ac_fn_c_try_run "$LINENO"; then : | |
6465 | ac_cv_func_stat_empty_string_bug=no | |
6466 | else | |
6467 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6468 | fi |
f11781c5 AK |
6469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6470 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6471 | fi |
6472 | ||
8c4e8a18 | 6473 | fi |
f11781c5 AK |
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6475 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6476 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6477 | case " $LIBOBJS " in | |
6478 | *" stat.$ac_objext "* ) ;; | |
6479 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6480 | ;; | |
6481 | esac | |
8c4e8a18 FDN |
6482 | |
6483 | ||
6484 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6485 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6486 | _ACEOF |
6487 | ||
6488 | fi | |
6489 | ||
f11781c5 AK |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6491 | $as_echo_n "checking for working strtod... " >&6; } | |
6492 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6493 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6494 | else |
f11781c5 AK |
6495 | if test "$cross_compiling" = yes; then : |
6496 | ac_cv_func_strtod=no | |
6497 | else | |
6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6499 | /* end confdefs.h. */ | |
66fd4529 | 6500 | |
f11781c5 AK |
6501 | $ac_includes_default |
6502 | #ifndef strtod | |
6503 | double strtod (); | |
6504 | #endif | |
6505 | int | |
6506 | main() | |
6507 | { | |
6508 | { | |
6509 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6510 | char *string = " +69"; | |
6511 | char *term; | |
6512 | double value; | |
6513 | value = strtod (string, &term); | |
6514 | if (value != 69 || term != (string + 4)) | |
6515 | return 1; | |
6516 | } | |
66fd4529 | 6517 | |
f11781c5 AK |
6518 | { |
6519 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6520 | terminating character under some conditions. */ | |
6521 | char *string = "NaN"; | |
6522 | char *term; | |
6523 | strtod (string, &term); | |
6524 | if (term != string && *(term - 1) == 0) | |
6525 | return 1; | |
6526 | } | |
6527 | return 0; | |
6528 | } | |
66fd4529 | 6529 | |
f11781c5 AK |
6530 | _ACEOF |
6531 | if ac_fn_c_try_run "$LINENO"; then : | |
6532 | ac_cv_func_strtod=yes | |
66fd4529 | 6533 | else |
f11781c5 AK |
6534 | ac_cv_func_strtod=no |
6535 | fi | |
6536 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6537 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6538 | fi |
6539 | ||
f11781c5 AK |
6540 | fi |
6541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6542 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6543 | if test $ac_cv_func_strtod = no; then | |
6544 | case " $LIBOBJS " in | |
6545 | *" strtod.$ac_objext "* ) ;; | |
6546 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6547 | ;; | |
6548 | esac | |
71082be4 | 6549 | |
f11781c5 AK |
6550 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6551 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6552 | |
66fd4529 | 6553 | fi |
a946372e | 6554 | |
f11781c5 AK |
6555 | if test $ac_cv_func_pow = no; then |
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6557 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6558 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6559 | $as_echo_n "(cached) " >&6 | |
6560 | else | |
6561 | ac_check_lib_save_LIBS=$LIBS | |
6562 | LIBS="-lm $LIBS" | |
6563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6564 | /* end confdefs.h. */ | |
90c80887 | 6565 | |
f11781c5 AK |
6566 | /* Override any GCC internal prototype to avoid an error. |
6567 | Use char because int might match the return type of a GCC | |
6568 | builtin and then its argument prototype would still apply. */ | |
6569 | #ifdef __cplusplus | |
6570 | extern "C" | |
6571 | #endif | |
6572 | char pow (); | |
6573 | int | |
6574 | main () | |
6575 | { | |
6576 | return pow (); | |
6577 | ; | |
6578 | return 0; | |
6579 | } | |
6580 | _ACEOF | |
6581 | if ac_fn_c_try_link "$LINENO"; then : | |
6582 | ac_cv_lib_m_pow=yes | |
90c80887 | 6583 | else |
f11781c5 | 6584 | ac_cv_lib_m_pow=no |
90c80887 | 6585 | fi |
f11781c5 AK |
6586 | rm -f core conftest.err conftest.$ac_objext \ |
6587 | conftest$ac_exeext conftest.$ac_ext | |
6588 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6589 | fi |
f11781c5 AK |
6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6591 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6592 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6593 | POW_LIB=-lm | |
90c80887 | 6594 | else |
f11781c5 AK |
6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6596 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6597 | fi |
f11781c5 | 6598 | |
90c80887 AK |
6599 | fi |
6600 | ||
f11781c5 AK |
6601 | fi |
6602 | ||
6603 | for ac_func in vprintf | |
6604 | do : | |
6605 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6606 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6607 | cat >>confdefs.h <<_ACEOF | |
6608 | #define HAVE_VPRINTF 1 | |
6609 | _ACEOF | |
90c80887 | 6610 | |
f11781c5 AK |
6611 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6612 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6613 | |
f11781c5 | 6614 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6615 | |
90c80887 | 6616 | fi |
90c80887 | 6617 | |
f11781c5 AK |
6618 | fi |
6619 | done | |
90c80887 | 6620 | |
90c80887 | 6621 | |
90c80887 | 6622 | |
f11781c5 AK |
6623 | ################################################################################ |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6625 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6626 | # Check whether --enable-static_link was given. | |
6627 | if test "${enable_static_link+set}" = set; then : | |
6628 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6629 | else | |
6630 | STATIC_LINK=no | |
6631 | fi | |
90c80887 | 6632 | |
f11781c5 AK |
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6634 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6635 | |
f11781c5 | 6636 | ################################################################################ |
90c80887 | 6637 | |
90c80887 | 6638 | |
f11781c5 AK |
6639 | ################################################################################ |
6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6641 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6642 | |
f11781c5 AK |
6643 | # Check whether --with-user was given. |
6644 | if test "${with_user+set}" = set; then : | |
6645 | withval=$with_user; OWNER=$withval | |
6646 | fi | |
90c80887 | 6647 | |
f11781c5 AK |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6649 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6650 | |
f11781c5 AK |
6651 | if test x$OWNER != x; then |
6652 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6653 | fi |
a946372e | 6654 | |
f11781c5 AK |
6655 | ################################################################################ |
6656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6657 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6658 | |
f11781c5 AK |
6659 | # Check whether --with-group was given. |
6660 | if test "${with_group+set}" = set; then : | |
6661 | withval=$with_group; GROUP=$withval | |
a946372e | 6662 | fi |
f11781c5 AK |
6663 | |
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6665 | $as_echo "$GROUP" >&6; } | |
6666 | ||
6667 | if test x$GROUP != x; then | |
6668 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6669 | fi |
f11781c5 AK |
6670 | |
6671 | ################################################################################ | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6673 | $as_echo_n "checking device node uid... " >&6; } | |
6674 | ||
6675 | ||
6676 | # Check whether --with-device-uid was given. | |
6677 | if test "${with_device_uid+set}" = set; then : | |
6678 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6679 | else |
f11781c5 | 6680 | DM_DEVICE_UID=0 |
a946372e AK |
6681 | fi |
6682 | ||
f11781c5 AK |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6684 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6685 | |
f11781c5 AK |
6686 | ################################################################################ |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6688 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6689 | |
a946372e | 6690 | |
f11781c5 AK |
6691 | # Check whether --with-device-gid was given. |
6692 | if test "${with_device_gid+set}" = set; then : | |
6693 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6694 | else |
f11781c5 | 6695 | DM_DEVICE_GID=0 |
a946372e | 6696 | fi |
a946372e | 6697 | |
f11781c5 AK |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6699 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6700 | |
f11781c5 AK |
6701 | ################################################################################ |
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6703 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6704 | |
90c80887 | 6705 | |
f11781c5 AK |
6706 | # Check whether --with-device-mode was given. |
6707 | if test "${with_device_mode+set}" = set; then : | |
6708 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6709 | else | |
6710 | DM_DEVICE_MODE=0600 | |
6711 | fi | |
90c80887 | 6712 | |
f11781c5 AK |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6714 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6715 | |
d0df875d ZK |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6717 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6718 | ||
6719 | # Check whether --with-device-nodes-on was given. | |
6720 | if test "${with_device_nodes_on+set}" = set; then : | |
6721 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6722 | else | |
6723 | ADD_NODE=resume | |
6724 | fi | |
6725 | ||
6726 | case "$ADD_NODE" in | |
6727 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6728 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6729 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6730 | esac | |
6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6732 | $as_echo "on $ADD_NODE" >&6; } | |
6733 | ||
6734 | cat >>confdefs.h <<_ACEOF | |
6735 | #define DEFAULT_DM_ADD_NODE $add_on | |
6736 | _ACEOF | |
6737 | ||
6738 | ||
f11781c5 AK |
6739 | ################################################################################ |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6741 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6742 | # Check whether --enable-lvm1_fallback was given. | |
6743 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6744 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6745 | else | |
6746 | LVM1_FALLBACK=no | |
6747 | fi | |
90c80887 | 6748 | |
f11781c5 AK |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6750 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6751 | |
f11781c5 | 6752 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6753 | |
f11781c5 | 6754 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6755 | |
f11781c5 | 6756 | fi |
90c80887 | 6757 | |
f11781c5 AK |
6758 | ################################################################################ |
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6760 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6761 | ||
6762 | # Check whether --with-lvm1 was given. | |
6763 | if test "${with_lvm1+set}" = set; then : | |
6764 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6765 | else |
f11781c5 | 6766 | LVM1=internal |
a946372e | 6767 | fi |
f11781c5 AK |
6768 | |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6770 | $as_echo "$LVM1" >&6; } | |
6771 | ||
6772 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6773 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6774 | " "$LINENO" 5 | |
6775 | fi; | |
6776 | ||
6777 | if test x$LVM1 = xinternal; then | |
6778 | ||
6779 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6780 | ||
a946372e AK |
6781 | fi |
6782 | ||
6783 | ################################################################################ | |
f11781c5 AK |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6785 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6786 | ||
6787 | # Check whether --with-pool was given. | |
6788 | if test "${with_pool+set}" = set; then : | |
6789 | withval=$with_pool; POOL=$withval | |
a946372e | 6790 | else |
f11781c5 | 6791 | POOL=internal |
a946372e AK |
6792 | fi |
6793 | ||
f11781c5 AK |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6795 | $as_echo "$POOL" >&6; } | |
6796 | ||
6797 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6798 | then as_fn_error $? "--with-pool parameter invalid | |
6799 | " "$LINENO" 5 | |
6800 | fi; | |
6801 | ||
6802 | if test x$POOL = xinternal; then | |
6803 | ||
6804 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6805 | |
a946372e AK |
6806 | fi |
6807 | ||
6808 | ################################################################################ | |
f11781c5 AK |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6810 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6811 | |
f11781c5 AK |
6812 | # Check whether --with-cluster was given. |
6813 | if test "${with_cluster+set}" = set; then : | |
6814 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6815 | fi |
6816 | ||
f11781c5 AK |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6818 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6819 | |
f11781c5 AK |
6820 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6821 | then as_fn_error $? "--with-cluster parameter invalid | |
6822 | " "$LINENO" 5 | |
6823 | fi; | |
fddafd51 | 6824 | |
f11781c5 | 6825 | if test x$CLUSTER = xinternal; then |
5556819a | 6826 | |
f11781c5 | 6827 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6828 | |
fddafd51 | 6829 | fi |
f11781c5 AK |
6830 | |
6831 | ################################################################################ | |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6833 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6834 | ||
6835 | # Check whether --with-snapshots was given. | |
6836 | if test "${with_snapshots+set}" = set; then : | |
6837 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6838 | else |
f11781c5 | 6839 | SNAPSHOTS=internal |
fddafd51 ZK |
6840 | fi |
6841 | ||
f11781c5 AK |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6843 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6844 | |
f11781c5 AK |
6845 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6846 | then as_fn_error $? "--with-snapshots parameter invalid | |
6847 | " "$LINENO" 5 | |
6848 | fi; | |
fddafd51 | 6849 | |
f11781c5 AK |
6850 | if test x$SNAPSHOTS = xinternal; then |
6851 | ||
6852 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6853 | ||
6854 | fi | |
6855 | ||
6856 | ################################################################################ | |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6858 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6859 | ||
6860 | # Check whether --with-mirrors was given. | |
6861 | if test "${with_mirrors+set}" = set; then : | |
6862 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6863 | else |
f11781c5 | 6864 | MIRRORS=internal |
fddafd51 ZK |
6865 | fi |
6866 | ||
f11781c5 AK |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6868 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6869 | |
f11781c5 AK |
6870 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6871 | then as_fn_error $? "--with-mirrors parameter invalid | |
6872 | " "$LINENO" 5 | |
6873 | fi; | |
6874 | ||
6875 | if test x$MIRRORS = xinternal; then | |
6876 | ||
6877 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6878 | ||
6879 | fi | |
6880 | ||
cac52ca4 JEB |
6881 | ################################################################################ |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6883 | $as_echo_n "checking whether to include raid... " >&6; } | |
6884 | ||
6885 | # Check whether --with-raid was given. | |
6886 | if test "${with_raid+set}" = set; then : | |
6887 | withval=$with_raid; RAID=$withval | |
6888 | else | |
6889 | RAID=internal | |
6890 | fi | |
6891 | ||
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6893 | $as_echo "$RAID" >&6; } | |
6894 | ||
6895 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6896 | then as_fn_error $? "--with-raid parameter invalid | |
6897 | " "$LINENO" 5 | |
6898 | fi; | |
6899 | ||
6900 | if test x$RAID = xinternal; then | |
6901 | ||
6902 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6903 | ||
6904 | fi | |
6905 | ||
f11781c5 AK |
6906 | ################################################################################ |
6907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6908 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6909 | ||
6910 | # Check whether --with-replicators was given. | |
6911 | if test "${with_replicators+set}" = set; then : | |
6912 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6913 | else |
f11781c5 AK |
6914 | REPLICATORS=none |
6915 | fi | |
fd4728e1 | 6916 | |
f11781c5 AK |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6918 | $as_echo "$REPLICATORS" >&6; } | |
6919 | ||
6920 | case "$REPLICATORS" in | |
6921 | none|shared) ;; | |
6922 | internal) | |
6923 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6924 | ;; | |
6925 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6926 | esac |
f11781c5 AK |
6927 | |
6928 | ################################################################################ | |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
6930 | $as_echo_n "checking whether to enable readline... " >&6; } | |
6931 | # Check whether --enable-readline was given. | |
6932 | if test "${enable_readline+set}" = set; then : | |
6933 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 6934 | else |
f11781c5 | 6935 | READLINE=maybe |
fd4728e1 ZK |
6936 | fi |
6937 | ||
f11781c5 AK |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
6939 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 6940 | |
f11781c5 AK |
6941 | ################################################################################ |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
6943 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
6944 | # Check whether --enable-realtime was given. | |
6945 | if test "${enable_realtime+set}" = set; then : | |
6946 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 6947 | fi |
d0191583 | 6948 | |
f11781c5 AK |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
6950 | $as_echo "$REALTIME" >&6; } | |
6951 | ||
54b362f9 | 6952 | ################################################################################ |
f11781c5 AK |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
6954 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
6955 | # Check whether --enable-ocf was given. | |
6956 | if test "${enable_ocf+set}" = set; then : | |
6957 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 6958 | else |
f11781c5 | 6959 | OCF=no |
54b362f9 AK |
6960 | fi |
6961 | ||
f11781c5 AK |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
6963 | $as_echo "$OCF" >&6; } | |
54b362f9 | 6964 | |
606d0858 AK |
6965 | # Check whether --with-ocfdir was given. |
6966 | if test "${with_ocfdir+set}" = set; then : | |
6967 | withval=$with_ocfdir; OCFDIR=$withval | |
6968 | else | |
6969 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
6970 | fi | |
6971 | ||
6972 | ||
f11781c5 AK |
6973 | ################################################################################ |
6974 | pkg_config_init() { | |
6975 | ||
6976 | ||
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
6982 | if test -n "$ac_tool_prefix"; then | |
6983 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
6984 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
6985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6986 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6987 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6988 | $as_echo_n "(cached) " >&6 |
6989 | else | |
f11781c5 | 6990 | case $PKG_CONFIG in |
54b362f9 | 6991 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6992 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
6993 | ;; |
6994 | *) | |
6995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6996 | for as_dir in $PATH | |
6997 | do | |
6998 | IFS=$as_save_IFS | |
6999 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7000 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7002 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7004 | break 2 |
7005 | fi | |
7006 | done | |
f11781c5 | 7007 | done |
54b362f9 AK |
7008 | IFS=$as_save_IFS |
7009 | ||
7010 | ;; | |
7011 | esac | |
7012 | fi | |
f11781c5 AK |
7013 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7014 | if test -n "$PKG_CONFIG"; then | |
7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7016 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7017 | else |
f11781c5 | 7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7019 | $as_echo "no" >&6; } |
7020 | fi | |
7021 | ||
7022 | ||
f11781c5 AK |
7023 | fi |
7024 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7025 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7026 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7027 | set dummy pkg-config; ac_word=$2 | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7029 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7030 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7031 | $as_echo_n "(cached) " >&6 |
7032 | else | |
f11781c5 | 7033 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7034 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7035 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7036 | ;; |
7037 | *) | |
7038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7039 | for as_dir in $PATH | |
7040 | do | |
7041 | IFS=$as_save_IFS | |
7042 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7043 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7045 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7047 | break 2 |
7048 | fi | |
7049 | done | |
f11781c5 | 7050 | done |
54b362f9 AK |
7051 | IFS=$as_save_IFS |
7052 | ||
7053 | ;; | |
7054 | esac | |
7055 | fi | |
f11781c5 AK |
7056 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7057 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7059 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7060 | else |
f11781c5 | 7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7062 | $as_echo "no" >&6; } |
7063 | fi | |
7064 | ||
f11781c5 AK |
7065 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7066 | PKG_CONFIG="" | |
7067 | else | |
7068 | case $cross_compiling:$ac_tool_warned in | |
7069 | yes:) | |
7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7071 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7072 | ac_tool_warned=yes ;; | |
7073 | esac | |
7074 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7075 | fi | |
d1e8046f | 7076 | else |
f11781c5 | 7077 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7078 | fi |
7079 | ||
f11781c5 AK |
7080 | fi |
7081 | if test -n "$PKG_CONFIG"; then | |
7082 | _pkg_min_version=0.9.0 | |
7083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7084 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7085 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7087 | $as_echo "yes" >&6; } | |
7088 | else | |
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7090 | $as_echo "no" >&6; } | |
7091 | PKG_CONFIG="" | |
7092 | fi | |
7093 | fi | |
d1e8046f | 7094 | |
f11781c5 AK |
7095 | pkg_failed=no |
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7097 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7098 | |
f11781c5 AK |
7099 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7100 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7101 | elif test -n "$PKG_CONFIG"; then | |
7102 | if test -n "$PKG_CONFIG" && \ | |
7103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7104 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7105 | ac_status=$? | |
7106 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7107 | test $ac_status = 0; }; then | |
7108 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7109 | else |
f11781c5 AK |
7110 | pkg_failed=yes |
7111 | fi | |
7112 | else | |
7113 | pkg_failed=untried | |
7114 | fi | |
7115 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7116 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7117 | elif test -n "$PKG_CONFIG"; then | |
7118 | if test -n "$PKG_CONFIG" && \ | |
7119 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7120 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7121 | ac_status=$? |
f11781c5 AK |
7122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7123 | test $ac_status = 0; }; then | |
7124 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7125 | else |
f11781c5 AK |
7126 | pkg_failed=yes |
7127 | fi | |
7128 | else | |
7129 | pkg_failed=untried | |
d1e8046f AK |
7130 | fi |
7131 | ||
d1e8046f | 7132 | |
f11781c5 AK |
7133 | |
7134 | if test $pkg_failed = yes; then | |
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7136 | $as_echo "no" >&6; } | |
7137 | ||
7138 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7139 | _pkg_short_errors_supported=yes | |
7140 | else | |
7141 | _pkg_short_errors_supported=no | |
7142 | fi | |
7143 | if test $_pkg_short_errors_supported = yes; then | |
7144 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7145 | else | |
7146 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7147 | fi | |
7148 | # Put the nasty error message in config.log where it belongs | |
7149 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7150 | ||
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7152 | $as_echo "pkg-config initialized" >&6; } | |
7153 | elif test $pkg_failed = untried; then | |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7155 | $as_echo "no" >&6; } | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7157 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7158 | else |
f11781c5 AK |
7159 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7160 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7162 | $as_echo "yes" >&6; } | |
d1e8046f | 7163 | |
d1e8046f | 7164 | fi |
f11781c5 AK |
7165 | PKGCONFIG_INIT=1 |
7166 | } | |
d1e8046f | 7167 | |
f11781c5 AK |
7168 | ################################################################################ |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7170 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7171 | |
f11781c5 AK |
7172 | # Check whether --with-clvmd was given. |
7173 | if test "${with_clvmd+set}" = set; then : | |
7174 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7175 | else |
f11781c5 | 7176 | CLVMD=none |
d1e8046f | 7177 | fi |
d1e8046f | 7178 | |
f11781c5 AK |
7179 | if test x$CLVMD = xyes; then |
7180 | CLVMD=all | |
d1e8046f | 7181 | fi |
f11781c5 AK |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7183 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7184 | |
f11781c5 AK |
7185 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7186 | CLUSTER=internal | |
d1e8046f AK |
7187 | fi |
7188 | ||
f11781c5 AK |
7189 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7190 | pkg_config_init | |
7191 | fi | |
d1e8046f | 7192 | |
f11781c5 AK |
7193 | CLVMD_CMANAGERS="" |
7194 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7195 | |
f11781c5 | 7196 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7197 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7198 | fi |
f11781c5 AK |
7199 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7200 | BUILDCMAN=yes | |
7201 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7202 | CLVMD_NEEDS_QDISKD=yes | |
7203 | fi | |
7204 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7205 | BUILDCOROSYNC=yes | |
7206 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7207 | fi | |
7208 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7209 | BUILDOPENAIS=yes | |
7210 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7211 | fi | |
7212 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7213 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7214 | fi |
7215 | ||
f11781c5 AK |
7216 | soft_bailout() { |
7217 | NOTFOUND=1 | |
7218 | } | |
ad6254c5 | 7219 | |
f11781c5 AK |
7220 | hard_bailout() { |
7221 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7222 | } | |
ad6254c5 | 7223 | |
f11781c5 AK |
7224 | if test x$CLVMD = xall; then |
7225 | bailout=soft_bailout | |
f11781c5 AK |
7226 | BUILDCMAN=yes |
7227 | BUILDCOROSYNC=yes | |
7228 | BUILDOPENAIS=yes | |
a5f46f6a | 7229 | else |
f11781c5 | 7230 | bailout=hard_bailout |
a5f46f6a AK |
7231 | fi |
7232 | ||
f11781c5 AK |
7233 | check_lib_no_libs() { |
7234 | lib_no_libs_arg1=$1 | |
7235 | shift | |
7236 | lib_no_libs_arg2=$1 | |
7237 | shift | |
7238 | lib_no_libs_args=$@ | |
7239 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7241 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7242 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7243 | $as_echo_n "(cached) " >&6 |
7244 | else | |
7245 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7246 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7248 | /* end confdefs.h. */ |
7249 | ||
7250 | /* Override any GCC internal prototype to avoid an error. | |
7251 | Use char because int might match the return type of a GCC | |
7252 | builtin and then its argument prototype would still apply. */ | |
7253 | #ifdef __cplusplus | |
7254 | extern "C" | |
7255 | #endif | |
f11781c5 | 7256 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7257 | int |
7258 | main () | |
7259 | { | |
f11781c5 | 7260 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7261 | ; |
7262 | return 0; | |
7263 | } | |
7264 | _ACEOF | |
f11781c5 AK |
7265 | if ac_fn_c_try_link "$LINENO"; then : |
7266 | eval "$as_ac_Lib=yes" | |
90c80887 | 7267 | else |
f11781c5 | 7268 | eval "$as_ac_Lib=no" |
90c80887 | 7269 | fi |
f11781c5 AK |
7270 | rm -f core conftest.err conftest.$ac_objext \ |
7271 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7272 | LIBS=$ac_check_lib_save_LIBS |
7273 | fi | |
f11781c5 AK |
7274 | eval ac_res=\$$as_ac_Lib |
7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7276 | $as_echo "$ac_res" >&6; } | |
7277 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7278 | cat >>confdefs.h <<_ACEOF | |
7279 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7280 | _ACEOF | |
7281 | ||
7282 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7283 | ||
90c80887 | 7284 | else |
f11781c5 | 7285 | $bailout |
90c80887 AK |
7286 | fi |
7287 | ||
f11781c5 AK |
7288 | LIBS=$ac_check_lib_save_LIBS |
7289 | } | |
90c80887 | 7290 | |
f11781c5 | 7291 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7292 | |
f11781c5 AK |
7293 | pkg_failed=no |
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7295 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7296 | |
f11781c5 AK |
7297 | if test -n "$CMAN_CFLAGS"; then |
7298 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7299 | elif test -n "$PKG_CONFIG"; then | |
7300 | if test -n "$PKG_CONFIG" && \ | |
7301 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7302 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7303 | ac_status=$? | |
7304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7305 | test $ac_status = 0; }; then | |
7306 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7307 | else | |
7308 | pkg_failed=yes | |
ad6254c5 | 7309 | fi |
f11781c5 AK |
7310 | else |
7311 | pkg_failed=untried | |
ad6254c5 | 7312 | fi |
f11781c5 AK |
7313 | if test -n "$CMAN_LIBS"; then |
7314 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7315 | elif test -n "$PKG_CONFIG"; then | |
7316 | if test -n "$PKG_CONFIG" && \ | |
7317 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7318 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7319 | ac_status=$? |
f11781c5 AK |
7320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7321 | test $ac_status = 0; }; then | |
7322 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7323 | else |
f11781c5 AK |
7324 | pkg_failed=yes |
7325 | fi | |
7326 | else | |
7327 | pkg_failed=untried | |
93bd259b AK |
7328 | fi |
7329 | ||
f11781c5 AK |
7330 | |
7331 | ||
7332 | if test $pkg_failed = yes; then | |
7333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7334 | $as_echo "no" >&6; } | |
7335 | ||
7336 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7337 | _pkg_short_errors_supported=yes | |
7338 | else | |
7339 | _pkg_short_errors_supported=no | |
93bd259b | 7340 | fi |
f11781c5 AK |
7341 | if test $_pkg_short_errors_supported = yes; then |
7342 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7343 | else | |
7344 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7345 | fi | |
7346 | # Put the nasty error message in config.log where it belongs | |
7347 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7348 | |
f11781c5 AK |
7349 | NOTFOUND=0 |
7350 | for ac_header in libcman.h | |
7351 | do : | |
7352 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7353 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7354 | cat >>confdefs.h <<_ACEOF | |
7355 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7356 | _ACEOF |
7357 | ||
f11781c5 AK |
7358 | else |
7359 | $bailout | |
93bd259b AK |
7360 | fi |
7361 | ||
f11781c5 | 7362 | done |
93bd259b | 7363 | |
f11781c5 AK |
7364 | check_lib_no_libs cman cman_init |
7365 | if test $NOTFOUND = 0; then | |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7367 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7368 | CMAN_LIBS="-lcman" | |
7369 | HAVE_CMAN=yes | |
7370 | fi | |
7371 | elif test $pkg_failed = untried; then | |
7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7373 | $as_echo "no" >&6; } | |
7374 | NOTFOUND=0 | |
7375 | for ac_header in libcman.h | |
7376 | do : | |
7377 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7378 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7379 | cat >>confdefs.h <<_ACEOF | |
7380 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7381 | _ACEOF |
93bd259b | 7382 | |
93bd259b | 7383 | else |
f11781c5 | 7384 | $bailout |
93bd259b AK |
7385 | fi |
7386 | ||
f11781c5 AK |
7387 | done |
7388 | ||
7389 | check_lib_no_libs cman cman_init | |
7390 | if test $NOTFOUND = 0; then | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7392 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7393 | CMAN_LIBS="-lcman" | |
7394 | HAVE_CMAN=yes | |
7395 | fi | |
7396 | else | |
7397 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7398 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7400 | $as_echo "yes" >&6; } | |
7401 | HAVE_CMAN=yes | |
93bd259b | 7402 | fi |
f11781c5 AK |
7403 | CHECKCONFDB=yes |
7404 | CHECKDLM=yes | |
93bd259b AK |
7405 | fi |
7406 | ||
f11781c5 AK |
7407 | if test x$BUILDCOROSYNC = xyes || \ |
7408 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7409 | |
f11781c5 AK |
7410 | pkg_failed=no |
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7412 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7413 | |
f11781c5 AK |
7414 | if test -n "$COROSYNC_CFLAGS"; then |
7415 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7416 | elif test -n "$PKG_CONFIG"; then | |
7417 | if test -n "$PKG_CONFIG" && \ | |
7418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7419 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7420 | ac_status=$? | |
7421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7422 | test $ac_status = 0; }; then | |
7423 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7424 | else |
f11781c5 AK |
7425 | pkg_failed=yes |
7426 | fi | |
7427 | else | |
7428 | pkg_failed=untried | |
7429 | fi | |
7430 | if test -n "$COROSYNC_LIBS"; then | |
7431 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7432 | elif test -n "$PKG_CONFIG"; then | |
7433 | if test -n "$PKG_CONFIG" && \ | |
7434 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7435 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7436 | ac_status=$? |
f11781c5 AK |
7437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7438 | test $ac_status = 0; }; then | |
7439 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7440 | else |
f11781c5 | 7441 | pkg_failed=yes |
ad6254c5 | 7442 | fi |
f11781c5 AK |
7443 | else |
7444 | pkg_failed=untried | |
ad6254c5 | 7445 | fi |
ad6254c5 | 7446 | |
72b2cb61 | 7447 | |
72b2cb61 | 7448 | |
f11781c5 AK |
7449 | if test $pkg_failed = yes; then |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7451 | $as_echo "no" >&6; } | |
19a2c6e0 | 7452 | |
f11781c5 AK |
7453 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7454 | _pkg_short_errors_supported=yes | |
7455 | else | |
7456 | _pkg_short_errors_supported=no | |
ad6254c5 | 7457 | fi |
f11781c5 AK |
7458 | if test $_pkg_short_errors_supported = yes; then |
7459 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7460 | else | |
7461 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7462 | fi | |
7463 | # Put the nasty error message in config.log where it belongs | |
7464 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7465 | |
f11781c5 AK |
7466 | $bailout |
7467 | elif test $pkg_failed = untried; then | |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7469 | $as_echo "no" >&6; } | |
7470 | $bailout | |
7471 | else | |
7472 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7473 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7475 | $as_echo "yes" >&6; } | |
7476 | HAVE_COROSYNC=yes | |
7477 | fi | |
7478 | CHECKCONFDB=yes | |
ad6254c5 AK |
7479 | fi |
7480 | ||
f11781c5 | 7481 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7482 | |
f11781c5 AK |
7483 | pkg_failed=no |
7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7485 | $as_echo_n "checking for QUORUM... " >&6; } | |
7486 | ||
7487 | if test -n "$QUORUM_CFLAGS"; then | |
7488 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7489 | elif test -n "$PKG_CONFIG"; then | |
7490 | if test -n "$PKG_CONFIG" && \ | |
7491 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7492 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7493 | ac_status=$? |
f11781c5 AK |
7494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7495 | test $ac_status = 0; }; then | |
7496 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7497 | else |
f11781c5 | 7498 | pkg_failed=yes |
f30875db | 7499 | fi |
f11781c5 AK |
7500 | else |
7501 | pkg_failed=untried | |
f30875db | 7502 | fi |
f11781c5 AK |
7503 | if test -n "$QUORUM_LIBS"; then |
7504 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7505 | elif test -n "$PKG_CONFIG"; then | |
7506 | if test -n "$PKG_CONFIG" && \ | |
7507 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7508 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7509 | ac_status=$? | |
7510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7511 | test $ac_status = 0; }; then | |
7512 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7513 | else |
f11781c5 | 7514 | pkg_failed=yes |
f30875db | 7515 | fi |
f11781c5 AK |
7516 | else |
7517 | pkg_failed=untried | |
7518 | fi | |
7519 | ||
f30875db | 7520 | |
f11781c5 AK |
7521 | |
7522 | if test $pkg_failed = yes; then | |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7524 | $as_echo "no" >&6; } | |
7525 | ||
7526 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7527 | _pkg_short_errors_supported=yes | |
7528 | else | |
7529 | _pkg_short_errors_supported=no | |
f30875db | 7530 | fi |
f11781c5 AK |
7531 | if test $_pkg_short_errors_supported = yes; then |
7532 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7533 | else | |
7534 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7535 | fi | |
7536 | # Put the nasty error message in config.log where it belongs | |
7537 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7538 | |
f11781c5 AK |
7539 | $bailout |
7540 | elif test $pkg_failed = untried; then | |
7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7542 | $as_echo "no" >&6; } | |
7543 | $bailout | |
7544 | else | |
7545 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7546 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7548 | $as_echo "yes" >&6; } | |
7549 | HAVE_QUORUM=yes | |
7550 | fi | |
7551 | CHECKCPG=yes | |
7552 | CHECKDLM=yes | |
d0191583 JM |
7553 | fi |
7554 | ||
f11781c5 | 7555 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7556 | |
f11781c5 AK |
7557 | pkg_failed=no |
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7559 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7560 | |
f11781c5 AK |
7561 | if test -n "$SALCK_CFLAGS"; then |
7562 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7563 | elif test -n "$PKG_CONFIG"; then | |
7564 | if test -n "$PKG_CONFIG" && \ | |
7565 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7566 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7567 | ac_status=$? | |
7568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7569 | test $ac_status = 0; }; then | |
7570 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7571 | else | |
7572 | pkg_failed=yes | |
7573 | fi | |
7574 | else | |
7575 | pkg_failed=untried | |
7576 | fi | |
7577 | if test -n "$SALCK_LIBS"; then | |
7578 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7579 | elif test -n "$PKG_CONFIG"; then | |
7580 | if test -n "$PKG_CONFIG" && \ | |
7581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7582 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7583 | ac_status=$? |
f11781c5 AK |
7584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7585 | test $ac_status = 0; }; then | |
7586 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7587 | else |
f11781c5 | 7588 | pkg_failed=yes |
8a2fc586 | 7589 | fi |
f11781c5 AK |
7590 | else |
7591 | pkg_failed=untried | |
8a2fc586 | 7592 | fi |
d0191583 | 7593 | |
d0191583 | 7594 | |
f8f6ec92 | 7595 | |
f11781c5 AK |
7596 | if test $pkg_failed = yes; then |
7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7598 | $as_echo "no" >&6; } | |
8a2fc586 | 7599 | |
f11781c5 AK |
7600 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7601 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7602 | else |
f11781c5 AK |
7603 | _pkg_short_errors_supported=no |
7604 | fi | |
7605 | if test $_pkg_short_errors_supported = yes; then | |
7606 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7607 | else | |
7608 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7609 | fi | |
7610 | # Put the nasty error message in config.log where it belongs | |
7611 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7612 | |
f11781c5 AK |
7613 | $bailout |
7614 | elif test $pkg_failed = untried; then | |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7616 | $as_echo "no" >&6; } | |
7617 | $bailout | |
ad6254c5 | 7618 | else |
f11781c5 AK |
7619 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7620 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7622 | $as_echo "yes" >&6; } | |
7623 | HAVE_SALCK=yes | |
ad6254c5 | 7624 | fi |
f11781c5 | 7625 | CHECKCPG=yes |
ad6254c5 | 7626 | fi |
ad6254c5 | 7627 | |
72b2cb61 | 7628 | |
f8f6ec92 | 7629 | |
f11781c5 | 7630 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7631 | |
f11781c5 AK |
7632 | pkg_failed=no |
7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7634 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7635 | |
f11781c5 AK |
7636 | if test -n "$CONFDB_CFLAGS"; then |
7637 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7638 | elif test -n "$PKG_CONFIG"; then | |
7639 | if test -n "$PKG_CONFIG" && \ | |
7640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7641 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7642 | ac_status=$? |
f11781c5 AK |
7643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7644 | test $ac_status = 0; }; then | |
7645 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7646 | else |
f11781c5 AK |
7647 | pkg_failed=yes |
7648 | fi | |
7649 | else | |
7650 | pkg_failed=untried | |
7651 | fi | |
7652 | if test -n "$CONFDB_LIBS"; then | |
7653 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7654 | elif test -n "$PKG_CONFIG"; then | |
7655 | if test -n "$PKG_CONFIG" && \ | |
7656 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7657 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7658 | ac_status=$? | |
7659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7660 | test $ac_status = 0; }; then | |
7661 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7662 | else | |
7663 | pkg_failed=yes | |
7664 | fi | |
7665 | else | |
7666 | pkg_failed=untried | |
f8f6ec92 ZK |
7667 | fi |
7668 | ||
f8f6ec92 | 7669 | |
66e941e8 | 7670 | |
f11781c5 AK |
7671 | if test $pkg_failed = yes; then |
7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7673 | $as_echo "no" >&6; } | |
7674 | ||
7675 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7676 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7677 | else |
f11781c5 | 7678 | _pkg_short_errors_supported=no |
66e941e8 | 7679 | fi |
f11781c5 AK |
7680 | if test $_pkg_short_errors_supported = yes; then |
7681 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7682 | else | |
7683 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7684 | fi | |
7685 | # Put the nasty error message in config.log where it belongs | |
7686 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7687 | |
f11781c5 AK |
7688 | HAVE_CONFDB=no |
7689 | elif test $pkg_failed = untried; then | |
7690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7691 | $as_echo "no" >&6; } | |
7692 | HAVE_CONFDB=no | |
7693 | else | |
7694 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7695 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7697 | $as_echo "yes" >&6; } | |
7698 | HAVE_CONFDB=yes | |
66e941e8 | 7699 | fi |
f11781c5 AK |
7700 | |
7701 | for ac_header in corosync/confdb.h | |
7702 | do : | |
7703 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7704 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7705 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7706 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7707 | _ACEOF |
f11781c5 | 7708 | HAVE_CONFDB_H=yes |
66e941e8 | 7709 | else |
f11781c5 | 7710 | HAVE_CONFDB_H=no |
66e941e8 | 7711 | fi |
dd1f2c09 MB |
7712 | |
7713 | done | |
7714 | ||
7715 | ||
f11781c5 AK |
7716 | if test x$HAVE_CONFDB != xyes && \ |
7717 | test x$HAVE_CONFDB_H = xyes; then | |
7718 | check_lib_no_libs confdb confdb_initialize | |
7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7720 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7721 | CONFDB_LIBS="-lconfdb" | |
7722 | HAVE_CONFDB=yes | |
7723 | fi | |
7724 | ||
7725 | if test x$BUILDCOROSYNC = xyes && \ | |
7726 | test x$HAVE_CONFDB != xyes && | |
7727 | test x$CLVMD != xall; then | |
7728 | as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5 | |
7729 | fi | |
dd1f2c09 | 7730 | fi |
f11781c5 AK |
7731 | |
7732 | if test x$CHECKCPG = xyes; then | |
7733 | ||
7734 | pkg_failed=no | |
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7736 | $as_echo_n "checking for CPG... " >&6; } | |
7737 | ||
7738 | if test -n "$CPG_CFLAGS"; then | |
7739 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7740 | elif test -n "$PKG_CONFIG"; then | |
7741 | if test -n "$PKG_CONFIG" && \ | |
7742 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7743 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7744 | ac_status=$? | |
7745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7746 | test $ac_status = 0; }; then | |
7747 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7748 | else |
f11781c5 AK |
7749 | pkg_failed=yes |
7750 | fi | |
7751 | else | |
7752 | pkg_failed=untried | |
7753 | fi | |
7754 | if test -n "$CPG_LIBS"; then | |
7755 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
7756 | elif test -n "$PKG_CONFIG"; then | |
7757 | if test -n "$PKG_CONFIG" && \ | |
7758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7759 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 7760 | ac_status=$? |
f11781c5 AK |
7761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7762 | test $ac_status = 0; }; then | |
7763 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 7764 | else |
f11781c5 AK |
7765 | pkg_failed=yes |
7766 | fi | |
7767 | else | |
7768 | pkg_failed=untried | |
7769 | fi | |
7770 | ||
7771 | ||
7772 | ||
7773 | if test $pkg_failed = yes; then | |
7774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7775 | $as_echo "no" >&6; } | |
7776 | ||
7777 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7778 | _pkg_short_errors_supported=yes | |
7779 | else | |
7780 | _pkg_short_errors_supported=no | |
7781 | fi | |
7782 | if test $_pkg_short_errors_supported = yes; then | |
7783 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
7784 | else | |
7785 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
7786 | fi | |
7787 | # Put the nasty error message in config.log where it belongs | |
7788 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 7789 | |
f11781c5 AK |
7790 | $bailout |
7791 | elif test $pkg_failed = untried; then | |
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7793 | $as_echo "no" >&6; } | |
7794 | $bailout | |
7795 | else | |
7796 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
7797 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7799 | $as_echo "yes" >&6; } | |
7800 | HAVE_CPG=yes | |
7801 | fi | |
dd1f2c09 MB |
7802 | fi |
7803 | ||
f11781c5 | 7804 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 7805 | |
f11781c5 AK |
7806 | pkg_failed=no |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
7808 | $as_echo_n "checking for DLM... " >&6; } | |
7809 | ||
7810 | if test -n "$DLM_CFLAGS"; then | |
7811 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
7812 | elif test -n "$PKG_CONFIG"; then | |
7813 | if test -n "$PKG_CONFIG" && \ | |
7814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
7815 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 7816 | ac_status=$? |
f11781c5 AK |
7817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7818 | test $ac_status = 0; }; then | |
7819 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 7820 | else |
f11781c5 AK |
7821 | pkg_failed=yes |
7822 | fi | |
7823 | else | |
7824 | pkg_failed=untried | |
7825 | fi | |
7826 | if test -n "$DLM_LIBS"; then | |
7827 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
7828 | elif test -n "$PKG_CONFIG"; then | |
7829 | if test -n "$PKG_CONFIG" && \ | |
7830 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
7831 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
7832 | ac_status=$? | |
7833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7834 | test $ac_status = 0; }; then | |
7835 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
7836 | else | |
7837 | pkg_failed=yes | |
7838 | fi | |
7839 | else | |
7840 | pkg_failed=untried | |
dd1f2c09 MB |
7841 | fi |
7842 | ||
dd1f2c09 | 7843 | |
dd1f2c09 | 7844 | |
f11781c5 AK |
7845 | if test $pkg_failed = yes; then |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7847 | $as_echo "no" >&6; } | |
7848 | ||
7849 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7850 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 7851 | else |
f11781c5 | 7852 | _pkg_short_errors_supported=no |
dd1f2c09 | 7853 | fi |
f11781c5 AK |
7854 | if test $_pkg_short_errors_supported = yes; then |
7855 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
7856 | else | |
7857 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
7858 | fi | |
7859 | # Put the nasty error message in config.log where it belongs | |
7860 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 7861 | |
f11781c5 AK |
7862 | NOTFOUND=0 |
7863 | for ac_header in libdlm.h | |
7864 | do : | |
7865 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
7866 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 7867 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7868 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
7869 | _ACEOF |
7870 | ||
f11781c5 AK |
7871 | else |
7872 | $bailout | |
dd1f2c09 | 7873 | fi |
f8f6ec92 ZK |
7874 | |
7875 | done | |
7876 | ||
f11781c5 AK |
7877 | check_lib_no_libs dlm dlm_lock -lpthread |
7878 | if test $NOTFOUND = 0; then | |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
7880 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
7881 | DLM_LIBS="-ldlm -lpthread" | |
7882 | HAVE_DLM=yes | |
7883 | fi | |
7884 | elif test $pkg_failed = untried; then | |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7886 | $as_echo "no" >&6; } | |
7887 | NOTFOUND=0 | |
7888 | for ac_header in libdlm.h | |
7889 | do : | |
7890 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
7891 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
7892 | cat >>confdefs.h <<_ACEOF | |
7893 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
7894 | _ACEOF |
7895 | ||
f8f6ec92 | 7896 | else |
f11781c5 | 7897 | $bailout |
ad6254c5 AK |
7898 | fi |
7899 | ||
f11781c5 | 7900 | done |
8b1a3214 | 7901 | |
f11781c5 AK |
7902 | check_lib_no_libs dlm dlm_lock -lpthread |
7903 | if test $NOTFOUND = 0; then | |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
7905 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
7906 | DLM_LIBS="-ldlm -lpthread" | |
7907 | HAVE_DLM=yes | |
7908 | fi | |
8b1a3214 | 7909 | else |
f11781c5 AK |
7910 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
7911 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7913 | $as_echo "yes" >&6; } | |
7914 | HAVE_DLM=yes | |
8b1a3214 | 7915 | fi |
8b1a3214 AK |
7916 | fi |
7917 | ||
f11781c5 AK |
7918 | if test x$CLVMD = xall; then |
7919 | CLVMD=none | |
7920 | CLVMD_CMANAGERS="" | |
7921 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
7922 | if test x$HAVE_CMAN = xyes && \ |
7923 | test x$HAVE_DLM = xyes; then | |
7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
7925 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
7926 | CLVMD="$CLVMD,cman" | |
7927 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7928 | CLVMD_NEEDS_QDISKD=yes | |
7929 | fi | |
7930 | if test x$HAVE_COROSYNC = xyes && \ | |
7931 | test x$HAVE_QUORUM = xyes && \ | |
7932 | test x$HAVE_CPG = xyes && \ | |
7933 | test x$HAVE_DLM = xyes && \ | |
7934 | test x$HAVE_CONFDB = xyes; then | |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 | |
7936 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
7937 | CLVMD="$CLVMD,corosync" | |
7938 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7939 | fi | |
7940 | if test x$HAVE_COROSYNC = xyes && \ | |
7941 | test x$HAVE_CPG = xyes && \ | |
7942 | test x$HAVE_SALCK = xyes; then | |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
7944 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
7945 | CLVMD="$CLVMD,openais" | |
7946 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7947 | fi | |
7948 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7949 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
7950 | fi | |
7951 | if test x$CLVMD = xnone; then | |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
7953 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
7954 | fi |
7955 | fi | |
7956 | ||
ad6254c5 | 7957 | ################################################################################ |
f11781c5 | 7958 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 7959 | |
f11781c5 AK |
7960 | # Check whether --with-clvmd-pidfile was given. |
7961 | if test "${with_clvmd_pidfile+set}" = set; then : | |
7962 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 7963 | else |
f11781c5 | 7964 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 7965 | fi |
7a197a62 | 7966 | |
ad6254c5 | 7967 | |
f11781c5 AK |
7968 | cat >>confdefs.h <<_ACEOF |
7969 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 7970 | _ACEOF |
ad6254c5 | 7971 | |
ad6254c5 | 7972 | fi |
7a197a62 | 7973 | |
f11781c5 AK |
7974 | ################################################################################ |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
7976 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
7977 | # Check whether --enable-cmirrord was given. | |
7978 | if test "${enable_cmirrord+set}" = set; then : | |
7979 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
7980 | else | |
7981 | CMIRRORD=no | |
7982 | fi | |
7983 | ||
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
7985 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 7986 | |
f11781c5 | 7987 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 7988 | |
f11781c5 AK |
7989 | ################################################################################ |
7990 | if test "x$BUILD_CMIRRORD" = xyes; then | |
7991 | ||
7992 | # Check whether --with-cmirrord-pidfile was given. | |
7993 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
7994 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 7995 | else |
f11781c5 | 7996 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 7997 | fi |
ad6254c5 | 7998 | |
72b2cb61 | 7999 | |
f11781c5 AK |
8000 | cat >>confdefs.h <<_ACEOF |
8001 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8002 | _ACEOF |
8003 | ||
ad6254c5 AK |
8004 | fi |
8005 | ||
f11781c5 AK |
8006 | ################################################################################ |
8007 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8008 | if test x$PKGCONFIG_INIT != x1; then | |
8009 | pkg_config_init | |
8010 | fi | |
ad6254c5 | 8011 | |
f11781c5 AK |
8012 | pkg_failed=no |
8013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8014 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8015 | |
f11781c5 AK |
8016 | if test -n "$SACKPT_CFLAGS"; then |
8017 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8018 | elif test -n "$PKG_CONFIG"; then | |
8019 | if test -n "$PKG_CONFIG" && \ | |
8020 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8021 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8022 | ac_status=$? | |
8023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8024 | test $ac_status = 0; }; then | |
8025 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8026 | else |
f11781c5 AK |
8027 | pkg_failed=yes |
8028 | fi | |
8029 | else | |
8030 | pkg_failed=untried | |
8031 | fi | |
8032 | if test -n "$SACKPT_LIBS"; then | |
8033 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8034 | elif test -n "$PKG_CONFIG"; then | |
8035 | if test -n "$PKG_CONFIG" && \ | |
8036 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8037 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8038 | ac_status=$? |
f11781c5 AK |
8039 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8040 | test $ac_status = 0; }; then | |
8041 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8042 | else |
f11781c5 AK |
8043 | pkg_failed=yes |
8044 | fi | |
8045 | else | |
8046 | pkg_failed=untried | |
8047 | fi | |
539f4a77 ZK |
8048 | |
8049 | ||
539f4a77 | 8050 | |
f11781c5 AK |
8051 | if test $pkg_failed = yes; then |
8052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8053 | $as_echo "no" >&6; } | |
8054 | ||
8055 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8056 | _pkg_short_errors_supported=yes | |
539f4a77 | 8057 | else |
f11781c5 | 8058 | _pkg_short_errors_supported=no |
539f4a77 | 8059 | fi |
f11781c5 AK |
8060 | if test $_pkg_short_errors_supported = yes; then |
8061 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8062 | else | |
8063 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8064 | fi | |
8065 | # Put the nasty error message in config.log where it belongs | |
8066 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8067 | ||
8068 | as_fn_error $? "Package requirements (libSaCkpt) were not met: | |
8069 | ||
8070 | $SACKPT_PKG_ERRORS | |
8071 | ||
8072 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8073 | installed software in a non-standard prefix. | |
8074 | ||
8075 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8076 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8077 | See the pkg-config man page for more details." "$LINENO" 5 | |
8078 | ||
8079 | elif test $pkg_failed = untried; then | |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8081 | $as_echo "no" >&6; } | |
8082 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8083 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8084 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8085 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8086 | path to pkg-config. | |
8087 | ||
8088 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8089 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8090 | See the pkg-config man page for more details. | |
8091 | ||
8092 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8093 | See \`config.log' for more details" "$LINENO" 5; } | |
8094 | ||
539f4a77 | 8095 | else |
f11781c5 AK |
8096 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8097 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8099 | $as_echo "yes" >&6; } | |
539f4a77 | 8100 | |
539f4a77 | 8101 | fi |
f11781c5 | 8102 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8103 | |
f11781c5 AK |
8104 | pkg_failed=no |
8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8106 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8107 | |
f11781c5 AK |
8108 | if test -n "$CPG_CFLAGS"; then |
8109 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8110 | elif test -n "$PKG_CONFIG"; then | |
8111 | if test -n "$PKG_CONFIG" && \ | |
8112 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8113 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8114 | ac_status=$? |
f11781c5 AK |
8115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8116 | test $ac_status = 0; }; then | |
8117 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8118 | else |
f11781c5 AK |
8119 | pkg_failed=yes |
8120 | fi | |
8121 | else | |
8122 | pkg_failed=untried | |
8123 | fi | |
8124 | if test -n "$CPG_LIBS"; then | |
8125 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8126 | elif test -n "$PKG_CONFIG"; then | |
8127 | if test -n "$PKG_CONFIG" && \ | |
8128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8129 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8130 | ac_status=$? | |
8131 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8132 | test $ac_status = 0; }; then | |
8133 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8134 | else | |
8135 | pkg_failed=yes | |
8136 | fi | |
8137 | else | |
8138 | pkg_failed=untried | |
8139 | fi | |
8140 | ||
8141 | ||
8142 | ||
8143 | if test $pkg_failed = yes; then | |
8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8145 | $as_echo "no" >&6; } | |
ad6254c5 | 8146 | |
f11781c5 AK |
8147 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8148 | _pkg_short_errors_supported=yes | |
8149 | else | |
8150 | _pkg_short_errors_supported=no | |
ad6254c5 | 8151 | fi |
f11781c5 AK |
8152 | if test $_pkg_short_errors_supported = yes; then |
8153 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8154 | else | |
8155 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8156 | fi | |
8157 | # Put the nasty error message in config.log where it belongs | |
8158 | echo "$CPG_PKG_ERRORS" >&5 | |
8159 | ||
8160 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8161 | ||
8162 | $CPG_PKG_ERRORS | |
8163 | ||
8164 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8165 | installed software in a non-standard prefix. | |
8166 | ||
8167 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8168 | and CPG_LIBS to avoid the need to call pkg-config. | |
8169 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8170 | |
f11781c5 AK |
8171 | elif test $pkg_failed = untried; then |
8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8173 | $as_echo "no" >&6; } | |
8174 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8175 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8176 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8177 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8178 | path to pkg-config. | |
539f4a77 | 8179 | |
f11781c5 AK |
8180 | Alternatively, you may set the environment variables CPG_CFLAGS |
8181 | and CPG_LIBS to avoid the need to call pkg-config. | |
8182 | See the pkg-config man page for more details. | |
539f4a77 | 8183 | |
f11781c5 AK |
8184 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8185 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8186 | |
539f4a77 | 8187 | else |
f11781c5 AK |
8188 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8189 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8191 | $as_echo "yes" >&6; } | |
bc1024f8 | 8192 | |
f11781c5 AK |
8193 | fi |
8194 | fi | |
8195 | fi | |
8196 | ||
8197 | ################################################################################ | |
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8199 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8200 | # Check whether --enable-debug was given. | |
8201 | if test "${enable_debug+set}" = set; then : | |
8202 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8203 | else |
f11781c5 AK |
8204 | DEBUG=no |
8205 | fi | |
8206 | ||
8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8208 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8209 | |
f11781c5 AK |
8210 | if test x$DEBUG = xyes; then |
8211 | COPTIMISE_FLAG= | |
8212 | else | |
8213 | CSCOPE_CMD= | |
06e459df JM |
8214 | fi |
8215 | ||
f11781c5 AK |
8216 | ################################################################################ |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8218 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8219 | ||
8220 | # Check whether --with-optimisation was given. | |
8221 | if test "${with_optimisation+set}" = set; then : | |
8222 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8223 | fi |
539f4a77 | 8224 | |
f11781c5 AK |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8226 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8227 | |
f11781c5 AK |
8228 | ################################################################################ |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8230 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8231 | # Check whether --enable-profiling was given. | |
8232 | if test "${enable_profiling+set}" = set; then : | |
8233 | enableval=$enable_profiling; PROFILING=$enableval | |
8234 | else | |
8235 | PROFILING=no | |
539f4a77 ZK |
8236 | fi |
8237 | ||
f11781c5 AK |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8239 | $as_echo "$PROFILING" >&6; } | |
8240 | ||
8241 | if test "x$PROFILING" = xyes; then | |
8242 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8243 | # Extract the first word of "lcov", so it can be a program name with args. | |
8244 | set dummy lcov; ac_word=$2 | |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8246 | $as_echo_n "checking for $ac_word... " >&6; } | |
8247 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8248 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8249 | else |
f11781c5 AK |
8250 | case $LCOV in |
8251 | [\\/]* | ?:[\\/]*) | |
8252 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8253 | ;; | |
8254 | *) | |
8255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8256 | for as_dir in $PATH | |
8257 | do | |
8258 | IFS=$as_save_IFS | |
8259 | test -z "$as_dir" && as_dir=. | |
8260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8262 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8264 | break 2 | |
8265 | fi | |
8266 | done | |
8267 | done | |
8268 | IFS=$as_save_IFS | |
539f4a77 | 8269 | |
f11781c5 AK |
8270 | ;; |
8271 | esac | |
8272 | fi | |
8273 | LCOV=$ac_cv_path_LCOV | |
8274 | if test -n "$LCOV"; then | |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8276 | $as_echo "$LCOV" >&6; } | |
8277 | else | |
8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8279 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8280 | fi |
8281 | ||
bc1024f8 | 8282 | |
f11781c5 AK |
8283 | # Extract the first word of "genhtml", so it can be a program name with args. |
8284 | set dummy genhtml; ac_word=$2 | |
8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8286 | $as_echo_n "checking for $ac_word... " >&6; } | |
8287 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8288 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8289 | else |
f11781c5 AK |
8290 | case $GENHTML in |
8291 | [\\/]* | ?:[\\/]*) | |
8292 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8293 | ;; | |
8294 | *) | |
8295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8296 | for as_dir in $PATH | |
8297 | do | |
8298 | IFS=$as_save_IFS | |
8299 | test -z "$as_dir" && as_dir=. | |
8300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8302 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8304 | break 2 | |
8305 | fi | |
8306 | done | |
8307 | done | |
8308 | IFS=$as_save_IFS | |
8a2fc586 | 8309 | |
f11781c5 AK |
8310 | ;; |
8311 | esac | |
8312 | fi | |
8313 | GENHTML=$ac_cv_path_GENHTML | |
8314 | if test -n "$GENHTML"; then | |
8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8316 | $as_echo "$GENHTML" >&6; } | |
8317 | else | |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8319 | $as_echo "no" >&6; } | |
8320 | fi | |
8a2fc586 | 8321 | |
8a2fc586 | 8322 | |
f11781c5 AK |
8323 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8324 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8325 | fi | |
8326 | # Extract the first word of "genpng", so it can be a program name with args. | |
8327 | set dummy genpng; ac_word=$2 | |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8329 | $as_echo_n "checking for $ac_word... " >&6; } | |
8330 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8331 | $as_echo_n "(cached) " >&6 | |
8332 | else | |
8333 | case $GENPNG in | |
8334 | [\\/]* | ?:[\\/]*) | |
8335 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8336 | ;; | |
8337 | *) | |
8338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8339 | for as_dir in $PATH | |
8340 | do | |
8341 | IFS=$as_save_IFS | |
8342 | test -z "$as_dir" && as_dir=. | |
8343 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8345 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8347 | break 2 | |
8348 | fi | |
8349 | done | |
8350 | done | |
8351 | IFS=$as_save_IFS | |
ad6254c5 | 8352 | |
f11781c5 | 8353 | ;; |
7a197a62 | 8354 | esac |
f11781c5 AK |
8355 | fi |
8356 | GENPNG=$ac_cv_path_GENPNG | |
8357 | if test -n "$GENPNG"; then | |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8359 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8360 | else |
f11781c5 AK |
8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8362 | $as_echo "no" >&6; } | |
8363 | fi | |
8364 | ||
8365 | ||
8366 | if test -n "$GENPNG"; then | |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8368 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8369 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8371 | $as_echo "ok" >&6; } | |
8372 | GENHTML="$GENHTML --frames" | |
8373 | else | |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8375 | $as_echo "not supported" >&6; } | |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8377 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8378 | GENPNG= | |
8379 | fi | |
8380 | fi | |
8381 | fi | |
ad6254c5 | 8382 | |
f11781c5 AK |
8383 | ################################################################################ |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8385 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8386 | # Check whether --enable-testing was given. | |
8387 | if test "${enable_testing+set}" = set; then : | |
8388 | enableval=$enable_testing; TESTING=$enableval | |
8389 | else | |
8390 | TESTING=no | |
ad6254c5 | 8391 | fi |
7a197a62 | 8392 | |
f11781c5 AK |
8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8394 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8395 | |
f11781c5 AK |
8396 | if test "$TESTING" = yes; then |
8397 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
8398 | set dummy ruby1.9; ac_word=$2 | |
8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8400 | $as_echo_n "checking for $ac_word... " >&6; } | |
8401 | if test "${ac_cv_path_RUBY19+set}" = set; then : | |
8402 | $as_echo_n "(cached) " >&6 | |
8403 | else | |
8404 | case $RUBY19 in | |
8405 | [\\/]* | ?:[\\/]*) | |
8406 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
8407 | ;; | |
8408 | *) | |
8409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8410 | for as_dir in $PATH | |
8411 | do | |
8412 | IFS=$as_save_IFS | |
8413 | test -z "$as_dir" && as_dir=. | |
8414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8416 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
8417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8418 | break 2 | |
8419 | fi | |
bc1024f8 | 8420 | done |
f11781c5 AK |
8421 | done |
8422 | IFS=$as_save_IFS | |
ad6254c5 | 8423 | |
f11781c5 AK |
8424 | ;; |
8425 | esac | |
ad6254c5 | 8426 | fi |
f11781c5 AK |
8427 | RUBY19=$ac_cv_path_RUBY19 |
8428 | if test -n "$RUBY19"; then | |
8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5 | |
8430 | $as_echo "$RUBY19" >&6; } | |
ad6254c5 | 8431 | else |
f11781c5 AK |
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8433 | $as_echo "no" >&6; } | |
7a197a62 AK |
8434 | fi |
8435 | ||
ad6254c5 | 8436 | |
f11781c5 AK |
8437 | # Extract the first word of "valgrind", so it can be a program name with args. |
8438 | set dummy valgrind; ac_word=$2 | |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ec6a6fbe | 8440 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 8441 | if test "${ac_cv_path_VALGRIND+set}" = set; then : |
ec6a6fbe | 8442 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8443 | else |
f11781c5 | 8444 | case $VALGRIND in |
ad6254c5 | 8445 | [\\/]* | ?:[\\/]*) |
f11781c5 | 8446 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. |
ad6254c5 AK |
8447 | ;; |
8448 | *) | |
8449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8450 | for as_dir in $PATH | |
8451 | do | |
8452 | IFS=$as_save_IFS | |
8453 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 8454 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 8455 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
8456 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" |
8457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
ad6254c5 AK |
8458 | break 2 |
8459 | fi | |
8460 | done | |
f11781c5 | 8461 | done |
7a197a62 | 8462 | IFS=$as_save_IFS |
ad6254c5 AK |
8463 | |
8464 | ;; | |
8465 | esac | |
8466 | fi | |
f11781c5 AK |
8467 | VALGRIND=$ac_cv_path_VALGRIND |
8468 | if test -n "$VALGRIND"; then | |
8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 | |
8470 | $as_echo "$VALGRIND" >&6; } | |
ad6254c5 | 8471 | else |
f11781c5 | 8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 8473 | $as_echo "no" >&6; } |
ad6254c5 AK |
8474 | fi |
8475 | ||
7a197a62 | 8476 | |
f11781c5 AK |
8477 | if test -z "$RUBY19" -o -z "$VALGRIND"; then |
8478 | as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5 | |
8479 | fi | |
8480 | fi | |
ad6254c5 | 8481 | |
f11781c5 AK |
8482 | ################################################################################ |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8484 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8485 | # Check whether --enable-valgrind_pool was given. | |
8486 | if test "${enable_valgrind_pool+set}" = set; then : | |
8487 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8488 | else | |
8489 | VALGRIND_POOL=no | |
8490 | fi | |
8491 | ||
8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8493 | $as_echo "$VALGRIND_POOL" >&6; } | |
8494 | ||
8495 | if test "$VALGRIND_POOL" = yes; then | |
8496 | for ac_header in valgrind/memcheck.h | |
8497 | do : | |
8498 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8499 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8500 | cat >>confdefs.h <<_ACEOF | |
8501 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8502 | _ACEOF | |
ad6254c5 | 8503 | |
ad6254c5 | 8504 | else |
f11781c5 | 8505 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8506 | fi |
8507 | ||
f11781c5 AK |
8508 | done |
8509 | ||
8510 | ||
8511 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8512 | ||
ad6254c5 AK |
8513 | fi |
8514 | ||
8515 | ################################################################################ | |
f11781c5 AK |
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8517 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8518 | # Check whether --enable-devmapper was given. | |
8519 | if test "${enable_devmapper+set}" = set; then : | |
8520 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8521 | fi |
8522 | ||
f11781c5 AK |
8523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8524 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8525 | |
f11781c5 | 8526 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8527 | |
f11781c5 AK |
8528 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8529 | ||
8530 | fi | |
8531 | ||
8532 | ################################################################################ | |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8534 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8535 | # Check whether --enable-udev_sync was given. | |
8536 | if test "${enable_udev_sync+set}" = set; then : | |
8537 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8538 | else |
f11781c5 | 8539 | UDEV_SYNC=no |
7a197a62 | 8540 | fi |
ad6254c5 | 8541 | |
f11781c5 AK |
8542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8543 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8544 | |
f11781c5 | 8545 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8546 | if test x$PKGCONFIG_INIT != x1; then |
8547 | pkg_config_init | |
8548 | fi | |
7a197a62 | 8549 | |
d93275eb PR |
8550 | pkg_failed=no |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8552 | $as_echo_n "checking for UDEV... " >&6; } | |
8553 | ||
8554 | if test -n "$UDEV_CFLAGS"; then | |
8555 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8556 | elif test -n "$PKG_CONFIG"; then | |
8557 | if test -n "$PKG_CONFIG" && \ | |
8558 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8559 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8560 | ac_status=$? | |
8561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8562 | test $ac_status = 0; }; then | |
8563 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8564 | else |
d93275eb | 8565 | pkg_failed=yes |
f11781c5 | 8566 | fi |
d93275eb PR |
8567 | else |
8568 | pkg_failed=untried | |
f11781c5 | 8569 | fi |
d93275eb PR |
8570 | if test -n "$UDEV_LIBS"; then |
8571 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8572 | elif test -n "$PKG_CONFIG"; then | |
8573 | if test -n "$PKG_CONFIG" && \ | |
8574 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8575 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8576 | ac_status=$? | |
8577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8578 | test $ac_status = 0; }; then | |
8579 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8580 | else |
d93275eb | 8581 | pkg_failed=yes |
68f2de6d | 8582 | fi |
d93275eb PR |
8583 | else |
8584 | pkg_failed=untried | |
8585 | fi | |
8586 | ||
8587 | ||
8588 | ||
8589 | if test $pkg_failed = yes; then | |
8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8591 | $as_echo "no" >&6; } | |
8592 | ||
8593 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8594 | _pkg_short_errors_supported=yes | |
8595 | else | |
8596 | _pkg_short_errors_supported=no | |
8597 | fi | |
8598 | if test $_pkg_short_errors_supported = yes; then | |
8599 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8600 | else | |
8601 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8602 | fi | |
8603 | # Put the nasty error message in config.log where it belongs | |
8604 | echo "$UDEV_PKG_ERRORS" >&5 | |
8605 | ||
8606 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8607 | ||
8608 | $UDEV_PKG_ERRORS | |
8609 | ||
8610 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8611 | installed software in a non-standard prefix. | |
8612 | ||
8613 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8614 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8615 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8616 | |
d93275eb PR |
8617 | elif test $pkg_failed = untried; then |
8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8619 | $as_echo "no" >&6; } | |
8620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8622 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8623 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8624 | path to pkg-config. | |
8625 | ||
8626 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8627 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8628 | See the pkg-config man page for more details. | |
8629 | ||
8630 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8631 | See \`config.log' for more details" "$LINENO" 5; } | |
8632 | ||
8633 | else | |
8634 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8635 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8637 | $as_echo "yes" >&6; } | |
8638 | UDEV_PC="libudev" | |
8639 | fi | |
68f2de6d | 8640 | |
f11781c5 | 8641 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8642 | |
f11781c5 AK |
8643 | fi |
8644 | ||
8645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8646 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8647 | # Check whether --enable-udev_rules was given. | |
8648 | if test "${enable_udev_rules+set}" = set; then : | |
8649 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8650 | else |
f11781c5 | 8651 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8652 | fi |
8653 | ||
f11781c5 AK |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8655 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8656 | |
a5f46f6a | 8657 | ################################################################################ |
f11781c5 AK |
8658 | # Check whether --enable-compat was given. |
8659 | if test "${enable_compat+set}" = set; then : | |
8660 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8661 | else | |
8662 | DM_COMPAT=no | |
8663 | fi | |
a5f46f6a | 8664 | |
f11781c5 | 8665 | |
2061c0ec AK |
8666 | if test x$DM_COMPAT = xyes; then |
8667 | as_fn_error $? "--enable-compat is not currently supported. | |
8668 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
8669 | ioctl protocol is supported. | |
8670 | " "$LINENO" 5 | |
8671 | fi | |
8672 | ||
f11781c5 AK |
8673 | ################################################################################ |
8674 | # Check whether --enable-units-compat was given. | |
8675 | if test "${enable_units_compat+set}" = set; then : | |
8676 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8677 | else |
f11781c5 | 8678 | UNITS_COMPAT=no |
a5f46f6a AK |
8679 | fi |
8680 | ||
8681 | ||
f11781c5 | 8682 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8683 | |
f11781c5 AK |
8684 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8685 | ||
8686 | fi | |
8687 | ||
8688 | ################################################################################ | |
8689 | # Check whether --enable-ioctl was given. | |
8690 | if test "${enable_ioctl+set}" = set; then : | |
8691 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8692 | fi |
8693 | ||
a5f46f6a | 8694 | |
ad6254c5 | 8695 | ################################################################################ |
f11781c5 AK |
8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8697 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8698 | # Check whether --enable-o_direct was given. | |
8699 | if test "${enable_o_direct+set}" = set; then : | |
8700 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8701 | fi | |
ad6254c5 | 8702 | |
f11781c5 AK |
8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8704 | $as_echo "$ODIRECT" >&6; } | |
8705 | ||
8706 | if test x$ODIRECT = xyes; then | |
8707 | ||
8708 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8709 | |
ad6254c5 | 8710 | fi |
ad6254c5 | 8711 | |
f11781c5 AK |
8712 | ################################################################################ |
8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8714 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8715 | # Check whether --enable-applib was given. | |
8716 | if test "${enable_applib+set}" = set; then : | |
8717 | enableval=$enable_applib; APPLIB=$enableval | |
8718 | else | |
8719 | APPLIB=no | |
ad6254c5 | 8720 | fi |
7a197a62 | 8721 | |
f11781c5 AK |
8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8723 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8724 | |
f11781c5 AK |
8725 | test x$APPLIB = xyes \ |
8726 | && LVM2APP_LIB=-llvm2app \ | |
8727 | || LVM2APP_LIB= | |
ad6254c5 | 8728 | |
f11781c5 AK |
8729 | ################################################################################ |
8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8731 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8732 | # Check whether --enable-cmdlib was given. | |
8733 | if test "${enable_cmdlib+set}" = set; then : | |
8734 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8735 | else | |
8736 | CMDLIB=no | |
ad6254c5 | 8737 | fi |
7a197a62 | 8738 | |
f11781c5 AK |
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8740 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8741 | |
f11781c5 AK |
8742 | test x$CMDLIB = xyes \ |
8743 | && LVM2CMD_LIB=-llvm2cmd \ | |
8744 | || LVM2CMD_LIB= | |
8745 | ||
8746 | ################################################################################ | |
8747 | # Check whether --enable-pkgconfig was given. | |
8748 | if test "${enable_pkgconfig+set}" = set; then : | |
8749 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8750 | else |
f11781c5 | 8751 | PKGCONFIG=no |
ad6254c5 | 8752 | fi |
ad6254c5 | 8753 | |
ad6254c5 | 8754 | |
f11781c5 AK |
8755 | ################################################################################ |
8756 | # Check whether --enable-write_install was given. | |
8757 | if test "${enable_write_install+set}" = set; then : | |
8758 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 8759 | else |
f11781c5 | 8760 | WRITE_INSTALL=no |
ad6254c5 AK |
8761 | fi |
8762 | ||
ad6254c5 | 8763 | |
f11781c5 AK |
8764 | ################################################################################ |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
8766 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
8767 | # Check whether --enable-fsadm was given. | |
8768 | if test "${enable_fsadm+set}" = set; then : | |
8769 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
8770 | fi |
8771 | ||
f11781c5 AK |
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
8773 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8774 | |
f11781c5 AK |
8775 | ################################################################################ |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
8777 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
8778 | # Check whether --enable-dmeventd was given. | |
8779 | if test "${enable_dmeventd+set}" = set; then : | |
8780 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8781 | fi | |
ad6254c5 | 8782 | |
f11781c5 AK |
8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
8784 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 8785 | |
f11781c5 | 8786 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 8787 | |
f11781c5 AK |
8788 | if test x$DMEVENTD = xyes; then |
8789 | if test x$MIRRORS != xinternal; then | |
8790 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
8791 | " "$LINENO" 5 | |
8792 | fi | |
8793 | if test x$CMDLIB = xno; then | |
8794 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
8795 | " "$LINENO" 5 | |
8796 | fi | |
8797 | fi | |
ad6254c5 | 8798 | |
f11781c5 | 8799 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 8800 | |
f11781c5 | 8801 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 8802 | |
f11781c5 | 8803 | fi |
ad6254c5 | 8804 | |
f11781c5 | 8805 | ################################################################################ |
ad6254c5 | 8806 | |
f11781c5 AK |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
8808 | $as_echo_n "checking for getline in -lc... " >&6; } | |
8809 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 8810 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8811 | else |
f11781c5 AK |
8812 | ac_check_lib_save_LIBS=$LIBS |
8813 | LIBS="-lc $LIBS" | |
8814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8815 | /* end confdefs.h. */ |
f11781c5 AK |
8816 | |
8817 | /* Override any GCC internal prototype to avoid an error. | |
8818 | Use char because int might match the return type of a GCC | |
8819 | builtin and then its argument prototype would still apply. */ | |
8820 | #ifdef __cplusplus | |
8821 | extern "C" | |
8822 | #endif | |
8823 | char getline (); | |
8824 | int | |
8825 | main () | |
8826 | { | |
8827 | return getline (); | |
8828 | ; | |
8829 | return 0; | |
8830 | } | |
ad6254c5 | 8831 | _ACEOF |
f11781c5 AK |
8832 | if ac_fn_c_try_link "$LINENO"; then : |
8833 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 8834 | else |
f11781c5 AK |
8835 | ac_cv_lib_c_getline=no |
8836 | fi | |
8837 | rm -f core conftest.err conftest.$ac_objext \ | |
8838 | conftest$ac_exeext conftest.$ac_ext | |
8839 | LIBS=$ac_check_lib_save_LIBS | |
8840 | fi | |
8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
8842 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
8843 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
8844 | ||
8845 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 8846 | |
ad6254c5 | 8847 | fi |
7a197a62 | 8848 | |
ad6254c5 | 8849 | |
f11781c5 AK |
8850 | ################################################################################ |
8851 | ||
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
8853 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
8854 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
8855 | $as_echo_n "(cached) " >&6 | |
8856 | else | |
8857 | ac_check_lib_save_LIBS=$LIBS | |
8858 | LIBS="-lc $LIBS" | |
8859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8860 | /* end confdefs.h. */ |
f11781c5 AK |
8861 | |
8862 | /* Override any GCC internal prototype to avoid an error. | |
8863 | Use char because int might match the return type of a GCC | |
8864 | builtin and then its argument prototype would still apply. */ | |
8865 | #ifdef __cplusplus | |
8866 | extern "C" | |
8867 | #endif | |
8868 | char canonicalize_file_name (); | |
8869 | int | |
8870 | main () | |
8871 | { | |
8872 | return canonicalize_file_name (); | |
8873 | ; | |
8874 | return 0; | |
8875 | } | |
ad6254c5 | 8876 | _ACEOF |
f11781c5 AK |
8877 | if ac_fn_c_try_link "$LINENO"; then : |
8878 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 8879 | else |
f11781c5 AK |
8880 | ac_cv_lib_c_canonicalize_file_name=no |
8881 | fi | |
8882 | rm -f core conftest.err conftest.$ac_objext \ | |
8883 | conftest$ac_exeext conftest.$ac_ext | |
8884 | LIBS=$ac_check_lib_save_LIBS | |
8885 | fi | |
8886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
8887 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
8888 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
8889 | ||
8890 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 8891 | |
ad6254c5 | 8892 | fi |
7a197a62 | 8893 | |
ad6254c5 | 8894 | |
f11781c5 AK |
8895 | ################################################################################ |
8896 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8897 | then exec_prefix=""; | |
8898 | fi; | |
7a197a62 | 8899 | |
f11781c5 AK |
8900 | ################################################################################ |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8902 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8903 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 8904 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8905 | else |
f11781c5 AK |
8906 | ac_check_lib_save_LIBS=$LIBS |
8907 | LIBS="-ldl $LIBS" | |
8908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8909 | /* end confdefs.h. */ | |
ad6254c5 | 8910 | |
f11781c5 AK |
8911 | /* Override any GCC internal prototype to avoid an error. |
8912 | Use char because int might match the return type of a GCC | |
8913 | builtin and then its argument prototype would still apply. */ | |
8914 | #ifdef __cplusplus | |
8915 | extern "C" | |
8916 | #endif | |
8917 | char dlopen (); | |
8918 | int | |
8919 | main () | |
8920 | { | |
8921 | return dlopen (); | |
8922 | ; | |
8923 | return 0; | |
8924 | } | |
ad6254c5 | 8925 | _ACEOF |
f11781c5 AK |
8926 | if ac_fn_c_try_link "$LINENO"; then : |
8927 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 8928 | else |
f11781c5 | 8929 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 8930 | fi |
f11781c5 AK |
8931 | rm -f core conftest.err conftest.$ac_objext \ |
8932 | conftest$ac_exeext conftest.$ac_ext | |
8933 | LIBS=$ac_check_lib_save_LIBS | |
8934 | fi | |
8935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8936 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8937 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 8938 | |
ad6254c5 | 8939 | |
f11781c5 | 8940 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 8941 | |
f11781c5 AK |
8942 | DL_LIBS="-ldl" |
8943 | HAVE_LIBDL=yes | |
8944 | else | |
795ca3e5 | 8945 | |
f11781c5 AK |
8946 | DL_LIBS= |
8947 | HAVE_LIBDL=no | |
8948 | fi | |
8106cdd5 | 8949 | |
ad6254c5 | 8950 | |
f11781c5 AK |
8951 | ################################################################################ |
8952 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8953 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 8954 | -o "x$RAID" = xshared \ |
f11781c5 AK |
8955 | \) -a "x$STATIC_LINK" = xyes ]; |
8956 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
8957 | " "$LINENO" 5 | |
8958 | fi | |
ad6254c5 | 8959 | |
f11781c5 AK |
8960 | ################################################################################ |
8961 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
8962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
8963 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
8964 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 8965 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 8966 | else |
f11781c5 AK |
8967 | ac_check_lib_save_LIBS=$LIBS |
8968 | LIBS="-lpthread $LIBS" | |
8969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8970 | /* end confdefs.h. */ |
8a2fc586 | 8971 | |
f11781c5 AK |
8972 | /* Override any GCC internal prototype to avoid an error. |
8973 | Use char because int might match the return type of a GCC | |
8974 | builtin and then its argument prototype would still apply. */ | |
8975 | #ifdef __cplusplus | |
8976 | extern "C" | |
ad6254c5 | 8977 | #endif |
f11781c5 AK |
8978 | char pthread_mutex_lock (); |
8979 | int | |
8980 | main () | |
8981 | { | |
8982 | return pthread_mutex_lock (); | |
8983 | ; | |
8984 | return 0; | |
8985 | } | |
8986 | _ACEOF | |
8987 | if ac_fn_c_try_link "$LINENO"; then : | |
8988 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
8989 | else | |
8990 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
8991 | fi | |
8992 | rm -f core conftest.err conftest.$ac_objext \ | |
8993 | conftest$ac_exeext conftest.$ac_ext | |
8994 | LIBS=$ac_check_lib_save_LIBS | |
8995 | fi | |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
8997 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
8998 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
8999 | PTHREAD_LIBS="-lpthread" | |
9000 | else | |
9001 | hard_bailout | |
9002 | fi | |
9003 | ||
9004 | fi | |
9005 | ||
9006 | ################################################################################ | |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9008 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9009 | # Check whether --enable-selinux was given. | |
9010 | if test "${enable_selinux+set}" = set; then : | |
9011 | enableval=$enable_selinux; SELINUX=$enableval | |
9012 | fi | |
9013 | ||
9014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9015 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9016 | |
f11781c5 AK |
9017 | ################################################################################ |
9018 | if test x$SELINUX = xyes; then | |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9020 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9021 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9022 | $as_echo_n "(cached) " >&6 | |
9023 | else | |
9024 | ac_check_lib_save_LIBS=$LIBS | |
9025 | LIBS="-lsepol $LIBS" | |
9026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9027 | /* end confdefs.h. */ | |
8a2fc586 | 9028 | |
7a197a62 AK |
9029 | /* Override any GCC internal prototype to avoid an error. |
9030 | Use char because int might match the return type of a GCC | |
9031 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9032 | #ifdef __cplusplus |
9033 | extern "C" | |
ad6254c5 | 9034 | #endif |
f11781c5 | 9035 | char sepol_check_context (); |
ad6254c5 AK |
9036 | int |
9037 | main () | |
9038 | { | |
f11781c5 | 9039 | return sepol_check_context (); |
ad6254c5 AK |
9040 | ; |
9041 | return 0; | |
9042 | } | |
9043 | _ACEOF | |
f11781c5 AK |
9044 | if ac_fn_c_try_link "$LINENO"; then : |
9045 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9046 | else |
f11781c5 AK |
9047 | ac_cv_lib_sepol_sepol_check_context=no |
9048 | fi | |
9049 | rm -f core conftest.err conftest.$ac_objext \ | |
9050 | conftest$ac_exeext conftest.$ac_ext | |
9051 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9052 | fi |
f11781c5 AK |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9054 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9055 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9056 | |
80992638 | 9057 | |
f11781c5 AK |
9058 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9059 | ||
9060 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9061 | fi |
795ca3e5 | 9062 | |
f11781c5 AK |
9063 | |
9064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9065 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9066 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9067 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9068 | else |
f11781c5 AK |
9069 | ac_check_lib_save_LIBS=$LIBS |
9070 | LIBS="-lselinux $LIBS" | |
9071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9072 | /* end confdefs.h. */ |
80992638 | 9073 | |
7a197a62 AK |
9074 | /* Override any GCC internal prototype to avoid an error. |
9075 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9076 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9077 | #ifdef __cplusplus |
9078 | extern "C" | |
9079 | #endif | |
f11781c5 | 9080 | char is_selinux_enabled (); |
ad6254c5 AK |
9081 | int |
9082 | main () | |
9083 | { | |
f11781c5 | 9084 | return is_selinux_enabled (); |
ad6254c5 AK |
9085 | ; |
9086 | return 0; | |
9087 | } | |
9088 | _ACEOF | |
f11781c5 AK |
9089 | if ac_fn_c_try_link "$LINENO"; then : |
9090 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9091 | else |
f11781c5 | 9092 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9093 | fi |
f11781c5 AK |
9094 | rm -f core conftest.err conftest.$ac_objext \ |
9095 | conftest$ac_exeext conftest.$ac_ext | |
9096 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9097 | fi |
f11781c5 AK |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9099 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9100 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9101 | |
f11781c5 AK |
9102 | for ac_header in selinux/selinux.h |
9103 | do : | |
9104 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9105 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9106 | cat >>confdefs.h <<_ACEOF | |
9107 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9108 | _ACEOF |
795ca3e5 | 9109 | |
25fbec5b | 9110 | else |
f11781c5 | 9111 | hard_bailout |
795ca3e5 | 9112 | fi |
795ca3e5 | 9113 | |
f11781c5 | 9114 | done |
795ca3e5 | 9115 | |
f11781c5 AK |
9116 | for ac_header in selinux/label.h |
9117 | do : | |
9118 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9119 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9120 | cat >>confdefs.h <<_ACEOF | |
9121 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9122 | _ACEOF |
ad6254c5 | 9123 | |
ad6254c5 | 9124 | fi |
7a197a62 | 9125 | |
f11781c5 | 9126 | done |
7a197a62 | 9127 | |
ad6254c5 | 9128 | |
f11781c5 | 9129 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9130 | |
f11781c5 AK |
9131 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9132 | SELINUX_PC="libselinux" | |
9133 | HAVE_SELINUX=yes | |
ad6254c5 | 9134 | else |
8106cdd5 | 9135 | |
f11781c5 AK |
9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9137 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9138 | SELINUX_LIBS= | |
9139 | SELINUX_PC= | |
9140 | HAVE_SELINUX=no | |
795ca3e5 | 9141 | fi |
ad6254c5 | 9142 | |
795ca3e5 AK |
9143 | fi |
9144 | ||
f11781c5 AK |
9145 | ################################################################################ |
9146 | if test x$REALTIME = xyes; then | |
9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9148 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9149 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9150 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9151 | else |
f11781c5 AK |
9152 | ac_check_lib_save_LIBS=$LIBS |
9153 | LIBS="-lrt $LIBS" | |
9154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9155 | /* end confdefs.h. */ |
ad6254c5 | 9156 | |
f11781c5 AK |
9157 | /* Override any GCC internal prototype to avoid an error. |
9158 | Use char because int might match the return type of a GCC | |
9159 | builtin and then its argument prototype would still apply. */ | |
9160 | #ifdef __cplusplus | |
9161 | extern "C" | |
9162 | #endif | |
9163 | char clock_gettime (); | |
ad6254c5 AK |
9164 | int |
9165 | main () | |
9166 | { | |
f11781c5 | 9167 | return clock_gettime (); |
ad6254c5 AK |
9168 | ; |
9169 | return 0; | |
9170 | } | |
9171 | _ACEOF | |
f11781c5 AK |
9172 | if ac_fn_c_try_link "$LINENO"; then : |
9173 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9174 | else |
f11781c5 | 9175 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9176 | fi |
f11781c5 AK |
9177 | rm -f core conftest.err conftest.$ac_objext \ |
9178 | conftest$ac_exeext conftest.$ac_ext | |
9179 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9180 | fi |
f11781c5 AK |
9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9182 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9183 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9184 | HAVE_REALTIME=yes | |
9185 | else | |
9186 | HAVE_REALTIME=no | |
8106cdd5 | 9187 | fi |
ad6254c5 | 9188 | |
ad6254c5 | 9189 | |
f11781c5 | 9190 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9191 | |
f11781c5 | 9192 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9193 | |
f11781c5 AK |
9194 | LIBS="-lrt $LIBS" |
9195 | else | |
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9197 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9198 | fi | |
9199 | fi | |
9200 | ||
9201 | ################################################################################ | |
9202 | for ac_header in getopt.h | |
9203 | do : | |
9204 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9205 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9206 | cat >>confdefs.h <<_ACEOF | |
9207 | #define HAVE_GETOPT_H 1 | |
9208 | _ACEOF | |
9209 | ||
9210 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9211 | |
ad6254c5 | 9212 | fi |
7a197a62 | 9213 | |
f11781c5 | 9214 | done |
ad6254c5 | 9215 | |
7a197a62 | 9216 | |
f11781c5 AK |
9217 | ################################################################################ |
9218 | if test x$READLINE != xno; then | |
9219 | lvm_saved_libs=$LIBS | |
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9221 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9222 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9223 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9224 | else |
f11781c5 AK |
9225 | ac_func_search_save_LIBS=$LIBS |
9226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9227 | /* end confdefs.h. */ | |
ad6254c5 | 9228 | |
f11781c5 AK |
9229 | /* Override any GCC internal prototype to avoid an error. |
9230 | Use char because int might match the return type of a GCC | |
9231 | builtin and then its argument prototype would still apply. */ | |
9232 | #ifdef __cplusplus | |
9233 | extern "C" | |
9234 | #endif | |
9235 | char tgetent (); | |
9236 | int | |
9237 | main () | |
9238 | { | |
9239 | return tgetent (); | |
9240 | ; | |
9241 | return 0; | |
9242 | } | |
ad6254c5 | 9243 | _ACEOF |
f11781c5 AK |
9244 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9245 | if test -z "$ac_lib"; then | |
9246 | ac_res="none required" | |
9247 | else | |
9248 | ac_res=-l$ac_lib | |
9249 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9250 | fi | |
9251 | if ac_fn_c_try_link "$LINENO"; then : | |
9252 | ac_cv_search_tgetent=$ac_res | |
9253 | fi | |
9254 | rm -f core conftest.err conftest.$ac_objext \ | |
9255 | conftest$ac_exeext | |
9256 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9257 | break | |
9258 | fi | |
9259 | done | |
9260 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9261 | |
80992638 | 9262 | else |
f11781c5 | 9263 | ac_cv_search_tgetent=no |
b896caa1 | 9264 | fi |
f11781c5 AK |
9265 | rm conftest.$ac_ext |
9266 | LIBS=$ac_func_search_save_LIBS | |
9267 | fi | |
9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9269 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9270 | ac_res=$ac_cv_search_tgetent | |
9271 | if test "$ac_res" != no; then : | |
9272 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9273 | READLINE_LIBS=$ac_cv_search_tgetent | |
9274 | else | |
ad6254c5 | 9275 | |
f11781c5 AK |
9276 | if test "$READLINE" = yes; then |
9277 | as_fn_error $? "termcap could not be found which is required for the | |
9278 | --enable-readline option (which is enabled by default). Either disable readline | |
9279 | support with --disable-readline or download and install termcap from: | |
9280 | ftp.gnu.org/gnu/termcap | |
9281 | Note: if you are using precompiled packages you will also need the development | |
9282 | package as well (which may be called termcap-devel or something similar). | |
9283 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9284 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9285 | fi | |
9286 | fi | |
b896caa1 | 9287 | |
f11781c5 AK |
9288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9289 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9290 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9291 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9292 | else |
f11781c5 AK |
9293 | ac_check_lib_save_LIBS=$LIBS |
9294 | LIBS="-lreadline $LIBS" | |
9295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9296 | /* end confdefs.h. */ |
8a2fc586 | 9297 | |
f11781c5 AK |
9298 | /* Override any GCC internal prototype to avoid an error. |
9299 | Use char because int might match the return type of a GCC | |
9300 | builtin and then its argument prototype would still apply. */ | |
9301 | #ifdef __cplusplus | |
9302 | extern "C" | |
ad6254c5 | 9303 | #endif |
f11781c5 AK |
9304 | char readline (); |
9305 | int | |
9306 | main () | |
9307 | { | |
9308 | return readline (); | |
9309 | ; | |
9310 | return 0; | |
9311 | } | |
9312 | _ACEOF | |
9313 | if ac_fn_c_try_link "$LINENO"; then : | |
9314 | ac_cv_lib_readline_readline=yes | |
9315 | else | |
9316 | ac_cv_lib_readline_readline=no | |
9317 | fi | |
9318 | rm -f core conftest.err conftest.$ac_objext \ | |
9319 | conftest$ac_exeext conftest.$ac_ext | |
9320 | LIBS=$ac_check_lib_save_LIBS | |
9321 | fi | |
9322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9323 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9324 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9325 | ||
8a2fc586 | 9326 | |
f11781c5 AK |
9327 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9328 | ||
9329 | LIBS=$lvm_saved_libs | |
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9331 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9332 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9333 | $as_echo_n "(cached) " >&6 | |
9334 | else | |
9335 | ac_check_lib_save_LIBS=$LIBS | |
9336 | LIBS="-lreadline $LIBS" | |
9337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9338 | /* end confdefs.h. */ | |
8a2fc586 | 9339 | |
7a197a62 AK |
9340 | /* Override any GCC internal prototype to avoid an error. |
9341 | Use char because int might match the return type of a GCC | |
9342 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9343 | #ifdef __cplusplus |
9344 | extern "C" | |
ad6254c5 | 9345 | #endif |
f11781c5 | 9346 | char rl_line_buffer (); |
ad6254c5 AK |
9347 | int |
9348 | main () | |
9349 | { | |
f11781c5 | 9350 | return rl_line_buffer (); |
ad6254c5 AK |
9351 | ; |
9352 | return 0; | |
9353 | } | |
9354 | _ACEOF | |
f11781c5 AK |
9355 | if ac_fn_c_try_link "$LINENO"; then : |
9356 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9357 | else |
f11781c5 AK |
9358 | ac_cv_lib_readline_rl_line_buffer=no |
9359 | fi | |
9360 | rm -f core conftest.err conftest.$ac_objext \ | |
9361 | conftest$ac_exeext conftest.$ac_ext | |
9362 | LIBS=$ac_check_lib_save_LIBS | |
9363 | fi | |
9364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9365 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9366 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9367 | READLINE_LIBS="-lreadline" | |
9368 | else | |
9369 | ||
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9371 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9372 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9373 | |
ad6254c5 | 9374 | fi |
7a197a62 | 9375 | |
f11781c5 AK |
9376 | else |
9377 | ||
9378 | READLINE_LIBS= | |
9379 | if test "$READLINE" = yes; then | |
9380 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9381 | --enable-readline option (which is enabled by default). Either disable readline | |
9382 | support with --disable-readline or download and install readline from: | |
9383 | ftp.gnu.org/gnu/readline | |
9384 | Note: if you are using precompiled packages you will also need the development | |
9385 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9386 | fi | |
ad6254c5 | 9387 | fi |
f11781c5 AK |
9388 | |
9389 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9390 | for ac_func in rl_completion_matches | |
9391 | do : | |
9392 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9393 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9394 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9395 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9396 | _ACEOF |
9397 | ||
ad6254c5 AK |
9398 | fi |
9399 | done | |
9400 | ||
f11781c5 | 9401 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9402 | fi |
9403 | ||
f11781c5 AK |
9404 | ################################################################################ |
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9406 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9407 | # Check whether --enable-nls was given. | |
9408 | if test "${enable_nls+set}" = set; then : | |
9409 | enableval=$enable_nls; INTL=$enableval | |
9410 | else | |
9411 | INTL=no | |
9412 | fi | |
d911ec67 | 9413 | |
f11781c5 AK |
9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9415 | $as_echo "$INTL" >&6; } | |
9416 | ||
9417 | if test x$INTL = xyes; then | |
9418 | # FIXME - Move this - can be device-mapper too | |
9419 | INTL_PACKAGE="lvm2" | |
9420 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9421 | set dummy msgfmt; ac_word=$2 | |
9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9423 | $as_echo_n "checking for $ac_word... " >&6; } | |
9424 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9425 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9426 | else |
f11781c5 AK |
9427 | case $MSGFMT in |
9428 | [\\/]* | ?:[\\/]*) | |
9429 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9430 | ;; | |
9431 | *) | |
9432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9433 | for as_dir in $PATH | |
9434 | do | |
9435 | IFS=$as_save_IFS | |
9436 | test -z "$as_dir" && as_dir=. | |
9437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9439 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9441 | break 2 | |
9442 | fi | |
9443 | done | |
9444 | done | |
9445 | IFS=$as_save_IFS | |
9446 | ||
9447 | ;; | |
d911ec67 | 9448 | esac |
f11781c5 AK |
9449 | fi |
9450 | MSGFMT=$ac_cv_path_MSGFMT | |
9451 | if test -n "$MSGFMT"; then | |
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9453 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9454 | else |
f11781c5 AK |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9456 | $as_echo "no" >&6; } | |
9457 | fi | |
d911ec67 | 9458 | |
f11781c5 AK |
9459 | |
9460 | if [ "x$MSGFMT" == x ]; | |
9461 | then as_fn_error $? "msgfmt not found in path $PATH | |
9462 | " "$LINENO" 5 | |
9463 | fi; | |
9464 | ||
9465 | ||
9466 | # Check whether --with-localedir was given. | |
9467 | if test "${with_localedir+set}" = set; then : | |
9468 | withval=$with_localedir; LOCALEDIR=$withval | |
9469 | else | |
9470 | LOCALEDIR='${prefix}/share/locale' | |
9471 | fi | |
9472 | ||
9473 | fi | |
9474 | ||
9475 | ################################################################################ | |
9476 | ||
9477 | # Check whether --with-confdir was given. | |
9478 | if test "${with_confdir+set}" = set; then : | |
9479 | withval=$with_confdir; CONFDIR=$withval | |
9480 | else | |
9481 | CONFDIR="/etc" | |
9482 | fi | |
9483 | ||
9484 | ||
9485 | ||
9486 | # Check whether --with-staticdir was given. | |
9487 | if test "${with_staticdir+set}" = set; then : | |
9488 | withval=$with_staticdir; STATICDIR=$withval | |
9489 | else | |
9490 | STATICDIR='${exec_prefix}/sbin' | |
9491 | fi | |
9492 | ||
9493 | ||
9494 | ||
9495 | # Check whether --with-usrlibdir was given. | |
9496 | if test "${with_usrlibdir+set}" = set; then : | |
9497 | withval=$with_usrlibdir; usrlibdir=$withval | |
9498 | else | |
9499 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9500 | fi |
9501 | ||
d911ec67 | 9502 | |
d911ec67 | 9503 | |
f11781c5 AK |
9504 | # Check whether --with-usrsbindir was given. |
9505 | if test "${with_usrsbindir+set}" = set; then : | |
9506 | withval=$with_usrsbindir; usrsbindir=$withval | |
9507 | else | |
9508 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9509 | fi |
9510 | ||
d911ec67 | 9511 | |
f11781c5 | 9512 | ################################################################################ |
d911ec67 | 9513 | |
f11781c5 AK |
9514 | # Check whether --with-udev_prefix was given. |
9515 | if test "${with_udev_prefix+set}" = set; then : | |
9516 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9517 | else |
f11781c5 | 9518 | udev_prefix='${exec_prefix}' |
d911ec67 | 9519 | fi |
d911ec67 | 9520 | |
f11781c5 AK |
9521 | |
9522 | ||
9523 | # Check whether --with-udevdir was given. | |
9524 | if test "${with_udevdir+set}" = set; then : | |
9525 | withval=$with_udevdir; udevdir=$withval | |
9526 | else | |
9527 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9528 | fi |
f11781c5 AK |
9529 | |
9530 | ||
9531 | ################################################################################ | |
9532 | if test x$READLINE = xyes; then | |
9533 | for ac_header in readline/readline.h readline/history.h | |
9534 | do : | |
9535 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9536 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9537 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9538 | cat >>confdefs.h <<_ACEOF |
9539 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9540 | _ACEOF | |
9541 | ||
9542 | else | |
f11781c5 | 9543 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9544 | fi |
9545 | ||
9546 | done | |
9547 | ||
9548 | fi | |
9549 | ||
f11781c5 AK |
9550 | if test x$CLVMD != xnone; then |
9551 | 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 | |
9552 | do : | |
9553 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9554 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9555 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9556 | cat >>confdefs.h <<_ACEOF | |
9557 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9558 | _ACEOF |
ad6254c5 | 9559 | |
f11781c5 AK |
9560 | else |
9561 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9562 | fi |
7a197a62 | 9563 | |
f11781c5 | 9564 | done |
ad6254c5 | 9565 | |
f11781c5 AK |
9566 | for ac_func in dup2 getmntent memmove select socket |
9567 | do : | |
9568 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9569 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9570 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9571 | cat >>confdefs.h <<_ACEOF | |
9572 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9573 | _ACEOF |
ad6254c5 | 9574 | |
f11781c5 AK |
9575 | else |
9576 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9577 | fi |
f11781c5 | 9578 | done |
7a197a62 | 9579 | |
f11781c5 AK |
9580 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9581 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9583 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9584 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9585 | $as_echo_n "(cached) " >&6 | |
9586 | else | |
9587 | ac_func_search_save_LIBS=$LIBS | |
9588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9589 | /* end confdefs.h. */ | |
ad6254c5 | 9590 | |
f11781c5 AK |
9591 | /* Override any GCC internal prototype to avoid an error. |
9592 | Use char because int might match the return type of a GCC | |
9593 | builtin and then its argument prototype would still apply. */ | |
9594 | #ifdef __cplusplus | |
9595 | extern "C" | |
9596 | #endif | |
9597 | char getmntent (); | |
9598 | int | |
9599 | main () | |
9600 | { | |
9601 | return getmntent (); | |
9602 | ; | |
9603 | return 0; | |
9604 | } | |
9605 | _ACEOF | |
9606 | for ac_lib in '' sun seq gen; do | |
9607 | if test -z "$ac_lib"; then | |
9608 | ac_res="none required" | |
9609 | else | |
9610 | ac_res=-l$ac_lib | |
9611 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9612 | fi | |
9613 | if ac_fn_c_try_link "$LINENO"; then : | |
9614 | ac_cv_search_getmntent=$ac_res | |
9615 | fi | |
9616 | rm -f core conftest.err conftest.$ac_objext \ | |
9617 | conftest$ac_exeext | |
9618 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9619 | break | |
9620 | fi | |
9621 | done | |
9622 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9623 | |
ad6254c5 | 9624 | else |
f11781c5 | 9625 | ac_cv_search_getmntent=no |
795ca3e5 | 9626 | fi |
f11781c5 AK |
9627 | rm conftest.$ac_ext |
9628 | LIBS=$ac_func_search_save_LIBS | |
9629 | fi | |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9631 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9632 | ac_res=$ac_cv_search_getmntent | |
9633 | if test "$ac_res" != no; then : | |
9634 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9635 | ac_cv_func_getmntent=yes | |
9636 | ||
9637 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9638 | |
f11781c5 AK |
9639 | else |
9640 | ac_cv_func_getmntent=no | |
8106cdd5 | 9641 | fi |
f11781c5 AK |
9642 | |
9643 | ||
9644 | for ac_header in sys/select.h sys/socket.h | |
9645 | do : | |
9646 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9647 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9648 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9649 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9650 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9651 | _ACEOF |
795ca3e5 | 9652 | |
795ca3e5 AK |
9653 | fi |
9654 | ||
ad6254c5 | 9655 | done |
80992638 | 9656 | |
f11781c5 AK |
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9658 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9659 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9660 | $as_echo_n "(cached) " >&6 |
83912faa | 9661 | else |
f11781c5 AK |
9662 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9663 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9664 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9666 | /* end confdefs.h. */ |
9667 | $ac_includes_default | |
f11781c5 AK |
9668 | #ifdef HAVE_SYS_SELECT_H |
9669 | # include <sys/select.h> | |
9670 | #endif | |
9671 | #ifdef HAVE_SYS_SOCKET_H | |
9672 | # include <sys/socket.h> | |
9673 | #endif | |
9674 | ||
9675 | int | |
9676 | main () | |
9677 | { | |
9678 | extern int select ($ac_arg1, | |
9679 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9680 | $ac_arg5); | |
9681 | ; | |
9682 | return 0; | |
9683 | } | |
ad6254c5 | 9684 | _ACEOF |
f11781c5 AK |
9685 | if ac_fn_c_try_compile "$LINENO"; then : |
9686 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9687 | fi | |
9688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9689 | done | |
9690 | done | |
9691 | done | |
9692 | # Provide a safe default value. | |
9693 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9694 | |
ad6254c5 | 9695 | fi |
f11781c5 AK |
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9697 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9698 | ac_save_IFS=$IFS; IFS=',' | |
9699 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9700 | IFS=$ac_save_IFS | |
9701 | shift | |
7a197a62 | 9702 | |
f11781c5 AK |
9703 | cat >>confdefs.h <<_ACEOF |
9704 | #define SELECT_TYPE_ARG1 $1 | |
9705 | _ACEOF | |
ad6254c5 | 9706 | |
f11781c5 AK |
9707 | |
9708 | cat >>confdefs.h <<_ACEOF | |
9709 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9710 | _ACEOF |
f11781c5 AK |
9711 | |
9712 | ||
9713 | cat >>confdefs.h <<_ACEOF | |
9714 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9715 | _ACEOF |
ad6254c5 | 9716 | |
f11781c5 AK |
9717 | rm -f conftest* |
9718 | ||
ad6254c5 | 9719 | fi |
7a197a62 | 9720 | |
f11781c5 AK |
9721 | if test x$CLUSTER != xnone; then |
9722 | for ac_header in sys/socket.h sys/un.h | |
9723 | do : | |
9724 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9725 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9726 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9727 | cat >>confdefs.h <<_ACEOF | |
9728 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9729 | _ACEOF | |
ad6254c5 | 9730 | |
f11781c5 AK |
9731 | else |
9732 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9733 | fi | |
9734 | ||
9735 | done | |
9736 | ||
9737 | for ac_func in socket | |
9738 | do : | |
9739 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9740 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9741 | cat >>confdefs.h <<_ACEOF | |
9742 | #define HAVE_SOCKET 1 | |
9743 | _ACEOF | |
7a197a62 | 9744 | |
80992638 | 9745 | else |
f11781c5 | 9746 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9747 | fi |
f11781c5 | 9748 | done |
83912faa | 9749 | |
69792976 | 9750 | fi |
f11781c5 AK |
9751 | |
9752 | if test x$DMEVENTD = xyes; then | |
9753 | for ac_header in arpa/inet.h | |
9754 | do : | |
9755 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
9756 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 9757 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9758 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 9759 | _ACEOF |
69792976 | 9760 | |
69792976 | 9761 | else |
f11781c5 | 9762 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
9763 | fi |
9764 | ||
ad6254c5 | 9765 | done |
69792976 | 9766 | |
ad6254c5 AK |
9767 | fi |
9768 | ||
f11781c5 AK |
9769 | if test x$HAVE_LIBDL = xyes; then |
9770 | for ac_header in dlfcn.h | |
9771 | do : | |
9772 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
9773 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
9774 | cat >>confdefs.h <<_ACEOF | |
9775 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 9776 | _ACEOF |
a5f46f6a | 9777 | |
f11781c5 AK |
9778 | else |
9779 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
9780 | fi |
9781 | ||
f11781c5 | 9782 | done |
a5f46f6a | 9783 | |
a5f46f6a AK |
9784 | fi |
9785 | ||
f11781c5 AK |
9786 | if test x$INTL = xyes; then |
9787 | for ac_header in libintl.h | |
9788 | do : | |
9789 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
9790 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
9791 | cat >>confdefs.h <<_ACEOF | |
9792 | #define HAVE_LIBINTL_H 1 | |
9793 | _ACEOF | |
a5f46f6a | 9794 | |
a5f46f6a | 9795 | else |
f11781c5 | 9796 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 9797 | fi |
f11781c5 AK |
9798 | |
9799 | done | |
a5f46f6a AK |
9800 | |
9801 | fi | |
f11781c5 AK |
9802 | |
9803 | if test x$UDEV_SYNC = xyes; then | |
9804 | for ac_header in sys/ipc.h sys/sem.h | |
9805 | do : | |
9806 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9807 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9808 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
9809 | cat >>confdefs.h <<_ACEOF |
9810 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9811 | _ACEOF | |
9812 | ||
9813 | else | |
f11781c5 | 9814 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
9815 | fi |
9816 | ||
9817 | done | |
9818 | ||
9819 | fi | |
9820 | ||
a653923f AK |
9821 | ################################################################################ |
9822 | # Extract the first word of "modprobe", so it can be a program name with args. | |
9823 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 9825 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 9826 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 9827 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
9828 | else |
9829 | case $MODPROBE_CMD in | |
9830 | [\\/]* | ?:[\\/]*) | |
9831 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
9832 | ;; | |
9833 | *) | |
9834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9835 | for as_dir in $PATH | |
9836 | do | |
9837 | IFS=$as_save_IFS | |
9838 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 9839 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 9840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 9841 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 9842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
9843 | break 2 |
9844 | fi | |
9845 | done | |
f11781c5 | 9846 | done |
7a197a62 | 9847 | IFS=$as_save_IFS |
72b2cb61 AK |
9848 | |
9849 | ;; | |
9850 | esac | |
9851 | fi | |
9852 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 9853 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 9855 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 9856 | else |
f11781c5 | 9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 9858 | $as_echo "no" >&6; } |
72b2cb61 AK |
9859 | fi |
9860 | ||
a653923f | 9861 | |
7a197a62 | 9862 | |
a653923f | 9863 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
9864 | |
9865 | cat >>confdefs.h <<_ACEOF | |
9866 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
9867 | _ACEOF | |
9868 | ||
a653923f AK |
9869 | fi |
9870 | ||
b5c2529b | 9871 | |
a9b601e2 ZK |
9872 | lvm_exec_prefix=$exec_prefix |
9873 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
9874 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
9875 | ||
b5c2529b | 9876 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 9877 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
9878 | _ACEOF |
9879 | ||
9880 | ||
9881 | if test "$CLVMD" != none; then | |
9882 | clvmd_prefix=$ac_default_prefix | |
9883 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
9884 | ||
9885 | cat >>confdefs.h <<_ACEOF | |
9886 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
9887 | _ACEOF | |
9888 | ||
9889 | fi | |
9890 | ||
80992638 | 9891 | ################################################################################ |
93bd259b AK |
9892 | if test "$BUILD_DMEVENTD" = yes; then |
9893 | ||
9894 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 9895 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 9896 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 9897 | else |
71082be4 | 9898 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
9899 | fi |
9900 | ||
93bd259b | 9901 | |
71082be4 ZK |
9902 | cat >>confdefs.h <<_ACEOF |
9903 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
9904 | _ACEOF | |
93bd259b | 9905 | |
71082be4 | 9906 | fi |
93bd259b AK |
9907 | |
9908 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
9909 | |
9910 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 9911 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 9912 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 9913 | else |
71082be4 | 9914 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
9915 | fi |
9916 | ||
93bd259b | 9917 | |
71082be4 ZK |
9918 | cat >>confdefs.h <<_ACEOF |
9919 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
9920 | _ACEOF | |
3399ae32 | 9921 | |
71082be4 | 9922 | fi |
3399ae32 | 9923 | |
8bae0a1e AK |
9924 | |
9925 | ||
8bae0a1e | 9926 | # Check whether --with-default-run-dir was given. |
f11781c5 | 9927 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
9928 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
9929 | else | |
9930 | DEFAULT_RUN_DIR="/var/run/lvm" | |
9931 | fi | |
9932 | ||
9933 | cat >>confdefs.h <<_ACEOF | |
9934 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
9935 | _ACEOF | |
9936 | ||
9937 | ||
71082be4 | 9938 | ################################################################################ |
3399ae32 AK |
9939 | |
9940 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 9941 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 9942 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 9943 | else |
71082be4 | 9944 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
9945 | fi |
9946 | ||
71082be4 | 9947 | |
3399ae32 AK |
9948 | cat >>confdefs.h <<_ACEOF |
9949 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
9950 | _ACEOF | |
9951 | ||
9952 | ||
9953 | ||
3399ae32 | 9954 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 9955 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 9956 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 9957 | else |
71082be4 | 9958 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
9959 | fi |
9960 | ||
71082be4 | 9961 | |
3399ae32 AK |
9962 | cat >>confdefs.h <<_ACEOF |
9963 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
9964 | _ACEOF | |
9965 | ||
9966 | ||
9967 | ||
3399ae32 | 9968 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 9969 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 9970 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 9971 | else |
71082be4 | 9972 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
9973 | fi |
9974 | ||
71082be4 | 9975 | |
3399ae32 AK |
9976 | cat >>confdefs.h <<_ACEOF |
9977 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
9978 | _ACEOF | |
9979 | ||
9980 | ||
9981 | ||
3399ae32 | 9982 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 9983 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 9984 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 9985 | else |
71082be4 | 9986 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
9987 | fi |
9988 | ||
71082be4 | 9989 | |
3399ae32 AK |
9990 | cat >>confdefs.h <<_ACEOF |
9991 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
9992 | _ACEOF | |
9993 | ||
9994 | ||
9995 | ||
3399ae32 | 9996 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 9997 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 9998 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 9999 | else |
71082be4 | 10000 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10001 | fi |
10002 | ||
71082be4 | 10003 | |
3399ae32 AK |
10004 | cat >>confdefs.h <<_ACEOF |
10005 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10006 | _ACEOF | |
10007 | ||
10008 | ||
fea55602 DW |
10009 | ################################################################################ |
10010 | ||
10011 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10012 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10013 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10014 | else | |
10015 | DEFAULT_DATA_ALIGNMENT=1 | |
10016 | fi | |
10017 | ||
10018 | ||
10019 | cat >>confdefs.h <<_ACEOF | |
10020 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10021 | _ACEOF | |
10022 | ||
10023 | ||
93bd259b | 10024 | ################################################################################ |
f11781c5 | 10025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10026 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10027 | |
10028 | # Check whether --with-interface was given. | |
f11781c5 | 10029 | if test "${with_interface+set}" = set; then : |
71082be4 | 10030 | withval=$with_interface; interface=$withval |
93bd259b | 10031 | else |
71082be4 | 10032 | interface=ioctl |
93bd259b AK |
10033 | fi |
10034 | ||
10035 | if [ "x$interface" != xioctl ]; | |
10036 | then | |
f11781c5 | 10037 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10038 | fi |
f11781c5 | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10040 | $as_echo "$interface" >&6; } |
93bd259b AK |
10041 | |
10042 | ################################################################################ | |
db8b5af9 | 10043 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10044 | |
10045 | cat >>confdefs.h <<_ACEOF | |
10046 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10047 | _ACEOF | |
10048 | ||
10049 | ||
db8b5af9 | 10050 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10051 | |
db8b5af9 | 10052 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10053 | |
db8b5af9 | 10054 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10055 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10056 | VER=`echo "$VER" | $AWK '{print $1}'` |
10057 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10058 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10059 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10060 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10061 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10062 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10063 | |
80992638 | 10064 | ################################################################################ |
fae0c576 | 10065 | |
83912faa | 10066 | |
795ca3e5 AK |
10067 | |
10068 | ||
10069 | ||
10070 | ||
10071 | ||
10072 | ||
5a52dca9 | 10073 | |
8ef2b021 | 10074 | |
199e490e | 10075 | |
69792976 AK |
10076 | |
10077 | ||
10078 | ||
d0191583 | 10079 | |
69792976 | 10080 | |
8106cdd5 AK |
10081 | |
10082 | ||
10083 | ||
10084 | ||
10085 | ||
d68a82ec | 10086 | |
036f273a | 10087 | |
7d1552c9 | 10088 | |
8106cdd5 | 10089 | |
0a62c911 | 10090 | |
8106cdd5 | 10091 | |
4a7f3eb2 | 10092 | |
4922197a AK |
10093 | |
10094 | ||
d8ac0fbc | 10095 | |
1a9ea74d | 10096 | |
8a2fc586 AK |
10097 | |
10098 | ||
d0191583 | 10099 | |
93bd259b AK |
10100 | |
10101 | ||
10102 | ||
10103 | ||
10104 | ||
d0191583 JM |
10105 | |
10106 | ||
10107 | ||
10108 | ||
10109 | ||
8a2fc586 | 10110 | |
19a2c6e0 | 10111 | |
f7f0854e ZK |
10112 | |
10113 | ||
3ceb7608 | 10114 | |
8ce0cbda | 10115 | |
8b1a3214 | 10116 | |
ec6a6fbe AK |
10117 | |
10118 | ||
10119 | ||
10120 | ||
e2997b73 AK |
10121 | |
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | ||
a946372e AK |
10127 | |
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
ec6a6fbe | 10138 | |
cac52ca4 | 10139 | |
d3c8211f | 10140 | |
7e3fe830 | 10141 | |
a5f46f6a AK |
10142 | |
10143 | ||
10144 | ||
572fefeb | 10145 | |
90c80887 | 10146 | |
3399ae32 AK |
10147 | |
10148 | ||
10149 | ||
10150 | ||
10151 | ||
90c80887 | 10152 | |
bf456146 | 10153 | |
e1b8a236 | 10154 | |
0878503f | 10155 | |
8fea97b7 | 10156 | |
54b362f9 | 10157 | |
b1f08e51 | 10158 | |
d1e8046f | 10159 | |
fea55602 | 10160 | |
c89bc357 | 10161 | |
37ddf259 | 10162 | |
606d0858 | 10163 | |
6e5c1f75 | 10164 | |
68f2de6d AK |
10165 | |
10166 | ||
80992638 | 10167 | ################################################################################ |
3041b72f | 10168 | 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 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/snapshot/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_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10169 | |
ad6254c5 | 10170 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10171 | # This file is a shell script that caches the results of configure |
10172 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10173 | # scripts and configure runs, see configure's option --config-cache. |
10174 | # It is not useful on other systems. If it contains results you don't | |
10175 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10176 | # |
ad6254c5 AK |
10177 | # config.status only pays attention to the cache file if you give it |
10178 | # the --recheck option to rerun configure. | |
795ca3e5 | 10179 | # |
ad6254c5 AK |
10180 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10181 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10182 | # following values. | |
10183 | ||
10184 | _ACEOF | |
10185 | ||
795ca3e5 AK |
10186 | # The following way of writing the cache mishandles newlines in values, |
10187 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10188 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10189 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10190 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10191 | ( |
10192 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10193 | eval ac_val=\$$ac_var | |
10194 | case $ac_val in #( | |
10195 | *${as_nl}*) | |
10196 | case $ac_var in #( | |
f11781c5 | 10197 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10198 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10199 | esac |
10200 | case $ac_var in #( | |
10201 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10202 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10203 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10204 | esac ;; |
10205 | esac | |
10206 | done | |
10207 | ||
ad6254c5 | 10208 | (set) 2>&1 | |
7a197a62 AK |
10209 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10210 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10211 | # `set' does not quote correctly, so add quotes: double-quote |
10212 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10213 | sed -n \ |
8a2fc586 AK |
10214 | "s/'/'\\\\''/g; |
10215 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10216 | ;; #( |
ad6254c5 AK |
10217 | *) |
10218 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10219 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10220 | ;; |
7a197a62 AK |
10221 | esac | |
10222 | sort | |
10223 | ) | | |
ad6254c5 | 10224 | sed ' |
7a197a62 | 10225 | /^ac_cv_env_/b end |
ad6254c5 | 10226 | t clear |
7a197a62 | 10227 | :clear |
ad6254c5 AK |
10228 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10229 | t end | |
7a197a62 AK |
10230 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10231 | :end' >>confcache | |
10232 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10233 | if test -w "$cache_file"; then | |
10234 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10236 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10237 | cat confcache >$cache_file |
795ca3e5 | 10238 | else |
f11781c5 | 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10240 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10241 | fi |
10242 | fi | |
10243 | rm -f confcache | |
10244 | ||
795ca3e5 AK |
10245 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10246 | # Let make expand exec_prefix. | |
10247 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10248 | ||
72b2cb61 | 10249 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10250 | |
10251 | ac_libobjs= | |
10252 | ac_ltlibobjs= | |
f11781c5 | 10253 | U= |
ad6254c5 AK |
10254 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10255 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10256 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10257 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10258 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10259 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10260 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10261 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10262 | done |
10263 | LIBOBJS=$ac_libobjs | |
80992638 | 10264 | |
ad6254c5 AK |
10265 | LTLIBOBJS=$ac_ltlibobjs |
10266 | ||
10267 | ||
10268 | ||
10269 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10270 | ac_write_fail=0 |
ad6254c5 AK |
10271 | ac_clean_files_save=$ac_clean_files |
10272 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10274 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10275 | as_write_fail=0 |
10276 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10277 | #! $SHELL |
10278 | # Generated by $as_me. | |
795ca3e5 | 10279 | # Run this file to recreate the current configuration. |
795ca3e5 | 10280 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10281 | # configure, is in config.log if it exists. |
10282 | ||
10283 | debug=false | |
10284 | ac_cs_recheck=false | |
10285 | ac_cs_silent=false | |
ad6254c5 | 10286 | |
f11781c5 AK |
10287 | SHELL=\${CONFIG_SHELL-$SHELL} |
10288 | export SHELL | |
10289 | _ASEOF | |
10290 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10291 | ## -------------------- ## | |
10292 | ## M4sh Initialization. ## | |
10293 | ## -------------------- ## | |
ad6254c5 | 10294 | |
25fbec5b AK |
10295 | # Be more Bourne compatible |
10296 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10297 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10298 | emulate sh |
10299 | NULLCMD=: | |
ec6a6fbe | 10300 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10301 | # is contrary to our usage. Disable this feature. |
10302 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10303 | setopt NO_GLOB_SUBST |
10304 | else | |
f11781c5 AK |
10305 | case `(set -o) 2>/dev/null` in #( |
10306 | *posix*) : | |
10307 | set -o posix ;; #( | |
10308 | *) : | |
10309 | ;; | |
25fbec5b | 10310 | esac |
7a197a62 | 10311 | fi |
25fbec5b AK |
10312 | |
10313 | ||
ec6a6fbe AK |
10314 | as_nl=' |
10315 | ' | |
10316 | export as_nl | |
10317 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10318 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10319 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10320 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10321 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10322 | # but without wasting forks for bash or zsh. | |
10323 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10324 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10325 | as_echo='print -r --' | |
10326 | as_echo_n='print -rn --' | |
10327 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10328 | as_echo='printf %s\n' |
10329 | as_echo_n='printf %s' | |
10330 | else | |
10331 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10332 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10333 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10334 | else |
ec6a6fbe AK |
10335 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10336 | as_echo_n_body='eval | |
10337 | arg=$1; | |
f11781c5 | 10338 | case $arg in #( |
ec6a6fbe AK |
10339 | *"$as_nl"*) |
10340 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10341 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10342 | esac; | |
10343 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10344 | ' | |
10345 | export as_echo_n_body | |
10346 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10347 | fi |
ec6a6fbe AK |
10348 | export as_echo_body |
10349 | as_echo='sh -c $as_echo_body as_echo' | |
10350 | fi | |
10351 | ||
10352 | # The user is always right. | |
10353 | if test "${PATH_SEPARATOR+set}" != set; then | |
10354 | PATH_SEPARATOR=: | |
10355 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10356 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10357 | PATH_SEPARATOR=';' | |
10358 | } | |
ad6254c5 AK |
10359 | fi |
10360 | ||
ad6254c5 | 10361 | |
7a197a62 AK |
10362 | # IFS |
10363 | # We need space, tab and new line, in precisely that order. Quoting is | |
10364 | # there to prevent editors from complaining about space-tab. | |
10365 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10366 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10367 | IFS=" "" $as_nl" |
10368 | ||
10369 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10370 | case $0 in #(( |
7a197a62 AK |
10371 | *[\\/]* ) as_myself=$0 ;; |
10372 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10373 | for as_dir in $PATH | |
10374 | do | |
10375 | IFS=$as_save_IFS | |
10376 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10377 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10378 | done | |
7a197a62 AK |
10379 | IFS=$as_save_IFS |
10380 | ||
10381 | ;; | |
10382 | esac | |
10383 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10384 | # in which case we are not to be found in the path. | |
10385 | if test "x$as_myself" = x; then | |
10386 | as_myself=$0 | |
10387 | fi | |
10388 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10389 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10390 | exit 1 |
7a197a62 AK |
10391 | fi |
10392 | ||
f11781c5 AK |
10393 | # Unset variables that we do not need and which cause bugs (e.g. in |
10394 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10395 | # suppresses any "Segmentation fault" message there. '((' could | |
10396 | # trigger a bug in pdksh 5.2.14. | |
10397 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10398 | do eval test x\${$as_var+set} = xset \ | |
10399 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10400 | done |
ad6254c5 AK |
10401 | PS1='$ ' |
10402 | PS2='> ' | |
10403 | PS4='+ ' | |
10404 | ||
10405 | # NLS nuisances. | |
ec6a6fbe AK |
10406 | LC_ALL=C |
10407 | export LC_ALL | |
10408 | LANGUAGE=C | |
10409 | export LANGUAGE | |
8106cdd5 | 10410 | |
f11781c5 AK |
10411 | # CDPATH. |
10412 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10413 | ||
10414 | ||
10415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10416 | # ---------------------------------------- | |
10417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10419 | # script with STATUS, using 1 if that was 0. | |
10420 | as_fn_error () | |
10421 | { | |
10422 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10423 | if test "$4"; then | |
10424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10425 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10426 | fi | |
10427 | $as_echo "$as_me: error: $2" >&2 | |
10428 | as_fn_exit $as_status | |
10429 | } # as_fn_error | |
10430 | ||
10431 | ||
10432 | # as_fn_set_status STATUS | |
10433 | # ----------------------- | |
10434 | # Set $? to STATUS, without forking. | |
10435 | as_fn_set_status () | |
10436 | { | |
10437 | return $1 | |
10438 | } # as_fn_set_status | |
10439 | ||
10440 | # as_fn_exit STATUS | |
10441 | # ----------------- | |
10442 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10443 | as_fn_exit () | |
10444 | { | |
10445 | set +e | |
10446 | as_fn_set_status $1 | |
10447 | exit $1 | |
10448 | } # as_fn_exit | |
10449 | ||
10450 | # as_fn_unset VAR | |
10451 | # --------------- | |
10452 | # Portably unset VAR. | |
10453 | as_fn_unset () | |
10454 | { | |
10455 | { eval $1=; unset $1;} | |
10456 | } | |
10457 | as_unset=as_fn_unset | |
10458 | # as_fn_append VAR VALUE | |
10459 | # ---------------------- | |
10460 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10461 | # advantage of any shell optimizations that allow amortized linear growth over | |
10462 | # repeated appends, instead of the typical quadratic growth present in naive | |
10463 | # implementations. | |
10464 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10465 | eval 'as_fn_append () | |
10466 | { | |
10467 | eval $1+=\$2 | |
10468 | }' | |
10469 | else | |
10470 | as_fn_append () | |
10471 | { | |
10472 | eval $1=\$$1\$2 | |
10473 | } | |
10474 | fi # as_fn_append | |
10475 | ||
10476 | # as_fn_arith ARG... | |
10477 | # ------------------ | |
10478 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10479 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10480 | # must be portable across $(()) and expr. | |
10481 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10482 | eval 'as_fn_arith () | |
10483 | { | |
10484 | as_val=$(( $* )) | |
10485 | }' | |
10486 | else | |
10487 | as_fn_arith () | |
10488 | { | |
10489 | as_val=`expr "$@" || test $? -eq 1` | |
10490 | } | |
10491 | fi # as_fn_arith | |
10492 | ||
10493 | ||
7a197a62 AK |
10494 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10495 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10496 | as_expr=expr |
10497 | else | |
10498 | as_expr=false | |
10499 | fi | |
8106cdd5 | 10500 | |
7a197a62 | 10501 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10502 | as_basename=basename |
10503 | else | |
10504 | as_basename=false | |
10505 | fi | |
10506 | ||
f11781c5 AK |
10507 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10508 | as_dirname=dirname | |
10509 | else | |
10510 | as_dirname=false | |
10511 | fi | |
ad6254c5 | 10512 | |
7a197a62 | 10513 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10514 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10515 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10516 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10517 | $as_echo X/"$0" | |
7a197a62 AK |
10518 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10519 | s//\1/ | |
10520 | q | |
10521 | } | |
10522 | /^X\/\(\/\/\)$/{ | |
10523 | s//\1/ | |
10524 | q | |
10525 | } | |
10526 | /^X\/\(\/\).*/{ | |
10527 | s//\1/ | |
10528 | q | |
10529 | } | |
10530 | s/.*/./; q'` | |
ad6254c5 | 10531 | |
f11781c5 AK |
10532 | # Avoid depending upon Character Ranges. |
10533 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10534 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10535 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10536 | as_cr_digits='0123456789' | |
10537 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10538 | |
10539 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10540 | case `echo -n x` in #((((( |
7a197a62 | 10541 | -n*) |
f11781c5 | 10542 | case `echo 'xy\c'` in |
7a197a62 | 10543 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10544 | xy) ECHO_C='\c';; |
10545 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10546 | ECHO_T=' ';; | |
7a197a62 AK |
10547 | esac;; |
10548 | *) | |
10549 | ECHO_N='-n';; | |
ad6254c5 | 10550 | esac |
80992638 | 10551 | |
ad6254c5 | 10552 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10553 | if test -d conf$$.dir; then |
10554 | rm -f conf$$.dir/conf$$.file | |
10555 | else | |
10556 | rm -f conf$$.dir | |
ec6a6fbe AK |
10557 | mkdir conf$$.dir 2>/dev/null |
10558 | fi | |
10559 | if (echo >conf$$.file) 2>/dev/null; then | |
10560 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10561 | as_ln_s='ln -s' | |
10562 | # ... but there are two gotchas: | |
10563 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10564 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10565 | # In both cases, we have to default to `cp -p'. | |
10566 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10567 | as_ln_s='cp -p' | |
10568 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10569 | as_ln_s=ln | |
10570 | else | |
ad6254c5 | 10571 | as_ln_s='cp -p' |
ec6a6fbe | 10572 | fi |
ad6254c5 AK |
10573 | else |
10574 | as_ln_s='cp -p' | |
10575 | fi | |
7a197a62 AK |
10576 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10577 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10578 | |
f11781c5 AK |
10579 | |
10580 | # as_fn_mkdir_p | |
10581 | # ------------- | |
10582 | # Create "$as_dir" as a directory, including parents if necessary. | |
10583 | as_fn_mkdir_p () | |
10584 | { | |
10585 | ||
10586 | case $as_dir in #( | |
10587 | -*) as_dir=./$as_dir;; | |
10588 | esac | |
10589 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10590 | as_dirs= | |
10591 | while :; do | |
10592 | case $as_dir in #( | |
10593 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10594 | *) as_qdir=$as_dir;; | |
10595 | esac | |
10596 | as_dirs="'$as_qdir' $as_dirs" | |
10597 | as_dir=`$as_dirname -- "$as_dir" || | |
10598 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10599 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10600 | X"$as_dir" : 'X\(//\)$' \| \ | |
10601 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10602 | $as_echo X"$as_dir" | | |
10603 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10604 | s//\1/ | |
10605 | q | |
10606 | } | |
10607 | /^X\(\/\/\)[^/].*/{ | |
10608 | s//\1/ | |
10609 | q | |
10610 | } | |
10611 | /^X\(\/\/\)$/{ | |
10612 | s//\1/ | |
10613 | q | |
10614 | } | |
10615 | /^X\(\/\).*/{ | |
10616 | s//\1/ | |
10617 | q | |
10618 | } | |
10619 | s/.*/./; q'` | |
10620 | test -d "$as_dir" && break | |
10621 | done | |
10622 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10623 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10624 | ||
10625 | ||
10626 | } # as_fn_mkdir_p | |
ad6254c5 | 10627 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10628 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10629 | else |
8a2fc586 | 10630 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10631 | as_mkdir_p=false |
10632 | fi | |
10633 | ||
25fbec5b AK |
10634 | if test -x / >/dev/null 2>&1; then |
10635 | as_test_x='test -x' | |
7a197a62 | 10636 | else |
25fbec5b AK |
10637 | if ls -dL / >/dev/null 2>&1; then |
10638 | as_ls_L_option=L | |
10639 | else | |
10640 | as_ls_L_option= | |
10641 | fi | |
10642 | as_test_x=' | |
10643 | eval sh -c '\'' | |
10644 | if test -d "$1"; then | |
ec6a6fbe | 10645 | test -d "$1/."; |
25fbec5b | 10646 | else |
f11781c5 | 10647 | case $1 in #( |
ec6a6fbe | 10648 | -*)set "./$1";; |
25fbec5b | 10649 | esac; |
f11781c5 | 10650 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10651 | ???[sx]*):;;*)false;;esac;fi |
10652 | '\'' sh | |
10653 | ' | |
7a197a62 | 10654 | fi |
25fbec5b | 10655 | as_executable_p=$as_test_x |
ad6254c5 AK |
10656 | |
10657 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10658 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10659 | |
10660 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10661 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10662 | |
10663 | ||
ad6254c5 | 10664 | exec 6>&1 |
f11781c5 AK |
10665 | ## ----------------------------------- ## |
10666 | ## Main body of $CONFIG_STATUS script. ## | |
10667 | ## ----------------------------------- ## | |
10668 | _ASEOF | |
10669 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10670 | |
f11781c5 AK |
10671 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10672 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10673 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10674 | # values after options handling. |
10675 | ac_log=" | |
ad6254c5 | 10676 | This file was extended by $as_me, which was |
f11781c5 | 10677 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10678 | |
10679 | CONFIG_FILES = $CONFIG_FILES | |
10680 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10681 | CONFIG_LINKS = $CONFIG_LINKS | |
10682 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10683 | $ $0 $@ | |
10684 | ||
7a197a62 AK |
10685 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10686 | " | |
10687 | ||
ad6254c5 AK |
10688 | _ACEOF |
10689 | ||
ec6a6fbe AK |
10690 | case $ac_config_files in *" |
10691 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10692 | esac | |
10693 | ||
10694 | case $ac_config_headers in *" | |
10695 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10696 | esac | |
10697 | ||
10698 | ||
10699 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10700 | # Files that config.status was made for. |
68f2de6d AK |
10701 | config_files="$ac_config_files" |
10702 | config_headers="$ac_config_headers" | |
ad6254c5 | 10703 | |
7a197a62 | 10704 | _ACEOF |
ad6254c5 | 10705 | |
ec6a6fbe | 10706 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10707 | ac_cs_usage="\ |
f11781c5 AK |
10708 | \`$as_me' instantiates files and other configuration actions |
10709 | from templates according to the current configuration. Unless the files | |
10710 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10711 | |
f11781c5 | 10712 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10713 | |
10714 | -h, --help print this help, then exit | |
25fbec5b | 10715 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10716 | --config print configuration, then exit |
ec6a6fbe AK |
10717 | -q, --quiet, --silent |
10718 | do not print progress messages | |
ad6254c5 AK |
10719 | -d, --debug don't remove temporary files |
10720 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10721 | --file=FILE[:TEMPLATE] |
10722 | instantiate the configuration file FILE | |
10723 | --header=FILE[:TEMPLATE] | |
10724 | instantiate the configuration header FILE | |
ad6254c5 AK |
10725 | |
10726 | Configuration files: | |
10727 | $config_files | |
10728 | ||
72b2cb61 AK |
10729 | Configuration headers: |
10730 | $config_headers | |
10731 | ||
f11781c5 | 10732 | Report bugs to the package provider." |
ad6254c5 | 10733 | |
7a197a62 | 10734 | _ACEOF |
ec6a6fbe | 10735 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10736 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10737 | ac_cs_version="\\ |
10738 | config.status | |
f11781c5 AK |
10739 | configured by $0, generated by GNU Autoconf 2.66, |
10740 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10741 | |
f11781c5 | 10742 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
10743 | This config.status script is free software; the Free Software Foundation |
10744 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
10745 | |
10746 | ac_pwd='$ac_pwd' | |
10747 | srcdir='$srcdir' | |
10748 | INSTALL='$INSTALL' | |
fddafd51 | 10749 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
10750 | AWK='$AWK' |
10751 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
10752 | _ACEOF |
10753 | ||
ec6a6fbe AK |
10754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10755 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
10756 | ac_need_defaults=: |
10757 | while test $# != 0 | |
10758 | do | |
10759 | case $1 in | |
10760 | --*=*) | |
7a197a62 AK |
10761 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10762 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
10763 | ac_shift=: |
10764 | ;; | |
7a197a62 | 10765 | *) |
ad6254c5 AK |
10766 | ac_option=$1 |
10767 | ac_optarg=$2 | |
10768 | ac_shift=shift | |
10769 | ;; | |
ad6254c5 AK |
10770 | esac |
10771 | ||
10772 | case $ac_option in | |
10773 | # Handling of the options. | |
ad6254c5 AK |
10774 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10775 | ac_cs_recheck=: ;; | |
7a197a62 | 10776 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 10777 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
10778 | --config | --confi | --conf | --con | --co | --c ) |
10779 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 10780 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
10781 | debug=: ;; |
10782 | --file | --fil | --fi | --f ) | |
10783 | $ac_shift | |
ec6a6fbe AK |
10784 | case $ac_optarg in |
10785 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10786 | esac | |
f11781c5 | 10787 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
10788 | ac_need_defaults=false;; |
10789 | --header | --heade | --head | --hea ) | |
10790 | $ac_shift | |
ec6a6fbe AK |
10791 | case $ac_optarg in |
10792 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10793 | esac | |
f11781c5 | 10794 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 10795 | ac_need_defaults=false;; |
7a197a62 AK |
10796 | --he | --h) |
10797 | # Conflict between --help and --header | |
f11781c5 AK |
10798 | as_fn_error $? "ambiguous option: \`$1' |
10799 | Try \`$0 --help' for more information.";; | |
7a197a62 | 10800 | --help | --hel | -h ) |
ec6a6fbe | 10801 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
10802 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10803 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10804 | ac_cs_silent=: ;; | |
10805 | ||
10806 | # This is an error. | |
f11781c5 AK |
10807 | -*) as_fn_error $? "unrecognized option: \`$1' |
10808 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 10809 | |
f11781c5 | 10810 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 10811 | ac_need_defaults=false ;; |
ad6254c5 AK |
10812 | |
10813 | esac | |
10814 | shift | |
10815 | done | |
10816 | ||
10817 | ac_configure_extra_args= | |
10818 | ||
10819 | if $ac_cs_silent; then | |
10820 | exec 6>/dev/null | |
10821 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10822 | fi | |
10823 | ||
10824 | _ACEOF | |
ec6a6fbe | 10825 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 10826 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
10827 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10828 | shift | |
10829 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10830 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 10831 | export CONFIG_SHELL |
ec6a6fbe | 10832 | exec "\$@" |
ad6254c5 AK |
10833 | fi |
10834 | ||
10835 | _ACEOF | |
ec6a6fbe | 10836 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10837 | exec 5>>config.log |
10838 | { | |
10839 | echo | |
10840 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10841 | ## Running $as_me. ## | |
10842 | _ASBOX | |
ec6a6fbe | 10843 | $as_echo "$ac_log" |
7a197a62 | 10844 | } >&5 |
ad6254c5 | 10845 | |
7a197a62 | 10846 | _ACEOF |
ec6a6fbe | 10847 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 10848 | _ACEOF |
ad6254c5 | 10849 | |
ec6a6fbe | 10850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10851 | |
10852 | # Handling of arguments. | |
ad6254c5 AK |
10853 | for ac_config_target in $ac_config_targets |
10854 | do | |
7a197a62 AK |
10855 | case $ac_config_target in |
10856 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
10857 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10858 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
10859 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
10860 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 10861 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
10862 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
10863 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 10864 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 10865 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 10866 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
10867 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
10868 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 10869 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 10870 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 10871 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
10872 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
10873 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
10874 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
10875 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
10876 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
10877 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 10878 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 10879 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 10880 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
10881 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
10882 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 10883 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 10884 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
10885 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
10886 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 10887 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 10888 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 10889 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
10890 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
10891 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
7a197a62 | 10892 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 10893 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 10894 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 10895 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 10896 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
10897 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
10898 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 10899 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 10900 | |
f11781c5 | 10901 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 10902 | esac |
ad6254c5 AK |
10903 | done |
10904 | ||
7a197a62 | 10905 | |
ad6254c5 AK |
10906 | # If the user did not use the arguments to specify the items to instantiate, |
10907 | # then the envvar interface is used. Set only those that are not. | |
10908 | # We use the long form for the default assignment because of an extremely | |
10909 | # bizarre bug on SunOS 4.1.3. | |
10910 | if $ac_need_defaults; then | |
10911 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 10912 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
10913 | fi |
10914 | ||
10915 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 10916 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 10917 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
10918 | # Hook for its removal unless debugging. |
10919 | # Note that there is a small window in which the directory will not be cleaned: | |
10920 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
10921 | $debug || |
10922 | { | |
7a197a62 AK |
10923 | tmp= |
10924 | trap 'exit_status=$? | |
10925 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10926 | ' 0 | |
f11781c5 | 10927 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 10928 | } |
ad6254c5 AK |
10929 | # Create a (secure) tmp directory for tmp files. |
10930 | ||
10931 | { | |
7a197a62 | 10932 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
10933 | test -n "$tmp" && test -d "$tmp" |
10934 | } || | |
10935 | { | |
7a197a62 AK |
10936 | tmp=./conf$$-$RANDOM |
10937 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 10938 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 10939 | |
ec6a6fbe AK |
10940 | # Set up the scripts for CONFIG_FILES section. |
10941 | # No need to generate them if there are no CONFIG_FILES. | |
10942 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 10943 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 10944 | |
68f2de6d | 10945 | |
f11781c5 AK |
10946 | ac_cr=`echo X | tr X '\015'` |
10947 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10948 | # But we know of no other shell where ac_cr would be empty at this | |
10949 | # point, so we can use a bashism as a fallback. | |
10950 | if test "x$ac_cr" = x; then | |
10951 | eval ac_cr=\$\'\\r\' | |
10952 | fi | |
ec6a6fbe AK |
10953 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
10954 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
10955 | ac_cs_awk_cr='\\r' | |
10956 | else | |
10957 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 10958 | fi |
7a197a62 | 10959 | |
ec6a6fbe | 10960 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 10961 | _ACEOF |
7a197a62 | 10962 | |
8106cdd5 | 10963 | |
ec6a6fbe AK |
10964 | { |
10965 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10966 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10967 | echo "_ACEOF" | |
10968 | } >conf$$subs.sh || | |
f11781c5 AK |
10969 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10970 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
10971 | ac_delim='%!_!# ' |
10972 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 10973 | . ./conf$$subs.sh || |
f11781c5 | 10974 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
10975 | |
10976 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10977 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
10978 | break |
10979 | elif $ac_last_try; then | |
f11781c5 | 10980 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
10981 | else |
10982 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10983 | fi | |
10984 | done | |
ec6a6fbe AK |
10985 | rm -f conf$$subs.sh |
10986 | ||
10987 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10988 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
10989 | _ACEOF | |
10990 | sed -n ' | |
10991 | h | |
10992 | s/^/S["/; s/!.*/"]=/ | |
10993 | p | |
10994 | g | |
10995 | s/^[^!]*!// | |
10996 | :repl | |
10997 | t repl | |
10998 | s/'"$ac_delim"'$// | |
10999 | t delim | |
11000 | :nl | |
11001 | h | |
f11781c5 | 11002 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11003 | t more1 |
11004 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11005 | p | |
11006 | n | |
11007 | b repl | |
11008 | :more1 | |
11009 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11010 | p | |
11011 | g | |
11012 | s/.\{148\}// | |
11013 | t nl | |
11014 | :delim | |
11015 | h | |
f11781c5 | 11016 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11017 | t more2 |
11018 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11019 | p | |
11020 | b | |
11021 | :more2 | |
11022 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11023 | p | |
11024 | g | |
11025 | s/.\{148\}// | |
11026 | t delim | |
11027 | ' <conf$$subs.awk | sed ' | |
11028 | /^[^""]/{ | |
11029 | N | |
11030 | s/\n// | |
11031 | } | |
11032 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11033 | rm -f conf$$subs.awk | |
11034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11035 | _ACAWK | |
11036 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11037 | for (key in S) S_is_set[key] = 1 | |
11038 | FS = "\a" | |
7a197a62 | 11039 | |
ec6a6fbe AK |
11040 | } |
11041 | { | |
11042 | line = $ 0 | |
11043 | nfields = split(line, field, "@") | |
11044 | substed = 0 | |
11045 | len = length(field[1]) | |
11046 | for (i = 2; i < nfields; i++) { | |
11047 | key = field[i] | |
11048 | keylen = length(key) | |
11049 | if (S_is_set[key]) { | |
11050 | value = S[key] | |
11051 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11052 | len += length(value) + length(field[++i]) | |
11053 | substed = 1 | |
11054 | } else | |
11055 | len += 1 + keylen | |
11056 | } | |
11057 | ||
11058 | print line | |
11059 | } | |
fddafd51 | 11060 | |
ec6a6fbe | 11061 | _ACAWK |
1995c9ff | 11062 | _ACEOF |
ec6a6fbe AK |
11063 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11064 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11065 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11066 | else | |
11067 | cat | |
11068 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11069 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11070 | _ACEOF |
11071 | ||
f11781c5 AK |
11072 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11073 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11074 | # trailing colons and then remove the whole line if VPATH becomes empty |
11075 | # (actually we leave an empty line to preserve line numbers). | |
11076 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11077 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11078 | h | |
11079 | s/// | |
11080 | s/^/:/ | |
11081 | s/[ ]*$/:/ | |
11082 | s/:\$(srcdir):/:/g | |
11083 | s/:\${srcdir}:/:/g | |
11084 | s/:@srcdir@:/:/g | |
11085 | s/^:*// | |
7a197a62 | 11086 | s/:*$// |
f11781c5 AK |
11087 | x |
11088 | s/\(=[ ]*\).*/\1/ | |
11089 | G | |
11090 | s/\n// | |
7a197a62 AK |
11091 | s/^[^=]*=[ ]*$// |
11092 | }' | |
11093 | fi | |
11094 | ||
ec6a6fbe | 11095 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11096 | fi # test -n "$CONFIG_FILES" |
11097 | ||
ec6a6fbe AK |
11098 | # Set up the scripts for CONFIG_HEADERS section. |
11099 | # No need to generate them if there are no CONFIG_HEADERS. | |
11100 | # This happens for instance with `./config.status Makefile'. | |
11101 | if test -n "$CONFIG_HEADERS"; then | |
11102 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11103 | BEGIN { | |
11104 | _ACEOF | |
11105 | ||
11106 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11107 | # here-document in config.status, that substitutes the proper values into | |
11108 | # config.h.in to produce config.h. | |
11109 | ||
11110 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11111 | # handling of long lines. | |
11112 | ac_delim='%!_!# ' | |
11113 | for ac_last_try in false false :; do | |
11114 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11115 | if test -z "$ac_t"; then | |
11116 | break | |
11117 | elif $ac_last_try; then | |
f11781c5 | 11118 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11119 | else |
11120 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11121 | fi | |
11122 | done | |
11123 | ||
11124 | # For the awk script, D is an array of macro values keyed by name, | |
11125 | # likewise P contains macro parameters if any. Preserve backslash | |
11126 | # newline sequences. | |
11127 | ||
11128 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11129 | sed -n ' | |
11130 | s/.\{148\}/&'"$ac_delim"'/g | |
11131 | t rset | |
11132 | :rset | |
11133 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11134 | t def | |
11135 | d | |
11136 | :def | |
11137 | s/\\$// | |
11138 | t bsnl | |
11139 | s/["\\]/\\&/g | |
11140 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11141 | D["\1"]=" \3"/p | |
11142 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11143 | d | |
11144 | :bsnl | |
11145 | s/["\\]/\\&/g | |
11146 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11147 | D["\1"]=" \3\\\\\\n"\\/p | |
11148 | t cont | |
11149 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11150 | t cont | |
11151 | d | |
11152 | :cont | |
11153 | n | |
11154 | s/.\{148\}/&'"$ac_delim"'/g | |
11155 | t clear | |
11156 | :clear | |
11157 | s/\\$// | |
11158 | t bsnlc | |
11159 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11160 | d | |
11161 | :bsnlc | |
11162 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11163 | b cont | |
11164 | ' <confdefs.h | sed ' | |
11165 | s/'"$ac_delim"'/"\\\ | |
11166 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11167 | ||
11168 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11169 | for (key in D) D_is_set[key] = 1 | |
11170 | FS = "\a" | |
11171 | } | |
11172 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11173 | line = \$ 0 | |
11174 | split(line, arg, " ") | |
11175 | if (arg[1] == "#") { | |
11176 | defundef = arg[2] | |
11177 | mac1 = arg[3] | |
11178 | } else { | |
11179 | defundef = substr(arg[1], 2) | |
11180 | mac1 = arg[2] | |
11181 | } | |
11182 | split(mac1, mac2, "(") #) | |
11183 | macro = mac2[1] | |
11184 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11185 | if (D_is_set[macro]) { | |
11186 | # Preserve the white space surrounding the "#". | |
11187 | print prefix "define", macro P[macro] D[macro] | |
11188 | next | |
11189 | } else { | |
11190 | # Replace #undef with comments. This is necessary, for example, | |
11191 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11192 | # on some systems where configure will not decide to define it. | |
11193 | if (defundef == "undef") { | |
11194 | print "/*", prefix defundef, macro, "*/" | |
11195 | next | |
11196 | } | |
11197 | } | |
11198 | } | |
11199 | { print } | |
11200 | _ACAWK | |
11201 | _ACEOF | |
11202 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11203 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11204 | fi # test -n "$CONFIG_HEADERS" |
11205 | ||
7a197a62 | 11206 | |
ec6a6fbe AK |
11207 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11208 | shift | |
11209 | for ac_tag | |
7a197a62 AK |
11210 | do |
11211 | case $ac_tag in | |
11212 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11213 | esac | |
11214 | case $ac_mode$ac_tag in | |
11215 | :[FHL]*:*);; | |
f11781c5 | 11216 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11217 | :[FH]-) ac_tag=-:-;; |
11218 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11219 | esac | |
11220 | ac_save_IFS=$IFS | |
11221 | IFS=: | |
11222 | set x $ac_tag | |
11223 | IFS=$ac_save_IFS | |
11224 | shift | |
11225 | ac_file=$1 | |
11226 | shift | |
11227 | ||
11228 | case $ac_mode in | |
11229 | :L) ac_source=$1;; | |
11230 | :[FH]) | |
11231 | ac_file_inputs= | |
11232 | for ac_f | |
11233 | do | |
11234 | case $ac_f in | |
11235 | -) ac_f="$tmp/stdin";; | |
11236 | *) # Look for the file first in the build tree, then in the source tree | |
11237 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11238 | # because $ac_f cannot contain `:'. | |
11239 | test -f "$ac_f" || | |
11240 | case $ac_f in | |
11241 | [\\/$]*) false;; | |
11242 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11243 | esac || | |
f11781c5 | 11244 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11245 | esac |
ec6a6fbe | 11246 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11247 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11248 | done |
11249 | ||
11250 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11251 | # use $as_me), people would be surprised to read: | |
11252 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11253 | configure_input='Generated from '` |
11254 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11255 | `' by configure.' | |
7a197a62 AK |
11256 | if test x"$ac_file" != x-; then |
11257 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11258 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11259 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11260 | fi |
ec6a6fbe AK |
11261 | # Neutralize special characters interpreted by sed in replacement strings. |
11262 | case $configure_input in #( | |
11263 | *\&* | *\|* | *\\* ) | |
11264 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11265 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11266 | *) ac_sed_conf_input=$configure_input;; | |
11267 | esac | |
7a197a62 AK |
11268 | |
11269 | case $ac_tag in | |
ec6a6fbe | 11270 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11271 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11272 | esac |
11273 | ;; | |
80992638 | 11274 | esac |
8106cdd5 | 11275 | |
7a197a62 | 11276 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11277 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11278 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11279 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11280 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11281 | $as_echo X"$ac_file" | |
7a197a62 AK |
11282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11283 | s//\1/ | |
11284 | q | |
11285 | } | |
11286 | /^X\(\/\/\)[^/].*/{ | |
11287 | s//\1/ | |
11288 | q | |
11289 | } | |
11290 | /^X\(\/\/\)$/{ | |
11291 | s//\1/ | |
11292 | q | |
11293 | } | |
11294 | /^X\(\/\).*/{ | |
11295 | s//\1/ | |
11296 | q | |
11297 | } | |
11298 | s/.*/./; q'` | |
f11781c5 | 11299 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11300 | ac_builddir=. |
11301 | ||
7a197a62 AK |
11302 | case "$ac_dir" in |
11303 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11304 | *) | |
ec6a6fbe | 11305 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11306 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11307 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11308 | case $ac_top_builddir_sub in |
11309 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11310 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11311 | esac ;; | |
11312 | esac | |
11313 | ac_abs_top_builddir=$ac_pwd | |
11314 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11315 | # for backward compatibility: | |
11316 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11317 | |
11318 | case $srcdir in | |
7a197a62 | 11319 | .) # We are building in place. |
ad6254c5 | 11320 | ac_srcdir=. |
7a197a62 AK |
11321 | ac_top_srcdir=$ac_top_builddir_sub |
11322 | ac_abs_top_srcdir=$ac_pwd ;; | |
11323 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11324 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11325 | ac_top_srcdir=$srcdir |
11326 | ac_abs_top_srcdir=$srcdir ;; | |
11327 | *) # Relative name. | |
11328 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11329 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11330 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11331 | esac |
7a197a62 | 11332 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11333 | |
ad6254c5 | 11334 | |
7a197a62 AK |
11335 | case $ac_mode in |
11336 | :F) | |
11337 | # | |
11338 | # CONFIG_FILE | |
11339 | # | |
ad6254c5 AK |
11340 | |
11341 | case $INSTALL in | |
11342 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11343 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11344 | esac |
fddafd51 ZK |
11345 | ac_MKDIR_P=$MKDIR_P |
11346 | case $MKDIR_P in | |
11347 | [\\/$]* | ?:[\\/]* ) ;; | |
11348 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11349 | esac | |
7a197a62 | 11350 | _ACEOF |
795ca3e5 | 11351 | |
ec6a6fbe | 11352 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11353 | # If the template does not know about datarootdir, expand it. |
11354 | # FIXME: This hack should be removed a few years after 2.60. | |
11355 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11356 | ac_sed_dataroot=' |
11357 | /datarootdir/ { | |
7a197a62 AK |
11358 | p |
11359 | q | |
11360 | } | |
11361 | /@datadir@/p | |
11362 | /@docdir@/p | |
11363 | /@infodir@/p | |
11364 | /@localedir@/p | |
f11781c5 | 11365 | /@mandir@/p' |
ec6a6fbe | 11366 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11367 | *datarootdir*) ac_datarootdir_seen=yes;; |
11368 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11370 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11371 | _ACEOF |
ec6a6fbe | 11372 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11373 | ac_datarootdir_hack=' |
11374 | s&@datadir@&$datadir&g | |
11375 | s&@docdir@&$docdir&g | |
11376 | s&@infodir@&$infodir&g | |
11377 | s&@localedir@&$localedir&g | |
11378 | s&@mandir@&$mandir&g | |
f11781c5 | 11379 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11380 | esac |
11381 | _ACEOF | |
11382 | ||
11383 | # Neutralize VPATH when `$srcdir' = `.'. | |
11384 | # Shell code in configure.ac might set extrasub. | |
11385 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11386 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11387 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11388 | $extrasub |
11389 | _ACEOF | |
ec6a6fbe | 11390 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11391 | :t |
11392 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11393 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11394 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11395 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11396 | s&@srcdir@&$ac_srcdir&;t t |
11397 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11398 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11399 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11400 | s&@builddir@&$ac_builddir&;t t | |
11401 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11402 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11403 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11404 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11405 | $ac_datarootdir_hack |
ec6a6fbe AK |
11406 | " |
11407 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11408 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11409 | |
11410 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11411 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11412 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11414 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11415 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11416 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11417 | |
11418 | rm -f "$tmp/stdin" | |
72b2cb61 | 11419 | case $ac_file in |
ec6a6fbe AK |
11420 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11421 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11422 | esac \ | |
f11781c5 | 11423 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11424 | ;; |
11425 | :H) | |
11426 | # | |
11427 | # CONFIG_HEADER | |
11428 | # | |
72b2cb61 | 11429 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11430 | { |
11431 | $as_echo "/* $configure_input */" \ | |
11432 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11433 | } >"$tmp/config.h" \ | |
f11781c5 | 11434 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11435 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11437 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11438 | else |
ec6a6fbe AK |
11439 | rm -f "$ac_file" |
11440 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11441 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11442 | fi |
11443 | else | |
ec6a6fbe AK |
11444 | $as_echo "/* $configure_input */" \ |
11445 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11446 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11447 | fi |
7a197a62 AK |
11448 | ;; |
11449 | ||
11450 | ||
11451 | esac | |
11452 | ||
11453 | done # for ac_tag | |
795ca3e5 | 11454 | |
795ca3e5 | 11455 | |
f11781c5 | 11456 | as_fn_exit 0 |
ad6254c5 | 11457 | _ACEOF |
ad6254c5 AK |
11458 | ac_clean_files=$ac_clean_files_save |
11459 | ||
ec6a6fbe | 11460 | test $ac_write_fail = 0 || |
f11781c5 | 11461 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11462 | |
ad6254c5 AK |
11463 | |
11464 | # configure is writing to config.log, and then calls config.status. | |
11465 | # config.status does its own redirection, appending to config.log. | |
11466 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11467 | # by configure, so config.status won't be able to write to it; its | |
11468 | # output is simply discarded. So we exec the FD to /dev/null, | |
11469 | # effectively closing config.log, so it can be properly (re)opened and | |
11470 | # appended to by config.status. When coming back to configure, we | |
11471 | # need to make the FD available again. | |
11472 | if test "$no_create" != yes; then | |
11473 | ac_cs_success=: | |
11474 | ac_config_status_args= | |
11475 | test "$silent" = yes && | |
11476 | ac_config_status_args="$ac_config_status_args --quiet" | |
11477 | exec 5>/dev/null | |
11478 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11479 | exec 5>>config.log | |
11480 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11481 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11482 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11483 | fi |
ec6a6fbe | 11484 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11486 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11487 | fi | |
795ca3e5 | 11488 | |
2dc95e1c AK |
11489 | |
11490 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11492 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11493 | fi |