]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f11781c5 AK |
3 | # Generated by GNU Autoconf 2.66. |
4 | # | |
795ca3e5 | 5 | # |
7a197a62 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
f11781c5 AK |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
795ca3e5 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
ad6254c5 | 16 | |
25fbec5b AK |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
20 | emulate sh |
21 | NULLCMD=: | |
ec6a6fbe | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
25 | setopt NO_GLOB_SUBST |
26 | else | |
f11781c5 AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
25fbec5b | 32 | esac |
7a197a62 | 33 | fi |
25fbec5b AK |
34 | |
35 | ||
ec6a6fbe AK |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 56 | else |
ec6a6fbe AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
f11781c5 | 60 | case $arg in #( |
ec6a6fbe AK |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 69 | fi |
ec6a6fbe AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
ad6254c5 AK |
81 | fi |
82 | ||
ad6254c5 | 83 | |
7a197a62 AK |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 92 | case $0 in #(( |
7a197a62 AK |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7a197a62 AK |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 112 | exit 1 |
7a197a62 AK |
113 | fi |
114 | ||
f11781c5 AK |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 122 | done |
ad6254c5 AK |
123 | PS1='$ ' |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
ec6a6fbe AK |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
ad6254c5 | 132 | |
f11781c5 AK |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 | $0: including any error possibly output before this | |
233 | $0: message. Then install a modern shell, or manually run | |
234 | $0: the script under such a shell if you do have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 | # ---------------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with STATUS, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 | if test "$4"; then | |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 | fi | |
371 | $as_echo "$as_me: error: $2" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
7a197a62 AK |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
377 | as_expr=expr |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
7a197a62 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
383 | as_basename=basename |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
f11781c5 AK |
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
ad6254c5 | 393 | |
7a197a62 | 394 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 398 | $as_echo X/"$0" | |
7a197a62 AK |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
ad6254c5 | 412 | |
f11781c5 AK |
413 | # Avoid depending upon Character Ranges. |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 419 | |
ad6254c5 | 420 | |
f11781c5 AK |
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ad6254c5 | 443 | |
f11781c5 AK |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
7a197a62 | 450 | } |
ad6254c5 | 451 | |
f11781c5 AK |
452 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
ad6254c5 | 464 | |
f11781c5 AK |
465 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 471 | fi |
f11781c5 AK |
472 | if (echo >conf$$.file) 2>/dev/null; then |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
7a197a62 | 486 | else |
f11781c5 | 487 | as_ln_s='cp -p' |
7a197a62 | 488 | fi |
f11781c5 AK |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 491 | |
f11781c5 AK |
492 | if mkdir -p . 2>/dev/null; then |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
7a197a62 AK |
497 | fi |
498 | ||
f11781c5 AK |
499 | if test -x / >/dev/null 2>&1; then |
500 | as_test_x='test -x' | |
7a197a62 | 501 | else |
f11781c5 AK |
502 | if ls -dL / >/dev/null 2>&1; then |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
7a197a62 | 519 | fi |
f11781c5 | 520 | as_executable_p=$as_test_x |
7a197a62 | 521 | |
f11781c5 AK |
522 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 | 524 | |
f11781c5 AK |
525 | # Sed expression to map a string onto a valid variable name. |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 AK |
527 | |
528 | ||
f11781c5 AK |
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
530 | exec 6>&1 | |
ad6254c5 AK |
531 | |
532 | # Name of the host. | |
f11781c5 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
534 | # so uname gets run too. |
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
536 | ||
ad6254c5 AK |
537 | # |
538 | # Initializations. | |
539 | # | |
795ca3e5 | 540 | ac_default_prefix=/usr/local |
7a197a62 | 541 | ac_clean_files= |
ad6254c5 | 542 | ac_config_libobj_dir=. |
7a197a62 | 543 | LIBOBJS= |
ad6254c5 AK |
544 | cross_compiling=no |
545 | subdirs= | |
546 | MFLAGS= | |
547 | MAKEFLAGS= | |
ad6254c5 | 548 | |
ad6254c5 AK |
549 | # Identity of this package. |
550 | PACKAGE_NAME= | |
551 | PACKAGE_TARNAME= | |
552 | PACKAGE_VERSION= | |
553 | PACKAGE_STRING= | |
554 | PACKAGE_BUGREPORT= | |
f11781c5 | 555 | PACKAGE_URL= |
ad6254c5 AK |
556 | |
557 | ac_unique_file="lib/device/dev-cache.h" | |
558 | # Factoring default headers for most tests. | |
559 | ac_includes_default="\ | |
560 | #include <stdio.h> | |
25fbec5b | 561 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
562 | # include <sys/types.h> |
563 | #endif | |
25fbec5b | 564 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
565 | # include <sys/stat.h> |
566 | #endif | |
25fbec5b | 567 | #ifdef STDC_HEADERS |
ad6254c5 AK |
568 | # include <stdlib.h> |
569 | # include <stddef.h> | |
570 | #else | |
25fbec5b | 571 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
572 | # include <stdlib.h> |
573 | # endif | |
574 | #endif | |
25fbec5b AK |
575 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
577 | # include <memory.h> |
578 | # endif | |
579 | # include <string.h> | |
580 | #endif | |
25fbec5b | 581 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
582 | # include <strings.h> |
583 | #endif | |
25fbec5b | 584 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 585 | # include <inttypes.h> |
ad6254c5 | 586 | #endif |
25fbec5b | 587 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
588 | # include <stdint.h> |
589 | #endif | |
25fbec5b | 590 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
591 | # include <unistd.h> |
592 | #endif" | |
593 | ||
f11781c5 | 594 | ac_header_list= |
795ca3e5 | 595 | ac_default_prefix=/usr |
ec6a6fbe | 596 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 597 | usrsbindir |
ec6a6fbe | 598 | usrlibdir |
4417a8bd | 599 | tmpfilesdir |
e587cb6a | 600 | systemdsystemunitdir |
a5f46f6a AK |
601 | udevdir |
602 | udev_prefix | |
ec6a6fbe AK |
603 | tmpdir |
604 | kernelvsn | |
605 | missingkernel | |
606 | kerneldir | |
607 | interface | |
5723db01 | 608 | LVMETAD_PIDFILE |
6e5c1f75 | 609 | DMEVENTD_PIDFILE |
23b059e7 | 610 | WRITE_INSTALL |
b559a1e6 | 611 | UDEV_HAS_BUILTIN_BLKID |
5723db01 | 612 | UDEV_RULE_EXEC_DETECTION |
0878503f | 613 | UDEV_SYNC |
a5f46f6a | 614 | UDEV_RULES |
f7f0854e | 615 | UDEV_PC |
3ba4a195 | 616 | THIN |
54b362f9 | 617 | TESTING |
ec6a6fbe AK |
618 | STATIC_LINK |
619 | STATICDIR | |
620 | SNAPSHOTS | |
f7f0854e | 621 | SELINUX_PC |
e1b8a236 | 622 | SELINUX_LIBS |
cac52ca4 | 623 | REPLICATORS |
539f4a77 | 624 | READLINE_LIBS |
cac52ca4 | 625 | RAID |
f30875db | 626 | PTHREAD_LIBS |
ec6a6fbe AK |
627 | POOL |
628 | PKGCONFIG | |
606d0858 | 629 | OCFDIR |
37ddf259 | 630 | OCF |
ec6a6fbe AK |
631 | MIRRORS |
632 | LVM_RELEASE_DATE | |
633 | LVM_RELEASE | |
d2c11605 | 634 | LVM_PATH |
ec6a6fbe AK |
635 | LVM_PATCHLEVEL |
636 | LVM_MINOR | |
637 | LVM_MAJOR | |
bf456146 | 638 | LVM_LIBAPI |
ec6a6fbe | 639 | LVM_VERSION |
ec6a6fbe AK |
640 | LVM1_FALLBACK |
641 | LVM1 | |
642 | LOCALEDIR | |
643 | LIB_SUFFIX | |
644 | LDDEPS | |
645 | JOBS | |
646 | INTL_PACKAGE | |
647 | INTL | |
ec6a6fbe AK |
648 | HAVE_REALTIME |
649 | HAVE_LIBDL | |
ec6a6fbe | 650 | FSADM |
bf09a320 | 651 | ELDFLAGS |
ec6a6fbe AK |
652 | DM_LIB_PATCHLEVEL |
653 | DM_LIB_VERSION | |
654 | DM_IOCTLS | |
655 | DM_DEVICE_UID | |
656 | DM_DEVICE_MODE | |
657 | DM_DEVICE_GID | |
658 | DM_COMPAT | |
d1e8046f | 659 | DMEVENTD_PATH |
ec6a6fbe | 660 | DMEVENTD |
19a2c6e0 | 661 | DL_LIBS |
ec6a6fbe | 662 | DEVMAPPER |
b1f08e51 | 663 | DEFAULT_RUN_DIR |
5723db01 | 664 | DEFAULT_DM_RUN_DIR |
3399ae32 | 665 | DEFAULT_LOCK_DIR |
fea55602 | 666 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
667 | DEFAULT_CACHE_SUBDIR |
668 | DEFAULT_BACKUP_SUBDIR | |
669 | DEFAULT_ARCHIVE_SUBDIR | |
670 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
671 | DEBUG |
672 | COPTIMISE_FLAG | |
e2997b73 | 673 | CONFDIR |
ec6a6fbe | 674 | CMDLIB |
d2c11605 | 675 | CLVMD_PATH |
c89bc357 | 676 | CLVMD_CMANAGERS |
ec6a6fbe AK |
677 | CLVMD |
678 | CLUSTER | |
679 | CLDWHOLEARCHIVE | |
680 | CLDNOWHOLEARCHIVE | |
681 | CLDFLAGS | |
cdd50823 | 682 | BUILD_LVMETAD |
ec6a6fbe | 683 | BUILD_DMEVENTD |
66fd4529 | 684 | BUILD_CMIRRORD |
572fefeb | 685 | APPLIB |
ec6a6fbe AK |
686 | MODPROBE_CMD |
687 | MSGFMT | |
688 | LVM2CMD_LIB | |
572fefeb | 689 | LVM2APP_LIB |
d93275eb PR |
690 | UDEV_LIBS |
691 | UDEV_CFLAGS | |
426fc742 PR |
692 | CUNIT_LIBS |
693 | CUNIT_CFLAGS | |
fd4728e1 | 694 | GENPNG |
ec6a6fbe AK |
695 | GENHTML |
696 | LCOV | |
90c80887 AK |
697 | SACKPT_LIBS |
698 | SACKPT_CFLAGS | |
a946372e AK |
699 | DLM_LIBS |
700 | DLM_CFLAGS | |
e2997b73 AK |
701 | CPG_LIBS |
702 | CPG_CFLAGS | |
b6d7a484 AK |
703 | CMAP_LIBS |
704 | CMAP_CFLAGS | |
e2997b73 AK |
705 | CONFDB_LIBS |
706 | CONFDB_CFLAGS | |
a946372e AK |
707 | SALCK_LIBS |
708 | SALCK_CFLAGS | |
e2997b73 AK |
709 | QUORUM_LIBS |
710 | QUORUM_CFLAGS | |
a946372e AK |
711 | COROSYNC_LIBS |
712 | COROSYNC_CFLAGS | |
713 | CMAN_LIBS | |
714 | CMAN_CFLAGS | |
a946372e AK |
715 | PKGCONFIGINIT_LIBS |
716 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
717 | PKG_CONFIG_LIBDIR |
718 | PKG_CONFIG_PATH | |
e2997b73 | 719 | PKG_CONFIG |
f61cacad | 720 | THIN_CHECK_CMD |
ec6a6fbe AK |
721 | POW_LIB |
722 | LIBOBJS | |
723 | ALLOCA | |
724 | CSCOPE_CMD | |
725 | CFLOW_CMD | |
726 | RANLIB | |
727 | MKDIR_P | |
728 | SET_MAKE | |
729 | LN_S | |
730 | INSTALL_DATA | |
731 | INSTALL_SCRIPT | |
732 | INSTALL_PROGRAM | |
733 | EGREP | |
734 | GREP | |
735 | CPP | |
736 | OBJEXT | |
737 | EXEEXT | |
738 | ac_ct_CC | |
739 | CPPFLAGS | |
740 | LDFLAGS | |
741 | CFLAGS | |
742 | CC | |
743 | AWK | |
744 | SED | |
745 | target_os | |
746 | target_vendor | |
747 | target_cpu | |
748 | target | |
749 | host_os | |
750 | host_vendor | |
751 | host_cpu | |
752 | host | |
753 | build_os | |
754 | build_vendor | |
755 | build_cpu | |
756 | build | |
757 | target_alias | |
758 | host_alias | |
759 | build_alias | |
760 | LIBS | |
761 | ECHO_T | |
762 | ECHO_N | |
763 | ECHO_C | |
764 | DEFS | |
765 | mandir | |
766 | localedir | |
767 | libdir | |
768 | psdir | |
769 | pdfdir | |
770 | dvidir | |
771 | htmldir | |
772 | infodir | |
773 | docdir | |
774 | oldincludedir | |
775 | includedir | |
776 | localstatedir | |
777 | sharedstatedir | |
778 | sysconfdir | |
779 | datadir | |
780 | datarootdir | |
781 | libexecdir | |
782 | sbindir | |
783 | bindir | |
784 | program_transform_name | |
785 | prefix | |
786 | exec_prefix | |
f11781c5 | 787 | PACKAGE_URL |
ec6a6fbe AK |
788 | PACKAGE_BUGREPORT |
789 | PACKAGE_STRING | |
790 | PACKAGE_VERSION | |
791 | PACKAGE_TARNAME | |
792 | PACKAGE_NAME | |
793 | PATH_SEPARATOR | |
794 | SHELL' | |
ad6254c5 | 795 | ac_subst_files='' |
ec6a6fbe AK |
796 | ac_user_opts=' |
797 | enable_option_checking | |
798 | enable_static_link | |
799 | with_user | |
800 | with_group | |
801 | with_device_uid | |
802 | with_device_gid | |
803 | with_device_mode | |
d0df875d | 804 | with_device_nodes_on |
c64d7cd3 | 805 | with_default_name_mangling |
ec6a6fbe AK |
806 | enable_lvm1_fallback |
807 | with_lvm1 | |
808 | with_pool | |
809 | with_cluster | |
810 | with_snapshots | |
811 | with_mirrors | |
cac52ca4 | 812 | with_raid |
8fea97b7 | 813 | with_replicators |
3ba4a195 | 814 | with_thin |
f61cacad | 815 | with_thin_check |
ec6a6fbe AK |
816 | enable_readline |
817 | enable_realtime | |
37ddf259 | 818 | enable_ocf |
606d0858 | 819 | with_ocfdir |
5723db01 PR |
820 | with_default_pid_dir |
821 | with_default_dm_run_dir | |
822 | with_default_run_dir | |
ec6a6fbe | 823 | with_clvmd |
8c4e8a18 | 824 | with_clvmd_pidfile |
66fd4529 AK |
825 | enable_cmirrord |
826 | with_cmirrord_pidfile | |
ec6a6fbe AK |
827 | enable_debug |
828 | with_optimisation | |
829 | enable_profiling | |
54b362f9 | 830 | enable_testing |
d1e8046f | 831 | enable_valgrind_pool |
ec6a6fbe | 832 | enable_devmapper |
cdd50823 | 833 | enable_lvmetad |
5723db01 | 834 | with_lvmetad_pidfile |
a5f46f6a AK |
835 | enable_udev_sync |
836 | enable_udev_rules | |
5723db01 | 837 | enable_udev_rule_exec_detection |
ec6a6fbe | 838 | enable_compat |
95eaa683 | 839 | enable_units_compat |
ec6a6fbe AK |
840 | enable_ioctl |
841 | enable_o_direct | |
572fefeb | 842 | enable_applib |
ec6a6fbe AK |
843 | enable_cmdlib |
844 | enable_pkgconfig | |
23b059e7 | 845 | enable_write_install |
ec6a6fbe AK |
846 | enable_fsadm |
847 | enable_dmeventd | |
848 | enable_selinux | |
849 | enable_nls | |
850 | with_localedir | |
851 | with_confdir | |
852 | with_staticdir | |
853 | with_usrlibdir | |
854 | with_usrsbindir | |
a5f46f6a | 855 | with_udev_prefix |
78ce7acc | 856 | with_udevdir |
e587cb6a | 857 | with_systemdsystemunitdir |
4417a8bd | 858 | with_tmpfilesdir |
ec6a6fbe AK |
859 | with_dmeventd_pidfile |
860 | with_dmeventd_path | |
3399ae32 AK |
861 | with_default_system_dir |
862 | with_default_archive_subdir | |
863 | with_default_backup_subdir | |
864 | with_default_cache_subdir | |
865 | with_default_locking_dir | |
fea55602 | 866 | with_default_data_alignment |
ec6a6fbe AK |
867 | with_interface |
868 | ' | |
7a197a62 AK |
869 | ac_precious_vars='build_alias |
870 | host_alias | |
871 | target_alias | |
872 | CC | |
873 | CFLAGS | |
874 | LDFLAGS | |
25fbec5b | 875 | LIBS |
7a197a62 | 876 | CPPFLAGS |
e2997b73 AK |
877 | CPP |
878 | PKG_CONFIG | |
f11781c5 AK |
879 | PKG_CONFIG_PATH |
880 | PKG_CONFIG_LIBDIR | |
a946372e AK |
881 | PKGCONFIGINIT_CFLAGS |
882 | PKGCONFIGINIT_LIBS | |
a946372e AK |
883 | CMAN_CFLAGS |
884 | CMAN_LIBS | |
885 | COROSYNC_CFLAGS | |
886 | COROSYNC_LIBS | |
e2997b73 AK |
887 | QUORUM_CFLAGS |
888 | QUORUM_LIBS | |
a946372e AK |
889 | SALCK_CFLAGS |
890 | SALCK_LIBS | |
e2997b73 AK |
891 | CONFDB_CFLAGS |
892 | CONFDB_LIBS | |
b6d7a484 AK |
893 | CMAP_CFLAGS |
894 | CMAP_LIBS | |
e2997b73 | 895 | CPG_CFLAGS |
a946372e AK |
896 | CPG_LIBS |
897 | DLM_CFLAGS | |
90c80887 AK |
898 | DLM_LIBS |
899 | SACKPT_CFLAGS | |
d93275eb | 900 | SACKPT_LIBS |
426fc742 PR |
901 | CUNIT_CFLAGS |
902 | CUNIT_LIBS | |
d93275eb | 903 | UDEV_CFLAGS |
05fb5158 | 904 | UDEV_LIBS' |
7a197a62 | 905 | |
795ca3e5 AK |
906 | |
907 | # Initialize some variables set by options. | |
ad6254c5 AK |
908 | ac_init_help= |
909 | ac_init_version=false | |
ec6a6fbe AK |
910 | ac_unrecognized_opts= |
911 | ac_unrecognized_sep= | |
795ca3e5 AK |
912 | # The variables have the same names as the options, with |
913 | # dashes changed to underlines. | |
ad6254c5 | 914 | cache_file=/dev/null |
795ca3e5 | 915 | exec_prefix=NONE |
795ca3e5 | 916 | no_create= |
795ca3e5 AK |
917 | no_recursion= |
918 | prefix=NONE | |
919 | program_prefix=NONE | |
920 | program_suffix=NONE | |
921 | program_transform_name=s,x,x, | |
922 | silent= | |
923 | site= | |
924 | srcdir= | |
795ca3e5 AK |
925 | verbose= |
926 | x_includes=NONE | |
927 | x_libraries=NONE | |
ad6254c5 AK |
928 | |
929 | # Installation directory options. | |
930 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
931 | # and all the variables that are supposed to be based on exec_prefix | |
932 | # by default will actually change. | |
933 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 934 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
935 | bindir='${exec_prefix}/bin' |
936 | sbindir='${exec_prefix}/sbin' | |
937 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
938 | datarootdir='${prefix}/share' |
939 | datadir='${datarootdir}' | |
795ca3e5 AK |
940 | sysconfdir='${prefix}/etc' |
941 | sharedstatedir='${prefix}/com' | |
942 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
943 | includedir='${prefix}/include' |
944 | oldincludedir='/usr/include' | |
7a197a62 AK |
945 | docdir='${datarootdir}/doc/${PACKAGE}' |
946 | infodir='${datarootdir}/info' | |
947 | htmldir='${docdir}' | |
948 | dvidir='${docdir}' | |
949 | pdfdir='${docdir}' | |
950 | psdir='${docdir}' | |
951 | libdir='${exec_prefix}/lib' | |
952 | localedir='${datarootdir}/locale' | |
953 | mandir='${datarootdir}/man' | |
795ca3e5 | 954 | |
795ca3e5 | 955 | ac_prev= |
7a197a62 | 956 | ac_dashdash= |
795ca3e5 AK |
957 | for ac_option |
958 | do | |
795ca3e5 AK |
959 | # If the previous option needs an argument, assign it. |
960 | if test -n "$ac_prev"; then | |
7a197a62 | 961 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
962 | ac_prev= |
963 | continue | |
964 | fi | |
965 | ||
7a197a62 AK |
966 | case $ac_option in |
967 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
968 | *) ac_optarg=yes ;; | |
969 | esac | |
795ca3e5 AK |
970 | |
971 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
972 | ||
7a197a62 AK |
973 | case $ac_dashdash$ac_option in |
974 | --) | |
975 | ac_dashdash=yes ;; | |
795ca3e5 AK |
976 | |
977 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
978 | ac_prev=bindir ;; | |
979 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 980 | bindir=$ac_optarg ;; |
795ca3e5 AK |
981 | |
982 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 983 | ac_prev=build_alias ;; |
795ca3e5 | 984 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 985 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
986 | |
987 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
988 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
989 | ac_prev=cache_file ;; | |
990 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
991 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
992 | cache_file=$ac_optarg ;; |
993 | ||
994 | --config-cache | -C) | |
995 | cache_file=config.cache ;; | |
795ca3e5 | 996 | |
7a197a62 | 997 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 998 | ac_prev=datadir ;; |
7a197a62 | 999 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1000 | datadir=$ac_optarg ;; |
795ca3e5 | 1001 | |
7a197a62 AK |
1002 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1003 | | --dataroo | --dataro | --datar) | |
1004 | ac_prev=datarootdir ;; | |
1005 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1006 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1007 | datarootdir=$ac_optarg ;; | |
1008 | ||
795ca3e5 | 1009 | -disable-* | --disable-*) |
ec6a6fbe | 1010 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
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--disable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
1022 | esac | |
1023 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1024 | |
1025 | -docdir | --docdir | --docdi | --doc | --do) | |
1026 | ac_prev=docdir ;; | |
1027 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1028 | docdir=$ac_optarg ;; | |
1029 | ||
1030 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1031 | ac_prev=dvidir ;; | |
1032 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1033 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1034 | |
1035 | -enable-* | --enable-*) | |
ec6a6fbe | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1037 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1039 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1040 | ac_useropt_orig=$ac_useropt |
1041 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1042 | case $ac_user_opts in | |
1043 | *" | |
1044 | "enable_$ac_useropt" | |
1045 | "*) ;; | |
1046 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1047 | ac_unrecognized_sep=', ';; | |
1048 | esac | |
1049 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1050 | |
1051 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1052 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1053 | | --exec | --exe | --ex) | |
1054 | ac_prev=exec_prefix ;; | |
1055 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1056 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1057 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1058 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1059 | |
1060 | -gas | --gas | --ga | --g) | |
1061 | # Obsolete; use --with-gas. | |
1062 | with_gas=yes ;; | |
1063 | ||
ad6254c5 AK |
1064 | -help | --help | --hel | --he | -h) |
1065 | ac_init_help=long ;; | |
1066 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1067 | ac_init_help=recursive ;; | |
1068 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1069 | ac_init_help=short ;; | |
795ca3e5 AK |
1070 | |
1071 | -host | --host | --hos | --ho) | |
ad6254c5 | 1072 | ac_prev=host_alias ;; |
795ca3e5 | 1073 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1074 | host_alias=$ac_optarg ;; |
795ca3e5 | 1075 | |
7a197a62 AK |
1076 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1077 | ac_prev=htmldir ;; | |
1078 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1079 | | --ht=*) | |
1080 | htmldir=$ac_optarg ;; | |
1081 | ||
795ca3e5 AK |
1082 | -includedir | --includedir | --includedi | --included | --include \ |
1083 | | --includ | --inclu | --incl | --inc) | |
1084 | ac_prev=includedir ;; | |
1085 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1086 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1087 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1088 | |
1089 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1090 | ac_prev=infodir ;; | |
1091 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1092 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1093 | |
1094 | -libdir | --libdir | --libdi | --libd) | |
1095 | ac_prev=libdir ;; | |
1096 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1097 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1098 | |
1099 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1100 | | --libexe | --libex | --libe) | |
1101 | ac_prev=libexecdir ;; | |
1102 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1103 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1104 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1105 | |
7a197a62 AK |
1106 | -localedir | --localedir | --localedi | --localed | --locale) |
1107 | ac_prev=localedir ;; | |
1108 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1109 | localedir=$ac_optarg ;; | |
1110 | ||
795ca3e5 | 1111 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1112 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1113 | ac_prev=localstatedir ;; |
1114 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1115 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1116 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1117 | |
1118 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1119 | ac_prev=mandir ;; | |
1120 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1121 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1122 | |
1123 | -nfp | --nfp | --nf) | |
1124 | # Obsolete; use --without-fp. | |
1125 | with_fp=no ;; | |
1126 | ||
1127 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1128 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1129 | no_create=yes ;; |
1130 | ||
1131 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1132 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1133 | no_recursion=yes ;; | |
1134 | ||
1135 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1136 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1137 | | --oldin | --oldi | --old | --ol | --o) | |
1138 | ac_prev=oldincludedir ;; | |
1139 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1140 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1141 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1142 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1143 | |
1144 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1145 | ac_prev=prefix ;; | |
1146 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1147 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1148 | |
1149 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1150 | | --program-pre | --program-pr | --program-p) | |
1151 | ac_prev=program_prefix ;; | |
1152 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1153 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1154 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1155 | |
1156 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1157 | | --program-suf | --program-su | --program-s) | |
1158 | ac_prev=program_suffix ;; | |
1159 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1160 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1161 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1162 | |
1163 | -program-transform-name | --program-transform-name \ | |
1164 | | --program-transform-nam | --program-transform-na \ | |
1165 | | --program-transform-n | --program-transform- \ | |
1166 | | --program-transform | --program-transfor \ | |
1167 | | --program-transfo | --program-transf \ | |
1168 | | --program-trans | --program-tran \ | |
1169 | | --progr-tra | --program-tr | --program-t) | |
1170 | ac_prev=program_transform_name ;; | |
1171 | -program-transform-name=* | --program-transform-name=* \ | |
1172 | | --program-transform-nam=* | --program-transform-na=* \ | |
1173 | | --program-transform-n=* | --program-transform-=* \ | |
1174 | | --program-transform=* | --program-transfor=* \ | |
1175 | | --program-transfo=* | --program-transf=* \ | |
1176 | | --program-trans=* | --program-tran=* \ | |
1177 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1178 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1179 | |
7a197a62 AK |
1180 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1181 | ac_prev=pdfdir ;; | |
1182 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1183 | pdfdir=$ac_optarg ;; | |
1184 | ||
1185 | -psdir | --psdir | --psdi | --psd | --ps) | |
1186 | ac_prev=psdir ;; | |
1187 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1188 | psdir=$ac_optarg ;; | |
1189 | ||
795ca3e5 AK |
1190 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1191 | | -silent | --silent | --silen | --sile | --sil) | |
1192 | silent=yes ;; | |
1193 | ||
1194 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1195 | ac_prev=sbindir ;; | |
1196 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1197 | | --sbi=* | --sb=*) | |
ad6254c5 | 1198 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1199 | |
1200 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1201 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1202 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1203 | | --sha | --sh) | |
1204 | ac_prev=sharedstatedir ;; | |
1205 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1206 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1207 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1208 | | --sha=* | --sh=*) | |
ad6254c5 | 1209 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1210 | |
1211 | -site | --site | --sit) | |
1212 | ac_prev=site ;; | |
1213 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1214 | site=$ac_optarg ;; |
795ca3e5 AK |
1215 | |
1216 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1217 | ac_prev=srcdir ;; | |
1218 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1219 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1220 | |
1221 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1222 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1223 | ac_prev=sysconfdir ;; | |
1224 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1225 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1226 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1227 | |
1228 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1229 | ac_prev=target_alias ;; |
795ca3e5 | 1230 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1231 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1232 | |
1233 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1234 | verbose=yes ;; | |
1235 | ||
ad6254c5 AK |
1236 | -version | --version | --versio | --versi | --vers | -V) |
1237 | ac_init_version=: ;; | |
795ca3e5 AK |
1238 | |
1239 | -with-* | --with-*) | |
ec6a6fbe | 1240 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1241 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1243 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1244 | ac_useropt_orig=$ac_useropt |
1245 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1246 | case $ac_user_opts in | |
1247 | *" | |
1248 | "with_$ac_useropt" | |
1249 | "*) ;; | |
1250 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1251 | ac_unrecognized_sep=', ';; | |
1252 | esac | |
1253 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1254 | |
1255 | -without-* | --without-*) | |
ec6a6fbe | 1256 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1257 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1258 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1259 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1260 | ac_useropt_orig=$ac_useropt |
1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1262 | case $ac_user_opts in | |
1263 | *" | |
1264 | "with_$ac_useropt" | |
1265 | "*) ;; | |
1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1267 | ac_unrecognized_sep=', ';; | |
1268 | esac | |
1269 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1270 | |
1271 | --x) | |
1272 | # Obsolete; use --with-x. | |
1273 | with_x=yes ;; | |
1274 | ||
1275 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1276 | | --x-incl | --x-inc | --x-in | --x-i) | |
1277 | ac_prev=x_includes ;; | |
1278 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1279 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1280 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1281 | |
1282 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1283 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1284 | ac_prev=x_libraries ;; | |
1285 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1286 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1287 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1288 | |
f11781c5 AK |
1289 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1290 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1291 | ;; |
1292 | ||
ad6254c5 AK |
1293 | *=*) |
1294 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1295 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1296 | case $ac_envvar in #( |
1297 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1298 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1299 | esac | |
7a197a62 | 1300 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1301 | export $ac_envvar ;; |
1302 | ||
795ca3e5 | 1303 | *) |
ad6254c5 | 1304 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1305 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1306 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1307 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1308 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1309 | ;; |
1310 | ||
1311 | esac | |
1312 | done | |
1313 | ||
1314 | if test -n "$ac_prev"; then | |
ad6254c5 | 1315 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1316 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1317 | fi |
795ca3e5 | 1318 | |
ec6a6fbe AK |
1319 | if test -n "$ac_unrecognized_opts"; then |
1320 | case $enable_option_checking in | |
1321 | no) ;; | |
f11781c5 | 1322 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1323 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1324 | esac | |
1325 | fi | |
1326 | ||
1327 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1328 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1329 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1330 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1331 | libdir localedir mandir | |
795ca3e5 | 1332 | do |
7a197a62 | 1333 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1334 | # Remove trailing slashes. |
1335 | case $ac_val in | |
1336 | */ ) | |
1337 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1338 | eval $ac_var=\$ac_val;; | |
1339 | esac | |
1340 | # Be sure to have absolute directory names. | |
ad6254c5 | 1341 | case $ac_val in |
7a197a62 AK |
1342 | [\\/$]* | ?:[\\/]* ) continue;; |
1343 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1344 | esac |
f11781c5 | 1345 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1346 | done |
1347 | ||
ad6254c5 AK |
1348 | # There might be people who depend on the old broken behavior: `$host' |
1349 | # used to hold the argument of --host etc. | |
1350 | # FIXME: To remove some day. | |
1351 | build=$build_alias | |
1352 | host=$host_alias | |
1353 | target=$target_alias | |
1354 | ||
1355 | # FIXME: To remove some day. | |
1356 | if test "x$host_alias" != x; then | |
1357 | if test "x$build_alias" = x; then | |
1358 | cross_compiling=maybe | |
f11781c5 AK |
1359 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1360 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1361 | elif test "x$build_alias" != "x$host_alias"; then |
1362 | cross_compiling=yes | |
1363 | fi | |
1364 | fi | |
8106cdd5 | 1365 | |
ad6254c5 AK |
1366 | ac_tool_prefix= |
1367 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1368 | ||
1369 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1370 | |
795ca3e5 | 1371 | |
7a197a62 AK |
1372 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1373 | ac_ls_di=`ls -di .` && | |
1374 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1375 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1376 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1377 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1378 | |
1379 | ||
795ca3e5 AK |
1380 | # Find the source files, if location was not specified. |
1381 | if test -z "$srcdir"; then | |
1382 | ac_srcdir_defaulted=yes | |
7a197a62 | 1383 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1384 | ac_confdir=`$as_dirname -- "$as_myself" || |
1385 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1386 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1387 | X"$as_myself" : 'X\(//\)$' \| \ | |
1388 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1389 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | /^X\(\/\/\)[^/].*/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\/\)$/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\).*/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | s/.*/./; q'` | |
795ca3e5 | 1407 | srcdir=$ac_confdir |
7a197a62 | 1408 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1409 | srcdir=.. |
1410 | fi | |
1411 | else | |
1412 | ac_srcdir_defaulted=no | |
1413 | fi | |
7a197a62 AK |
1414 | if test ! -r "$srcdir/$ac_unique_file"; then |
1415 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1416 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1417 | fi |
7a197a62 AK |
1418 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1419 | ac_abs_confdir=`( | |
f11781c5 | 1420 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1421 | pwd)` |
1422 | # When building in place, set srcdir=. | |
1423 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1424 | srcdir=. | |
1425 | fi | |
1426 | # Remove unnecessary trailing slashes from srcdir. | |
1427 | # Double slashes in file names in object file debugging info | |
1428 | # mess up M-x gdb in Emacs. | |
1429 | case $srcdir in | |
1430 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1431 | esac | |
1432 | for ac_var in $ac_precious_vars; do | |
1433 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1434 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1435 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1436 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1437 | done | |
ad6254c5 AK |
1438 | |
1439 | # | |
1440 | # Report the --help message. | |
1441 | # | |
1442 | if test "$ac_init_help" = "long"; then | |
1443 | # Omit some internal or obsolete options to make the list less imposing. | |
1444 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1445 | cat <<_ACEOF | |
1446 | \`configure' configures this package to adapt to many kinds of systems. | |
1447 | ||
1448 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1449 | ||
1450 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1451 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1452 | ||
1453 | Defaults for the options are specified in brackets. | |
1454 | ||
1455 | Configuration: | |
1456 | -h, --help display this help and exit | |
1457 | --help=short display options specific to this package | |
1458 | --help=recursive display the short help of all the included packages | |
1459 | -V, --version display version information and exit | |
f11781c5 | 1460 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1461 | --cache-file=FILE cache test results in FILE [disabled] |
1462 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1463 | -n, --no-create do not create output files | |
1464 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1465 | ||
ad6254c5 AK |
1466 | Installation directories: |
1467 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1468 | [$ac_default_prefix] |
ad6254c5 | 1469 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1470 | [PREFIX] |
ad6254c5 AK |
1471 | |
1472 | By default, \`make install' will install all the files in | |
1473 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1474 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1475 | for instance \`--prefix=\$HOME'. | |
1476 | ||
1477 | For better control, use the options below. | |
1478 | ||
1479 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1480 | --bindir=DIR user executables [EPREFIX/bin] |
1481 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1482 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1483 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1484 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1485 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1486 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1487 | --includedir=DIR C header files [PREFIX/include] | |
1488 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1489 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1490 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1491 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1492 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1493 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1494 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1495 | --htmldir=DIR html documentation [DOCDIR] | |
1496 | --dvidir=DIR dvi documentation [DOCDIR] | |
1497 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1498 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1499 | _ACEOF |
1500 | ||
1501 | cat <<\_ACEOF | |
1502 | ||
1503 | System types: | |
1504 | --build=BUILD configure for building on BUILD [guessed] | |
1505 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1506 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1507 | _ACEOF | |
1508 | fi | |
1509 | ||
1510 | if test -n "$ac_init_help"; then | |
1511 | ||
1512 | cat <<\_ACEOF | |
1513 | ||
1514 | Optional Features: | |
ec6a6fbe | 1515 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1516 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1517 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1518 | --enable-static_link use this to link the tools to their libraries |
1519 | statically (default is dynamic linking | |
1520 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1521 | device-mapper is missing from the kernel |
71082be4 ZK |
1522 | --disable-readline disable readline support |
1523 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1524 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1525 | resource agents | |
71082be4 ZK |
1526 | --enable-cmirrord enable the cluster mirror log daemon |
1527 | --enable-debug enable debugging | |
1528 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1529 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1530 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1531 | --disable-devmapper disable LVM2 device-mapper interaction |
d38de32b | 1532 | --enable-lvmetad enable the LVM Metadata Daemon |
71082be4 ZK |
1533 | --enable-udev_sync enable synchronisation with udev processing |
1534 | --enable-udev_rules install rule files needed for udev synchronisation | |
5723db01 PR |
1535 | --enable-udev-rule-exec-detection |
1536 | enable executable path detection in udev rules | |
71082be4 ZK |
1537 | --enable-compat enable support for old device-mapper versions |
1538 | --enable-units-compat enable output compatibility with old versions that | |
1539 | that do not use KiB-style unit suffixes | |
1540 | --disable-driver disable calls to device-mapper in the kernel | |
1541 | --disable-o_direct disable O_DIRECT | |
1542 | --enable-applib build application library | |
1543 | --enable-cmdlib build shared command library | |
1544 | --enable-pkgconfig install pkgconfig support | |
1545 | --enable-write_install install user writable files | |
1546 | --disable-fsadm disable fsadm | |
1547 | --enable-dmeventd enable the device-mapper event daemon | |
1548 | --disable-selinux disable selinux support | |
1549 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1550 | |
1551 | Optional Packages: | |
1552 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1553 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1554 | --with-user=USER set the owner of installed files [[USER=]] |
1555 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1556 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1557 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1558 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1559 | --with-device-nodes-on=ON |
1560 | create nodes on resume or create [[ON=resume]] | |
c64d7cd3 PR |
1561 | --with-default-name-mangling=MANGLING |
1562 | default name mangling: auto/none/hex | |
1563 | [[MANGLING=auto]] | |
ad6254c5 | 1564 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1565 | [[TYPE=internal]] |
ad6254c5 | 1566 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1567 | [[TYPE=internal]] |
71082be4 | 1568 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1569 | [[TYPE=internal]] |
71082be4 | 1570 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1571 | [[TYPE=internal]] |
71082be4 | 1572 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1573 | [[TYPE=internal]] |
cac52ca4 JEB |
1574 | --with-raid=TYPE mirror support: internal/shared/none |
1575 | [[TYPE=internal]] | |
71082be4 | 1576 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1577 | [[TYPE=none]] |
3ba4a195 ZK |
1578 | --with-thin=TYPE thin provisioning support: internal/shared/none |
1579 | [[TYPE=none]] | |
f61cacad | 1580 | --with-thin-check=PATH thin_check tool: [[autodetect]] |
606d0858 AK |
1581 | --with-ocfdir=DIR install OCF files in DIR |
1582 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
5723db01 PR |
1583 | --with-default-pid-dir=PID_DIR |
1584 | Default directory to keep PID files in. [[/var/run]] | |
1585 | --with-default-dm-run-dir=DM_RUN_DIR | |
1586 | Default DM run directory. [[/var/run]] | |
1587 | --with-default-run-dir=RUN_DIR | |
1588 | Default LVM run directory. [[/var/run/lvm]] | |
71082be4 | 1589 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1590 | The following cluster manager combinations are valid: |
a946372e AK |
1591 | * cman (RHEL5 or equivalent) |
1592 | * cman,corosync,openais (or selection of them) | |
1091650a | 1593 | * singlenode (localhost only) |
a946372e AK |
1594 | * all (autodetect) |
1595 | * none (disable build) | |
71082be4 | 1596 | [TYPE=none] |
8c4e8a18 | 1597 | --with-clvmd-pidfile=PATH |
5723db01 | 1598 | clvmd pidfile [[PID_DIR/clvmd.pid]] |
71082be4 | 1599 | --with-cmirrord-pidfile=PATH |
5723db01 | 1600 | cmirrord pidfile [[PID_DIR/cmirrord.pid]] |
f11781c5 | 1601 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] |
5723db01 PR |
1602 | --with-lvmetad-pidfile=PATH |
1603 | lvmetad pidfile [[PID_DIR/lvmetad.pid]] | |
f11781c5 AK |
1604 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] |
1605 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1606 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1607 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1608 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1609 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1610 | install udev rule files in UPREFIX [[EPREFIX]] |
1611 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
e587cb6a PR |
1612 | --with-systemdsystemunitdir=DIR |
1613 | systemd service files in DIR | |
4417a8bd PR |
1614 | --with-tmpfilesdir=DIR install configuration files for management of |
1615 | volatile files and directories in DIR | |
1616 | [[SYSCONFDIR/tmpfiles.d]] | |
71082be4 | 1617 | --with-dmeventd-pidfile=PATH |
5723db01 | 1618 | dmeventd pidfile [[PID_DIR/dmeventd.pid]] |
71082be4 | 1619 | --with-dmeventd-path=PATH |
f11781c5 | 1620 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
71082be4 | 1621 | --with-default-system-dir=DIR |
f11781c5 | 1622 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1623 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1624 | default metadata archive subdir [[archive]] |
71082be4 | 1625 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1626 | default metadata backup subdir [[backup]] |
71082be4 | 1627 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1628 | default metadata cache subdir [[cache]] |
71082be4 | 1629 | --with-default-locking-dir=DIR |
f11781c5 | 1630 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1631 | --with-default-data-alignment=NUM |
f11781c5 AK |
1632 | set the default data alignment in MiB [[1]] |
1633 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1634 | |
1635 | Some influential environment variables: | |
1636 | CC C compiler command | |
1637 | CFLAGS C compiler flags | |
1638 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1639 | nonstandard directory <lib dir> | |
25fbec5b | 1640 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1641 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1642 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1643 | CPP C preprocessor |
e2997b73 | 1644 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1645 | PKG_CONFIG_PATH |
1646 | directories to add to pkg-config's search path | |
1647 | PKG_CONFIG_LIBDIR | |
1648 | path overriding pkg-config's built-in search path | |
a946372e AK |
1649 | PKGCONFIGINIT_CFLAGS |
1650 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1651 | PKGCONFIGINIT_LIBS | |
1652 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1653 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1654 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1655 | COROSYNC_CFLAGS | |
1656 | C compiler flags for COROSYNC, overriding pkg-config | |
1657 | COROSYNC_LIBS | |
1658 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1659 | QUORUM_CFLAGS |
1660 | C compiler flags for QUORUM, overriding pkg-config | |
1661 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1662 | SALCK_CFLAGS |
1663 | C compiler flags for SALCK, overriding pkg-config | |
1664 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1665 | CONFDB_CFLAGS |
1666 | C compiler flags for CONFDB, overriding pkg-config | |
1667 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
b6d7a484 AK |
1668 | CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config |
1669 | CMAP_LIBS linker flags for CMAP, overriding pkg-config | |
e2997b73 AK |
1670 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config |
1671 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1672 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1673 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1674 | SACKPT_CFLAGS |
1675 | C compiler flags for SACKPT, overriding pkg-config | |
1676 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
426fc742 PR |
1677 | CUNIT_CFLAGS |
1678 | C compiler flags for CUNIT, overriding pkg-config | |
1679 | CUNIT_LIBS linker flags for CUNIT, overriding pkg-config | |
d93275eb PR |
1680 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1681 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1682 | |
1683 | Use these variables to override the choices made by `configure' or to help | |
1684 | it to find libraries and programs with nonstandard names/locations. | |
1685 | ||
f11781c5 | 1686 | Report bugs to the package provider. |
ad6254c5 | 1687 | _ACEOF |
7a197a62 | 1688 | ac_status=$? |
ad6254c5 AK |
1689 | fi |
1690 | ||
1691 | if test "$ac_init_help" = "recursive"; then | |
1692 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1693 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1694 | test -d "$ac_dir" || |
1695 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1696 | continue | |
ad6254c5 AK |
1697 | ac_builddir=. |
1698 | ||
7a197a62 AK |
1699 | case "$ac_dir" in |
1700 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1701 | *) | |
ec6a6fbe | 1702 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1703 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1704 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1705 | case $ac_top_builddir_sub in |
1706 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1707 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1708 | esac ;; | |
1709 | esac | |
1710 | ac_abs_top_builddir=$ac_pwd | |
1711 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1712 | # for backward compatibility: | |
1713 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1714 | |
1715 | case $srcdir in | |
7a197a62 | 1716 | .) # We are building in place. |
ad6254c5 | 1717 | ac_srcdir=. |
7a197a62 AK |
1718 | ac_top_srcdir=$ac_top_builddir_sub |
1719 | ac_abs_top_srcdir=$ac_pwd ;; | |
1720 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1721 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1722 | ac_top_srcdir=$srcdir |
1723 | ac_abs_top_srcdir=$srcdir ;; | |
1724 | *) # Relative name. | |
1725 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1726 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1727 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1728 | esac |
7a197a62 AK |
1729 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1730 | ||
1731 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1732 | # Check for guested configure. | |
1733 | if test -f "$ac_srcdir/configure.gnu"; then | |
1734 | echo && | |
1735 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1736 | elif test -f "$ac_srcdir/configure"; then | |
1737 | echo && | |
1738 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1739 | else |
ec6a6fbe | 1740 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1741 | fi || ac_status=$? |
1742 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1743 | done |
1744 | fi | |
1745 | ||
7a197a62 | 1746 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1747 | if $ac_init_version; then |
1748 | cat <<\_ACEOF | |
7a197a62 | 1749 | configure |
f11781c5 | 1750 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1751 | |
f11781c5 | 1752 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1753 | This configure script is free software; the Free Software Foundation |
1754 | gives unlimited permission to copy, distribute and modify it. | |
1755 | _ACEOF | |
7a197a62 | 1756 | exit |
ad6254c5 | 1757 | fi |
ad6254c5 | 1758 | |
f11781c5 AK |
1759 | ## ------------------------ ## |
1760 | ## Autoconf initialization. ## | |
1761 | ## ------------------------ ## | |
ad6254c5 | 1762 | |
f11781c5 AK |
1763 | # ac_fn_c_try_compile LINENO |
1764 | # -------------------------- | |
1765 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1766 | ac_fn_c_try_compile () | |
ad6254c5 | 1767 | { |
f11781c5 AK |
1768 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1769 | rm -f conftest.$ac_objext | |
1770 | if { { ac_try="$ac_compile" | |
1771 | case "(($ac_try" in | |
1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1773 | *) ac_try_echo=$ac_try;; | |
1774 | esac | |
1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1776 | $as_echo "$ac_try_echo"; } >&5 | |
1777 | (eval "$ac_compile") 2>conftest.err | |
1778 | ac_status=$? | |
1779 | if test -s conftest.err; then | |
1780 | grep -v '^ *+' conftest.err >conftest.er1 | |
1781 | cat conftest.er1 >&5 | |
1782 | mv -f conftest.er1 conftest.err | |
1783 | fi | |
1784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1785 | test $ac_status = 0; } && { | |
1786 | test -z "$ac_c_werror_flag" || | |
1787 | test ! -s conftest.err | |
1788 | } && test -s conftest.$ac_objext; then : | |
1789 | ac_retval=0 | |
1790 | else | |
1791 | $as_echo "$as_me: failed program was:" >&5 | |
1792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1793 | |
f11781c5 AK |
1794 | ac_retval=1 |
1795 | fi | |
1796 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1797 | as_fn_set_status $ac_retval | |
ad6254c5 | 1798 | |
f11781c5 | 1799 | } # ac_fn_c_try_compile |
ad6254c5 | 1800 | |
f11781c5 AK |
1801 | # ac_fn_c_try_cpp LINENO |
1802 | # ---------------------- | |
1803 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1804 | ac_fn_c_try_cpp () | |
1805 | { | |
1806 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1807 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1808 | case "(($ac_try" in | |
1809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1810 | *) ac_try_echo=$ac_try;; | |
1811 | esac | |
1812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1813 | $as_echo "$ac_try_echo"; } >&5 | |
1814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1815 | ac_status=$? | |
1816 | if test -s conftest.err; then | |
1817 | grep -v '^ *+' conftest.err >conftest.er1 | |
1818 | cat conftest.er1 >&5 | |
1819 | mv -f conftest.er1 conftest.err | |
1820 | fi | |
1821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1822 | test $ac_status = 0; } >/dev/null && { | |
1823 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1824 | test ! -s conftest.err | |
1825 | }; then : | |
1826 | ac_retval=0 | |
1827 | else | |
1828 | $as_echo "$as_me: failed program was:" >&5 | |
1829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1830 | |
f11781c5 AK |
1831 | ac_retval=1 |
1832 | fi | |
1833 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1834 | as_fn_set_status $ac_retval | |
ad6254c5 | 1835 | |
f11781c5 | 1836 | } # ac_fn_c_try_cpp |
d911ec67 | 1837 | |
f11781c5 AK |
1838 | # ac_fn_c_try_link LINENO |
1839 | # ----------------------- | |
1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1841 | ac_fn_c_try_link () | |
d911ec67 | 1842 | { |
f11781c5 AK |
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1845 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1846 | case "(($ac_try" in |
1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 | *) ac_try_echo=$ac_try;; | |
1849 | esac | |
f11781c5 AK |
1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1851 | $as_echo "$ac_try_echo"; } >&5 | |
1852 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1853 | ac_status=$? |
f11781c5 AK |
1854 | if test -s conftest.err; then |
1855 | grep -v '^ *+' conftest.err >conftest.er1 | |
1856 | cat conftest.er1 >&5 | |
1857 | mv -f conftest.er1 conftest.err | |
1858 | fi | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { | |
1861 | test -z "$ac_c_werror_flag" || | |
1862 | test ! -s conftest.err | |
1863 | } && test -s conftest$ac_exeext && { | |
1864 | test "$cross_compiling" = yes || | |
1865 | $as_test_x conftest$ac_exeext | |
1866 | }; then : | |
1867 | ac_retval=0 | |
d911ec67 | 1868 | else |
f11781c5 | 1869 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 |
1871 | ||
f11781c5 | 1872 | ac_retval=1 |
d911ec67 | 1873 | fi |
f11781c5 AK |
1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1876 | # interfere with the next link command; also delete a directory that is | |
1877 | # left behind by Apple's compiler. We do this before executing the actions. | |
1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1879 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1880 | as_fn_set_status $ac_retval | |
d911ec67 | 1881 | |
f11781c5 | 1882 | } # ac_fn_c_try_link |
d911ec67 | 1883 | |
f11781c5 AK |
1884 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1885 | # ------------------------------------------------------- | |
1886 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1887 | # the include files in INCLUDES and setting the cache variable VAR | |
1888 | # accordingly. | |
1889 | ac_fn_c_check_header_mongrel () | |
1890 | { | |
1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1892 | if eval "test \"\${$3+set}\"" = set; then : | |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1894 | $as_echo_n "checking for $2... " >&6; } | |
1895 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1896 | $as_echo_n "(cached) " >&6 |
1897 | fi | |
f11781c5 AK |
1898 | eval ac_res=\$$3 |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1900 | $as_echo "$ac_res" >&6; } |
1901 | else | |
1902 | # Is the header compilable? | |
f11781c5 AK |
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1904 | $as_echo_n "checking $2 usability... " >&6; } | |
1905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1906 | /* end confdefs.h. */ |
f11781c5 AK |
1907 | $4 |
1908 | #include <$2> | |
d911ec67 | 1909 | _ACEOF |
f11781c5 | 1910 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1911 | ac_header_compiler=yes |
1912 | else | |
f11781c5 | 1913 | ac_header_compiler=no |
d911ec67 | 1914 | fi |
d911ec67 | 1915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1917 | $as_echo "$ac_header_compiler" >&6; } |
1918 | ||
1919 | # Is the header present? | |
f11781c5 AK |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1921 | $as_echo_n "checking $2 presence... " >&6; } | |
1922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1923 | /* end confdefs.h. */ |
f11781c5 | 1924 | #include <$2> |
d911ec67 | 1925 | _ACEOF |
f11781c5 | 1926 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1927 | ac_header_preproc=yes |
1928 | else | |
d911ec67 AK |
1929 | ac_header_preproc=no |
1930 | fi | |
d911ec67 | 1931 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1933 | $as_echo "$ac_header_preproc" >&6; } |
1934 | ||
1935 | # So? What about this header? | |
f11781c5 | 1936 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1937 | yes:no: ) |
f11781c5 AK |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1939 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1941 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1942 | ;; |
1943 | no:yes:* ) | |
f11781c5 AK |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1945 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1947 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1949 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1951 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1953 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1954 | ;; |
1955 | esac | |
f11781c5 AK |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1957 | $as_echo_n "checking for $2... " >&6; } | |
1958 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1959 | $as_echo_n "(cached) " >&6 |
1960 | else | |
f11781c5 | 1961 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1962 | fi |
f11781c5 AK |
1963 | eval ac_res=\$$3 |
1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1965 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1966 | fi |
f11781c5 | 1967 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1968 | |
f11781c5 | 1969 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1970 | |
f11781c5 AK |
1971 | # ac_fn_c_try_run LINENO |
1972 | # ---------------------- | |
1973 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1974 | # that executables *can* be run. | |
1975 | ac_fn_c_try_run () | |
ad6254c5 | 1976 | { |
f11781c5 AK |
1977 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1978 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1979 | case "(($ac_try" in |
1980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1981 | *) ac_try_echo=$ac_try;; | |
1982 | esac | |
f11781c5 AK |
1983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1984 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1985 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1986 | ac_status=$? |
f11781c5 AK |
1987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1988 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1989 | { { case "(($ac_try" in | |
7a197a62 AK |
1990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1991 | *) ac_try_echo=$ac_try;; | |
1992 | esac | |
f11781c5 AK |
1993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1994 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1995 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1996 | ac_status=$? |
f11781c5 AK |
1997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1998 | test $ac_status = 0; }; }; then : | |
1999 | ac_retval=0 | |
ad6254c5 | 2000 | else |
ec6a6fbe | 2001 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 2002 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2003 | sed 's/^/| /' conftest.$ac_ext >&5 |
2004 | ||
f11781c5 | 2005 | ac_retval=$ac_status |
ad6254c5 | 2006 | fi |
f11781c5 AK |
2007 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2008 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2009 | as_fn_set_status $ac_retval | |
ad6254c5 | 2010 | |
f11781c5 | 2011 | } # ac_fn_c_try_run |
ad6254c5 | 2012 | |
f11781c5 AK |
2013 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2014 | # ------------------------------------------------------- | |
2015 | # Tests whether HEADER exists and can be compiled using the include files in | |
2016 | # INCLUDES, setting the cache variable VAR accordingly. | |
2017 | ac_fn_c_check_header_compile () | |
2018 | { | |
2019 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2021 | $as_echo_n "checking for $2... " >&6; } | |
2022 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2023 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2024 | else |
f11781c5 | 2025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 2026 | /* end confdefs.h. */ |
f11781c5 AK |
2027 | $4 |
2028 | #include <$2> | |
ad6254c5 | 2029 | _ACEOF |
f11781c5 AK |
2030 | if ac_fn_c_try_compile "$LINENO"; then : |
2031 | eval "$3=yes" | |
ad6254c5 | 2032 | else |
f11781c5 | 2033 | eval "$3=no" |
ad6254c5 | 2034 | fi |
7a197a62 | 2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2036 | fi |
f11781c5 AK |
2037 | eval ac_res=\$$3 |
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2039 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2040 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2041 | |
f11781c5 | 2042 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2043 | |
f11781c5 AK |
2044 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2045 | # ---------------------------------------------------- | |
2046 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2047 | # INCLUDES, setting cache variable VAR accordingly. | |
2048 | ac_fn_c_check_member () | |
2049 | { | |
2050 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2052 | $as_echo_n "checking for $2.$3... " >&6; } | |
2053 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2054 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2055 | else |
f11781c5 AK |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2057 | /* end confdefs.h. */ | |
2058 | $5 | |
2059 | int | |
2060 | main () | |
2061 | { | |
2062 | static $2 ac_aggr; | |
2063 | if (ac_aggr.$3) | |
2064 | return 0; | |
2065 | ; | |
2066 | return 0; | |
2067 | } | |
ad6254c5 | 2068 | _ACEOF |
f11781c5 AK |
2069 | if ac_fn_c_try_compile "$LINENO"; then : |
2070 | eval "$4=yes" | |
2071 | else | |
2072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2073 | /* end confdefs.h. */ |
f11781c5 AK |
2074 | $5 |
2075 | int | |
2076 | main () | |
2077 | { | |
2078 | static $2 ac_aggr; | |
2079 | if (sizeof ac_aggr.$3) | |
2080 | return 0; | |
2081 | ; | |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
2085 | if ac_fn_c_try_compile "$LINENO"; then : | |
2086 | eval "$4=yes" | |
2087 | else | |
2088 | eval "$4=no" | |
2089 | fi | |
2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2091 | fi | |
2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2093 | fi | |
2094 | eval ac_res=\$$4 | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2096 | $as_echo "$ac_res" >&6; } | |
2097 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2098 | ||
2099 | } # ac_fn_c_check_member | |
795ca3e5 | 2100 | |
f11781c5 AK |
2101 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2102 | # ------------------------------------------- | |
2103 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2104 | # variable VAR accordingly. | |
2105 | ac_fn_c_check_type () | |
2106 | { | |
2107 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2109 | $as_echo_n "checking for $2... " >&6; } | |
2110 | if eval "test \"\${$3+set}\"" = set; then : | |
2111 | $as_echo_n "(cached) " >&6 | |
2112 | else | |
2113 | eval "$3=no" | |
2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2115 | /* end confdefs.h. */ | |
2116 | $4 | |
ad6254c5 AK |
2117 | int |
2118 | main () | |
2119 | { | |
f11781c5 AK |
2120 | if (sizeof ($2)) |
2121 | return 0; | |
ad6254c5 AK |
2122 | ; |
2123 | return 0; | |
2124 | } | |
2125 | _ACEOF | |
f11781c5 AK |
2126 | if ac_fn_c_try_compile "$LINENO"; then : |
2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2128 | /* end confdefs.h. */ | |
2129 | $4 | |
2130 | int | |
2131 | main () | |
2132 | { | |
2133 | if (sizeof (($2))) | |
2134 | return 0; | |
2135 | ; | |
2136 | return 0; | |
2137 | } | |
2138 | _ACEOF | |
2139 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2140 | |
f11781c5 AK |
2141 | else |
2142 | eval "$3=yes" | |
795ca3e5 | 2143 | fi |
f11781c5 AK |
2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2145 | fi | |
2146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2147 | fi |
f11781c5 AK |
2148 | eval ac_res=\$$3 |
2149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2150 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2151 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2152 | |
f11781c5 | 2153 | } # ac_fn_c_check_type |
ad6254c5 | 2154 | |
f11781c5 AK |
2155 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2156 | # ----------------------------------- | |
2157 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2158 | # accordingly. | |
2159 | ac_fn_c_find_intX_t () | |
2160 | { | |
2161 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2163 | $as_echo_n "checking for int$2_t... " >&6; } | |
2164 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2165 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2166 | else |
f11781c5 AK |
2167 | eval "$3=no" |
2168 | # Order is important - never check a type that is potentially smaller | |
2169 | # than half of the expected target width. | |
2170 | for ac_type in int$2_t 'int' 'long int' \ | |
2171 | 'long long int' 'short int' 'signed char'; do | |
2172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2173 | /* end confdefs.h. */ |
2174 | $ac_includes_default | |
f11781c5 | 2175 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2176 | int |
2177 | main () | |
2178 | { | |
f11781c5 AK |
2179 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2180 | test_array [0] = 0 | |
7a197a62 | 2181 | |
f11781c5 AK |
2182 | ; |
2183 | return 0; | |
2184 | } | |
2185 | _ACEOF | |
2186 | if ac_fn_c_try_compile "$LINENO"; then : | |
2187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2188 | /* end confdefs.h. */ | |
2189 | $ac_includes_default | |
2190 | enum { N = $2 / 2 - 1 }; | |
2191 | int | |
2192 | main () | |
2193 | { | |
2194 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2195 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2196 | test_array [0] = 0 | |
7a197a62 AK |
2197 | |
2198 | ; | |
2199 | return 0; | |
2200 | } | |
ad6254c5 | 2201 | _ACEOF |
f11781c5 | 2202 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2203 | |
f11781c5 AK |
2204 | else |
2205 | case $ac_type in #( | |
2206 | int$2_t) : | |
2207 | eval "$3=yes" ;; #( | |
2208 | *) : | |
2209 | eval "$3=\$ac_type" ;; | |
2210 | esac | |
ad6254c5 | 2211 | fi |
f11781c5 | 2212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2213 | fi |
f11781c5 AK |
2214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2215 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2216 | |
2217 | else | |
f11781c5 | 2218 | break |
ad6254c5 | 2219 | fi |
f11781c5 | 2220 | done |
ad6254c5 | 2221 | fi |
f11781c5 AK |
2222 | eval ac_res=\$$3 |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2224 | $as_echo "$ac_res" >&6; } | |
2225 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2226 | ||
2227 | } # ac_fn_c_find_intX_t | |
2228 | ||
2229 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2230 | # ------------------------------------ | |
2231 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2232 | # accordingly. | |
2233 | ac_fn_c_find_uintX_t () | |
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 uint$2_t" >&5 | |
2237 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2238 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2239 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2240 | else |
f11781c5 AK |
2241 | eval "$3=no" |
2242 | # Order is important - never check a type that is potentially smaller | |
2243 | # than half of the expected target width. | |
2244 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2245 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2247 | /* end confdefs.h. */ |
7a197a62 | 2248 | $ac_includes_default |
ad6254c5 AK |
2249 | int |
2250 | main () | |
2251 | { | |
f11781c5 AK |
2252 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2253 | test_array [0] = 0 | |
ad6254c5 | 2254 | |
f11781c5 AK |
2255 | ; |
2256 | return 0; | |
ad6254c5 AK |
2257 | } |
2258 | _ACEOF | |
f11781c5 AK |
2259 | if ac_fn_c_try_compile "$LINENO"; then : |
2260 | case $ac_type in #( | |
2261 | uint$2_t) : | |
2262 | eval "$3=yes" ;; #( | |
2263 | *) : | |
2264 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2265 | esac |
ad6254c5 | 2266 | fi |
f11781c5 AK |
2267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2268 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2269 | |
f11781c5 AK |
2270 | else |
2271 | break | |
ad6254c5 | 2272 | fi |
f11781c5 | 2273 | done |
ad6254c5 | 2274 | fi |
f11781c5 AK |
2275 | eval ac_res=\$$3 |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2277 | $as_echo "$ac_res" >&6; } | |
2278 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2279 | |
f11781c5 | 2280 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2281 | |
f11781c5 AK |
2282 | # ac_fn_c_check_func LINENO FUNC VAR |
2283 | # ---------------------------------- | |
2284 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2285 | ac_fn_c_check_func () | |
2286 | { | |
2287 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2289 | $as_echo_n "checking for $2... " >&6; } | |
2290 | if eval "test \"\${$3+set}\"" = set; then : | |
2291 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2292 | else |
f11781c5 AK |
2293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2294 | /* end confdefs.h. */ | |
2295 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2297 | #define $2 innocuous_$2 | |
ad6254c5 | 2298 | |
f11781c5 AK |
2299 | /* System header to define __stub macros and hopefully few prototypes, |
2300 | which can conflict with char $2 (); below. | |
2301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2302 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2303 | |
f11781c5 AK |
2304 | #ifdef __STDC__ |
2305 | # include <limits.h> | |
2306 | #else | |
2307 | # include <assert.h> | |
2308 | #endif | |
ad6254c5 | 2309 | |
f11781c5 AK |
2310 | #undef $2 |
2311 | ||
2312 | /* Override any GCC internal prototype to avoid an error. | |
2313 | Use char because int might match the return type of a GCC | |
2314 | builtin and then its argument prototype would still apply. */ | |
2315 | #ifdef __cplusplus | |
2316 | extern "C" | |
2317 | #endif | |
2318 | char $2 (); | |
2319 | /* The GNU C library defines this for functions which it implements | |
2320 | to always fail with ENOSYS. Some functions are actually named | |
2321 | something starting with __ and the normal name is an alias. */ | |
2322 | #if defined __stub_$2 || defined __stub___$2 | |
2323 | choke me | |
2324 | #endif | |
ad6254c5 | 2325 | |
ad6254c5 AK |
2326 | int |
2327 | main () | |
2328 | { | |
f11781c5 | 2329 | return $2 (); |
ad6254c5 AK |
2330 | ; |
2331 | return 0; | |
2332 | } | |
2333 | _ACEOF | |
f11781c5 AK |
2334 | if ac_fn_c_try_link "$LINENO"; then : |
2335 | eval "$3=yes" | |
ad6254c5 | 2336 | else |
f11781c5 | 2337 | eval "$3=no" |
ad6254c5 | 2338 | fi |
f11781c5 AK |
2339 | rm -f core conftest.err conftest.$ac_objext \ |
2340 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2341 | fi |
f11781c5 AK |
2342 | eval ac_res=\$$3 |
2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2344 | $as_echo "$ac_res" >&6; } | |
2345 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2346 | |
f11781c5 AK |
2347 | } # ac_fn_c_check_func |
2348 | cat >config.log <<_ACEOF | |
2349 | This file contains any messages produced by compilers while | |
2350 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2351 | |
f11781c5 AK |
2352 | It was created by $as_me, which was |
2353 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2354 | |
f11781c5 | 2355 | $ $0 $@ |
ad6254c5 | 2356 | |
ad6254c5 | 2357 | _ACEOF |
f11781c5 AK |
2358 | exec 5>>config.log |
2359 | { | |
2360 | cat <<_ASUNAME | |
2361 | ## --------- ## | |
2362 | ## Platform. ## | |
2363 | ## --------- ## | |
ad6254c5 | 2364 | |
f11781c5 AK |
2365 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2366 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2367 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2368 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2369 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2370 | |
f11781c5 AK |
2371 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2372 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2373 | |
f11781c5 AK |
2374 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2375 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2376 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2377 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2378 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2379 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2380 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2381 | ||
2382 | _ASUNAME | |
2383 | ||
2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2385 | for as_dir in $PATH | |
2386 | do | |
2387 | IFS=$as_save_IFS | |
2388 | test -z "$as_dir" && as_dir=. | |
2389 | $as_echo "PATH: $as_dir" | |
2390 | done | |
2391 | IFS=$as_save_IFS | |
2392 | ||
2393 | } >&5 | |
2394 | ||
2395 | cat >&5 <<_ACEOF | |
2396 | ||
2397 | ||
2398 | ## ----------- ## | |
2399 | ## Core tests. ## | |
2400 | ## ----------- ## | |
ad6254c5 | 2401 | |
ad6254c5 | 2402 | _ACEOF |
ad6254c5 | 2403 | |
7a197a62 | 2404 | |
f11781c5 AK |
2405 | # Keep a trace of the command line. |
2406 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2407 | # Strip out --silent because we don't want to record it for future runs. | |
2408 | # Also quote any args containing shell meta-characters. | |
2409 | # Make two passes to allow for proper duplicate-argument suppression. | |
2410 | ac_configure_args= | |
2411 | ac_configure_args0= | |
2412 | ac_configure_args1= | |
2413 | ac_must_keep_next=false | |
2414 | for ac_pass in 1 2 | |
2415 | do | |
2416 | for ac_arg | |
2417 | do | |
2418 | case $ac_arg in | |
2419 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2420 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2421 | | -silent | --silent | --silen | --sile | --sil) | |
2422 | continue ;; | |
2423 | *\'*) | |
2424 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2425 | esac | |
2426 | case $ac_pass in | |
2427 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2428 | 2) | |
2429 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2430 | if test $ac_must_keep_next = true; then | |
2431 | ac_must_keep_next=false # Got value, back to normal. | |
2432 | else | |
2433 | case $ac_arg in | |
2434 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2435 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2436 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2437 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2438 | case "$ac_configure_args0 " in | |
2439 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2440 | esac | |
2441 | ;; | |
2442 | -* ) ac_must_keep_next=true ;; | |
2443 | esac | |
2444 | fi | |
2445 | as_fn_append ac_configure_args " '$ac_arg'" | |
2446 | ;; | |
2447 | esac | |
2448 | done | |
2449 | done | |
2450 | { ac_configure_args0=; unset ac_configure_args0;} | |
2451 | { ac_configure_args1=; unset ac_configure_args1;} | |
2452 | ||
2453 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2454 | # config.log. We remove comments because anyway the quotes in there | |
2455 | # would cause problems or look ugly. | |
2456 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2457 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2458 | trap 'exit_status=$? | |
2459 | # Save into config.log some information that might help in debugging. | |
2460 | { | |
2461 | echo | |
2462 | ||
2463 | $as_echo "## ---------------- ## | |
2464 | ## Cache variables. ## | |
2465 | ## ---------------- ##" | |
2466 | echo | |
2467 | # The following way of writing the cache mishandles newlines in values, | |
2468 | ( | |
2469 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2470 | eval ac_val=\$$ac_var | |
2471 | case $ac_val in #( | |
2472 | *${as_nl}*) | |
2473 | case $ac_var in #( | |
2474 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2475 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2476 | esac | |
2477 | case $ac_var in #( | |
2478 | _ | IFS | as_nl) ;; #( | |
2479 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2480 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2481 | esac ;; | |
2482 | esac | |
2483 | done | |
2484 | (set) 2>&1 | | |
2485 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2486 | *${as_nl}ac_space=\ *) | |
2487 | sed -n \ | |
2488 | "s/'\''/'\''\\\\'\'''\''/g; | |
2489 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2490 | ;; #( | |
2491 | *) | |
2492 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2493 | ;; | |
2494 | esac | | |
2495 | sort | |
2496 | ) | |
2497 | echo | |
2498 | ||
2499 | $as_echo "## ----------------- ## | |
2500 | ## Output variables. ## | |
2501 | ## ----------------- ##" | |
2502 | echo | |
2503 | for ac_var in $ac_subst_vars | |
2504 | do | |
2505 | eval ac_val=\$$ac_var | |
2506 | case $ac_val in | |
2507 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2508 | esac | |
2509 | $as_echo "$ac_var='\''$ac_val'\''" | |
2510 | done | sort | |
2511 | echo | |
2512 | ||
2513 | if test -n "$ac_subst_files"; then | |
2514 | $as_echo "## ------------------- ## | |
2515 | ## File substitutions. ## | |
2516 | ## ------------------- ##" | |
2517 | echo | |
2518 | for ac_var in $ac_subst_files | |
2519 | do | |
2520 | eval ac_val=\$$ac_var | |
2521 | case $ac_val in | |
2522 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2523 | esac | |
2524 | $as_echo "$ac_var='\''$ac_val'\''" | |
2525 | done | sort | |
2526 | echo | |
2527 | fi | |
2528 | ||
2529 | if test -s confdefs.h; then | |
2530 | $as_echo "## ----------- ## | |
2531 | ## confdefs.h. ## | |
2532 | ## ----------- ##" | |
2533 | echo | |
2534 | cat confdefs.h | |
2535 | echo | |
2536 | fi | |
2537 | test "$ac_signal" != 0 && | |
2538 | $as_echo "$as_me: caught signal $ac_signal" | |
2539 | $as_echo "$as_me: exit $exit_status" | |
2540 | } >&5 | |
2541 | rm -f core *.core core.conftest.* && | |
2542 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2543 | exit $exit_status | |
2544 | ' 0 | |
2545 | for ac_signal in 1 2 13 15; do | |
2546 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2547 | done | |
2548 | ac_signal=0 | |
2549 | ||
2550 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2551 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2552 | |
f11781c5 | 2553 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2554 | |
f11781c5 | 2555 | # Predefined preprocessor variables. |
ad6254c5 AK |
2556 | |
2557 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2558 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2559 | _ACEOF |
2560 | ||
f11781c5 AK |
2561 | cat >>confdefs.h <<_ACEOF |
2562 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2563 | _ACEOF |
ad6254c5 | 2564 | |
f11781c5 AK |
2565 | cat >>confdefs.h <<_ACEOF |
2566 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2567 | _ACEOF |
f11781c5 AK |
2568 | |
2569 | cat >>confdefs.h <<_ACEOF | |
2570 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2571 | _ACEOF |
ad6254c5 | 2572 | |
f11781c5 AK |
2573 | cat >>confdefs.h <<_ACEOF |
2574 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2575 | _ACEOF | |
7a197a62 | 2576 | |
f11781c5 AK |
2577 | cat >>confdefs.h <<_ACEOF |
2578 | #define PACKAGE_URL "$PACKAGE_URL" | |
2579 | _ACEOF | |
ad6254c5 | 2580 | |
7a197a62 | 2581 | |
f11781c5 AK |
2582 | # Let the site file select an alternate cache file if it wants to. |
2583 | # Prefer an explicitly selected file to automatically selected ones. | |
2584 | ac_site_file1=NONE | |
2585 | ac_site_file2=NONE | |
2586 | if test -n "$CONFIG_SITE"; then | |
2587 | # We do not want a PATH search for config.site. | |
2588 | case $CONFIG_SITE in #(( | |
2589 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2590 | */*) ac_site_file1=$CONFIG_SITE;; | |
2591 | *) ac_site_file1=./$CONFIG_SITE;; | |
2592 | esac | |
2593 | elif test "x$prefix" != xNONE; then | |
2594 | ac_site_file1=$prefix/share/config.site | |
2595 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2596 | else |
f11781c5 AK |
2597 | ac_site_file1=$ac_default_prefix/share/config.site |
2598 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2599 | fi |
f11781c5 AK |
2600 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2601 | do | |
2602 | test "x$ac_site_file" = xNONE && continue | |
2603 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2605 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2606 | sed 's/^/| /' "$ac_site_file" >&5 | |
2607 | . "$ac_site_file" \ | |
2608 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2610 | as_fn_error $? "failed to load site script $ac_site_file | |
2611 | See \`config.log' for more details" "$LINENO" 5; } | |
2612 | fi | |
2613 | done | |
ad6254c5 | 2614 | |
f11781c5 AK |
2615 | if test -r "$cache_file"; then |
2616 | # Some versions of bash will fail to source /dev/null (special files | |
2617 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2618 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2620 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2621 | case $cache_file in | |
2622 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2623 | *) . "./$cache_file";; | |
2624 | esac | |
2625 | fi | |
2626 | else | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2628 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2629 | >$cache_file | |
ad6254c5 | 2630 | fi |
ad6254c5 | 2631 | |
f11781c5 AK |
2632 | as_fn_append ac_header_list " stdlib.h" |
2633 | as_fn_append ac_header_list " unistd.h" | |
2634 | as_fn_append ac_header_list " sys/param.h" | |
2635 | # Check that the precious variables saved in the cache have kept the same | |
2636 | # value. | |
2637 | ac_cache_corrupted=false | |
2638 | for ac_var in $ac_precious_vars; do | |
2639 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2640 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2641 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2642 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2643 | case $ac_old_set,$ac_new_set in | |
2644 | set,) | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2646 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2647 | ac_cache_corrupted=: ;; | |
2648 | ,set) | |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2650 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2651 | ac_cache_corrupted=: ;; | |
2652 | ,);; | |
2653 | *) | |
2654 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2655 | # differences in whitespace do not lead to failure. | |
2656 | ac_old_val_w=`echo x $ac_old_val` | |
2657 | ac_new_val_w=`echo x $ac_new_val` | |
2658 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2660 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2661 | ac_cache_corrupted=: | |
2662 | else | |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2664 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2665 | eval $ac_var=\$ac_old_val | |
2666 | fi | |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2668 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2670 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2671 | fi;; | |
2672 | esac | |
2673 | # Pass precious variables to config.status. | |
2674 | if test "$ac_new_set" = set; then | |
2675 | case $ac_new_val in | |
2676 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2677 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2678 | esac | |
2679 | case " $ac_configure_args " in | |
2680 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2681 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2682 | esac | |
2683 | fi | |
2684 | done | |
2685 | if $ac_cache_corrupted; then | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2687 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2689 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2690 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2691 | fi |
f11781c5 AK |
2692 | ## -------------------- ## |
2693 | ## Main body of script. ## | |
2694 | ## -------------------- ## | |
ad6254c5 | 2695 | |
f11781c5 AK |
2696 | ac_ext=c |
2697 | ac_cpp='$CPP $CPPFLAGS' | |
2698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2701 | |
ad6254c5 | 2702 | |
ad6254c5 | 2703 | |
f11781c5 | 2704 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2705 | |
2706 | ||
f11781c5 AK |
2707 | ################################################################################ |
2708 | ac_aux_dir= | |
2709 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2710 | if test -f "$ac_dir/install-sh"; then | |
2711 | ac_aux_dir=$ac_dir | |
2712 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2713 | break | |
2714 | elif test -f "$ac_dir/install.sh"; then | |
2715 | ac_aux_dir=$ac_dir | |
2716 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2717 | break | |
2718 | elif test -f "$ac_dir/shtool"; then | |
2719 | ac_aux_dir=$ac_dir | |
2720 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2721 | break | |
2722 | fi | |
2723 | done | |
2724 | if test -z "$ac_aux_dir"; then | |
2725 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2726 | fi |
ad6254c5 | 2727 | |
f11781c5 AK |
2728 | # These three variables are undocumented and unsupported, |
2729 | # and are intended to be withdrawn in a future Autoconf release. | |
2730 | # They can cause serious problems if a builder's source tree is in a directory | |
2731 | # whose full name contains unusual characters. | |
2732 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2733 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2734 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2735 | |
ad6254c5 | 2736 | |
8a2fc586 | 2737 | |
f11781c5 AK |
2738 | ################################################################################ |
2739 | # Make sure we can run config.sub. | |
2740 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2741 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2742 | |
f11781c5 AK |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2744 | $as_echo_n "checking build system type... " >&6; } | |
2745 | if test "${ac_cv_build+set}" = set; then : | |
2746 | $as_echo_n "(cached) " >&6 | |
2747 | else | |
2748 | ac_build_alias=$build_alias | |
2749 | test "x$ac_build_alias" = x && | |
2750 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2751 | test "x$ac_build_alias" = x && | |
2752 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2753 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2754 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2755 | |
2756 | fi | |
f11781c5 AK |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2758 | $as_echo "$ac_cv_build" >&6; } | |
2759 | case $ac_cv_build in | |
2760 | *-*-*) ;; | |
2761 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2762 | esac | |
2763 | build=$ac_cv_build | |
2764 | ac_save_IFS=$IFS; IFS='-' | |
2765 | set x $ac_cv_build | |
2766 | shift | |
2767 | build_cpu=$1 | |
2768 | build_vendor=$2 | |
2769 | shift; shift | |
2770 | # Remember, the first character of IFS is used to create $*, | |
2771 | # except with old shells: | |
2772 | build_os=$* | |
2773 | IFS=$ac_save_IFS | |
2774 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2775 | |
2776 | ||
f11781c5 AK |
2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2778 | $as_echo_n "checking host system type... " >&6; } | |
2779 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2780 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2781 | else |
f11781c5 AK |
2782 | if test "x$host_alias" = x; then |
2783 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2784 | else |
f11781c5 AK |
2785 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2786 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2787 | fi | |
ad6254c5 | 2788 | |
f11781c5 AK |
2789 | fi |
2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2791 | $as_echo "$ac_cv_host" >&6; } | |
2792 | case $ac_cv_host in | |
2793 | *-*-*) ;; | |
2794 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2795 | esac | |
2796 | host=$ac_cv_host | |
2797 | ac_save_IFS=$IFS; IFS='-' | |
2798 | set x $ac_cv_host | |
2799 | shift | |
2800 | host_cpu=$1 | |
2801 | host_vendor=$2 | |
2802 | shift; shift | |
2803 | # Remember, the first character of IFS is used to create $*, | |
2804 | # except with old shells: | |
2805 | host_os=$* | |
2806 | IFS=$ac_save_IFS | |
2807 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2808 | |
ad6254c5 | 2809 | |
f11781c5 AK |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2811 | $as_echo_n "checking target system type... " >&6; } | |
2812 | if test "${ac_cv_target+set}" = set; then : | |
2813 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2814 | else |
f11781c5 AK |
2815 | if test "x$target_alias" = x; then |
2816 | ac_cv_target=$ac_cv_host | |
2817 | else | |
2818 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2819 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2820 | fi |
7a197a62 | 2821 | |
ad6254c5 | 2822 | fi |
f11781c5 AK |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2824 | $as_echo "$ac_cv_target" >&6; } | |
2825 | case $ac_cv_target in | |
2826 | *-*-*) ;; | |
2827 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2828 | esac |
f11781c5 AK |
2829 | target=$ac_cv_target |
2830 | ac_save_IFS=$IFS; IFS='-' | |
2831 | set x $ac_cv_target | |
2832 | shift | |
2833 | target_cpu=$1 | |
2834 | target_vendor=$2 | |
2835 | shift; shift | |
2836 | # Remember, the first character of IFS is used to create $*, | |
2837 | # except with old shells: | |
2838 | target_os=$* | |
2839 | IFS=$ac_save_IFS | |
2840 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2841 | |
ad6254c5 | 2842 | |
f11781c5 AK |
2843 | # The aliases save the names the user supplied, while $host etc. |
2844 | # will get canonicalized. | |
2845 | test -n "$target_alias" && | |
2846 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2847 | NONENONEs,x,x, && | |
2848 | program_prefix=${target_alias}- | |
ad6254c5 | 2849 | |
f11781c5 AK |
2850 | case "$host_os" in |
2851 | linux*) | |
2852 | CFLAGS="$CFLAGS" | |
2853 | COPTIMISE_FLAG="-O2" | |
2854 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
bf09a320 AK |
2855 | ELDFLAGS="-Wl,--export-dynamic" |
2856 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
f11781c5 AK |
2857 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
2858 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2859 | LDDEPS="$LDDEPS .export.sym" | |
f11781c5 AK |
2860 | LIB_SUFFIX=so |
2861 | DEVMAPPER=yes | |
cdd50823 | 2862 | LVMETAD=no |
f11781c5 AK |
2863 | ODIRECT=yes |
2864 | DM_IOCTLS=yes | |
2865 | SELINUX=yes | |
2866 | CLUSTER=internal | |
2867 | FSADM=yes | |
2868 | ;; | |
2869 | darwin*) | |
2870 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2871 | COPTIMISE_FLAG="-O2" | |
2872 | CLDFLAGS="$CLDFLAGS" | |
bf09a320 | 2873 | ELDFLAGS= |
f11781c5 AK |
2874 | CLDWHOLEARCHIVE="-all_load" |
2875 | CLDNOWHOLEARCHIVE= | |
2876 | LIB_SUFFIX=dylib | |
2877 | DEVMAPPER=yes | |
2878 | ODIRECT=no | |
2879 | DM_IOCTLS=no | |
2880 | SELINUX=no | |
2881 | CLUSTER=none | |
2882 | FSADM=no | |
2883 | ;; | |
2884 | esac | |
ad6254c5 | 2885 | |
f11781c5 AK |
2886 | ################################################################################ |
2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2888 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2889 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2890 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2891 | else |
f11781c5 AK |
2892 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2893 | for ac_i in 1 2 3 4 5 6 7; do | |
2894 | ac_script="$ac_script$as_nl$ac_script" | |
2895 | done | |
2896 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2897 | { ac_script=; unset ac_script;} | |
2898 | if test -z "$SED"; then | |
2899 | ac_path_SED_found=false | |
2900 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2902 | for as_dir in $PATH | |
2903 | do | |
2904 | IFS=$as_save_IFS | |
2905 | test -z "$as_dir" && as_dir=. | |
2906 | for ac_prog in sed gsed; do | |
2907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2908 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2909 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2910 | # Check for GNU ac_path_SED and select it if it is found. | |
2911 | # Check for GNU $ac_path_SED | |
2912 | case `"$ac_path_SED" --version 2>&1` in | |
2913 | *GNU*) | |
2914 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2915 | *) | |
2916 | ac_count=0 | |
2917 | $as_echo_n 0123456789 >"conftest.in" | |
2918 | while : | |
2919 | do | |
2920 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2921 | mv "conftest.tmp" "conftest.in" | |
2922 | cp "conftest.in" "conftest.nl" | |
2923 | $as_echo '' >> "conftest.nl" | |
2924 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2925 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2926 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2927 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2928 | # Best one so far, save it but keep looking for a better one | |
2929 | ac_cv_path_SED="$ac_path_SED" | |
2930 | ac_path_SED_max=$ac_count | |
2931 | fi | |
2932 | # 10*(2^10) chars as input seems more than enough | |
2933 | test $ac_count -gt 10 && break | |
2934 | done | |
2935 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2936 | esac |
ad6254c5 | 2937 | |
f11781c5 AK |
2938 | $ac_path_SED_found && break 3 |
2939 | done | |
2940 | done | |
2941 | done | |
2942 | IFS=$as_save_IFS | |
2943 | if test -z "$ac_cv_path_SED"; then | |
2944 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2945 | fi | |
2946 | else | |
2947 | ac_cv_path_SED=$SED | |
ad6254c5 | 2948 | fi |
7a197a62 | 2949 | |
f11781c5 AK |
2950 | fi |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2952 | $as_echo "$ac_cv_path_SED" >&6; } | |
2953 | SED="$ac_cv_path_SED" | |
2954 | rm -f conftest.sed | |
ad6254c5 | 2955 | |
f11781c5 AK |
2956 | for ac_prog in gawk mawk nawk awk |
2957 | do | |
2958 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2959 | set dummy $ac_prog; ac_word=$2 | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2961 | $as_echo_n "checking for $ac_word... " >&6; } | |
2962 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2963 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2964 | else |
f11781c5 AK |
2965 | if test -n "$AWK"; then |
2966 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2967 | else | |
2968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2969 | for as_dir in $PATH | |
2970 | do | |
2971 | IFS=$as_save_IFS | |
2972 | test -z "$as_dir" && as_dir=. | |
2973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2975 | ac_cv_prog_AWK="$ac_prog" | |
2976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2977 | break 2 | |
2978 | fi | |
2979 | done | |
2980 | done | |
2981 | IFS=$as_save_IFS | |
ad6254c5 | 2982 | |
ad6254c5 | 2983 | fi |
ad6254c5 | 2984 | fi |
f11781c5 AK |
2985 | AWK=$ac_cv_prog_AWK |
2986 | if test -n "$AWK"; then | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2988 | $as_echo "$AWK" >&6; } | |
2989 | else | |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2991 | $as_echo "no" >&6; } | |
ad6254c5 | 2992 | fi |
ad6254c5 | 2993 | |
ad6254c5 | 2994 | |
f11781c5 | 2995 | test -n "$AWK" && break |
ad6254c5 AK |
2996 | done |
2997 | ||
f11781c5 AK |
2998 | ac_ext=c |
2999 | ac_cpp='$CPP $CPPFLAGS' | |
3000 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3001 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3002 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3003 | if test -n "$ac_tool_prefix"; then | |
3004 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3005 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3007 | $as_echo_n "checking for $ac_word... " >&6; } | |
3008 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 3009 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3010 | else |
f11781c5 AK |
3011 | if test -n "$CC"; then |
3012 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 3013 | else |
f11781c5 AK |
3014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3015 | for as_dir in $PATH | |
3016 | do | |
3017 | IFS=$as_save_IFS | |
3018 | test -z "$as_dir" && as_dir=. | |
3019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3021 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3023 | break 2 | |
3024 | fi | |
3025 | done | |
3026 | done | |
3027 | IFS=$as_save_IFS | |
ad6254c5 | 3028 | |
ad6254c5 | 3029 | fi |
ad6254c5 | 3030 | fi |
f11781c5 AK |
3031 | CC=$ac_cv_prog_CC |
3032 | if test -n "$CC"; then | |
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3034 | $as_echo "$CC" >&6; } | |
3035 | else | |
3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3037 | $as_echo "no" >&6; } | |
ad6254c5 | 3038 | fi |
ad6254c5 | 3039 | |
f11781c5 AK |
3040 | |
3041 | fi | |
3042 | if test -z "$ac_cv_prog_CC"; then | |
3043 | ac_ct_CC=$CC | |
3044 | # Extract the first word of "gcc", so it can be a program name with args. | |
3045 | set dummy gcc; ac_word=$2 | |
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3047 | $as_echo_n "checking for $ac_word... " >&6; } | |
3048 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3049 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3050 | else |
f11781c5 AK |
3051 | if test -n "$ac_ct_CC"; then |
3052 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3053 | else |
f11781c5 AK |
3054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3055 | for as_dir in $PATH | |
3056 | do | |
3057 | IFS=$as_save_IFS | |
3058 | test -z "$as_dir" && as_dir=. | |
3059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3061 | ac_cv_prog_ac_ct_CC="gcc" | |
3062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3063 | break 2 | |
3064 | fi | |
3065 | done | |
3066 | done | |
3067 | IFS=$as_save_IFS | |
d911ec67 | 3068 | |
d911ec67 | 3069 | fi |
d911ec67 | 3070 | fi |
f11781c5 AK |
3071 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3072 | if test -n "$ac_ct_CC"; then | |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3074 | $as_echo "$ac_ct_CC" >&6; } | |
3075 | else | |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3077 | $as_echo "no" >&6; } | |
d911ec67 | 3078 | fi |
d911ec67 | 3079 | |
f11781c5 AK |
3080 | if test "x$ac_ct_CC" = x; then |
3081 | CC="" | |
3082 | else | |
3083 | case $cross_compiling:$ac_tool_warned in | |
3084 | yes:) | |
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3086 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3087 | ac_tool_warned=yes ;; | |
3088 | esac | |
3089 | CC=$ac_ct_CC | |
3090 | fi | |
3091 | else | |
3092 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3093 | fi |
d911ec67 | 3094 | |
f11781c5 AK |
3095 | if test -z "$CC"; then |
3096 | if test -n "$ac_tool_prefix"; then | |
3097 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3098 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3100 | $as_echo_n "checking for $ac_word... " >&6; } | |
3101 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3102 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3103 | else |
f11781c5 AK |
3104 | if test -n "$CC"; then |
3105 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3106 | else |
f11781c5 AK |
3107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3108 | for as_dir in $PATH | |
3109 | do | |
3110 | IFS=$as_save_IFS | |
3111 | test -z "$as_dir" && as_dir=. | |
3112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3114 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3116 | break 2 | |
3117 | fi | |
3118 | done | |
3119 | done | |
3120 | IFS=$as_save_IFS | |
d911ec67 | 3121 | |
f11781c5 AK |
3122 | fi |
3123 | fi | |
3124 | CC=$ac_cv_prog_CC | |
3125 | if test -n "$CC"; then | |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3127 | $as_echo "$CC" >&6; } | |
3128 | else | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3130 | $as_echo "no" >&6; } | |
d911ec67 AK |
3131 | fi |
3132 | ||
d911ec67 | 3133 | |
f11781c5 AK |
3134 | fi |
3135 | fi | |
3136 | if test -z "$CC"; then | |
3137 | # Extract the first word of "cc", so it can be a program name with args. | |
3138 | set dummy cc; ac_word=$2 | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3140 | $as_echo_n "checking for $ac_word... " >&6; } | |
3141 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3142 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3143 | else |
f11781c5 AK |
3144 | if test -n "$CC"; then |
3145 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3146 | else | |
3147 | ac_prog_rejected=no | |
3148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3149 | for as_dir in $PATH | |
3150 | do | |
3151 | IFS=$as_save_IFS | |
3152 | test -z "$as_dir" && as_dir=. | |
3153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3155 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3156 | ac_prog_rejected=yes | |
3157 | continue | |
3158 | fi | |
3159 | ac_cv_prog_CC="cc" | |
3160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3161 | break 2 | |
3162 | fi | |
3163 | done | |
3164 | done | |
3165 | IFS=$as_save_IFS | |
d911ec67 | 3166 | |
f11781c5 AK |
3167 | if test $ac_prog_rejected = yes; then |
3168 | # We found a bogon in the path, so make sure we never use it. | |
3169 | set dummy $ac_cv_prog_CC | |
3170 | shift | |
3171 | if test $# != 0; then | |
3172 | # We chose a different compiler from the bogus one. | |
3173 | # However, it has the same basename, so the bogon will be chosen | |
3174 | # first if we set CC to just the basename; use the full file name. | |
3175 | shift | |
3176 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3177 | fi | |
3178 | fi | |
3179 | fi | |
3180 | fi | |
3181 | CC=$ac_cv_prog_CC | |
3182 | if test -n "$CC"; then | |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3184 | $as_echo "$CC" >&6; } | |
3185 | else | |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3187 | $as_echo "no" >&6; } | |
d911ec67 AK |
3188 | fi |
3189 | ||
d911ec67 | 3190 | |
f11781c5 AK |
3191 | fi |
3192 | if test -z "$CC"; then | |
3193 | if test -n "$ac_tool_prefix"; then | |
3194 | for ac_prog in cl.exe | |
3195 | do | |
3196 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3197 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3199 | $as_echo_n "checking for $ac_word... " >&6; } | |
3200 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3201 | $as_echo_n "(cached) " >&6 |
3202 | else | |
f11781c5 AK |
3203 | if test -n "$CC"; then |
3204 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3205 | else | |
3206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3207 | for as_dir in $PATH | |
3208 | do | |
3209 | IFS=$as_save_IFS | |
3210 | test -z "$as_dir" && as_dir=. | |
3211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3213 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3215 | break 2 | |
3216 | fi | |
3217 | done | |
3218 | done | |
3219 | IFS=$as_save_IFS | |
d911ec67 AK |
3220 | |
3221 | fi | |
f11781c5 AK |
3222 | fi |
3223 | CC=$ac_cv_prog_CC | |
3224 | if test -n "$CC"; then | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3226 | $as_echo "$CC" >&6; } | |
3227 | else | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3229 | $as_echo "no" >&6; } | |
d911ec67 AK |
3230 | fi |
3231 | ||
d911ec67 | 3232 | |
f11781c5 AK |
3233 | test -n "$CC" && break |
3234 | done | |
3235 | fi | |
3236 | if test -z "$CC"; then | |
3237 | ac_ct_CC=$CC | |
3238 | for ac_prog in cl.exe | |
3239 | do | |
3240 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3241 | set dummy $ac_prog; ac_word=$2 | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3243 | $as_echo_n "checking for $ac_word... " >&6; } | |
3244 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3245 | $as_echo_n "(cached) " >&6 |
3246 | else | |
f11781c5 AK |
3247 | if test -n "$ac_ct_CC"; then |
3248 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3249 | else |
f11781c5 AK |
3250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3251 | for as_dir in $PATH | |
3252 | do | |
3253 | IFS=$as_save_IFS | |
3254 | test -z "$as_dir" && as_dir=. | |
3255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3257 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3259 | break 2 | |
3260 | fi | |
3261 | done | |
3262 | done | |
3263 | IFS=$as_save_IFS | |
ad6254c5 | 3264 | |
ad6254c5 | 3265 | fi |
ad6254c5 | 3266 | fi |
f11781c5 AK |
3267 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3268 | if test -n "$ac_ct_CC"; then | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3270 | $as_echo "$ac_ct_CC" >&6; } | |
3271 | else | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3273 | $as_echo "no" >&6; } | |
ad6254c5 | 3274 | fi |
ad6254c5 | 3275 | |
d911ec67 | 3276 | |
f11781c5 AK |
3277 | test -n "$ac_ct_CC" && break |
3278 | done | |
d911ec67 | 3279 | |
f11781c5 AK |
3280 | if test "x$ac_ct_CC" = x; then |
3281 | CC="" | |
3282 | else | |
3283 | case $cross_compiling:$ac_tool_warned in | |
3284 | yes:) | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3286 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3287 | ac_tool_warned=yes ;; | |
d911ec67 | 3288 | esac |
f11781c5 AK |
3289 | CC=$ac_ct_CC |
3290 | fi | |
3291 | fi | |
ad6254c5 AK |
3292 | |
3293 | fi | |
d911ec67 AK |
3294 | |
3295 | ||
f11781c5 AK |
3296 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3297 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3298 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3299 | See \`config.log' for more details" "$LINENO" 5; } | |
3300 | ||
3301 | # Provide some information about the compiler. | |
3302 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3303 | set X $ac_compile | |
3304 | ac_compiler=$2 | |
3305 | for ac_option in --version -v -V -qversion; do | |
3306 | { { ac_try="$ac_compiler $ac_option >&5" | |
3307 | case "(($ac_try" in | |
3308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3309 | *) ac_try_echo=$ac_try;; | |
3310 | esac | |
3311 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3312 | $as_echo "$ac_try_echo"; } >&5 | |
3313 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3314 | ac_status=$? | |
3315 | if test -s conftest.err; then | |
3316 | sed '10a\ | |
3317 | ... rest of stderr output deleted ... | |
3318 | 10q' conftest.err >conftest.er1 | |
3319 | cat conftest.er1 >&5 | |
3320 | fi | |
3321 | rm -f conftest.er1 conftest.err | |
3322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3323 | test $ac_status = 0; } | |
3324 | done | |
ad6254c5 | 3325 | |
f11781c5 | 3326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3327 | /* end confdefs.h. */ |
f11781c5 | 3328 | |
ad6254c5 AK |
3329 | int |
3330 | main () | |
3331 | { | |
f11781c5 | 3332 | |
ad6254c5 AK |
3333 | ; |
3334 | return 0; | |
3335 | } | |
3336 | _ACEOF | |
f11781c5 AK |
3337 | ac_clean_files_save=$ac_clean_files |
3338 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3339 | # Try to create an executable without -o first, disregard a.out. | |
3340 | # It will help us diagnose broken compilers, and finding out an intuition | |
3341 | # of exeext. | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3343 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3344 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3345 | ||
3346 | # The possible output files: | |
3347 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3348 | ||
3349 | ac_rmfiles= | |
3350 | for ac_file in $ac_files | |
3351 | do | |
3352 | case $ac_file in | |
3353 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3354 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3355 | esac | |
3356 | done | |
3357 | rm -f $ac_rmfiles | |
3358 | ||
3359 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3360 | case "(($ac_try" in |
3361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3362 | *) ac_try_echo=$ac_try;; | |
3363 | esac | |
f11781c5 AK |
3364 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3365 | $as_echo "$ac_try_echo"; } >&5 | |
3366 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3367 | ac_status=$? |
f11781c5 AK |
3368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3369 | test $ac_status = 0; }; then : | |
3370 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3371 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3372 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3373 | # so that the user can short-circuit this test for compilers unknown to | |
3374 | # Autoconf. | |
3375 | for ac_file in $ac_files '' | |
3376 | do | |
3377 | test -f "$ac_file" || continue | |
3378 | case $ac_file in | |
3379 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3380 | ;; | |
3381 | [ab].out ) | |
3382 | # We found the default executable, but exeext='' is most | |
3383 | # certainly right. | |
3384 | break;; | |
3385 | *.* ) | |
3386 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3387 | then :; else | |
3388 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3389 | fi | |
3390 | # We set ac_cv_exeext here because the later test for it is not | |
3391 | # safe: cross compilers may not add the suffix if given an `-o' | |
3392 | # argument, so we may need to know it at that point already. | |
3393 | # Even if this section looks crufty: it has the advantage of | |
3394 | # actually working. | |
3395 | break;; | |
3396 | * ) | |
3397 | break;; | |
3398 | esac | |
3399 | done | |
3400 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3401 | ||
ad6254c5 | 3402 | else |
f11781c5 AK |
3403 | ac_file='' |
3404 | fi | |
3405 | if test -z "$ac_file"; then : | |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3407 | $as_echo "no" >&6; } | |
ec6a6fbe | 3408 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3409 | sed 's/^/| /' conftest.$ac_ext >&5 |
3410 | ||
f11781c5 AK |
3411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3413 | as_fn_error 77 "C compiler cannot create executables | |
3414 | See \`config.log' for more details" "$LINENO" 5; } | |
3415 | else | |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3417 | $as_echo "yes" >&6; } | |
ad6254c5 | 3418 | fi |
f11781c5 AK |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3420 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3422 | $as_echo "$ac_file" >&6; } | |
3423 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3424 | |
f11781c5 AK |
3425 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3426 | ac_clean_files=$ac_clean_files_save | |
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3428 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3429 | if { { ac_try="$ac_link" | |
3430 | case "(($ac_try" in | |
3431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3432 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3433 | esac |
f11781c5 AK |
3434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3435 | $as_echo "$ac_try_echo"; } >&5 | |
3436 | (eval "$ac_link") 2>&5 | |
3437 | ac_status=$? | |
3438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3439 | test $ac_status = 0; }; then : | |
3440 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3441 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3442 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3443 | # `rm'. | |
3444 | for ac_file in conftest.exe conftest conftest.*; do | |
3445 | test -f "$ac_file" || continue | |
3446 | case $ac_file in | |
3447 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3448 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3449 | break;; | |
3450 | * ) break;; | |
3451 | esac | |
3452 | done | |
3453 | else | |
3454 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3455 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3456 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3457 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3458 | fi |
f11781c5 AK |
3459 | rm -f conftest conftest$ac_cv_exeext |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3461 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3462 | |
f11781c5 AK |
3463 | rm -f conftest.$ac_ext |
3464 | EXEEXT=$ac_cv_exeext | |
3465 | ac_exeext=$EXEEXT | |
3466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3467 | /* end confdefs.h. */ |
f11781c5 | 3468 | #include <stdio.h> |
ad6254c5 | 3469 | int |
f11781c5 | 3470 | main () |
ad6254c5 | 3471 | { |
f11781c5 AK |
3472 | FILE *f = fopen ("conftest.out", "w"); |
3473 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3474 | |
f11781c5 | 3475 | ; |
7a197a62 | 3476 | return 0; |
ad6254c5 | 3477 | } |
ad6254c5 | 3478 | _ACEOF |
f11781c5 AK |
3479 | ac_clean_files="$ac_clean_files conftest.out" |
3480 | # Check that the compiler produces executables we can run. If not, either | |
3481 | # the compiler is broken, or we cross compile. | |
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3483 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3484 | if test "$cross_compiling" != yes; then | |
3485 | { { ac_try="$ac_link" | |
7a197a62 AK |
3486 | case "(($ac_try" in |
3487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3488 | *) ac_try_echo=$ac_try;; | |
3489 | esac | |
f11781c5 AK |
3490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3491 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3492 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3493 | ac_status=$? |
f11781c5 AK |
3494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3495 | test $ac_status = 0; } | |
3496 | if { ac_try='./conftest$ac_cv_exeext' | |
3497 | { { case "(($ac_try" in | |
7a197a62 AK |
3498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3499 | *) ac_try_echo=$ac_try;; | |
3500 | esac | |
f11781c5 AK |
3501 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3502 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3503 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3504 | ac_status=$? |
f11781c5 AK |
3505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3506 | test $ac_status = 0; }; }; then | |
3507 | cross_compiling=no | |
3508 | else | |
3509 | if test "$cross_compiling" = maybe; then | |
3510 | cross_compiling=yes | |
3511 | else | |
3512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3514 | as_fn_error $? "cannot run C compiled programs. | |
3515 | If you meant to cross compile, use \`--host'. | |
3516 | See \`config.log' for more details" "$LINENO" 5; } | |
3517 | fi | |
3518 | fi | |
3519 | fi | |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3521 | $as_echo "$cross_compiling" >&6; } | |
3522 | ||
3523 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3524 | ac_clean_files=$ac_clean_files_save | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3526 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3527 | if test "${ac_cv_objext+set}" = set; then : | |
3528 | $as_echo_n "(cached) " >&6 | |
3529 | else | |
3530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3531 | /* end confdefs.h. */ | |
ad6254c5 AK |
3532 | |
3533 | int | |
3534 | main () | |
3535 | { | |
f11781c5 | 3536 | |
ad6254c5 AK |
3537 | ; |
3538 | return 0; | |
3539 | } | |
3540 | _ACEOF | |
f11781c5 AK |
3541 | rm -f conftest.o conftest.obj |
3542 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3543 | case "(($ac_try" in |
3544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3545 | *) ac_try_echo=$ac_try;; | |
3546 | esac | |
f11781c5 AK |
3547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3548 | $as_echo "$ac_try_echo"; } >&5 | |
3549 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3550 | ac_status=$? |
f11781c5 AK |
3551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3552 | test $ac_status = 0; }; then : | |
3553 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3554 | test -f "$ac_file" || continue; | |
3555 | case $ac_file in | |
3556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3557 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3558 | break;; | |
3559 | esac | |
3560 | done | |
ad6254c5 | 3561 | else |
ec6a6fbe | 3562 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3563 | sed 's/^/| /' conftest.$ac_ext >&5 |
3564 | ||
f11781c5 AK |
3565 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3566 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3567 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3568 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3569 | fi |
f11781c5 | 3570 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3571 | fi |
f11781c5 AK |
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3573 | $as_echo "$ac_cv_objext" >&6; } | |
3574 | OBJEXT=$ac_cv_objext | |
3575 | ac_objext=$OBJEXT | |
3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3577 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3578 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3579 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3580 | else |
f11781c5 | 3581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3582 | /* end confdefs.h. */ |
3583 | ||
ad6254c5 AK |
3584 | int |
3585 | main () | |
3586 | { | |
f11781c5 AK |
3587 | #ifndef __GNUC__ |
3588 | choke me | |
3589 | #endif | |
3590 | ||
ad6254c5 AK |
3591 | ; |
3592 | return 0; | |
3593 | } | |
3594 | _ACEOF | |
f11781c5 AK |
3595 | if ac_fn_c_try_compile "$LINENO"; then : |
3596 | ac_compiler_gnu=yes | |
ad6254c5 | 3597 | else |
f11781c5 | 3598 | ac_compiler_gnu=no |
ad6254c5 | 3599 | fi |
f11781c5 AK |
3600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3601 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3602 | |
d0191583 | 3603 | fi |
f11781c5 AK |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3605 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3606 | if test $ac_compiler_gnu = yes; then | |
3607 | GCC=yes | |
d0191583 | 3608 | else |
f11781c5 | 3609 | GCC= |
d0191583 | 3610 | fi |
f11781c5 AK |
3611 | ac_test_CFLAGS=${CFLAGS+set} |
3612 | ac_save_CFLAGS=$CFLAGS | |
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3614 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3615 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3616 | $as_echo_n "(cached) " >&6 | |
3617 | else | |
3618 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3619 | ac_c_werror_flag=yes | |
3620 | ac_cv_prog_cc_g=no | |
3621 | CFLAGS="-g" | |
3622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3623 | /* end confdefs.h. */ | |
72b2cb61 | 3624 | |
f11781c5 AK |
3625 | int |
3626 | main () | |
3627 | { | |
72b2cb61 | 3628 | |
f11781c5 AK |
3629 | ; |
3630 | return 0; | |
3631 | } | |
3632 | _ACEOF | |
3633 | if ac_fn_c_try_compile "$LINENO"; then : | |
3634 | ac_cv_prog_cc_g=yes | |
3635 | else | |
3636 | CFLAGS="" | |
3637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3638 | /* end confdefs.h. */ | |
ad6254c5 | 3639 | |
f11781c5 AK |
3640 | int |
3641 | main () | |
3642 | { | |
ad6254c5 | 3643 | |
f11781c5 AK |
3644 | ; |
3645 | return 0; | |
3646 | } | |
d0191583 | 3647 | _ACEOF |
f11781c5 AK |
3648 | if ac_fn_c_try_compile "$LINENO"; then : |
3649 | ||
3650 | else | |
3651 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3652 | CFLAGS="-g" | |
3653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3654 | /* end confdefs.h. */ |
7a197a62 | 3655 | |
f11781c5 AK |
3656 | int |
3657 | main () | |
3658 | { | |
ad6254c5 | 3659 | |
f11781c5 AK |
3660 | ; |
3661 | return 0; | |
3662 | } | |
3663 | _ACEOF | |
3664 | if ac_fn_c_try_compile "$LINENO"; then : | |
3665 | ac_cv_prog_cc_g=yes | |
3666 | fi | |
3667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3668 | fi | |
3669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3670 | fi | |
3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3672 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3673 | fi | |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3675 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3676 | if test "$ac_test_CFLAGS" = set; then | |
3677 | CFLAGS=$ac_save_CFLAGS | |
3678 | elif test $ac_cv_prog_cc_g = yes; then | |
3679 | if test "$GCC" = yes; then | |
3680 | CFLAGS="-g -O2" | |
3681 | else | |
3682 | CFLAGS="-g" | |
3683 | fi | |
3684 | else | |
3685 | if test "$GCC" = yes; then | |
3686 | CFLAGS="-O2" | |
3687 | else | |
3688 | CFLAGS= | |
3689 | fi | |
3690 | fi | |
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3692 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3693 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3694 | $as_echo_n "(cached) " >&6 | |
3695 | else | |
3696 | ac_cv_prog_cc_c89=no | |
3697 | ac_save_CC=$CC | |
3698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3699 | /* end confdefs.h. */ | |
3700 | #include <stdarg.h> | |
3701 | #include <stdio.h> | |
3702 | #include <sys/types.h> | |
3703 | #include <sys/stat.h> | |
3704 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3705 | struct buf { int x; }; | |
3706 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3707 | static char *e (p, i) | |
3708 | char **p; | |
3709 | int i; | |
3710 | { | |
3711 | return p[i]; | |
3712 | } | |
3713 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3714 | { | |
3715 | char *s; | |
3716 | va_list v; | |
3717 | va_start (v,p); | |
3718 | s = g (p, va_arg (v,int)); | |
3719 | va_end (v); | |
3720 | return s; | |
3721 | } | |
ad6254c5 | 3722 | |
f11781c5 AK |
3723 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3724 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3725 | These don't provoke an error unfortunately, instead are silently treated | |
3726 | as 'x'. The following induces an error, until -std is added to get | |
3727 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3728 | array size at least. It's necessary to write '\x00'==0 to get something | |
3729 | that's true only with -std. */ | |
3730 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3731 | |
f11781c5 AK |
3732 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3733 | inside strings and character constants. */ | |
3734 | #define FOO(x) 'x' | |
3735 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3736 | |
f11781c5 AK |
3737 | int test (int i, double x); |
3738 | struct s1 {int (*f) (int a);}; | |
3739 | struct s2 {int (*f) (double a);}; | |
3740 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3741 | int argc; | |
3742 | char **argv; | |
d0191583 JM |
3743 | int |
3744 | main () | |
3745 | { | |
f11781c5 | 3746 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3747 | ; |
3748 | return 0; | |
3749 | } | |
72b2cb61 | 3750 | _ACEOF |
f11781c5 AK |
3751 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3752 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3753 | do | |
3754 | CC="$ac_save_CC $ac_arg" | |
3755 | if ac_fn_c_try_compile "$LINENO"; then : | |
3756 | ac_cv_prog_cc_c89=$ac_arg | |
3757 | fi | |
3758 | rm -f core conftest.err conftest.$ac_objext | |
3759 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3760 | done | |
3761 | rm -f conftest.$ac_ext | |
3762 | CC=$ac_save_CC | |
3763 | ||
3764 | fi | |
3765 | # AC_CACHE_VAL | |
3766 | case "x$ac_cv_prog_cc_c89" in | |
3767 | x) | |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3769 | $as_echo "none needed" >&6; } ;; | |
3770 | xno) | |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3772 | $as_echo "unsupported" >&6; } ;; | |
3773 | *) | |
3774 | CC="$CC $ac_cv_prog_cc_c89" | |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3776 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3777 | esac |
f11781c5 AK |
3778 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3779 | ||
3780 | fi | |
3781 | ||
3782 | ac_ext=c | |
3783 | ac_cpp='$CPP $CPPFLAGS' | |
3784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3787 | |
ad6254c5 | 3788 | |
7a197a62 | 3789 | |
f11781c5 AK |
3790 | ac_ext=c |
3791 | ac_cpp='$CPP $CPPFLAGS' | |
3792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3796 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3797 | # On Suns, sometimes $CPP names a directory. | |
3798 | if test -n "$CPP" && test -d "$CPP"; then | |
3799 | CPP= | |
3800 | fi | |
3801 | if test -z "$CPP"; then | |
3802 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3803 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3804 | else |
f11781c5 AK |
3805 | # Double quotes because CPP needs to be expanded |
3806 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3807 | do | |
3808 | ac_preproc_ok=false | |
3809 | for ac_c_preproc_warn_flag in '' yes | |
3810 | do | |
3811 | # Use a header file that comes with gcc, so configuring glibc | |
3812 | # with a fresh cross-compiler works. | |
3813 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3814 | # <limits.h> exists even on freestanding compilers. | |
3815 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3816 | # not just through cpp. "Syntax error" is here to catch this case. | |
3817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3818 | /* end confdefs.h. */ |
d0191583 JM |
3819 | #ifdef __STDC__ |
3820 | # include <limits.h> | |
3821 | #else | |
3822 | # include <assert.h> | |
3823 | #endif | |
f11781c5 AK |
3824 | Syntax error |
3825 | _ACEOF | |
3826 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3827 | |
f11781c5 AK |
3828 | else |
3829 | # Broken: fails on valid input. | |
3830 | continue | |
3831 | fi | |
3832 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3833 | |
f11781c5 AK |
3834 | # OK, works on sane cases. Now check whether nonexistent headers |
3835 | # can be detected and how. | |
3836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3837 | /* end confdefs.h. */ | |
3838 | #include <ac_nonexistent.h> | |
72b2cb61 | 3839 | _ACEOF |
f11781c5 AK |
3840 | if ac_fn_c_try_cpp "$LINENO"; then : |
3841 | # Broken: success on invalid input. | |
3842 | continue | |
d0191583 | 3843 | else |
f11781c5 AK |
3844 | # Passes both tests. |
3845 | ac_preproc_ok=: | |
3846 | break | |
ad6254c5 | 3847 | fi |
f11781c5 | 3848 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3849 | |
f11781c5 AK |
3850 | done |
3851 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3852 | rm -f conftest.err conftest.$ac_ext | |
3853 | if $ac_preproc_ok; then : | |
3854 | break | |
7a197a62 AK |
3855 | fi |
3856 | ||
f11781c5 AK |
3857 | done |
3858 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3859 | |
7a197a62 | 3860 | fi |
f11781c5 AK |
3861 | CPP=$ac_cv_prog_CPP |
3862 | else | |
3863 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3864 | fi |
f11781c5 AK |
3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3866 | $as_echo "$CPP" >&6; } | |
3867 | ac_preproc_ok=false | |
3868 | for ac_c_preproc_warn_flag in '' yes | |
3869 | do | |
3870 | # Use a header file that comes with gcc, so configuring glibc | |
3871 | # with a fresh cross-compiler works. | |
3872 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3873 | # <limits.h> exists even on freestanding compilers. | |
3874 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3875 | # not just through cpp. "Syntax error" is here to catch this case. | |
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3877 | /* end confdefs.h. */ | |
3878 | #ifdef __STDC__ | |
3879 | # include <limits.h> | |
3880 | #else | |
3881 | # include <assert.h> | |
3882 | #endif | |
3883 | Syntax error | |
3884 | _ACEOF | |
3885 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3886 | |
9c961554 | 3887 | else |
f11781c5 AK |
3888 | # Broken: fails on valid input. |
3889 | continue | |
9c961554 | 3890 | fi |
f11781c5 | 3891 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3892 | |
f11781c5 AK |
3893 | # OK, works on sane cases. Now check whether nonexistent headers |
3894 | # can be detected and how. | |
3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3896 | /* end confdefs.h. */ | |
3897 | #include <ac_nonexistent.h> | |
3898 | _ACEOF | |
3899 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3900 | # Broken: success on invalid input. | |
3901 | continue | |
3902 | else | |
3903 | # Passes both tests. | |
3904 | ac_preproc_ok=: | |
3905 | break | |
3906 | fi | |
3907 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3908 | |
f11781c5 AK |
3909 | done |
3910 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3911 | rm -f conftest.err conftest.$ac_ext | |
3912 | if $ac_preproc_ok; then : | |
d0191583 | 3913 | |
f11781c5 AK |
3914 | else |
3915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3917 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3918 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3919 | fi |
3920 | ||
f11781c5 AK |
3921 | ac_ext=c |
3922 | ac_cpp='$CPP $CPPFLAGS' | |
3923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3926 | |
ad6254c5 | 3927 | |
f11781c5 AK |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3929 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3930 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3931 | $as_echo_n "(cached) " >&6 | |
3932 | else | |
3933 | if test -z "$GREP"; then | |
3934 | ac_path_GREP_found=false | |
3935 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3937 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3938 | do | |
3939 | IFS=$as_save_IFS | |
3940 | test -z "$as_dir" && as_dir=. | |
3941 | for ac_prog in grep ggrep; do | |
3942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3943 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3944 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3945 | # Check for GNU ac_path_GREP and select it if it is found. | |
3946 | # Check for GNU $ac_path_GREP | |
3947 | case `"$ac_path_GREP" --version 2>&1` in | |
3948 | *GNU*) | |
3949 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3950 | *) | |
3951 | ac_count=0 | |
3952 | $as_echo_n 0123456789 >"conftest.in" | |
3953 | while : | |
3954 | do | |
3955 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3956 | mv "conftest.tmp" "conftest.in" | |
3957 | cp "conftest.in" "conftest.nl" | |
3958 | $as_echo 'GREP' >> "conftest.nl" | |
3959 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3960 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3961 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3962 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3963 | # Best one so far, save it but keep looking for a better one | |
3964 | ac_cv_path_GREP="$ac_path_GREP" | |
3965 | ac_path_GREP_max=$ac_count | |
3966 | fi | |
3967 | # 10*(2^10) chars as input seems more than enough | |
3968 | test $ac_count -gt 10 && break | |
3969 | done | |
3970 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3971 | esac | |
ad6254c5 | 3972 | |
f11781c5 AK |
3973 | $ac_path_GREP_found && break 3 |
3974 | done | |
3975 | done | |
3976 | done | |
3977 | IFS=$as_save_IFS | |
3978 | if test -z "$ac_cv_path_GREP"; then | |
3979 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3980 | fi | |
3981 | else | |
3982 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3983 | fi |
3984 | ||
d0191583 | 3985 | fi |
f11781c5 AK |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3987 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3988 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3989 | |
24bbc4d7 | 3990 | |
f11781c5 AK |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3992 | $as_echo_n "checking for egrep... " >&6; } | |
3993 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3994 | $as_echo_n "(cached) " >&6 | |
3995 | else | |
3996 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3997 | then ac_cv_path_EGREP="$GREP -E" | |
3998 | else | |
3999 | if test -z "$EGREP"; then | |
4000 | ac_path_EGREP_found=false | |
4001 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4003 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4004 | do | |
4005 | IFS=$as_save_IFS | |
4006 | test -z "$as_dir" && as_dir=. | |
4007 | for ac_prog in egrep; do | |
4008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4009 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4010 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4011 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4012 | # Check for GNU $ac_path_EGREP | |
4013 | case `"$ac_path_EGREP" --version 2>&1` in | |
4014 | *GNU*) | |
4015 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4016 | *) | |
4017 | ac_count=0 | |
4018 | $as_echo_n 0123456789 >"conftest.in" | |
4019 | while : | |
4020 | do | |
4021 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4022 | mv "conftest.tmp" "conftest.in" | |
4023 | cp "conftest.in" "conftest.nl" | |
4024 | $as_echo 'EGREP' >> "conftest.nl" | |
4025 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4026 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4027 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4028 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4029 | # Best one so far, save it but keep looking for a better one | |
4030 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4031 | ac_path_EGREP_max=$ac_count | |
4032 | fi | |
4033 | # 10*(2^10) chars as input seems more than enough | |
4034 | test $ac_count -gt 10 && break | |
4035 | done | |
4036 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4037 | esac | |
24bbc4d7 | 4038 | |
f11781c5 AK |
4039 | $ac_path_EGREP_found && break 3 |
4040 | done | |
4041 | done | |
4042 | done | |
4043 | IFS=$as_save_IFS | |
4044 | if test -z "$ac_cv_path_EGREP"; then | |
4045 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4046 | fi | |
24bbc4d7 | 4047 | else |
f11781c5 | 4048 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4049 | fi |
4050 | ||
f11781c5 | 4051 | fi |
24bbc4d7 | 4052 | fi |
f11781c5 AK |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4054 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4055 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4056 | |
4057 | ||
f11781c5 AK |
4058 | if test $ac_cv_c_compiler_gnu = yes; then |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4060 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4061 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4062 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4063 | else |
f11781c5 AK |
4064 | ac_pattern="Autoconf.*'x'" |
4065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4066 | /* end confdefs.h. */ | |
4067 | #include <sgtty.h> | |
4068 | Autoconf TIOCGETP | |
4069 | _ACEOF | |
4070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4071 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4072 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4073 | else |
f11781c5 | 4074 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4075 | fi |
f11781c5 | 4076 | rm -f conftest* |
7a197a62 | 4077 | |
72b2cb61 | 4078 | |
f11781c5 AK |
4079 | if test $ac_cv_prog_gcc_traditional = no; then |
4080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4081 | /* end confdefs.h. */ | |
4082 | #include <termio.h> | |
4083 | Autoconf TCGETA | |
72b2cb61 | 4084 | _ACEOF |
f11781c5 AK |
4085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4086 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4087 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4088 | fi |
f11781c5 | 4089 | rm -f conftest* |
ad6254c5 | 4090 | |
f11781c5 | 4091 | fi |
7a197a62 | 4092 | fi |
f11781c5 AK |
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4094 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4095 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4096 | CC="$CC -traditional" | |
4097 | fi | |
ad6254c5 AK |
4098 | fi |
4099 | ||
f11781c5 AK |
4100 | # Find a good install program. We prefer a C program (faster), |
4101 | # so one script is as good as another. But avoid the broken or | |
4102 | # incompatible versions: | |
4103 | # SysV /etc/install, /usr/sbin/install | |
4104 | # SunOS /usr/etc/install | |
4105 | # IRIX /sbin/install | |
4106 | # AIX /bin/install | |
4107 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4108 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4109 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4110 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4111 | # OS/2's system install, which has a completely different semantic | |
4112 | # ./install, which can be erroneously created by make from ./install.sh. | |
4113 | # Reject install programs that cannot install multiple files. | |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4115 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4116 | if test -z "$INSTALL"; then | |
4117 | if test "${ac_cv_path_install+set}" = set; then : | |
4118 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4119 | else |
f11781c5 AK |
4120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4121 | for as_dir in $PATH | |
4122 | do | |
4123 | IFS=$as_save_IFS | |
4124 | test -z "$as_dir" && as_dir=. | |
4125 | # Account for people who put trailing slashes in PATH elements. | |
4126 | case $as_dir/ in #(( | |
4127 | ./ | .// | /[cC]/* | \ | |
4128 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4129 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4130 | /usr/ucb/* ) ;; | |
4131 | *) | |
4132 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4133 | # Don't use installbsd from OSF since it installs stuff as root | |
4134 | # by default. | |
4135 | for ac_prog in ginstall scoinst install; do | |
4136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4137 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4138 | if test $ac_prog = install && | |
4139 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4140 | # AIX install. It has an incompatible calling convention. | |
4141 | : | |
4142 | elif test $ac_prog = install && | |
4143 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4144 | # program-specific install script used by HP pwplus--don't use. | |
4145 | : | |
4146 | else | |
4147 | rm -rf conftest.one conftest.two conftest.dir | |
4148 | echo one > conftest.one | |
4149 | echo two > conftest.two | |
4150 | mkdir conftest.dir | |
4151 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4152 | test -s conftest.one && test -s conftest.two && | |
4153 | test -s conftest.dir/conftest.one && | |
4154 | test -s conftest.dir/conftest.two | |
4155 | then | |
4156 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4157 | break 3 | |
4158 | fi | |
4159 | fi | |
4160 | fi | |
4161 | done | |
4162 | done | |
4163 | ;; | |
4164 | esac | |
7a197a62 | 4165 | |
f11781c5 AK |
4166 | done |
4167 | IFS=$as_save_IFS | |
d0191583 | 4168 | |
f11781c5 | 4169 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4170 | |
4171 | fi | |
f11781c5 AK |
4172 | if test "${ac_cv_path_install+set}" = set; then |
4173 | INSTALL=$ac_cv_path_install | |
4174 | else | |
4175 | # As a last resort, use the slow shell script. Don't cache a | |
4176 | # value for INSTALL within a source directory, because that will | |
4177 | # break other packages using the cache if that directory is | |
4178 | # removed, or if the value is a relative name. | |
4179 | INSTALL=$ac_install_sh | |
4180 | fi | |
7a197a62 | 4181 | fi |
f11781c5 AK |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4183 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4184 | |
f11781c5 AK |
4185 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4186 | # It thinks the first close brace ends the variable substitution. | |
4187 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4188 | |
f11781c5 | 4189 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4190 | |
f11781c5 | 4191 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4192 | |
f11781c5 AK |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4194 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4195 | LN_S=$as_ln_s | |
4196 | if test "$LN_S" = "ln -s"; then | |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4198 | $as_echo "yes" >&6; } | |
4199 | else | |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4201 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4202 | fi |
ad6254c5 | 4203 | |
f11781c5 AK |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4205 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4206 | set x ${MAKE-make} | |
4207 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4208 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4209 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4210 | else |
f11781c5 AK |
4211 | cat >conftest.make <<\_ACEOF |
4212 | SHELL = /bin/sh | |
4213 | all: | |
4214 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4215 | _ACEOF | |
4216 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4217 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4218 | *@@@%%%=?*=@@@%%%*) | |
4219 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4220 | *) | |
4221 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4222 | esac | |
4223 | rm -f conftest.make | |
4224 | fi | |
4225 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4227 | $as_echo "yes" >&6; } | |
4228 | SET_MAKE= | |
4229 | else | |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4231 | $as_echo "no" >&6; } | |
4232 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4233 | fi |
4234 | ||
f11781c5 AK |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4236 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4237 | if test -z "$MKDIR_P"; then | |
4238 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4239 | $as_echo_n "(cached) " >&6 | |
4240 | else | |
4241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4242 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4243 | do | |
4244 | IFS=$as_save_IFS | |
4245 | test -z "$as_dir" && as_dir=. | |
4246 | for ac_prog in mkdir gmkdir; do | |
4247 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4248 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4249 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4250 | 'mkdir (GNU coreutils) '* | \ | |
4251 | 'mkdir (coreutils) '* | \ | |
4252 | 'mkdir (fileutils) '4.1*) | |
4253 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4254 | break 3;; | |
4255 | esac | |
4256 | done | |
4257 | done | |
4258 | done | |
4259 | IFS=$as_save_IFS | |
d0191583 | 4260 | |
f11781c5 | 4261 | fi |
ad6254c5 | 4262 | |
f11781c5 AK |
4263 | test -d ./--version && rmdir ./--version |
4264 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4265 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4266 | else | |
4267 | # As a last resort, use the slow shell script. Don't cache a | |
4268 | # value for MKDIR_P within a source directory, because that will | |
4269 | # break other packages using the cache if that directory is | |
4270 | # removed, or if the value is a relative name. | |
4271 | MKDIR_P="$ac_install_sh -d" | |
4272 | fi | |
ad6254c5 | 4273 | fi |
f11781c5 AK |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4275 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4276 | |
f11781c5 AK |
4277 | if test -n "$ac_tool_prefix"; then |
4278 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4279 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4281 | $as_echo_n "checking for $ac_word... " >&6; } | |
4282 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4283 | $as_echo_n "(cached) " >&6 | |
4284 | else | |
4285 | if test -n "$RANLIB"; then | |
4286 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4287 | else | |
4288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4289 | for as_dir in $PATH | |
4290 | do | |
4291 | IFS=$as_save_IFS | |
4292 | test -z "$as_dir" && as_dir=. | |
4293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4295 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4297 | break 2 | |
4298 | fi | |
4299 | done | |
4300 | done | |
4301 | IFS=$as_save_IFS | |
d0191583 | 4302 | |
f11781c5 AK |
4303 | fi |
4304 | fi | |
4305 | RANLIB=$ac_cv_prog_RANLIB | |
4306 | if test -n "$RANLIB"; then | |
4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4308 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4309 | else |
f11781c5 AK |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4311 | $as_echo "no" >&6; } | |
ad6254c5 | 4312 | fi |
ad6254c5 | 4313 | |
8a2fc586 | 4314 | |
d0191583 | 4315 | fi |
f11781c5 AK |
4316 | if test -z "$ac_cv_prog_RANLIB"; then |
4317 | ac_ct_RANLIB=$RANLIB | |
4318 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4319 | set dummy ranlib; ac_word=$2 | |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4321 | $as_echo_n "checking for $ac_word... " >&6; } | |
4322 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4323 | $as_echo_n "(cached) " >&6 | |
4324 | else | |
4325 | if test -n "$ac_ct_RANLIB"; then | |
4326 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4327 | else | |
4328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4329 | for as_dir in $PATH | |
4330 | do | |
4331 | IFS=$as_save_IFS | |
4332 | test -z "$as_dir" && as_dir=. | |
4333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4335 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4337 | break 2 | |
4338 | fi | |
4339 | done | |
4340 | done | |
4341 | IFS=$as_save_IFS | |
8a2fc586 | 4342 | |
f11781c5 AK |
4343 | fi |
4344 | fi | |
4345 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4346 | if test -n "$ac_ct_RANLIB"; then | |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4348 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4349 | else |
f11781c5 AK |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4351 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4352 | fi |
4353 | ||
f11781c5 AK |
4354 | if test "x$ac_ct_RANLIB" = x; then |
4355 | RANLIB=":" | |
4356 | else | |
4357 | case $cross_compiling:$ac_tool_warned in | |
4358 | yes:) | |
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4361 | ac_tool_warned=yes ;; | |
8fea97b7 | 4362 | esac |
f11781c5 AK |
4363 | RANLIB=$ac_ct_RANLIB |
4364 | fi | |
d0191583 | 4365 | else |
f11781c5 | 4366 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4367 | fi |
8a2fc586 | 4368 | |
f11781c5 AK |
4369 | # Extract the first word of "cflow", so it can be a program name with args. |
4370 | set dummy cflow; ac_word=$2 | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4372 | $as_echo_n "checking for $ac_word... " >&6; } | |
4373 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4374 | $as_echo_n "(cached) " >&6 | |
4375 | else | |
4376 | case $CFLOW_CMD in | |
4377 | [\\/]* | ?:[\\/]*) | |
4378 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4379 | ;; | |
4380 | *) | |
4381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4382 | for as_dir in $PATH | |
4383 | do | |
4384 | IFS=$as_save_IFS | |
4385 | test -z "$as_dir" && as_dir=. | |
4386 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4388 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4390 | break 2 | |
4391 | fi | |
4392 | done | |
4393 | done | |
4394 | IFS=$as_save_IFS | |
8a2fc586 | 4395 | |
f11781c5 AK |
4396 | ;; |
4397 | esac | |
ad6254c5 | 4398 | fi |
f11781c5 AK |
4399 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4400 | if test -n "$CFLOW_CMD"; then | |
4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4402 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4403 | else |
f11781c5 AK |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4405 | $as_echo "no" >&6; } | |
37ddf259 AK |
4406 | fi |
4407 | ||
e2997b73 | 4408 | |
f11781c5 AK |
4409 | # Extract the first word of "cscope", so it can be a program name with args. |
4410 | set dummy cscope; ac_word=$2 | |
4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4412 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4413 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4414 | $as_echo_n "(cached) " >&6 |
4415 | else | |
f11781c5 | 4416 | case $CSCOPE_CMD in |
e2997b73 | 4417 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4418 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4419 | ;; |
4420 | *) | |
4421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4422 | for as_dir in $PATH | |
4423 | do | |
4424 | IFS=$as_save_IFS | |
4425 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4426 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4428 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4430 | break 2 |
4431 | fi | |
4432 | done | |
f11781c5 | 4433 | done |
e2997b73 AK |
4434 | IFS=$as_save_IFS |
4435 | ||
4436 | ;; | |
4437 | esac | |
4438 | fi | |
f11781c5 AK |
4439 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4440 | if test -n "$CSCOPE_CMD"; then | |
4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4442 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4443 | else |
f11781c5 | 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4445 | $as_echo "no" >&6; } |
4446 | fi | |
f11781c5 AK |
4447 | |
4448 | ||
4449 | ||
4450 | ################################################################################ | |
4451 | ac_header_dirent=no | |
4452 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4453 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4455 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4456 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4457 | $as_echo_n "(cached) " >&6 | |
4458 | else | |
4459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4460 | /* end confdefs.h. */ | |
4461 | #include <sys/types.h> | |
4462 | #include <$ac_hdr> | |
4463 | ||
4464 | int | |
4465 | main () | |
4466 | { | |
4467 | if ((DIR *) 0) | |
4468 | return 0; | |
4469 | ; | |
4470 | return 0; | |
4471 | } | |
4472 | _ACEOF | |
4473 | if ac_fn_c_try_compile "$LINENO"; then : | |
4474 | eval "$as_ac_Header=yes" | |
4475 | else | |
4476 | eval "$as_ac_Header=no" | |
4477 | fi | |
4478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4479 | fi | |
4480 | eval ac_res=\$$as_ac_Header | |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4482 | $as_echo "$ac_res" >&6; } | |
4483 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4484 | cat >>confdefs.h <<_ACEOF | |
4485 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4486 | _ACEOF | |
4487 | ||
4488 | ac_header_dirent=$ac_hdr; break | |
4489 | fi | |
4490 | ||
4491 | done | |
4492 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4493 | if test $ac_header_dirent = dirent.h; then | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4495 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4496 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4497 | $as_echo_n "(cached) " >&6 | |
4498 | else | |
4499 | ac_func_search_save_LIBS=$LIBS | |
4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4501 | /* end confdefs.h. */ | |
4502 | ||
4503 | /* Override any GCC internal prototype to avoid an error. | |
4504 | Use char because int might match the return type of a GCC | |
4505 | builtin and then its argument prototype would still apply. */ | |
4506 | #ifdef __cplusplus | |
4507 | extern "C" | |
4508 | #endif | |
4509 | char opendir (); | |
4510 | int | |
4511 | main () | |
4512 | { | |
4513 | return opendir (); | |
4514 | ; | |
4515 | return 0; | |
4516 | } | |
4517 | _ACEOF | |
4518 | for ac_lib in '' dir; do | |
4519 | if test -z "$ac_lib"; then | |
4520 | ac_res="none required" | |
4521 | else | |
4522 | ac_res=-l$ac_lib | |
4523 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4524 | fi | |
4525 | if ac_fn_c_try_link "$LINENO"; then : | |
4526 | ac_cv_search_opendir=$ac_res | |
4527 | fi | |
4528 | rm -f core conftest.err conftest.$ac_objext \ | |
4529 | conftest$ac_exeext | |
4530 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4531 | break | |
4532 | fi | |
4533 | done | |
4534 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4535 | ||
4536 | else | |
4537 | ac_cv_search_opendir=no | |
4538 | fi | |
4539 | rm conftest.$ac_ext | |
4540 | LIBS=$ac_func_search_save_LIBS | |
4541 | fi | |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4543 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4544 | ac_res=$ac_cv_search_opendir | |
4545 | if test "$ac_res" != no; then : | |
4546 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4547 | |
4548 | fi | |
f11781c5 AK |
4549 | |
4550 | else | |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4552 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4553 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4554 | $as_echo_n "(cached) " >&6 |
4555 | else | |
f11781c5 AK |
4556 | ac_func_search_save_LIBS=$LIBS |
4557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4558 | /* end confdefs.h. */ | |
e2997b73 | 4559 | |
f11781c5 AK |
4560 | /* Override any GCC internal prototype to avoid an error. |
4561 | Use char because int might match the return type of a GCC | |
4562 | builtin and then its argument prototype would still apply. */ | |
4563 | #ifdef __cplusplus | |
4564 | extern "C" | |
4565 | #endif | |
4566 | char opendir (); | |
4567 | int | |
4568 | main () | |
4569 | { | |
4570 | return opendir (); | |
4571 | ; | |
4572 | return 0; | |
4573 | } | |
4574 | _ACEOF | |
4575 | for ac_lib in '' x; do | |
4576 | if test -z "$ac_lib"; then | |
4577 | ac_res="none required" | |
4578 | else | |
4579 | ac_res=-l$ac_lib | |
4580 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4581 | fi | |
4582 | if ac_fn_c_try_link "$LINENO"; then : | |
4583 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4584 | fi |
f11781c5 AK |
4585 | rm -f core conftest.err conftest.$ac_objext \ |
4586 | conftest$ac_exeext | |
4587 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4588 | break | |
e2997b73 | 4589 | fi |
f11781c5 AK |
4590 | done |
4591 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4592 | |
e2997b73 | 4593 | else |
f11781c5 AK |
4594 | ac_cv_search_opendir=no |
4595 | fi | |
4596 | rm conftest.$ac_ext | |
4597 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4598 | fi |
f11781c5 AK |
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4600 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4601 | ac_res=$ac_cv_search_opendir | |
4602 | if test "$ac_res" != no; then : | |
4603 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4604 | |
4605 | fi | |
8c4e8a18 | 4606 | |
e2997b73 AK |
4607 | fi |
4608 | ||
f11781c5 AK |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4610 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4611 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4612 | $as_echo_n "(cached) " >&6 | |
4613 | else | |
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4615 | /* end confdefs.h. */ | |
4616 | #include <stdlib.h> | |
4617 | #include <stdarg.h> | |
4618 | #include <string.h> | |
4619 | #include <float.h> | |
e2997b73 | 4620 | |
f11781c5 AK |
4621 | int |
4622 | main () | |
4623 | { | |
4624 | ||
4625 | ; | |
4626 | return 0; | |
4627 | } | |
4628 | _ACEOF | |
4629 | if ac_fn_c_try_compile "$LINENO"; then : | |
4630 | ac_cv_header_stdc=yes | |
e2997b73 | 4631 | else |
f11781c5 | 4632 | ac_cv_header_stdc=no |
e2997b73 | 4633 | fi |
f11781c5 AK |
4634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4635 | ||
4636 | if test $ac_cv_header_stdc = yes; then | |
4637 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4639 | /* end confdefs.h. */ | |
4640 | #include <string.h> | |
4641 | ||
4642 | _ACEOF | |
4643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4644 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4645 | ||
e2997b73 | 4646 | else |
f11781c5 | 4647 | ac_cv_header_stdc=no |
e2997b73 | 4648 | fi |
f11781c5 | 4649 | rm -f conftest* |
e2997b73 | 4650 | |
f11781c5 | 4651 | fi |
e2997b73 | 4652 | |
f11781c5 AK |
4653 | if test $ac_cv_header_stdc = yes; then |
4654 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4656 | /* end confdefs.h. */ | |
4657 | #include <stdlib.h> | |
e2997b73 | 4658 | |
f11781c5 AK |
4659 | _ACEOF |
4660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4661 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4662 | |
e2997b73 | 4663 | else |
f11781c5 | 4664 | ac_cv_header_stdc=no |
e2997b73 | 4665 | fi |
f11781c5 | 4666 | rm -f conftest* |
e2997b73 | 4667 | |
e2997b73 | 4668 | fi |
90c80887 | 4669 | |
f11781c5 AK |
4670 | if test $ac_cv_header_stdc = yes; then |
4671 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4672 | if test "$cross_compiling" = yes; then : | |
4673 | : | |
4674 | else | |
4675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4676 | /* end confdefs.h. */ | |
4677 | #include <ctype.h> | |
4678 | #include <stdlib.h> | |
4679 | #if ((' ' & 0x0FF) == 0x020) | |
4680 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4681 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4682 | #else | |
4683 | # define ISLOWER(c) \ | |
4684 | (('a' <= (c) && (c) <= 'i') \ | |
4685 | || ('j' <= (c) && (c) <= 'r') \ | |
4686 | || ('s' <= (c) && (c) <= 'z')) | |
4687 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4688 | #endif | |
4689 | ||
4690 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4691 | int | |
4692 | main () | |
4693 | { | |
4694 | int i; | |
4695 | for (i = 0; i < 256; i++) | |
4696 | if (XOR (islower (i), ISLOWER (i)) | |
4697 | || toupper (i) != TOUPPER (i)) | |
4698 | return 2; | |
4699 | return 0; | |
4700 | } | |
4701 | _ACEOF | |
4702 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4703 | |
90c80887 | 4704 | else |
f11781c5 | 4705 | ac_cv_header_stdc=no |
90c80887 | 4706 | fi |
f11781c5 AK |
4707 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4708 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4709 | fi |
90c80887 | 4710 | |
90c80887 | 4711 | fi |
90c80887 | 4712 | fi |
f11781c5 AK |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4714 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4715 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4716 | |
f11781c5 | 4717 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4718 | |
90c80887 | 4719 | fi |
f11781c5 AK |
4720 | |
4721 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4722 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4723 | inttypes.h stdint.h unistd.h | |
4724 | do : | |
4725 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4726 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4727 | " | |
4728 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4729 | cat >>confdefs.h <<_ACEOF | |
4730 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4731 | _ACEOF | |
4732 | ||
90c80887 | 4733 | fi |
f11781c5 AK |
4734 | |
4735 | done | |
4736 | ||
4737 | ||
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4739 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4740 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4741 | $as_echo_n "(cached) " >&6 | |
4742 | else | |
4743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4744 | /* end confdefs.h. */ | |
4745 | #include <sys/types.h> | |
4746 | int | |
4747 | main () | |
4748 | { | |
4749 | return makedev(0, 0); | |
4750 | ; | |
4751 | return 0; | |
4752 | } | |
4753 | _ACEOF | |
4754 | if ac_fn_c_try_link "$LINENO"; then : | |
4755 | ac_cv_header_sys_types_h_makedev=yes | |
4756 | else | |
4757 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4758 | fi |
f11781c5 AK |
4759 | rm -f core conftest.err conftest.$ac_objext \ |
4760 | conftest$ac_exeext conftest.$ac_ext | |
4761 | ||
90c80887 | 4762 | fi |
f11781c5 AK |
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4764 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4765 | ||
4766 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4767 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4768 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4769 | ||
4770 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4771 | |
a946372e | 4772 | fi |
e2997b73 | 4773 | |
e2997b73 | 4774 | |
a946372e | 4775 | |
f11781c5 AK |
4776 | if test $ac_cv_header_sys_mkdev_h = no; then |
4777 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4778 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4779 | ||
4780 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4781 | ||
e2997b73 | 4782 | fi |
a946372e | 4783 | |
a946372e | 4784 | |
f11781c5 AK |
4785 | fi |
4786 | fi | |
4787 | ||
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4789 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4790 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4791 | $as_echo_n "(cached) " >&6 |
4792 | else | |
f11781c5 | 4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4794 | /* end confdefs.h. */ |
f11781c5 AK |
4795 | #include <stdlib.h> |
4796 | #include <stdarg.h> | |
4797 | #include <string.h> | |
4798 | #include <float.h> | |
a946372e | 4799 | |
a946372e AK |
4800 | int |
4801 | main () | |
4802 | { | |
f11781c5 | 4803 | |
a946372e AK |
4804 | ; |
4805 | return 0; | |
4806 | } | |
4807 | _ACEOF | |
f11781c5 AK |
4808 | if ac_fn_c_try_compile "$LINENO"; then : |
4809 | ac_cv_header_stdc=yes | |
e2997b73 | 4810 | else |
f11781c5 AK |
4811 | ac_cv_header_stdc=no |
4812 | fi | |
4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4814 | ||
4815 | if test $ac_cv_header_stdc = yes; then | |
4816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4818 | /* end confdefs.h. */ | |
4819 | #include <string.h> | |
4820 | ||
4821 | _ACEOF | |
4822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4823 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4824 | |
f11781c5 AK |
4825 | else |
4826 | ac_cv_header_stdc=no | |
a946372e | 4827 | fi |
f11781c5 | 4828 | rm -f conftest* |
e2997b73 | 4829 | |
a946372e | 4830 | fi |
e2997b73 | 4831 | |
f11781c5 AK |
4832 | if test $ac_cv_header_stdc = yes; then |
4833 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4835 | /* end confdefs.h. */ | |
4836 | #include <stdlib.h> | |
4837 | ||
4838 | _ACEOF | |
4839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4840 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4841 | |
e2997b73 | 4842 | else |
f11781c5 | 4843 | ac_cv_header_stdc=no |
e2997b73 | 4844 | fi |
f11781c5 | 4845 | rm -f conftest* |
e2997b73 | 4846 | |
f11781c5 | 4847 | fi |
a946372e | 4848 | |
f11781c5 AK |
4849 | if test $ac_cv_header_stdc = yes; then |
4850 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4851 | if test "$cross_compiling" = yes; then : | |
4852 | : | |
4853 | else | |
4854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4855 | /* end confdefs.h. */ | |
4856 | #include <ctype.h> | |
4857 | #include <stdlib.h> | |
4858 | #if ((' ' & 0x0FF) == 0x020) | |
4859 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4860 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4861 | #else | |
4862 | # define ISLOWER(c) \ | |
4863 | (('a' <= (c) && (c) <= 'i') \ | |
4864 | || ('j' <= (c) && (c) <= 'r') \ | |
4865 | || ('s' <= (c) && (c) <= 'z')) | |
4866 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4867 | #endif | |
e2997b73 | 4868 | |
f11781c5 AK |
4869 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | int i; | |
4874 | for (i = 0; i < 256; i++) | |
4875 | if (XOR (islower (i), ISLOWER (i)) | |
4876 | || toupper (i) != TOUPPER (i)) | |
4877 | return 2; | |
4878 | return 0; | |
4879 | } | |
4880 | _ACEOF | |
4881 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4882 | |
e2997b73 | 4883 | else |
f11781c5 | 4884 | ac_cv_header_stdc=no |
e2997b73 | 4885 | fi |
f11781c5 AK |
4886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4887 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4888 | fi |
f11781c5 | 4889 | |
e2997b73 | 4890 | fi |
e2997b73 | 4891 | fi |
f11781c5 AK |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4893 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4894 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4895 | |
f11781c5 | 4896 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4897 | |
f11781c5 | 4898 | fi |
e2997b73 | 4899 | |
f11781c5 AK |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4901 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4902 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4903 | $as_echo_n "(cached) " >&6 | |
4904 | else | |
4905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4906 | /* end confdefs.h. */ | |
4907 | #include <sys/types.h> | |
4908 | #include <sys/wait.h> | |
4909 | #ifndef WEXITSTATUS | |
4910 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4911 | #endif | |
4912 | #ifndef WIFEXITED | |
4913 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4914 | #endif | |
e2997b73 | 4915 | |
f11781c5 AK |
4916 | int |
4917 | main () | |
4918 | { | |
4919 | int s; | |
4920 | wait (&s); | |
4921 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4922 | ; | |
4923 | return 0; | |
4924 | } | |
4925 | _ACEOF | |
4926 | if ac_fn_c_try_compile "$LINENO"; then : | |
4927 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4928 | else |
f11781c5 | 4929 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4930 | fi |
f11781c5 AK |
4931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4932 | fi | |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4934 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4935 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4936 | |
f11781c5 | 4937 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4938 | |
d0191583 | 4939 | fi |
f11781c5 AK |
4940 | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4942 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4943 | if test "${ac_cv_header_time+set}" = set; then : | |
4944 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4945 | else |
f11781c5 | 4946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4947 | /* end confdefs.h. */ |
f11781c5 AK |
4948 | #include <sys/types.h> |
4949 | #include <sys/time.h> | |
4950 | #include <time.h> | |
4951 | ||
4952 | int | |
4953 | main () | |
4954 | { | |
4955 | if ((struct tm *) 0) | |
4956 | return 0; | |
4957 | ; | |
4958 | return 0; | |
4959 | } | |
a946372e | 4960 | _ACEOF |
f11781c5 AK |
4961 | if ac_fn_c_try_compile "$LINENO"; then : |
4962 | ac_cv_header_time=yes | |
a946372e | 4963 | else |
f11781c5 AK |
4964 | ac_cv_header_time=no |
4965 | fi | |
4966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4967 | fi | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4969 | $as_echo "$ac_cv_header_time" >&6; } | |
4970 | if test $ac_cv_header_time = yes; then | |
4971 | ||
4972 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4973 | ||
4974 | fi | |
4975 | ||
4976 | ||
4977 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4978 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4979 | sys/wait.h time.h | |
4980 | do : | |
4981 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4982 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4983 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4984 | cat >>confdefs.h <<_ACEOF | |
4985 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4986 | _ACEOF | |
d0191583 | 4987 | |
f11781c5 AK |
4988 | else |
4989 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4990 | fi |
4991 | ||
f11781c5 | 4992 | done |
fddafd51 | 4993 | |
f11781c5 AK |
4994 | |
4995 | case "$host_os" in | |
4996 | linux*) | |
4997 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4998 | do : | |
4999 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5000 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5001 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5002 | cat >>confdefs.h <<_ACEOF | |
5003 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 5004 | _ACEOF |
a946372e | 5005 | |
f11781c5 AK |
5006 | else |
5007 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
5008 | fi |
5009 | ||
f11781c5 AK |
5010 | done |
5011 | ;; | |
5012 | darwin*) | |
5013 | for ac_header in machine/endian.h sys/disk.h | |
5014 | do : | |
5015 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5016 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5017 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5018 | cat >>confdefs.h <<_ACEOF | |
5019 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5020 | _ACEOF | |
a946372e | 5021 | |
f11781c5 AK |
5022 | else |
5023 | as_fn_error $? "bailing out" "$LINENO" 5 | |
5024 | fi | |
a946372e | 5025 | |
f11781c5 AK |
5026 | done |
5027 | ;; | |
a946372e | 5028 | esac |
f11781c5 AK |
5029 | |
5030 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5031 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5032 | sys/types.h unistd.h | |
5033 | do : | |
5034 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5035 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5036 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5037 | cat >>confdefs.h <<_ACEOF | |
5038 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5039 | _ACEOF | |
5040 | ||
a946372e | 5041 | else |
f11781c5 | 5042 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5043 | fi |
a946372e | 5044 | |
f11781c5 AK |
5045 | done |
5046 | ||
5047 | for ac_header in termios.h sys/statvfs.h | |
5048 | do : | |
5049 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5050 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5051 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5052 | cat >>confdefs.h <<_ACEOF |
5053 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5054 | _ACEOF | |
5055 | ||
a946372e AK |
5056 | fi |
5057 | ||
5058 | done | |
5059 | ||
a946372e | 5060 | |
f11781c5 AK |
5061 | ################################################################################ |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5063 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5064 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5065 | $as_echo_n "(cached) " >&6 |
a946372e | 5066 | else |
f11781c5 | 5067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5068 | /* end confdefs.h. */ |
a946372e | 5069 | |
f11781c5 AK |
5070 | int |
5071 | main () | |
5072 | { | |
5073 | /* FIXME: Include the comments suggested by Paul. */ | |
5074 | #ifndef __cplusplus | |
5075 | /* Ultrix mips cc rejects this. */ | |
5076 | typedef int charset[2]; | |
5077 | const charset cs; | |
5078 | /* SunOS 4.1.1 cc rejects this. */ | |
5079 | char const *const *pcpcc; | |
5080 | char **ppc; | |
5081 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5082 | struct point {int x, y;}; | |
5083 | static struct point const zero = {0,0}; | |
5084 | /* AIX XL C 1.02.0.0 rejects this. | |
5085 | It does not let you subtract one const X* pointer from another in | |
5086 | an arm of an if-expression whose if-part is not a constant | |
5087 | expression */ | |
5088 | const char *g = "string"; | |
5089 | pcpcc = &g + (g ? g-g : 0); | |
5090 | /* HPUX 7.0 cc rejects these. */ | |
5091 | ++pcpcc; | |
5092 | ppc = (char**) pcpcc; | |
5093 | pcpcc = (char const *const *) ppc; | |
5094 | { /* SCO 3.2v4 cc rejects this. */ | |
5095 | char *t; | |
5096 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5097 | |
f11781c5 AK |
5098 | *t++ = 0; |
5099 | if (s) return 0; | |
5100 | } | |
5101 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5102 | int x[] = {25, 17}; | |
5103 | const int *foo = &x[0]; | |
5104 | ++foo; | |
5105 | } | |
5106 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5107 | typedef const int *iptr; | |
5108 | iptr p = 0; | |
5109 | ++p; | |
5110 | } | |
5111 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5112 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5113 | struct s { int j; const int *ap[3]; }; | |
5114 | struct s *b; b->j = 5; | |
5115 | } | |
5116 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5117 | const int foo = 10; | |
5118 | if (!foo) return 0; | |
5119 | } | |
5120 | return !cs[0] && !zero.x; | |
5121 | #endif | |
a946372e | 5122 | |
f11781c5 AK |
5123 | ; |
5124 | return 0; | |
5125 | } | |
a946372e | 5126 | _ACEOF |
f11781c5 AK |
5127 | if ac_fn_c_try_compile "$LINENO"; then : |
5128 | ac_cv_c_const=yes | |
a946372e | 5129 | else |
f11781c5 AK |
5130 | ac_cv_c_const=no |
5131 | fi | |
5132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5133 | fi |
f11781c5 AK |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5135 | $as_echo "$ac_cv_c_const" >&6; } | |
5136 | if test $ac_cv_c_const = no; then | |
a946372e | 5137 | |
f11781c5 | 5138 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5139 | |
f11781c5 | 5140 | fi |
a946372e | 5141 | |
f11781c5 AK |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5143 | $as_echo_n "checking for inline... " >&6; } | |
5144 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5145 | $as_echo_n "(cached) " >&6 |
5146 | else | |
f11781c5 AK |
5147 | ac_cv_c_inline=no |
5148 | for ac_kw in inline __inline__ __inline; do | |
5149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5150 | /* end confdefs.h. */ | |
5151 | #ifndef __cplusplus | |
5152 | typedef int foo_t; | |
5153 | static $ac_kw foo_t static_foo () {return 0; } | |
5154 | $ac_kw foo_t foo () {return 0; } | |
5155 | #endif | |
5156 | ||
5157 | _ACEOF | |
5158 | if ac_fn_c_try_compile "$LINENO"; then : | |
5159 | ac_cv_c_inline=$ac_kw | |
a946372e | 5160 | fi |
f11781c5 AK |
5161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5162 | test "$ac_cv_c_inline" != no && break | |
5163 | done | |
a946372e AK |
5164 | |
5165 | fi | |
f11781c5 AK |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5167 | $as_echo "$ac_cv_c_inline" >&6; } | |
5168 | ||
5169 | case $ac_cv_c_inline in | |
5170 | inline | yes) ;; | |
5171 | *) | |
5172 | case $ac_cv_c_inline in | |
5173 | no) ac_val=;; | |
5174 | *) ac_val=$ac_cv_c_inline;; | |
5175 | esac | |
5176 | cat >>confdefs.h <<_ACEOF | |
5177 | #ifndef __cplusplus | |
5178 | #define inline $ac_val | |
5179 | #endif | |
5180 | _ACEOF | |
5181 | ;; | |
5182 | esac | |
5183 | ||
5184 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5185 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5186 | ||
5187 | cat >>confdefs.h <<_ACEOF | |
5188 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5189 | _ACEOF |
5190 | ||
f11781c5 | 5191 | |
a946372e AK |
5192 | fi |
5193 | ||
f11781c5 AK |
5194 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5195 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5196 | |
a946372e | 5197 | else |
f11781c5 AK |
5198 | |
5199 | cat >>confdefs.h <<_ACEOF | |
5200 | #define off_t long int | |
5201 | _ACEOF | |
5202 | ||
a946372e AK |
5203 | fi |
5204 | ||
f11781c5 AK |
5205 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5206 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5207 | |
a946372e | 5208 | else |
f11781c5 AK |
5209 | |
5210 | cat >>confdefs.h <<_ACEOF | |
5211 | #define pid_t int | |
5212 | _ACEOF | |
5213 | ||
5214 | fi | |
5215 | ||
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5217 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5218 | if test "${ac_cv_type_signal+set}" = set; then : | |
5219 | $as_echo_n "(cached) " >&6 | |
a946372e | 5220 | else |
f11781c5 AK |
5221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5222 | /* end confdefs.h. */ | |
5223 | #include <sys/types.h> | |
5224 | #include <signal.h> | |
5225 | ||
5226 | int | |
5227 | main () | |
5228 | { | |
5229 | return *(signal (0, 0)) (0) == 1; | |
5230 | ; | |
5231 | return 0; | |
5232 | } | |
5233 | _ACEOF | |
5234 | if ac_fn_c_try_compile "$LINENO"; then : | |
5235 | ac_cv_type_signal=int | |
5236 | else | |
5237 | ac_cv_type_signal=void | |
a946372e | 5238 | fi |
f11781c5 | 5239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5240 | fi |
f11781c5 AK |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5242 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5243 | |
f11781c5 AK |
5244 | cat >>confdefs.h <<_ACEOF |
5245 | #define RETSIGTYPE $ac_cv_type_signal | |
5246 | _ACEOF | |
a946372e AK |
5247 | |
5248 | ||
f11781c5 AK |
5249 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5250 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5251 | |
a946372e | 5252 | else |
a946372e | 5253 | |
f11781c5 AK |
5254 | cat >>confdefs.h <<_ACEOF |
5255 | #define size_t unsigned int | |
5256 | _ACEOF | |
a946372e | 5257 | |
a946372e | 5258 | fi |
f11781c5 AK |
5259 | |
5260 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5261 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5262 | ||
a946372e | 5263 | else |
f11781c5 AK |
5264 | |
5265 | cat >>confdefs.h <<_ACEOF | |
5266 | #define mode_t int | |
a946372e | 5267 | _ACEOF |
a946372e | 5268 | |
a946372e AK |
5269 | fi |
5270 | ||
f11781c5 AK |
5271 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5272 | case $ac_cv_c_int8_t in #( | |
5273 | no|yes) ;; #( | |
5274 | *) | |
a946372e | 5275 | |
f11781c5 AK |
5276 | cat >>confdefs.h <<_ACEOF |
5277 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5278 | _ACEOF |
f11781c5 | 5279 | ;; |
a946372e | 5280 | esac |
a946372e | 5281 | |
f11781c5 AK |
5282 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5283 | case $ac_cv_c_int16_t in #( | |
5284 | no|yes) ;; #( | |
5285 | *) | |
a946372e | 5286 | |
f11781c5 AK |
5287 | cat >>confdefs.h <<_ACEOF |
5288 | #define int16_t $ac_cv_c_int16_t | |
5289 | _ACEOF | |
5290 | ;; | |
5291 | esac | |
a946372e | 5292 | |
f11781c5 AK |
5293 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5294 | case $ac_cv_c_int32_t in #( | |
5295 | no|yes) ;; #( | |
5296 | *) | |
a946372e | 5297 | |
f11781c5 AK |
5298 | cat >>confdefs.h <<_ACEOF |
5299 | #define int32_t $ac_cv_c_int32_t | |
5300 | _ACEOF | |
5301 | ;; | |
a946372e | 5302 | esac |
a946372e | 5303 | |
f11781c5 AK |
5304 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5305 | case $ac_cv_c_int64_t in #( | |
5306 | no|yes) ;; #( | |
5307 | *) | |
5308 | ||
5309 | cat >>confdefs.h <<_ACEOF | |
5310 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5311 | _ACEOF |
f11781c5 AK |
5312 | ;; |
5313 | esac | |
5314 | ||
5315 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5316 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5317 | |
5318 | else | |
a946372e | 5319 | |
f11781c5 AK |
5320 | cat >>confdefs.h <<_ACEOF |
5321 | #define ssize_t int | |
5322 | _ACEOF | |
a946372e | 5323 | |
f11781c5 | 5324 | fi |
a946372e | 5325 | |
f11781c5 AK |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5327 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5328 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5329 | $as_echo_n "(cached) " >&6 |
a946372e | 5330 | else |
f11781c5 | 5331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5332 | /* end confdefs.h. */ |
f11781c5 AK |
5333 | #include <sys/types.h> |
5334 | ||
a946372e | 5335 | _ACEOF |
f11781c5 AK |
5336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5337 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5338 | ac_cv_type_uid_t=yes | |
a946372e | 5339 | else |
f11781c5 AK |
5340 | ac_cv_type_uid_t=no |
5341 | fi | |
5342 | rm -f conftest* | |
a946372e | 5343 | |
a946372e | 5344 | fi |
f11781c5 AK |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5346 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5347 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5348 | |
f11781c5 | 5349 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5350 | |
f11781c5 AK |
5351 | |
5352 | $as_echo "#define gid_t int" >>confdefs.h | |
5353 | ||
5354 | fi | |
5355 | ||
5356 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5357 | case $ac_cv_c_uint8_t in #( | |
5358 | no|yes) ;; #( | |
5359 | *) | |
5360 | ||
5361 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5362 | ||
5363 | ||
5364 | cat >>confdefs.h <<_ACEOF | |
5365 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5366 | _ACEOF |
f11781c5 AK |
5367 | ;; |
5368 | esac | |
5369 | ||
5370 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5371 | case $ac_cv_c_uint16_t in #( | |
5372 | no|yes) ;; #( | |
5373 | *) | |
5374 | ||
5375 | ||
5376 | cat >>confdefs.h <<_ACEOF | |
5377 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5378 | _ACEOF |
f11781c5 AK |
5379 | ;; |
5380 | esac | |
a946372e | 5381 | |
f11781c5 AK |
5382 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5383 | case $ac_cv_c_uint32_t in #( | |
5384 | no|yes) ;; #( | |
5385 | *) | |
a946372e | 5386 | |
f11781c5 | 5387 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5388 | |
a946372e | 5389 | |
f11781c5 AK |
5390 | cat >>confdefs.h <<_ACEOF |
5391 | #define uint32_t $ac_cv_c_uint32_t | |
5392 | _ACEOF | |
5393 | ;; | |
5394 | esac | |
5395 | ||
5396 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5397 | case $ac_cv_c_uint64_t in #( | |
5398 | no|yes) ;; #( | |
5399 | *) | |
5400 | ||
5401 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5402 | ||
5403 | ||
5404 | cat >>confdefs.h <<_ACEOF | |
5405 | #define uint64_t $ac_cv_c_uint64_t | |
5406 | _ACEOF | |
5407 | ;; | |
5408 | esac | |
5409 | ||
5410 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5411 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5412 | ||
5413 | cat >>confdefs.h <<_ACEOF | |
5414 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5415 | _ACEOF | |
5416 | ||
5417 | ||
5418 | fi | |
5419 | ||
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5421 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5422 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5423 | $as_echo_n "(cached) " >&6 |
5424 | else | |
f11781c5 AK |
5425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5426 | /* end confdefs.h. */ | |
5427 | #include <sys/types.h> | |
5428 | #include <time.h> | |
5429 | ||
5430 | int | |
5431 | main () | |
5432 | { | |
5433 | struct tm tm; | |
5434 | int *p = &tm.tm_sec; | |
5435 | return !p; | |
5436 | ; | |
5437 | return 0; | |
5438 | } | |
5439 | _ACEOF | |
5440 | if ac_fn_c_try_compile "$LINENO"; then : | |
5441 | ac_cv_struct_tm=time.h | |
5442 | else | |
5443 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5444 | fi |
f11781c5 AK |
5445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5446 | fi | |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5448 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5449 | if test $ac_cv_struct_tm = sys/time.h; then | |
5450 | ||
5451 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5452 | |
5453 | fi | |
f11781c5 AK |
5454 | |
5455 | ||
5456 | ################################################################################ | |
5457 | for ac_func in ftruncate gethostname getpagesize \ | |
5458 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5459 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5460 | strstr strtol strtoul uname | |
5461 | do : | |
5462 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5463 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5464 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5465 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5466 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5467 | _ACEOF |
5468 | ||
5469 | else | |
f11781c5 | 5470 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5471 | fi |
a946372e AK |
5472 | done |
5473 | ||
f11781c5 AK |
5474 | for ac_func in siginterrupt |
5475 | do : | |
5476 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5477 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5478 | cat >>confdefs.h <<_ACEOF | |
5479 | #define HAVE_SIGINTERRUPT 1 | |
5480 | _ACEOF | |
a946372e | 5481 | |
f11781c5 AK |
5482 | fi |
5483 | done | |
a946372e | 5484 | |
f11781c5 AK |
5485 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5486 | # for constant arguments. Useless! | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5488 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5489 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5490 | $as_echo_n "(cached) " >&6 | |
a946372e | 5491 | else |
f11781c5 AK |
5492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5493 | /* end confdefs.h. */ | |
5494 | #include <alloca.h> | |
5495 | int | |
5496 | main () | |
5497 | { | |
5498 | char *p = (char *) alloca (2 * sizeof (int)); | |
5499 | if (p) return 0; | |
5500 | ; | |
5501 | return 0; | |
5502 | } | |
5503 | _ACEOF | |
5504 | if ac_fn_c_try_link "$LINENO"; then : | |
5505 | ac_cv_working_alloca_h=yes | |
a946372e | 5506 | else |
f11781c5 | 5507 | ac_cv_working_alloca_h=no |
a946372e | 5508 | fi |
f11781c5 AK |
5509 | rm -f core conftest.err conftest.$ac_objext \ |
5510 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5511 | fi |
f11781c5 AK |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5513 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5514 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5515 | |
f11781c5 | 5516 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5517 | |
a946372e | 5518 | fi |
a946372e | 5519 | |
f11781c5 AK |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5521 | $as_echo_n "checking for alloca... " >&6; } | |
5522 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5523 | $as_echo_n "(cached) " >&6 |
a946372e | 5524 | else |
f11781c5 | 5525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5526 | /* end confdefs.h. */ |
f11781c5 AK |
5527 | #ifdef __GNUC__ |
5528 | # define alloca __builtin_alloca | |
5529 | #else | |
5530 | # ifdef _MSC_VER | |
5531 | # include <malloc.h> | |
5532 | # define alloca _alloca | |
5533 | # else | |
5534 | # ifdef HAVE_ALLOCA_H | |
5535 | # include <alloca.h> | |
5536 | # else | |
5537 | # ifdef _AIX | |
5538 | #pragma alloca | |
5539 | # else | |
5540 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5541 | char *alloca (); | |
5542 | # endif | |
5543 | # endif | |
5544 | # endif | |
5545 | # endif | |
5546 | #endif | |
a946372e | 5547 | |
f11781c5 AK |
5548 | int |
5549 | main () | |
5550 | { | |
5551 | char *p = (char *) alloca (1); | |
5552 | if (p) return 0; | |
5553 | ; | |
5554 | return 0; | |
5555 | } | |
a946372e | 5556 | _ACEOF |
f11781c5 AK |
5557 | if ac_fn_c_try_link "$LINENO"; then : |
5558 | ac_cv_func_alloca_works=yes | |
a946372e | 5559 | else |
f11781c5 | 5560 | ac_cv_func_alloca_works=no |
a946372e | 5561 | fi |
f11781c5 AK |
5562 | rm -f core conftest.err conftest.$ac_objext \ |
5563 | conftest$ac_exeext conftest.$ac_ext | |
5564 | fi | |
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5566 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5567 | |
f11781c5 | 5568 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5569 | |
f11781c5 | 5570 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5571 | |
a946372e | 5572 | else |
f11781c5 AK |
5573 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5574 | # that cause trouble. Some versions do not even contain alloca or | |
5575 | # contain a buggy version. If you still want to use their alloca, | |
5576 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5577 | |
f11781c5 | 5578 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5579 | |
f11781c5 | 5580 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5581 | |
a946372e | 5582 | |
f11781c5 AK |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5584 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5585 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5586 | $as_echo_n "(cached) " >&6 |
a946372e | 5587 | else |
f11781c5 | 5588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5589 | /* end confdefs.h. */ |
f11781c5 AK |
5590 | #if defined CRAY && ! defined CRAY2 |
5591 | webecray | |
5592 | #else | |
5593 | wenotbecray | |
5594 | #endif | |
5595 | ||
a946372e | 5596 | _ACEOF |
f11781c5 AK |
5597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5598 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5599 | ac_cv_os_cray=yes | |
a946372e | 5600 | else |
f11781c5 | 5601 | ac_cv_os_cray=no |
a946372e | 5602 | fi |
f11781c5 | 5603 | rm -f conftest* |
a946372e | 5604 | |
f11781c5 AK |
5605 | fi |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5607 | $as_echo "$ac_cv_os_cray" >&6; } | |
5608 | if test $ac_cv_os_cray = yes; then | |
5609 | for ac_func in _getb67 GETB67 getb67; do | |
5610 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5611 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5612 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5613 | |
f11781c5 AK |
5614 | cat >>confdefs.h <<_ACEOF |
5615 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5616 | _ACEOF |
a946372e | 5617 | |
f11781c5 | 5618 | break |
a946372e AK |
5619 | fi |
5620 | ||
f11781c5 AK |
5621 | done |
5622 | fi | |
a946372e | 5623 | |
f11781c5 AK |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5625 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5626 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5627 | $as_echo_n "(cached) " >&6 |
5628 | else | |
f11781c5 AK |
5629 | if test "$cross_compiling" = yes; then : |
5630 | ac_cv_c_stack_direction=0 | |
5631 | else | |
5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5633 | /* end confdefs.h. */ | |
5634 | $ac_includes_default | |
5635 | int | |
5636 | find_stack_direction () | |
5637 | { | |
5638 | static char *addr = 0; | |
5639 | auto char dummy; | |
5640 | if (addr == 0) | |
5641 | { | |
5642 | addr = &dummy; | |
5643 | return find_stack_direction (); | |
5644 | } | |
5645 | else | |
5646 | return (&dummy > addr) ? 1 : -1; | |
5647 | } | |
5648 | ||
5649 | int | |
5650 | main () | |
5651 | { | |
5652 | return find_stack_direction () < 0; | |
5653 | } | |
5654 | _ACEOF | |
5655 | if ac_fn_c_try_run "$LINENO"; then : | |
5656 | ac_cv_c_stack_direction=1 | |
5657 | else | |
5658 | ac_cv_c_stack_direction=-1 | |
5659 | fi | |
5660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5661 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5662 | fi |
a946372e AK |
5663 | |
5664 | fi | |
f11781c5 AK |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5666 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5667 | cat >>confdefs.h <<_ACEOF | |
5668 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5669 | _ACEOF |
5670 | ||
f11781c5 | 5671 | |
a946372e AK |
5672 | fi |
5673 | ||
f11781c5 AK |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5675 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5676 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5677 | $as_echo_n "(cached) " >&6 | |
5678 | else | |
5679 | if test "$cross_compiling" = yes; then : | |
5680 | ac_cv_func_closedir_void=yes | |
5681 | else | |
5682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5683 | /* end confdefs.h. */ | |
5684 | $ac_includes_default | |
5685 | #include <$ac_header_dirent> | |
5686 | #ifndef __cplusplus | |
5687 | int closedir (); | |
5688 | #endif | |
a946372e | 5689 | |
f11781c5 AK |
5690 | int |
5691 | main () | |
5692 | { | |
5693 | return closedir (opendir (".")) != 0; | |
5694 | ; | |
5695 | return 0; | |
5696 | } | |
5697 | _ACEOF | |
5698 | if ac_fn_c_try_run "$LINENO"; then : | |
5699 | ac_cv_func_closedir_void=no | |
a946372e | 5700 | else |
f11781c5 | 5701 | ac_cv_func_closedir_void=yes |
a946372e | 5702 | fi |
f11781c5 AK |
5703 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5704 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5705 | fi |
5706 | ||
f11781c5 AK |
5707 | fi |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5709 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5710 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5711 | |
f11781c5 | 5712 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5713 | |
a946372e AK |
5714 | fi |
5715 | ||
f11781c5 AK |
5716 | for ac_header in unistd.h |
5717 | do : | |
5718 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5719 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5720 | cat >>confdefs.h <<_ACEOF | |
5721 | #define HAVE_UNISTD_H 1 | |
5722 | _ACEOF | |
a946372e | 5723 | |
f11781c5 | 5724 | fi |
a946372e | 5725 | |
f11781c5 | 5726 | done |
a946372e | 5727 | |
f11781c5 AK |
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5729 | $as_echo_n "checking for working chown... " >&6; } | |
5730 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5731 | $as_echo_n "(cached) " >&6 | |
a946372e | 5732 | else |
f11781c5 AK |
5733 | if test "$cross_compiling" = yes; then : |
5734 | ac_cv_func_chown_works=no | |
a946372e | 5735 | else |
f11781c5 AK |
5736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5737 | /* end confdefs.h. */ | |
5738 | $ac_includes_default | |
5739 | #include <fcntl.h> | |
a946372e | 5740 | |
f11781c5 AK |
5741 | int |
5742 | main () | |
5743 | { | |
5744 | char *f = "conftest.chown"; | |
5745 | struct stat before, after; | |
a946372e | 5746 | |
f11781c5 AK |
5747 | if (creat (f, 0600) < 0) |
5748 | return 1; | |
5749 | if (stat (f, &before) < 0) | |
5750 | return 1; | |
5751 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5752 | return 1; | |
5753 | if (stat (f, &after) < 0) | |
5754 | return 1; | |
5755 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5756 | |
f11781c5 AK |
5757 | ; |
5758 | return 0; | |
5759 | } | |
5760 | _ACEOF | |
5761 | if ac_fn_c_try_run "$LINENO"; then : | |
5762 | ac_cv_func_chown_works=yes | |
a946372e | 5763 | else |
f11781c5 | 5764 | ac_cv_func_chown_works=no |
a946372e | 5765 | fi |
f11781c5 AK |
5766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5767 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5768 | fi |
5769 | ||
f11781c5 | 5770 | rm -f conftest.chown |
a946372e | 5771 | |
f11781c5 AK |
5772 | fi |
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5774 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5775 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5776 | |
f11781c5 | 5777 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5778 | |
a946372e | 5779 | fi |
a946372e | 5780 | |
f11781c5 AK |
5781 | for ac_header in vfork.h |
5782 | do : | |
5783 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5784 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5785 | cat >>confdefs.h <<_ACEOF | |
5786 | #define HAVE_VFORK_H 1 | |
5787 | _ACEOF | |
a946372e | 5788 | |
f11781c5 | 5789 | fi |
a946372e | 5790 | |
f11781c5 | 5791 | done |
a946372e | 5792 | |
f11781c5 AK |
5793 | for ac_func in fork vfork |
5794 | do : | |
5795 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5796 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5797 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5798 | cat >>confdefs.h <<_ACEOF | |
5799 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5800 | _ACEOF | |
a946372e | 5801 | |
f11781c5 AK |
5802 | fi |
5803 | done | |
a946372e | 5804 | |
f11781c5 AK |
5805 | if test "x$ac_cv_func_fork" = xyes; then |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5807 | $as_echo_n "checking for working fork... " >&6; } | |
5808 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5809 | $as_echo_n "(cached) " >&6 | |
5810 | else | |
5811 | if test "$cross_compiling" = yes; then : | |
5812 | ac_cv_func_fork_works=cross | |
5813 | else | |
5814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5815 | /* end confdefs.h. */ | |
5816 | $ac_includes_default | |
5817 | int | |
5818 | main () | |
5819 | { | |
a946372e | 5820 | |
f11781c5 AK |
5821 | /* By Ruediger Kuhlmann. */ |
5822 | return fork () < 0; | |
a946372e | 5823 | |
f11781c5 AK |
5824 | ; |
5825 | return 0; | |
5826 | } | |
5827 | _ACEOF | |
5828 | if ac_fn_c_try_run "$LINENO"; then : | |
5829 | ac_cv_func_fork_works=yes | |
a946372e | 5830 | else |
f11781c5 AK |
5831 | ac_cv_func_fork_works=no |
5832 | fi | |
5833 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5834 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5835 | fi |
a946372e | 5836 | |
f11781c5 AK |
5837 | fi |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5839 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5840 | ||
a946372e | 5841 | else |
f11781c5 | 5842 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5843 | fi |
f11781c5 AK |
5844 | if test "x$ac_cv_func_fork_works" = xcross; then |
5845 | case $host in | |
5846 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5847 | # Override, as these systems have only a dummy fork() stub | |
5848 | ac_cv_func_fork_works=no | |
5849 | ;; | |
5850 | *) | |
5851 | ac_cv_func_fork_works=yes | |
5852 | ;; | |
5853 | esac | |
5854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5855 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5856 | fi |
f11781c5 AK |
5857 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5858 | if test "x$ac_cv_func_vfork" = xyes; then | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5860 | $as_echo_n "checking for working vfork... " >&6; } | |
5861 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5862 | $as_echo_n "(cached) " >&6 | |
5863 | else | |
5864 | if test "$cross_compiling" = yes; then : | |
5865 | ac_cv_func_vfork_works=cross | |
5866 | else | |
5867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5868 | /* end confdefs.h. */ | |
5869 | /* Thanks to Paul Eggert for this test. */ | |
5870 | $ac_includes_default | |
5871 | #include <sys/wait.h> | |
5872 | #ifdef HAVE_VFORK_H | |
5873 | # include <vfork.h> | |
5874 | #endif | |
5875 | /* On some sparc systems, changes by the child to local and incoming | |
5876 | argument registers are propagated back to the parent. The compiler | |
5877 | is told about this with #include <vfork.h>, but some compilers | |
5878 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5879 | static variable whose address is put into a register that is | |
5880 | clobbered by the vfork. */ | |
5881 | static void | |
5882 | #ifdef __cplusplus | |
5883 | sparc_address_test (int arg) | |
5884 | # else | |
5885 | sparc_address_test (arg) int arg; | |
5886 | #endif | |
5887 | { | |
5888 | static pid_t child; | |
5889 | if (!child) { | |
5890 | child = vfork (); | |
5891 | if (child < 0) { | |
5892 | perror ("vfork"); | |
5893 | _exit(2); | |
5894 | } | |
5895 | if (!child) { | |
5896 | arg = getpid(); | |
5897 | write(-1, "", 0); | |
5898 | _exit (arg); | |
5899 | } | |
5900 | } | |
5901 | } | |
a946372e | 5902 | |
f11781c5 AK |
5903 | int |
5904 | main () | |
5905 | { | |
5906 | pid_t parent = getpid (); | |
5907 | pid_t child; | |
a946372e | 5908 | |
f11781c5 | 5909 | sparc_address_test (0); |
a946372e | 5910 | |
f11781c5 | 5911 | child = vfork (); |
a946372e | 5912 | |
f11781c5 AK |
5913 | if (child == 0) { |
5914 | /* Here is another test for sparc vfork register problems. This | |
5915 | test uses lots of local variables, at least as many local | |
5916 | variables as main has allocated so far including compiler | |
5917 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5918 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5919 | reuse the register of parent for one of the local variables, | |
5920 | since it will think that parent can't possibly be used any more | |
5921 | in this routine. Assigning to the local variable will thus | |
5922 | munge parent in the parent process. */ | |
5923 | pid_t | |
5924 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5925 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5926 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5927 | use the same hardware register for all 8 local variables. */ | |
5928 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5929 | || p != p5 || p != p6 || p != p7) | |
5930 | _exit(1); | |
a946372e | 5931 | |
f11781c5 AK |
5932 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5933 | from child file descriptors. If the child closes a descriptor | |
5934 | before it execs or exits, this munges the parent's descriptor | |
5935 | as well. Test for this by closing stdout in the child. */ | |
5936 | _exit(close(fileno(stdout)) != 0); | |
5937 | } else { | |
5938 | int status; | |
5939 | struct stat st; | |
5940 | ||
5941 | while (wait(&status) != child) | |
5942 | ; | |
5943 | return ( | |
5944 | /* Was there some problem with vforking? */ | |
5945 | child < 0 | |
5946 | ||
5947 | /* Did the child fail? (This shouldn't happen.) */ | |
5948 | || status | |
5949 | ||
5950 | /* Did the vfork/compiler bug occur? */ | |
5951 | || parent != getpid() | |
5952 | ||
5953 | /* Did the file descriptor bug occur? */ | |
5954 | || fstat(fileno(stdout), &st) != 0 | |
5955 | ); | |
5956 | } | |
5957 | } | |
5958 | _ACEOF | |
5959 | if ac_fn_c_try_run "$LINENO"; then : | |
5960 | ac_cv_func_vfork_works=yes | |
a946372e | 5961 | else |
f11781c5 | 5962 | ac_cv_func_vfork_works=no |
a946372e | 5963 | fi |
f11781c5 AK |
5964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5965 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5966 | fi |
f11781c5 | 5967 | |
a946372e | 5968 | fi |
f11781c5 AK |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5970 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5971 | |
f11781c5 AK |
5972 | fi; |
5973 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5974 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5976 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5977 | fi | |
a946372e | 5978 | |
f11781c5 | 5979 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5980 | |
f11781c5 | 5981 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5982 | |
a946372e | 5983 | else |
a946372e | 5984 | |
f11781c5 AK |
5985 | $as_echo "#define vfork fork" >>confdefs.h |
5986 | ||
a946372e | 5987 | fi |
f11781c5 | 5988 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5989 | |
f11781c5 | 5990 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5991 | |
a946372e | 5992 | fi |
f11781c5 AK |
5993 | |
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5995 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5996 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5997 | $as_echo_n "(cached) " >&6 | |
a946372e | 5998 | else |
f11781c5 AK |
5999 | rm -f conftest.sym conftest.file |
6000 | echo >conftest.file | |
6001 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6002 | if test "$cross_compiling" = yes; then : | |
6003 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6004 | else |
f11781c5 | 6005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 6006 | /* end confdefs.h. */ |
f11781c5 AK |
6007 | $ac_includes_default |
6008 | int | |
6009 | main () | |
6010 | { | |
6011 | struct stat sbuf; | |
6012 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
6013 | That is better in the sense that it means we will not | |
6014 | have to compile and use the lstat wrapper. */ | |
6015 | return lstat ("conftest.sym/", &sbuf) == 0; | |
6016 | ; | |
6017 | return 0; | |
6018 | } | |
a946372e | 6019 | _ACEOF |
f11781c5 AK |
6020 | if ac_fn_c_try_run "$LINENO"; then : |
6021 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 6022 | else |
f11781c5 | 6023 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 6024 | fi |
f11781c5 AK |
6025 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6026 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6027 | fi |
a946372e | 6028 | |
a946372e | 6029 | else |
f11781c5 AK |
6030 | # If the `ln -s' command failed, then we probably don't even |
6031 | # have an lstat function. | |
6032 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6033 | fi |
f11781c5 | 6034 | rm -f conftest.sym conftest.file |
a946372e | 6035 | |
f11781c5 AK |
6036 | fi |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6038 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 6039 | |
f11781c5 | 6040 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 6041 | |
f11781c5 AK |
6042 | cat >>confdefs.h <<_ACEOF |
6043 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6044 | _ACEOF | |
a946372e | 6045 | |
a946372e | 6046 | |
f11781c5 AK |
6047 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6048 | case " $LIBOBJS " in | |
6049 | *" lstat.$ac_objext "* ) ;; | |
6050 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6051 | ;; | |
6052 | esac | |
a946372e | 6053 | |
f11781c5 | 6054 | fi |
a946372e | 6055 | |
f11781c5 AK |
6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6057 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6058 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6059 | $as_echo_n "(cached) " >&6 | |
a946372e | 6060 | else |
f11781c5 AK |
6061 | if test "$cross_compiling" = yes; then : |
6062 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6063 | else |
f11781c5 AK |
6064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6065 | /* end confdefs.h. */ | |
6066 | $ac_includes_default | |
6067 | int | |
6068 | main () | |
6069 | { | |
6070 | struct stat sbuf; | |
6071 | return lstat ("", &sbuf) == 0; | |
6072 | ; | |
6073 | return 0; | |
6074 | } | |
6075 | _ACEOF | |
6076 | if ac_fn_c_try_run "$LINENO"; then : | |
6077 | ac_cv_func_lstat_empty_string_bug=no | |
6078 | else | |
6079 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6080 | fi |
f11781c5 AK |
6081 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6082 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6083 | fi |
6084 | ||
f11781c5 AK |
6085 | fi |
6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6087 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6088 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6089 | case " $LIBOBJS " in | |
6090 | *" lstat.$ac_objext "* ) ;; | |
6091 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6092 | ;; | |
6093 | esac | |
a946372e AK |
6094 | |
6095 | ||
f11781c5 AK |
6096 | cat >>confdefs.h <<_ACEOF |
6097 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6098 | _ACEOF | |
a946372e | 6099 | |
a946372e | 6100 | fi |
a946372e | 6101 | |
f11781c5 AK |
6102 | for ac_header in stdlib.h |
6103 | do : | |
6104 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6105 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6106 | cat >>confdefs.h <<_ACEOF | |
6107 | #define HAVE_STDLIB_H 1 | |
6108 | _ACEOF | |
6109 | ||
a946372e AK |
6110 | fi |
6111 | ||
f11781c5 | 6112 | done |
a946372e | 6113 | |
f11781c5 AK |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6115 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6116 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6117 | $as_echo_n "(cached) " >&6 | |
6118 | else | |
6119 | if test "$cross_compiling" = yes; then : | |
6120 | ac_cv_func_malloc_0_nonnull=no | |
6121 | else | |
6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6123 | /* end confdefs.h. */ | |
6124 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6125 | # include <stdlib.h> | |
6126 | #else | |
6127 | char *malloc (); | |
6128 | #endif | |
a946372e | 6129 | |
f11781c5 AK |
6130 | int |
6131 | main () | |
6132 | { | |
6133 | return ! malloc (0); | |
6134 | ; | |
6135 | return 0; | |
6136 | } | |
6137 | _ACEOF | |
6138 | if ac_fn_c_try_run "$LINENO"; then : | |
6139 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6140 | else |
f11781c5 | 6141 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6142 | fi |
f11781c5 AK |
6143 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6144 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6145 | fi |
f11781c5 | 6146 | |
a946372e | 6147 | fi |
f11781c5 AK |
6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6149 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6150 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6151 | |
f11781c5 | 6152 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6153 | |
f11781c5 AK |
6154 | else |
6155 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6156 | |
f11781c5 AK |
6157 | case " $LIBOBJS " in |
6158 | *" malloc.$ac_objext "* ) ;; | |
6159 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6160 | ;; | |
6161 | esac | |
6162 | ||
6163 | ||
6164 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6165 | |
a946372e | 6166 | fi |
a946372e | 6167 | |
a946372e | 6168 | |
f11781c5 AK |
6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6170 | $as_echo_n "checking for working memcmp... " >&6; } | |
6171 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6172 | $as_echo_n "(cached) " >&6 |
a946372e | 6173 | else |
f11781c5 AK |
6174 | if test "$cross_compiling" = yes; then : |
6175 | ac_cv_func_memcmp_working=no | |
6176 | else | |
6177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6178 | /* end confdefs.h. */ |
6179 | $ac_includes_default | |
f11781c5 AK |
6180 | int |
6181 | main () | |
6182 | { | |
a946372e | 6183 | |
f11781c5 AK |
6184 | /* Some versions of memcmp are not 8-bit clean. */ |
6185 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6186 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6187 | return 1; | |
a946372e | 6188 | |
f11781c5 AK |
6189 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6190 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6191 | William Lewis provided this test program. */ | |
6192 | { | |
6193 | char foo[21]; | |
6194 | char bar[21]; | |
6195 | int i; | |
6196 | for (i = 0; i < 4; i++) | |
6197 | { | |
6198 | char *a = foo + i; | |
6199 | char *b = bar + i; | |
6200 | strcpy (a, "--------01111111"); | |
6201 | strcpy (b, "--------10000000"); | |
6202 | if (memcmp (a, b, 16) >= 0) | |
6203 | return 1; | |
6204 | } | |
6205 | return 0; | |
6206 | } | |
a946372e | 6207 | |
f11781c5 AK |
6208 | ; |
6209 | return 0; | |
6210 | } | |
a946372e | 6211 | _ACEOF |
f11781c5 AK |
6212 | if ac_fn_c_try_run "$LINENO"; then : |
6213 | ac_cv_func_memcmp_working=yes | |
a946372e | 6214 | else |
f11781c5 AK |
6215 | ac_cv_func_memcmp_working=no |
6216 | fi | |
6217 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6218 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6219 | fi | |
a946372e | 6220 | |
a946372e | 6221 | fi |
f11781c5 AK |
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6223 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6224 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6225 | *" memcmp.$ac_objext "* ) ;; | |
6226 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6227 | ;; | |
6228 | esac | |
a946372e | 6229 | |
a946372e | 6230 | |
a946372e | 6231 | |
a946372e | 6232 | |
f11781c5 AK |
6233 | |
6234 | for ac_header in $ac_header_list | |
6235 | do : | |
6236 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6237 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6238 | " | |
6239 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6240 | cat >>confdefs.h <<_ACEOF |
6241 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6242 | _ACEOF | |
6243 | ||
a946372e AK |
6244 | fi |
6245 | ||
6246 | done | |
6247 | ||
a946372e | 6248 | |
f11781c5 AK |
6249 | |
6250 | ||
6251 | ||
6252 | ||
6253 | ||
6254 | ||
6255 | for ac_func in getpagesize | |
6256 | do : | |
6257 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6258 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6259 | cat >>confdefs.h <<_ACEOF | |
6260 | #define HAVE_GETPAGESIZE 1 | |
6261 | _ACEOF | |
6262 | ||
a946372e | 6263 | fi |
f11781c5 AK |
6264 | done |
6265 | ||
6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6267 | $as_echo_n "checking for working mmap... " >&6; } | |
6268 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6269 | $as_echo_n "(cached) " >&6 | |
a946372e | 6270 | else |
f11781c5 AK |
6271 | if test "$cross_compiling" = yes; then : |
6272 | ac_cv_func_mmap_fixed_mapped=no | |
6273 | else | |
6274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6275 | /* end confdefs.h. */ |
6276 | $ac_includes_default | |
f11781c5 AK |
6277 | /* malloc might have been renamed as rpl_malloc. */ |
6278 | #undef malloc | |
6279 | ||
6280 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6281 | Here is a matrix of mmap possibilities: | |
6282 | mmap private not fixed | |
6283 | mmap private fixed at somewhere currently unmapped | |
6284 | mmap private fixed at somewhere already mapped | |
6285 | mmap shared not fixed | |
6286 | mmap shared fixed at somewhere currently unmapped | |
6287 | mmap shared fixed at somewhere already mapped | |
6288 | For private mappings, we should verify that changes cannot be read() | |
6289 | back from the file, nor mmap's back from the file at a different | |
6290 | address. (There have been systems where private was not correctly | |
6291 | implemented like the infamous i386 svr4.0, and systems where the | |
6292 | VM page cache was not coherent with the file system buffer cache | |
6293 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6294 | For shared mappings, we should conversely verify that changes get | |
6295 | propagated back to all the places they're supposed to be. | |
6296 | ||
6297 | Grep wants private fixed already mapped. | |
6298 | The main things grep needs to know about mmap are: | |
6299 | * does it exist and is it safe to write into the mmap'd area | |
6300 | * how to use it (BSD variants) */ | |
6301 | ||
6302 | #include <fcntl.h> | |
6303 | #include <sys/mman.h> | |
6304 | ||
6305 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6306 | char *malloc (); | |
6307 | #endif | |
6308 | ||
6309 | /* This mess was copied from the GNU getpagesize.h. */ | |
6310 | #ifndef HAVE_GETPAGESIZE | |
6311 | # ifdef _SC_PAGESIZE | |
6312 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6313 | # else /* no _SC_PAGESIZE */ | |
6314 | # ifdef HAVE_SYS_PARAM_H | |
6315 | # include <sys/param.h> | |
6316 | # ifdef EXEC_PAGESIZE | |
6317 | # define getpagesize() EXEC_PAGESIZE | |
6318 | # else /* no EXEC_PAGESIZE */ | |
6319 | # ifdef NBPG | |
6320 | # define getpagesize() NBPG * CLSIZE | |
6321 | # ifndef CLSIZE | |
6322 | # define CLSIZE 1 | |
6323 | # endif /* no CLSIZE */ | |
6324 | # else /* no NBPG */ | |
6325 | # ifdef NBPC | |
6326 | # define getpagesize() NBPC | |
6327 | # else /* no NBPC */ | |
6328 | # ifdef PAGESIZE | |
6329 | # define getpagesize() PAGESIZE | |
6330 | # endif /* PAGESIZE */ | |
6331 | # endif /* no NBPC */ | |
6332 | # endif /* no NBPG */ | |
6333 | # endif /* no EXEC_PAGESIZE */ | |
6334 | # else /* no HAVE_SYS_PARAM_H */ | |
6335 | # define getpagesize() 8192 /* punt totally */ | |
6336 | # endif /* no HAVE_SYS_PARAM_H */ | |
6337 | # endif /* no _SC_PAGESIZE */ | |
6338 | ||
6339 | #endif /* no HAVE_GETPAGESIZE */ | |
6340 | ||
6341 | int | |
6342 | main () | |
6343 | { | |
6344 | char *data, *data2, *data3; | |
6345 | const char *cdata2; | |
6346 | int i, pagesize; | |
6347 | int fd, fd2; | |
6348 | ||
6349 | pagesize = getpagesize (); | |
6350 | ||
6351 | /* First, make a file with some known garbage in it. */ | |
6352 | data = (char *) malloc (pagesize); | |
6353 | if (!data) | |
6354 | return 1; | |
6355 | for (i = 0; i < pagesize; ++i) | |
6356 | *(data + i) = rand (); | |
6357 | umask (0); | |
6358 | fd = creat ("conftest.mmap", 0600); | |
6359 | if (fd < 0) | |
6360 | return 2; | |
6361 | if (write (fd, data, pagesize) != pagesize) | |
6362 | return 3; | |
6363 | close (fd); | |
6364 | ||
6365 | /* Next, check that the tail of a page is zero-filled. File must have | |
6366 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6367 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6368 | if (fd2 < 0) | |
6369 | return 4; | |
6370 | cdata2 = ""; | |
6371 | if (write (fd2, cdata2, 1) != 1) | |
6372 | return 5; | |
6373 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6374 | if (data2 == MAP_FAILED) | |
6375 | return 6; | |
6376 | for (i = 0; i < pagesize; ++i) | |
6377 | if (*(data2 + i)) | |
6378 | return 7; | |
6379 | close (fd2); | |
6380 | if (munmap (data2, pagesize)) | |
6381 | return 8; | |
6382 | ||
6383 | /* Next, try to mmap the file at a fixed address which already has | |
6384 | something else allocated at it. If we can, also make sure that | |
6385 | we see the same garbage. */ | |
6386 | fd = open ("conftest.mmap", O_RDWR); | |
6387 | if (fd < 0) | |
6388 | return 9; | |
6389 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6390 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6391 | return 10; | |
6392 | for (i = 0; i < pagesize; ++i) | |
6393 | if (*(data + i) != *(data2 + i)) | |
6394 | return 11; | |
6395 | ||
6396 | /* Finally, make sure that changes to the mapped area do not | |
6397 | percolate back to the file as seen by read(). (This is a bug on | |
6398 | some variants of i386 svr4.0.) */ | |
6399 | for (i = 0; i < pagesize; ++i) | |
6400 | *(data2 + i) = *(data2 + i) + 1; | |
6401 | data3 = (char *) malloc (pagesize); | |
6402 | if (!data3) | |
6403 | return 12; | |
6404 | if (read (fd, data3, pagesize) != pagesize) | |
6405 | return 13; | |
6406 | for (i = 0; i < pagesize; ++i) | |
6407 | if (*(data + i) != *(data3 + i)) | |
6408 | return 14; | |
6409 | close (fd); | |
6410 | return 0; | |
6411 | } | |
a946372e | 6412 | _ACEOF |
f11781c5 AK |
6413 | if ac_fn_c_try_run "$LINENO"; then : |
6414 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6415 | else |
f11781c5 AK |
6416 | ac_cv_func_mmap_fixed_mapped=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 | |
6420 | fi | |
a946372e | 6421 | |
a946372e | 6422 | fi |
f11781c5 AK |
6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6424 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6425 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6426 | |
f11781c5 | 6427 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6428 | |
f11781c5 AK |
6429 | fi |
6430 | rm -f conftest.mmap conftest.txt | |
6431 | ||
6432 | for ac_header in stdlib.h | |
6433 | do : | |
6434 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6435 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6436 | cat >>confdefs.h <<_ACEOF | |
6437 | #define HAVE_STDLIB_H 1 | |
a946372e | 6438 | _ACEOF |
f11781c5 AK |
6439 | |
6440 | fi | |
6441 | ||
6442 | done | |
6443 | ||
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6445 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6446 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6447 | $as_echo_n "(cached) " >&6 | |
6448 | else | |
6449 | if test "$cross_compiling" = yes; then : | |
6450 | ac_cv_func_realloc_0_nonnull=no | |
6451 | else | |
6452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6453 | /* end confdefs.h. */ |
f11781c5 AK |
6454 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6455 | # include <stdlib.h> | |
6456 | #else | |
6457 | char *realloc (); | |
6458 | #endif | |
6459 | ||
6460 | int | |
6461 | main () | |
6462 | { | |
6463 | return ! realloc (0, 0); | |
6464 | ; | |
6465 | return 0; | |
6466 | } | |
a946372e | 6467 | _ACEOF |
f11781c5 AK |
6468 | if ac_fn_c_try_run "$LINENO"; then : |
6469 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6470 | else |
f11781c5 AK |
6471 | ac_cv_func_realloc_0_nonnull=no |
6472 | fi | |
6473 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6474 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6475 | fi |
6476 | ||
f11781c5 AK |
6477 | fi |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6479 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6480 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6481 | |
f11781c5 | 6482 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6483 | |
a946372e | 6484 | else |
f11781c5 AK |
6485 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6486 | ||
6487 | case " $LIBOBJS " in | |
6488 | *" realloc.$ac_objext "* ) ;; | |
6489 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6490 | ;; | |
6491 | esac | |
a946372e | 6492 | |
a946372e | 6493 | |
f11781c5 AK |
6494 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6495 | ||
a946372e AK |
6496 | fi |
6497 | ||
a946372e | 6498 | |
f11781c5 AK |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6500 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6501 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6502 | $as_echo_n "(cached) " >&6 | |
a946372e | 6503 | else |
f11781c5 AK |
6504 | if test "$cross_compiling" = yes; then : |
6505 | ac_cv_func_stat_empty_string_bug=yes | |
6506 | else | |
6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6508 | /* end confdefs.h. */ | |
6509 | $ac_includes_default | |
6510 | int | |
6511 | main () | |
6512 | { | |
6513 | struct stat sbuf; | |
6514 | return stat ("", &sbuf) == 0; | |
6515 | ; | |
6516 | return 0; | |
6517 | } | |
6518 | _ACEOF | |
6519 | if ac_fn_c_try_run "$LINENO"; then : | |
6520 | ac_cv_func_stat_empty_string_bug=no | |
6521 | else | |
6522 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6523 | fi |
f11781c5 AK |
6524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6525 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6526 | fi |
6527 | ||
8c4e8a18 | 6528 | fi |
f11781c5 AK |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6530 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6531 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6532 | case " $LIBOBJS " in | |
6533 | *" stat.$ac_objext "* ) ;; | |
6534 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6535 | ;; | |
6536 | esac | |
8c4e8a18 FDN |
6537 | |
6538 | ||
6539 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6540 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6541 | _ACEOF |
6542 | ||
6543 | fi | |
6544 | ||
f11781c5 AK |
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6546 | $as_echo_n "checking for working strtod... " >&6; } | |
6547 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6548 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6549 | else |
f11781c5 AK |
6550 | if test "$cross_compiling" = yes; then : |
6551 | ac_cv_func_strtod=no | |
6552 | else | |
6553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6554 | /* end confdefs.h. */ | |
66fd4529 | 6555 | |
f11781c5 AK |
6556 | $ac_includes_default |
6557 | #ifndef strtod | |
6558 | double strtod (); | |
6559 | #endif | |
6560 | int | |
6561 | main() | |
6562 | { | |
6563 | { | |
6564 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6565 | char *string = " +69"; | |
6566 | char *term; | |
6567 | double value; | |
6568 | value = strtod (string, &term); | |
6569 | if (value != 69 || term != (string + 4)) | |
6570 | return 1; | |
6571 | } | |
66fd4529 | 6572 | |
f11781c5 AK |
6573 | { |
6574 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6575 | terminating character under some conditions. */ | |
6576 | char *string = "NaN"; | |
6577 | char *term; | |
6578 | strtod (string, &term); | |
6579 | if (term != string && *(term - 1) == 0) | |
6580 | return 1; | |
6581 | } | |
6582 | return 0; | |
6583 | } | |
66fd4529 | 6584 | |
f11781c5 AK |
6585 | _ACEOF |
6586 | if ac_fn_c_try_run "$LINENO"; then : | |
6587 | ac_cv_func_strtod=yes | |
66fd4529 | 6588 | else |
f11781c5 AK |
6589 | ac_cv_func_strtod=no |
6590 | fi | |
6591 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6592 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6593 | fi |
6594 | ||
f11781c5 AK |
6595 | fi |
6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6597 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6598 | if test $ac_cv_func_strtod = no; then | |
6599 | case " $LIBOBJS " in | |
6600 | *" strtod.$ac_objext "* ) ;; | |
6601 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6602 | ;; | |
6603 | esac | |
71082be4 | 6604 | |
f11781c5 AK |
6605 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6606 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6607 | |
66fd4529 | 6608 | fi |
a946372e | 6609 | |
f11781c5 AK |
6610 | if test $ac_cv_func_pow = no; then |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6612 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6613 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6614 | $as_echo_n "(cached) " >&6 | |
6615 | else | |
6616 | ac_check_lib_save_LIBS=$LIBS | |
6617 | LIBS="-lm $LIBS" | |
6618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6619 | /* end confdefs.h. */ | |
90c80887 | 6620 | |
f11781c5 AK |
6621 | /* Override any GCC internal prototype to avoid an error. |
6622 | Use char because int might match the return type of a GCC | |
6623 | builtin and then its argument prototype would still apply. */ | |
6624 | #ifdef __cplusplus | |
6625 | extern "C" | |
6626 | #endif | |
6627 | char pow (); | |
6628 | int | |
6629 | main () | |
6630 | { | |
6631 | return pow (); | |
6632 | ; | |
6633 | return 0; | |
6634 | } | |
6635 | _ACEOF | |
6636 | if ac_fn_c_try_link "$LINENO"; then : | |
6637 | ac_cv_lib_m_pow=yes | |
90c80887 | 6638 | else |
f11781c5 | 6639 | ac_cv_lib_m_pow=no |
90c80887 | 6640 | fi |
f11781c5 AK |
6641 | rm -f core conftest.err conftest.$ac_objext \ |
6642 | conftest$ac_exeext conftest.$ac_ext | |
6643 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6644 | fi |
f11781c5 AK |
6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6646 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6647 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6648 | POW_LIB=-lm | |
90c80887 | 6649 | else |
f11781c5 AK |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6651 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6652 | fi |
f11781c5 | 6653 | |
90c80887 AK |
6654 | fi |
6655 | ||
f11781c5 AK |
6656 | fi |
6657 | ||
6658 | for ac_func in vprintf | |
6659 | do : | |
6660 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6661 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6662 | cat >>confdefs.h <<_ACEOF | |
6663 | #define HAVE_VPRINTF 1 | |
6664 | _ACEOF | |
90c80887 | 6665 | |
f11781c5 AK |
6666 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6667 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6668 | |
f11781c5 | 6669 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6670 | |
90c80887 | 6671 | fi |
90c80887 | 6672 | |
f11781c5 AK |
6673 | fi |
6674 | done | |
90c80887 | 6675 | |
90c80887 | 6676 | |
90c80887 | 6677 | |
f11781c5 AK |
6678 | ################################################################################ |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6680 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6681 | # Check whether --enable-static_link was given. | |
6682 | if test "${enable_static_link+set}" = set; then : | |
6683 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6684 | else | |
6685 | STATIC_LINK=no | |
6686 | fi | |
90c80887 | 6687 | |
f11781c5 AK |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6689 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6690 | |
f11781c5 | 6691 | ################################################################################ |
90c80887 | 6692 | |
90c80887 | 6693 | |
f11781c5 AK |
6694 | ################################################################################ |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6696 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6697 | |
f11781c5 AK |
6698 | # Check whether --with-user was given. |
6699 | if test "${with_user+set}" = set; then : | |
6700 | withval=$with_user; OWNER=$withval | |
6701 | fi | |
90c80887 | 6702 | |
f11781c5 AK |
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6704 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6705 | |
f11781c5 AK |
6706 | if test x$OWNER != x; then |
6707 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6708 | fi |
a946372e | 6709 | |
f11781c5 AK |
6710 | ################################################################################ |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6712 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6713 | |
f11781c5 AK |
6714 | # Check whether --with-group was given. |
6715 | if test "${with_group+set}" = set; then : | |
6716 | withval=$with_group; GROUP=$withval | |
a946372e | 6717 | fi |
f11781c5 AK |
6718 | |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6720 | $as_echo "$GROUP" >&6; } | |
6721 | ||
6722 | if test x$GROUP != x; then | |
6723 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6724 | fi |
f11781c5 AK |
6725 | |
6726 | ################################################################################ | |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6728 | $as_echo_n "checking device node uid... " >&6; } | |
6729 | ||
6730 | ||
6731 | # Check whether --with-device-uid was given. | |
6732 | if test "${with_device_uid+set}" = set; then : | |
6733 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6734 | else |
f11781c5 | 6735 | DM_DEVICE_UID=0 |
a946372e AK |
6736 | fi |
6737 | ||
f11781c5 AK |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6739 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6740 | |
f11781c5 AK |
6741 | ################################################################################ |
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6743 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6744 | |
a946372e | 6745 | |
f11781c5 AK |
6746 | # Check whether --with-device-gid was given. |
6747 | if test "${with_device_gid+set}" = set; then : | |
6748 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6749 | else |
f11781c5 | 6750 | DM_DEVICE_GID=0 |
a946372e | 6751 | fi |
a946372e | 6752 | |
f11781c5 AK |
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6754 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6755 | |
f11781c5 AK |
6756 | ################################################################################ |
6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6758 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6759 | |
90c80887 | 6760 | |
f11781c5 AK |
6761 | # Check whether --with-device-mode was given. |
6762 | if test "${with_device_mode+set}" = set; then : | |
6763 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6764 | else | |
6765 | DM_DEVICE_MODE=0600 | |
6766 | fi | |
90c80887 | 6767 | |
f11781c5 AK |
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6769 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6770 | |
d0df875d ZK |
6771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6772 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6773 | ||
6774 | # Check whether --with-device-nodes-on was given. | |
6775 | if test "${with_device_nodes_on+set}" = set; then : | |
6776 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6777 | else | |
6778 | ADD_NODE=resume | |
6779 | fi | |
6780 | ||
6781 | case "$ADD_NODE" in | |
6782 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6783 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6784 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6785 | esac | |
6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6787 | $as_echo "on $ADD_NODE" >&6; } | |
6788 | ||
6789 | cat >>confdefs.h <<_ACEOF | |
6790 | #define DEFAULT_DM_ADD_NODE $add_on | |
6791 | _ACEOF | |
6792 | ||
6793 | ||
c64d7cd3 PR |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 |
6795 | $as_echo_n "checking default name mangling... " >&6; } | |
6796 | ||
6797 | # Check whether --with-default-name-mangling was given. | |
6798 | if test "${with_default_name_mangling+set}" = set; then : | |
6799 | withval=$with_default_name_mangling; MANGLING=$withval | |
6800 | else | |
6801 | MANGLING=auto | |
6802 | fi | |
6803 | ||
6804 | case "$MANGLING" in | |
6805 | auto) mangling=DM_STRING_MANGLING_AUTO;; | |
6806 | disabled) mangling=DM_STRING_MANGLING_NONE;; | |
6807 | hex) mangling=DM_STRING_MANGLING_HEX;; | |
6808 | *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;; | |
6809 | esac | |
6810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 | |
6811 | $as_echo "$MANGLING" >&6; } | |
6812 | ||
6813 | cat >>confdefs.h <<_ACEOF | |
6814 | #define DEFAULT_DM_NAME_MANGLING $mangling | |
6815 | _ACEOF | |
6816 | ||
6817 | ||
f11781c5 AK |
6818 | ################################################################################ |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6820 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6821 | # Check whether --enable-lvm1_fallback was given. | |
6822 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6823 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6824 | else | |
6825 | LVM1_FALLBACK=no | |
6826 | fi | |
90c80887 | 6827 | |
f11781c5 AK |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6829 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6830 | |
f11781c5 | 6831 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6832 | |
f11781c5 | 6833 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6834 | |
f11781c5 | 6835 | fi |
90c80887 | 6836 | |
f11781c5 AK |
6837 | ################################################################################ |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6839 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6840 | ||
6841 | # Check whether --with-lvm1 was given. | |
6842 | if test "${with_lvm1+set}" = set; then : | |
6843 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6844 | else |
f11781c5 | 6845 | LVM1=internal |
a946372e | 6846 | fi |
f11781c5 AK |
6847 | |
6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6849 | $as_echo "$LVM1" >&6; } | |
6850 | ||
6851 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6852 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6853 | " "$LINENO" 5 | |
6854 | fi; | |
6855 | ||
6856 | if test x$LVM1 = xinternal; then | |
6857 | ||
6858 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6859 | ||
a946372e AK |
6860 | fi |
6861 | ||
6862 | ################################################################################ | |
f11781c5 AK |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6864 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6865 | ||
6866 | # Check whether --with-pool was given. | |
6867 | if test "${with_pool+set}" = set; then : | |
6868 | withval=$with_pool; POOL=$withval | |
a946372e | 6869 | else |
f11781c5 | 6870 | POOL=internal |
a946372e AK |
6871 | fi |
6872 | ||
f11781c5 AK |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6874 | $as_echo "$POOL" >&6; } | |
6875 | ||
6876 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6877 | then as_fn_error $? "--with-pool parameter invalid | |
6878 | " "$LINENO" 5 | |
6879 | fi; | |
6880 | ||
6881 | if test x$POOL = xinternal; then | |
6882 | ||
6883 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6884 | |
a946372e AK |
6885 | fi |
6886 | ||
6887 | ################################################################################ | |
f11781c5 AK |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6889 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6890 | |
f11781c5 AK |
6891 | # Check whether --with-cluster was given. |
6892 | if test "${with_cluster+set}" = set; then : | |
6893 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6894 | fi |
6895 | ||
f11781c5 AK |
6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6897 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6898 | |
f11781c5 AK |
6899 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6900 | then as_fn_error $? "--with-cluster parameter invalid | |
6901 | " "$LINENO" 5 | |
6902 | fi; | |
fddafd51 | 6903 | |
f11781c5 | 6904 | if test x$CLUSTER = xinternal; then |
5556819a | 6905 | |
f11781c5 | 6906 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6907 | |
fddafd51 | 6908 | fi |
f11781c5 AK |
6909 | |
6910 | ################################################################################ | |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6912 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6913 | ||
6914 | # Check whether --with-snapshots was given. | |
6915 | if test "${with_snapshots+set}" = set; then : | |
6916 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6917 | else |
f11781c5 | 6918 | SNAPSHOTS=internal |
fddafd51 ZK |
6919 | fi |
6920 | ||
f11781c5 AK |
6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6922 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6923 | |
f11781c5 AK |
6924 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6925 | then as_fn_error $? "--with-snapshots parameter invalid | |
6926 | " "$LINENO" 5 | |
6927 | fi; | |
fddafd51 | 6928 | |
f11781c5 AK |
6929 | if test x$SNAPSHOTS = xinternal; then |
6930 | ||
6931 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6932 | ||
6933 | fi | |
6934 | ||
6935 | ################################################################################ | |
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6937 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6938 | ||
6939 | # Check whether --with-mirrors was given. | |
6940 | if test "${with_mirrors+set}" = set; then : | |
6941 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6942 | else |
f11781c5 | 6943 | MIRRORS=internal |
fddafd51 ZK |
6944 | fi |
6945 | ||
f11781c5 AK |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6947 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6948 | |
f11781c5 AK |
6949 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6950 | then as_fn_error $? "--with-mirrors parameter invalid | |
6951 | " "$LINENO" 5 | |
6952 | fi; | |
6953 | ||
6954 | if test x$MIRRORS = xinternal; then | |
6955 | ||
6956 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6957 | ||
6958 | fi | |
6959 | ||
cac52ca4 JEB |
6960 | ################################################################################ |
6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6962 | $as_echo_n "checking whether to include raid... " >&6; } | |
6963 | ||
6964 | # Check whether --with-raid was given. | |
6965 | if test "${with_raid+set}" = set; then : | |
6966 | withval=$with_raid; RAID=$withval | |
6967 | else | |
6968 | RAID=internal | |
6969 | fi | |
6970 | ||
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6972 | $as_echo "$RAID" >&6; } | |
6973 | ||
6974 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6975 | then as_fn_error $? "--with-raid parameter invalid | |
6976 | " "$LINENO" 5 | |
6977 | fi; | |
6978 | ||
6979 | if test x$RAID = xinternal; then | |
6980 | ||
6981 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6982 | ||
6983 | fi | |
6984 | ||
f11781c5 AK |
6985 | ################################################################################ |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6987 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6988 | ||
6989 | # Check whether --with-replicators was given. | |
6990 | if test "${with_replicators+set}" = set; then : | |
6991 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6992 | else |
f11781c5 AK |
6993 | REPLICATORS=none |
6994 | fi | |
fd4728e1 | 6995 | |
f11781c5 AK |
6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6997 | $as_echo "$REPLICATORS" >&6; } | |
6998 | ||
6999 | case "$REPLICATORS" in | |
7000 | none|shared) ;; | |
7001 | internal) | |
7002 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
7003 | ;; | |
7004 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 7005 | esac |
f11781c5 | 7006 | |
3ba4a195 ZK |
7007 | ################################################################################ |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
7009 | $as_echo_n "checking whether to include thin provisioning... " >&6; } | |
7010 | ||
7011 | # Check whether --with-thin was given. | |
7012 | if test "${with_thin+set}" = set; then : | |
7013 | withval=$with_thin; THIN=$withval | |
7014 | else | |
7015 | THIN=none | |
7016 | fi | |
7017 | ||
7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
7019 | $as_echo "$THIN" >&6; } | |
7020 | ||
7021 | case "$THIN" in | |
7022 | none|shared) ;; | |
7023 | internal) | |
7024 | $as_echo "#define THIN_INTERNAL 1" >>confdefs.h | |
7025 | ;; | |
7026 | *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
7027 | esac | |
7028 | ||
f61cacad ZK |
7029 | case "$THIN" in |
7030 | internal|shared) | |
7031 | ||
7032 | # Check whether --with-thin-check was given. | |
7033 | if test "${with_thin_check+set}" = set; then : | |
7034 | withval=$with_thin_check; THIN_CHECK_CMD=$withval | |
7035 | else | |
7036 | THIN_CHECK_CMD="autodetect" | |
7037 | fi | |
7038 | ||
7039 | # Empty means a config way to ignore thin checking | |
7040 | if test "$THIN_CHECK_CMD" = "autodetect"; then | |
7041 | # Extract the first word of "thin_check", so it can be a program name with args. | |
7042 | set dummy thin_check; ac_word=$2 | |
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7044 | $as_echo_n "checking for $ac_word... " >&6; } | |
7045 | if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then : | |
7046 | $as_echo_n "(cached) " >&6 | |
7047 | else | |
7048 | case $THIN_CHECK_CMD in | |
7049 | [\\/]* | ?:[\\/]*) | |
7050 | ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path. | |
7051 | ;; | |
7052 | *) | |
7053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7054 | for as_dir in $PATH | |
7055 | do | |
7056 | IFS=$as_save_IFS | |
7057 | test -z "$as_dir" && as_dir=. | |
7058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7060 | ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext" | |
7061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7062 | break 2 | |
7063 | fi | |
7064 | done | |
7065 | done | |
7066 | IFS=$as_save_IFS | |
7067 | ||
7068 | ;; | |
7069 | esac | |
7070 | fi | |
7071 | THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD | |
7072 | if test -n "$THIN_CHECK_CMD"; then | |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5 | |
7074 | $as_echo "$THIN_CHECK_CMD" >&6; } | |
7075 | else | |
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7077 | $as_echo "no" >&6; } | |
7078 | fi | |
7079 | ||
7080 | ||
7081 | test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5 | |
7082 | fi | |
909887be ZK |
7083 | ;; |
7084 | esac | |
f61cacad ZK |
7085 | |
7086 | ||
7087 | cat >>confdefs.h <<_ACEOF | |
7088 | #define THIN_CHECK_CMD "$THIN_CHECK_CMD" | |
7089 | _ACEOF | |
7090 | ||
f61cacad ZK |
7091 | |
7092 | ||
f11781c5 AK |
7093 | ################################################################################ |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
7095 | $as_echo_n "checking whether to enable readline... " >&6; } | |
7096 | # Check whether --enable-readline was given. | |
7097 | if test "${enable_readline+set}" = set; then : | |
7098 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 7099 | else |
f11781c5 | 7100 | READLINE=maybe |
fd4728e1 ZK |
7101 | fi |
7102 | ||
f11781c5 AK |
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
7104 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 7105 | |
f11781c5 AK |
7106 | ################################################################################ |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
7108 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
7109 | # Check whether --enable-realtime was given. | |
7110 | if test "${enable_realtime+set}" = set; then : | |
7111 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 7112 | fi |
d0191583 | 7113 | |
f11781c5 AK |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
7115 | $as_echo "$REALTIME" >&6; } | |
7116 | ||
54b362f9 | 7117 | ################################################################################ |
f11781c5 AK |
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
7119 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
7120 | # Check whether --enable-ocf was given. | |
7121 | if test "${enable_ocf+set}" = set; then : | |
7122 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 7123 | else |
f11781c5 | 7124 | OCF=no |
54b362f9 AK |
7125 | fi |
7126 | ||
f11781c5 AK |
7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
7128 | $as_echo "$OCF" >&6; } | |
54b362f9 | 7129 | |
606d0858 AK |
7130 | # Check whether --with-ocfdir was given. |
7131 | if test "${with_ocfdir+set}" = set; then : | |
7132 | withval=$with_ocfdir; OCFDIR=$withval | |
7133 | else | |
7134 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
7135 | fi | |
7136 | ||
7137 | ||
f11781c5 AK |
7138 | ################################################################################ |
7139 | pkg_config_init() { | |
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7147 | if test -n "$ac_tool_prefix"; then | |
7148 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7149 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7151 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7152 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7153 | $as_echo_n "(cached) " >&6 |
7154 | else | |
f11781c5 | 7155 | case $PKG_CONFIG in |
54b362f9 | 7156 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7157 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7158 | ;; |
7159 | *) | |
7160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7161 | for as_dir in $PATH | |
7162 | do | |
7163 | IFS=$as_save_IFS | |
7164 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7165 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7167 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7169 | break 2 |
7170 | fi | |
7171 | done | |
f11781c5 | 7172 | done |
54b362f9 AK |
7173 | IFS=$as_save_IFS |
7174 | ||
7175 | ;; | |
7176 | esac | |
7177 | fi | |
f11781c5 AK |
7178 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7179 | if test -n "$PKG_CONFIG"; then | |
7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7181 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7182 | else |
f11781c5 | 7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7184 | $as_echo "no" >&6; } |
7185 | fi | |
7186 | ||
7187 | ||
f11781c5 AK |
7188 | fi |
7189 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7190 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7191 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7192 | set dummy pkg-config; ac_word=$2 | |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7194 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7195 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7196 | $as_echo_n "(cached) " >&6 |
7197 | else | |
f11781c5 | 7198 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7199 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7200 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7201 | ;; |
7202 | *) | |
7203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7204 | for as_dir in $PATH | |
7205 | do | |
7206 | IFS=$as_save_IFS | |
7207 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7208 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7210 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7212 | break 2 |
7213 | fi | |
7214 | done | |
f11781c5 | 7215 | done |
54b362f9 AK |
7216 | IFS=$as_save_IFS |
7217 | ||
7218 | ;; | |
7219 | esac | |
7220 | fi | |
f11781c5 AK |
7221 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7222 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7224 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7225 | else |
f11781c5 | 7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7227 | $as_echo "no" >&6; } |
7228 | fi | |
7229 | ||
f11781c5 AK |
7230 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7231 | PKG_CONFIG="" | |
7232 | else | |
7233 | case $cross_compiling:$ac_tool_warned in | |
7234 | yes:) | |
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7236 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7237 | ac_tool_warned=yes ;; | |
7238 | esac | |
7239 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7240 | fi | |
d1e8046f | 7241 | else |
f11781c5 | 7242 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7243 | fi |
7244 | ||
f11781c5 AK |
7245 | fi |
7246 | if test -n "$PKG_CONFIG"; then | |
7247 | _pkg_min_version=0.9.0 | |
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7249 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7250 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7252 | $as_echo "yes" >&6; } | |
7253 | else | |
7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7255 | $as_echo "no" >&6; } | |
7256 | PKG_CONFIG="" | |
7257 | fi | |
7258 | fi | |
d1e8046f | 7259 | |
f11781c5 AK |
7260 | pkg_failed=no |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7262 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7263 | |
f11781c5 AK |
7264 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7265 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7266 | elif test -n "$PKG_CONFIG"; then | |
7267 | if test -n "$PKG_CONFIG" && \ | |
7268 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7269 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7270 | ac_status=$? | |
7271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7272 | test $ac_status = 0; }; then | |
7273 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7274 | else |
f11781c5 AK |
7275 | pkg_failed=yes |
7276 | fi | |
7277 | else | |
7278 | pkg_failed=untried | |
7279 | fi | |
7280 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7281 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7282 | elif test -n "$PKG_CONFIG"; then | |
7283 | if test -n "$PKG_CONFIG" && \ | |
7284 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7285 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7286 | ac_status=$? |
f11781c5 AK |
7287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7288 | test $ac_status = 0; }; then | |
7289 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7290 | else |
f11781c5 AK |
7291 | pkg_failed=yes |
7292 | fi | |
7293 | else | |
7294 | pkg_failed=untried | |
d1e8046f AK |
7295 | fi |
7296 | ||
d1e8046f | 7297 | |
f11781c5 AK |
7298 | |
7299 | if test $pkg_failed = yes; then | |
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7301 | $as_echo "no" >&6; } | |
7302 | ||
7303 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7304 | _pkg_short_errors_supported=yes | |
7305 | else | |
7306 | _pkg_short_errors_supported=no | |
7307 | fi | |
7308 | if test $_pkg_short_errors_supported = yes; then | |
7309 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7310 | else | |
7311 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7312 | fi | |
7313 | # Put the nasty error message in config.log where it belongs | |
7314 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7315 | ||
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7317 | $as_echo "pkg-config initialized" >&6; } | |
7318 | elif test $pkg_failed = untried; then | |
7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7320 | $as_echo "no" >&6; } | |
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7322 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7323 | else |
f11781c5 AK |
7324 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7325 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7327 | $as_echo "yes" >&6; } | |
d1e8046f | 7328 | |
d1e8046f | 7329 | fi |
f11781c5 AK |
7330 | PKGCONFIG_INIT=1 |
7331 | } | |
d1e8046f | 7332 | |
5723db01 PR |
7333 | ################################################################################ |
7334 | ||
7335 | ||
7336 | # Check whether --with-default-pid-dir was given. | |
7337 | if test "${with_default_pid_dir+set}" = set; then : | |
7338 | withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval" | |
7339 | else | |
7340 | DEFAULT_PID_DIR="/var/run" | |
7341 | fi | |
7342 | ||
7343 | ||
7344 | cat >>confdefs.h <<_ACEOF | |
7345 | #define DEFAULT_PID_DIR "$DEFAULT_PID_DIR" | |
7346 | _ACEOF | |
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | # Check whether --with-default-dm-run-dir was given. | |
7352 | if test "${with_default_dm_run_dir+set}" = set; then : | |
7353 | withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval" | |
7354 | else | |
7355 | DEFAULT_DM_RUN_DIR="/var/run" | |
7356 | fi | |
7357 | ||
7358 | ||
7359 | cat >>confdefs.h <<_ACEOF | |
7360 | #define DEFAULT_DM_RUN_DIR "$DEFAULT_DM_RUN_DIR" | |
7361 | _ACEOF | |
7362 | ||
7363 | ||
7364 | ||
7365 | ||
7366 | # Check whether --with-default-run-dir was given. | |
7367 | if test "${with_default_run_dir+set}" = set; then : | |
7368 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
7369 | else | |
7370 | DEFAULT_RUN_DIR="/var/run/lvm" | |
7371 | fi | |
7372 | ||
7373 | ||
7374 | cat >>confdefs.h <<_ACEOF | |
7375 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
7376 | _ACEOF | |
7377 | ||
7378 | ||
f11781c5 AK |
7379 | ################################################################################ |
7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7381 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7382 | |
f11781c5 AK |
7383 | # Check whether --with-clvmd was given. |
7384 | if test "${with_clvmd+set}" = set; then : | |
7385 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7386 | else |
f11781c5 | 7387 | CLVMD=none |
d1e8046f | 7388 | fi |
d1e8046f | 7389 | |
f11781c5 AK |
7390 | if test x$CLVMD = xyes; then |
7391 | CLVMD=all | |
d1e8046f | 7392 | fi |
f11781c5 AK |
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7394 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7395 | |
f11781c5 AK |
7396 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7397 | CLUSTER=internal | |
d1e8046f AK |
7398 | fi |
7399 | ||
f11781c5 AK |
7400 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7401 | pkg_config_init | |
7402 | fi | |
d1e8046f | 7403 | |
f11781c5 AK |
7404 | CLVMD_CMANAGERS="" |
7405 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7406 | |
f11781c5 | 7407 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7408 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7409 | fi |
f11781c5 AK |
7410 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7411 | BUILDCMAN=yes | |
7412 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7413 | CLVMD_NEEDS_QDISKD=yes | |
7414 | fi | |
7415 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7416 | BUILDCOROSYNC=yes | |
7417 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7418 | fi | |
7419 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7420 | BUILDOPENAIS=yes | |
7421 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7422 | fi | |
7423 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7424 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7425 | fi |
7426 | ||
f11781c5 AK |
7427 | soft_bailout() { |
7428 | NOTFOUND=1 | |
7429 | } | |
ad6254c5 | 7430 | |
f11781c5 AK |
7431 | hard_bailout() { |
7432 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7433 | } | |
ad6254c5 | 7434 | |
f11781c5 AK |
7435 | if test x$CLVMD = xall; then |
7436 | bailout=soft_bailout | |
f11781c5 AK |
7437 | BUILDCMAN=yes |
7438 | BUILDCOROSYNC=yes | |
7439 | BUILDOPENAIS=yes | |
a5f46f6a | 7440 | else |
f11781c5 | 7441 | bailout=hard_bailout |
a5f46f6a AK |
7442 | fi |
7443 | ||
f11781c5 AK |
7444 | check_lib_no_libs() { |
7445 | lib_no_libs_arg1=$1 | |
7446 | shift | |
7447 | lib_no_libs_arg2=$1 | |
7448 | shift | |
7449 | lib_no_libs_args=$@ | |
7450 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7452 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7453 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7454 | $as_echo_n "(cached) " >&6 |
7455 | else | |
7456 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7457 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7459 | /* end confdefs.h. */ |
7460 | ||
7461 | /* Override any GCC internal prototype to avoid an error. | |
7462 | Use char because int might match the return type of a GCC | |
7463 | builtin and then its argument prototype would still apply. */ | |
7464 | #ifdef __cplusplus | |
7465 | extern "C" | |
7466 | #endif | |
f11781c5 | 7467 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7468 | int |
7469 | main () | |
7470 | { | |
f11781c5 | 7471 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7472 | ; |
7473 | return 0; | |
7474 | } | |
7475 | _ACEOF | |
f11781c5 AK |
7476 | if ac_fn_c_try_link "$LINENO"; then : |
7477 | eval "$as_ac_Lib=yes" | |
90c80887 | 7478 | else |
f11781c5 | 7479 | eval "$as_ac_Lib=no" |
90c80887 | 7480 | fi |
f11781c5 AK |
7481 | rm -f core conftest.err conftest.$ac_objext \ |
7482 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7483 | LIBS=$ac_check_lib_save_LIBS |
7484 | fi | |
f11781c5 AK |
7485 | eval ac_res=\$$as_ac_Lib |
7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7487 | $as_echo "$ac_res" >&6; } | |
7488 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7489 | cat >>confdefs.h <<_ACEOF | |
7490 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7491 | _ACEOF | |
7492 | ||
7493 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7494 | ||
90c80887 | 7495 | else |
f11781c5 | 7496 | $bailout |
90c80887 AK |
7497 | fi |
7498 | ||
f11781c5 AK |
7499 | LIBS=$ac_check_lib_save_LIBS |
7500 | } | |
90c80887 | 7501 | |
f11781c5 | 7502 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7503 | |
f11781c5 AK |
7504 | pkg_failed=no |
7505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7506 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7507 | |
f11781c5 AK |
7508 | if test -n "$CMAN_CFLAGS"; then |
7509 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7510 | elif test -n "$PKG_CONFIG"; then | |
7511 | if test -n "$PKG_CONFIG" && \ | |
7512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7513 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7514 | ac_status=$? | |
7515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7516 | test $ac_status = 0; }; then | |
7517 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7518 | else | |
7519 | pkg_failed=yes | |
ad6254c5 | 7520 | fi |
f11781c5 AK |
7521 | else |
7522 | pkg_failed=untried | |
ad6254c5 | 7523 | fi |
f11781c5 AK |
7524 | if test -n "$CMAN_LIBS"; then |
7525 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7526 | elif test -n "$PKG_CONFIG"; then | |
7527 | if test -n "$PKG_CONFIG" && \ | |
7528 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7529 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7530 | ac_status=$? |
f11781c5 AK |
7531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7532 | test $ac_status = 0; }; then | |
7533 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7534 | else |
f11781c5 AK |
7535 | pkg_failed=yes |
7536 | fi | |
7537 | else | |
7538 | pkg_failed=untried | |
93bd259b AK |
7539 | fi |
7540 | ||
f11781c5 AK |
7541 | |
7542 | ||
7543 | if test $pkg_failed = yes; then | |
7544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7545 | $as_echo "no" >&6; } | |
7546 | ||
7547 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7548 | _pkg_short_errors_supported=yes | |
7549 | else | |
7550 | _pkg_short_errors_supported=no | |
93bd259b | 7551 | fi |
f11781c5 AK |
7552 | if test $_pkg_short_errors_supported = yes; then |
7553 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7554 | else | |
7555 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7556 | fi | |
7557 | # Put the nasty error message in config.log where it belongs | |
7558 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7559 | |
f11781c5 AK |
7560 | NOTFOUND=0 |
7561 | for ac_header in libcman.h | |
7562 | do : | |
7563 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7564 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7565 | cat >>confdefs.h <<_ACEOF | |
7566 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7567 | _ACEOF |
7568 | ||
f11781c5 AK |
7569 | else |
7570 | $bailout | |
93bd259b AK |
7571 | fi |
7572 | ||
f11781c5 | 7573 | done |
93bd259b | 7574 | |
f11781c5 AK |
7575 | check_lib_no_libs cman cman_init |
7576 | if test $NOTFOUND = 0; then | |
7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7578 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7579 | CMAN_LIBS="-lcman" | |
7580 | HAVE_CMAN=yes | |
7581 | fi | |
7582 | elif test $pkg_failed = untried; then | |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7584 | $as_echo "no" >&6; } | |
7585 | NOTFOUND=0 | |
7586 | for ac_header in libcman.h | |
7587 | do : | |
7588 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7589 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7590 | cat >>confdefs.h <<_ACEOF | |
7591 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7592 | _ACEOF |
93bd259b | 7593 | |
93bd259b | 7594 | else |
f11781c5 | 7595 | $bailout |
93bd259b AK |
7596 | fi |
7597 | ||
f11781c5 AK |
7598 | done |
7599 | ||
7600 | check_lib_no_libs cman cman_init | |
7601 | if test $NOTFOUND = 0; then | |
7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7603 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7604 | CMAN_LIBS="-lcman" | |
7605 | HAVE_CMAN=yes | |
7606 | fi | |
7607 | else | |
7608 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7609 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7611 | $as_echo "yes" >&6; } | |
7612 | HAVE_CMAN=yes | |
93bd259b | 7613 | fi |
f11781c5 AK |
7614 | CHECKCONFDB=yes |
7615 | CHECKDLM=yes | |
93bd259b AK |
7616 | fi |
7617 | ||
f11781c5 AK |
7618 | if test x$BUILDCOROSYNC = xyes || \ |
7619 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7620 | |
f11781c5 AK |
7621 | pkg_failed=no |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7623 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7624 | |
f11781c5 AK |
7625 | if test -n "$COROSYNC_CFLAGS"; then |
7626 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7627 | elif test -n "$PKG_CONFIG"; then | |
7628 | if test -n "$PKG_CONFIG" && \ | |
7629 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7630 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7631 | ac_status=$? | |
7632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7633 | test $ac_status = 0; }; then | |
7634 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7635 | else |
f11781c5 AK |
7636 | pkg_failed=yes |
7637 | fi | |
7638 | else | |
7639 | pkg_failed=untried | |
7640 | fi | |
7641 | if test -n "$COROSYNC_LIBS"; then | |
7642 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7643 | elif test -n "$PKG_CONFIG"; then | |
7644 | if test -n "$PKG_CONFIG" && \ | |
7645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7646 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7647 | ac_status=$? |
f11781c5 AK |
7648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7649 | test $ac_status = 0; }; then | |
7650 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7651 | else |
f11781c5 | 7652 | pkg_failed=yes |
ad6254c5 | 7653 | fi |
f11781c5 AK |
7654 | else |
7655 | pkg_failed=untried | |
ad6254c5 | 7656 | fi |
ad6254c5 | 7657 | |
72b2cb61 | 7658 | |
72b2cb61 | 7659 | |
f11781c5 AK |
7660 | if test $pkg_failed = yes; then |
7661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7662 | $as_echo "no" >&6; } | |
19a2c6e0 | 7663 | |
f11781c5 AK |
7664 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7665 | _pkg_short_errors_supported=yes | |
7666 | else | |
7667 | _pkg_short_errors_supported=no | |
ad6254c5 | 7668 | fi |
f11781c5 AK |
7669 | if test $_pkg_short_errors_supported = yes; then |
7670 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7671 | else | |
7672 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7673 | fi | |
7674 | # Put the nasty error message in config.log where it belongs | |
7675 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7676 | |
f11781c5 AK |
7677 | $bailout |
7678 | elif test $pkg_failed = untried; then | |
7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7680 | $as_echo "no" >&6; } | |
7681 | $bailout | |
7682 | else | |
7683 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7684 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7686 | $as_echo "yes" >&6; } | |
7687 | HAVE_COROSYNC=yes | |
7688 | fi | |
7689 | CHECKCONFDB=yes | |
b6d7a484 | 7690 | CHECKCMAP=yes |
ad6254c5 AK |
7691 | fi |
7692 | ||
f11781c5 | 7693 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7694 | |
f11781c5 AK |
7695 | pkg_failed=no |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7697 | $as_echo_n "checking for QUORUM... " >&6; } | |
7698 | ||
7699 | if test -n "$QUORUM_CFLAGS"; then | |
7700 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7701 | elif test -n "$PKG_CONFIG"; then | |
7702 | if test -n "$PKG_CONFIG" && \ | |
7703 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7704 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7705 | ac_status=$? |
f11781c5 AK |
7706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7707 | test $ac_status = 0; }; then | |
7708 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7709 | else |
f11781c5 | 7710 | pkg_failed=yes |
f30875db | 7711 | fi |
f11781c5 AK |
7712 | else |
7713 | pkg_failed=untried | |
f30875db | 7714 | fi |
f11781c5 AK |
7715 | if test -n "$QUORUM_LIBS"; then |
7716 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7717 | elif test -n "$PKG_CONFIG"; then | |
7718 | if test -n "$PKG_CONFIG" && \ | |
7719 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7720 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7721 | ac_status=$? | |
7722 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7723 | test $ac_status = 0; }; then | |
7724 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7725 | else |
f11781c5 | 7726 | pkg_failed=yes |
f30875db | 7727 | fi |
f11781c5 AK |
7728 | else |
7729 | pkg_failed=untried | |
7730 | fi | |
7731 | ||
f30875db | 7732 | |
f11781c5 AK |
7733 | |
7734 | if test $pkg_failed = yes; then | |
7735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7736 | $as_echo "no" >&6; } | |
7737 | ||
7738 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7739 | _pkg_short_errors_supported=yes | |
7740 | else | |
7741 | _pkg_short_errors_supported=no | |
f30875db | 7742 | fi |
f11781c5 AK |
7743 | if test $_pkg_short_errors_supported = yes; then |
7744 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7745 | else | |
7746 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7747 | fi | |
7748 | # Put the nasty error message in config.log where it belongs | |
7749 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7750 | |
f11781c5 AK |
7751 | $bailout |
7752 | elif test $pkg_failed = untried; then | |
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7754 | $as_echo "no" >&6; } | |
7755 | $bailout | |
7756 | else | |
7757 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7758 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7760 | $as_echo "yes" >&6; } | |
7761 | HAVE_QUORUM=yes | |
7762 | fi | |
7763 | CHECKCPG=yes | |
7764 | CHECKDLM=yes | |
d0191583 JM |
7765 | fi |
7766 | ||
f11781c5 | 7767 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7768 | |
f11781c5 AK |
7769 | pkg_failed=no |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7771 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7772 | |
f11781c5 AK |
7773 | if test -n "$SALCK_CFLAGS"; then |
7774 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7775 | elif test -n "$PKG_CONFIG"; then | |
7776 | if test -n "$PKG_CONFIG" && \ | |
7777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7778 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7779 | ac_status=$? | |
7780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7781 | test $ac_status = 0; }; then | |
7782 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7783 | else | |
7784 | pkg_failed=yes | |
7785 | fi | |
7786 | else | |
7787 | pkg_failed=untried | |
7788 | fi | |
7789 | if test -n "$SALCK_LIBS"; then | |
7790 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7791 | elif test -n "$PKG_CONFIG"; then | |
7792 | if test -n "$PKG_CONFIG" && \ | |
7793 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7794 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7795 | ac_status=$? |
f11781c5 AK |
7796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7797 | test $ac_status = 0; }; then | |
7798 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7799 | else |
f11781c5 | 7800 | pkg_failed=yes |
8a2fc586 | 7801 | fi |
f11781c5 AK |
7802 | else |
7803 | pkg_failed=untried | |
8a2fc586 | 7804 | fi |
d0191583 | 7805 | |
d0191583 | 7806 | |
f8f6ec92 | 7807 | |
f11781c5 AK |
7808 | if test $pkg_failed = yes; then |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7810 | $as_echo "no" >&6; } | |
8a2fc586 | 7811 | |
f11781c5 AK |
7812 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7813 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7814 | else |
f11781c5 AK |
7815 | _pkg_short_errors_supported=no |
7816 | fi | |
7817 | if test $_pkg_short_errors_supported = yes; then | |
7818 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7819 | else | |
7820 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7821 | fi | |
7822 | # Put the nasty error message in config.log where it belongs | |
7823 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7824 | |
f11781c5 AK |
7825 | $bailout |
7826 | elif test $pkg_failed = untried; then | |
7827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7828 | $as_echo "no" >&6; } | |
7829 | $bailout | |
ad6254c5 | 7830 | else |
f11781c5 AK |
7831 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7832 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7834 | $as_echo "yes" >&6; } | |
7835 | HAVE_SALCK=yes | |
ad6254c5 | 7836 | fi |
f11781c5 | 7837 | CHECKCPG=yes |
ad6254c5 | 7838 | fi |
ad6254c5 | 7839 | |
72b2cb61 | 7840 | |
f8f6ec92 | 7841 | |
f11781c5 | 7842 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7843 | |
f11781c5 AK |
7844 | pkg_failed=no |
7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7846 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7847 | |
f11781c5 AK |
7848 | if test -n "$CONFDB_CFLAGS"; then |
7849 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7850 | elif test -n "$PKG_CONFIG"; then | |
7851 | if test -n "$PKG_CONFIG" && \ | |
7852 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7853 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7854 | ac_status=$? |
f11781c5 AK |
7855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7856 | test $ac_status = 0; }; then | |
7857 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7858 | else |
f11781c5 AK |
7859 | pkg_failed=yes |
7860 | fi | |
7861 | else | |
7862 | pkg_failed=untried | |
7863 | fi | |
7864 | if test -n "$CONFDB_LIBS"; then | |
7865 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7866 | elif test -n "$PKG_CONFIG"; then | |
7867 | if test -n "$PKG_CONFIG" && \ | |
7868 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7869 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7870 | ac_status=$? | |
7871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7872 | test $ac_status = 0; }; then | |
7873 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7874 | else | |
7875 | pkg_failed=yes | |
7876 | fi | |
7877 | else | |
7878 | pkg_failed=untried | |
f8f6ec92 ZK |
7879 | fi |
7880 | ||
f8f6ec92 | 7881 | |
66e941e8 | 7882 | |
f11781c5 AK |
7883 | if test $pkg_failed = yes; then |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7885 | $as_echo "no" >&6; } | |
7886 | ||
7887 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7888 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7889 | else |
f11781c5 | 7890 | _pkg_short_errors_supported=no |
66e941e8 | 7891 | fi |
f11781c5 AK |
7892 | if test $_pkg_short_errors_supported = yes; then |
7893 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7894 | else | |
7895 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7896 | fi | |
7897 | # Put the nasty error message in config.log where it belongs | |
7898 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7899 | |
f11781c5 AK |
7900 | HAVE_CONFDB=no |
7901 | elif test $pkg_failed = untried; then | |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7903 | $as_echo "no" >&6; } | |
7904 | HAVE_CONFDB=no | |
7905 | else | |
7906 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7907 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7909 | $as_echo "yes" >&6; } | |
7910 | HAVE_CONFDB=yes | |
66e941e8 | 7911 | fi |
f11781c5 AK |
7912 | |
7913 | for ac_header in corosync/confdb.h | |
7914 | do : | |
7915 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7916 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7917 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7918 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7919 | _ACEOF |
f11781c5 | 7920 | HAVE_CONFDB_H=yes |
66e941e8 | 7921 | else |
f11781c5 | 7922 | HAVE_CONFDB_H=no |
66e941e8 | 7923 | fi |
dd1f2c09 MB |
7924 | |
7925 | done | |
7926 | ||
7927 | ||
f11781c5 AK |
7928 | if test x$HAVE_CONFDB != xyes && \ |
7929 | test x$HAVE_CONFDB_H = xyes; then | |
7930 | check_lib_no_libs confdb confdb_initialize | |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7932 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7933 | CONFDB_LIBS="-lconfdb" | |
7934 | HAVE_CONFDB=yes | |
7935 | fi | |
b6d7a484 AK |
7936 | fi |
7937 | ||
7938 | ||
7939 | if test x$CHECKCMAP = xyes; then | |
7940 | ||
7941 | pkg_failed=no | |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5 | |
7943 | $as_echo_n "checking for CMAP... " >&6; } | |
7944 | ||
7945 | if test -n "$CMAP_CFLAGS"; then | |
7946 | pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS" | |
7947 | elif test -n "$PKG_CONFIG"; then | |
7948 | if test -n "$PKG_CONFIG" && \ | |
7949 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7950 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7951 | ac_status=$? | |
7952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7953 | test $ac_status = 0; }; then | |
7954 | pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null` | |
7955 | else | |
7956 | pkg_failed=yes | |
7957 | fi | |
7958 | else | |
7959 | pkg_failed=untried | |
7960 | fi | |
7961 | if test -n "$CMAP_LIBS"; then | |
7962 | pkg_cv_CMAP_LIBS="$CMAP_LIBS" | |
7963 | elif test -n "$PKG_CONFIG"; then | |
7964 | if test -n "$PKG_CONFIG" && \ | |
7965 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7966 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7967 | ac_status=$? | |
7968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7969 | test $ac_status = 0; }; then | |
7970 | pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null` | |
7971 | else | |
7972 | pkg_failed=yes | |
7973 | fi | |
7974 | else | |
7975 | pkg_failed=untried | |
7976 | fi | |
7977 | ||
7978 | ||
7979 | ||
7980 | if test $pkg_failed = yes; then | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7982 | $as_echo "no" >&6; } | |
f11781c5 | 7983 | |
b6d7a484 AK |
7984 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7985 | _pkg_short_errors_supported=yes | |
7986 | else | |
7987 | _pkg_short_errors_supported=no | |
7988 | fi | |
7989 | if test $_pkg_short_errors_supported = yes; then | |
7990 | CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1` | |
7991 | else | |
7992 | CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1` | |
7993 | fi | |
7994 | # Put the nasty error message in config.log where it belongs | |
7995 | echo "$CMAP_PKG_ERRORS" >&5 | |
7996 | ||
7997 | HAVE_CMAP=no | |
7998 | elif test $pkg_failed = untried; then | |
7999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8000 | $as_echo "no" >&6; } | |
8001 | HAVE_CMAP=no | |
8002 | else | |
8003 | CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS | |
8004 | CMAP_LIBS=$pkg_cv_CMAP_LIBS | |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8006 | $as_echo "yes" >&6; } | |
8007 | HAVE_CMAP=yes | |
8008 | fi | |
8009 | ||
8010 | for ac_header in corosync/cmap.h | |
8011 | do : | |
8012 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default" | |
8013 | if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then : | |
8014 | cat >>confdefs.h <<_ACEOF | |
8015 | #define HAVE_COROSYNC_CMAP_H 1 | |
8016 | _ACEOF | |
8017 | HAVE_CMAP_H=yes | |
8018 | else | |
8019 | HAVE_CMAP_H=no | |
8020 | fi | |
8021 | ||
8022 | done | |
8023 | ||
8024 | ||
8025 | if test x$HAVE_CMAP != xyes && \ | |
8026 | test x$HAVE_CMAP_H = xyes; then | |
8027 | check_lib_no_libs cmap cmap_initialize | |
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5 | |
8029 | $as_echo "no pkg for cmap, using -lcmap" >&6; } | |
8030 | CMAP_LIBS="-lcmap" | |
8031 | HAVE_CMAP=yes | |
8032 | fi | |
8033 | fi | |
8034 | ||
8035 | if test x$BUILDCOROSYNC = xyes; then | |
8036 | if test x$HAVE_CMAP != xyes && \ | |
8037 | test x$HAVE_CONFDB != xyes && \ | |
f11781c5 | 8038 | test x$CLVMD != xall; then |
b6d7a484 | 8039 | as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5 |
f11781c5 | 8040 | fi |
dd1f2c09 | 8041 | fi |
f11781c5 AK |
8042 | |
8043 | if test x$CHECKCPG = xyes; then | |
8044 | ||
8045 | pkg_failed=no | |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8047 | $as_echo_n "checking for CPG... " >&6; } | |
8048 | ||
8049 | if test -n "$CPG_CFLAGS"; then | |
8050 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8051 | elif test -n "$PKG_CONFIG"; then | |
8052 | if test -n "$PKG_CONFIG" && \ | |
8053 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8054 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8055 | ac_status=$? | |
8056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8057 | test $ac_status = 0; }; then | |
8058 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 8059 | else |
f11781c5 AK |
8060 | pkg_failed=yes |
8061 | fi | |
8062 | else | |
8063 | pkg_failed=untried | |
8064 | fi | |
8065 | if test -n "$CPG_LIBS"; then | |
8066 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8067 | elif test -n "$PKG_CONFIG"; then | |
8068 | if test -n "$PKG_CONFIG" && \ | |
8069 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8070 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 8071 | ac_status=$? |
f11781c5 AK |
8072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8073 | test $ac_status = 0; }; then | |
8074 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 8075 | else |
f11781c5 AK |
8076 | pkg_failed=yes |
8077 | fi | |
8078 | else | |
8079 | pkg_failed=untried | |
8080 | fi | |
8081 | ||
8082 | ||
8083 | ||
8084 | if test $pkg_failed = yes; then | |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8086 | $as_echo "no" >&6; } | |
8087 | ||
8088 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8089 | _pkg_short_errors_supported=yes | |
8090 | else | |
8091 | _pkg_short_errors_supported=no | |
8092 | fi | |
8093 | if test $_pkg_short_errors_supported = yes; then | |
8094 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8095 | else | |
8096 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8097 | fi | |
8098 | # Put the nasty error message in config.log where it belongs | |
8099 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 8100 | |
f11781c5 AK |
8101 | $bailout |
8102 | elif test $pkg_failed = untried; then | |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8104 | $as_echo "no" >&6; } | |
8105 | $bailout | |
8106 | else | |
8107 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
8108 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8110 | $as_echo "yes" >&6; } | |
8111 | HAVE_CPG=yes | |
8112 | fi | |
dd1f2c09 MB |
8113 | fi |
8114 | ||
f11781c5 | 8115 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 8116 | |
f11781c5 AK |
8117 | pkg_failed=no |
8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
8119 | $as_echo_n "checking for DLM... " >&6; } | |
8120 | ||
8121 | if test -n "$DLM_CFLAGS"; then | |
8122 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
8123 | elif test -n "$PKG_CONFIG"; then | |
8124 | if test -n "$PKG_CONFIG" && \ | |
8125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8126 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8127 | ac_status=$? |
f11781c5 AK |
8128 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8129 | test $ac_status = 0; }; then | |
8130 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8131 | else |
f11781c5 AK |
8132 | pkg_failed=yes |
8133 | fi | |
8134 | else | |
8135 | pkg_failed=untried | |
8136 | fi | |
8137 | if test -n "$DLM_LIBS"; then | |
8138 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8139 | elif test -n "$PKG_CONFIG"; then | |
8140 | if test -n "$PKG_CONFIG" && \ | |
8141 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8142 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8143 | ac_status=$? | |
8144 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8145 | test $ac_status = 0; }; then | |
8146 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8147 | else | |
8148 | pkg_failed=yes | |
8149 | fi | |
8150 | else | |
8151 | pkg_failed=untried | |
dd1f2c09 MB |
8152 | fi |
8153 | ||
dd1f2c09 | 8154 | |
dd1f2c09 | 8155 | |
f11781c5 AK |
8156 | if test $pkg_failed = yes; then |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8158 | $as_echo "no" >&6; } | |
8159 | ||
8160 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8161 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8162 | else |
f11781c5 | 8163 | _pkg_short_errors_supported=no |
dd1f2c09 | 8164 | fi |
f11781c5 AK |
8165 | if test $_pkg_short_errors_supported = yes; then |
8166 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8167 | else | |
8168 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8169 | fi | |
8170 | # Put the nasty error message in config.log where it belongs | |
8171 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8172 | |
f11781c5 AK |
8173 | NOTFOUND=0 |
8174 | for ac_header in libdlm.h | |
8175 | do : | |
8176 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8177 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8178 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8179 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8180 | _ACEOF |
8181 | ||
f11781c5 AK |
8182 | else |
8183 | $bailout | |
dd1f2c09 | 8184 | fi |
f8f6ec92 ZK |
8185 | |
8186 | done | |
8187 | ||
f11781c5 AK |
8188 | check_lib_no_libs dlm dlm_lock -lpthread |
8189 | if test $NOTFOUND = 0; then | |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8191 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8192 | DLM_LIBS="-ldlm -lpthread" | |
8193 | HAVE_DLM=yes | |
8194 | fi | |
8195 | elif test $pkg_failed = untried; then | |
8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8197 | $as_echo "no" >&6; } | |
8198 | NOTFOUND=0 | |
8199 | for ac_header in libdlm.h | |
8200 | do : | |
8201 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8202 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8203 | cat >>confdefs.h <<_ACEOF | |
8204 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8205 | _ACEOF |
8206 | ||
f8f6ec92 | 8207 | else |
f11781c5 | 8208 | $bailout |
ad6254c5 AK |
8209 | fi |
8210 | ||
f11781c5 | 8211 | done |
8b1a3214 | 8212 | |
f11781c5 AK |
8213 | check_lib_no_libs dlm dlm_lock -lpthread |
8214 | if test $NOTFOUND = 0; then | |
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8216 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8217 | DLM_LIBS="-ldlm -lpthread" | |
8218 | HAVE_DLM=yes | |
8219 | fi | |
8b1a3214 | 8220 | else |
f11781c5 AK |
8221 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8222 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8224 | $as_echo "yes" >&6; } | |
8225 | HAVE_DLM=yes | |
8b1a3214 | 8226 | fi |
8b1a3214 AK |
8227 | fi |
8228 | ||
f11781c5 AK |
8229 | if test x$CLVMD = xall; then |
8230 | CLVMD=none | |
8231 | CLVMD_CMANAGERS="" | |
8232 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
8233 | if test x$HAVE_CMAN = xyes && \ |
8234 | test x$HAVE_DLM = xyes; then | |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8236 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8237 | CLVMD="$CLVMD,cman" | |
8238 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8239 | CLVMD_NEEDS_QDISKD=yes | |
8240 | fi | |
8241 | if test x$HAVE_COROSYNC = xyes && \ | |
8242 | test x$HAVE_QUORUM = xyes && \ | |
8243 | test x$HAVE_CPG = xyes && \ | |
b6d7a484 AK |
8244 | test x$HAVE_DLM = xyes; then |
8245 | if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then | |
f11781c5 AK |
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 |
8247 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8248 | CLVMD="$CLVMD,corosync" | |
8249 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
b6d7a484 | 8250 | fi |
f11781c5 AK |
8251 | fi |
8252 | if test x$HAVE_COROSYNC = xyes && \ | |
8253 | test x$HAVE_CPG = xyes && \ | |
8254 | test x$HAVE_SALCK = xyes; then | |
8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8256 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8257 | CLVMD="$CLVMD,openais" | |
8258 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8259 | fi | |
8260 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8261 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8262 | fi | |
8263 | if test x$CLVMD = xnone; then | |
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8265 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8266 | fi |
8267 | fi | |
8268 | ||
75fad6ea MB |
8269 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
8270 | if test x$HAVE_CMAP = xyes; then | |
8271 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm" | |
8272 | fi | |
8273 | fi | |
8274 | ||
ad6254c5 | 8275 | ################################################################################ |
f11781c5 | 8276 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8277 | |
f11781c5 AK |
8278 | # Check whether --with-clvmd-pidfile was given. |
8279 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8280 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8281 | else |
5723db01 | 8282 | CLVMD_PIDFILE="$DEFAULT_PID_DIR/clvmd.pid" |
ad6254c5 | 8283 | fi |
7a197a62 | 8284 | |
ad6254c5 | 8285 | |
f11781c5 AK |
8286 | cat >>confdefs.h <<_ACEOF |
8287 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8288 | _ACEOF |
ad6254c5 | 8289 | |
ad6254c5 | 8290 | fi |
7a197a62 | 8291 | |
f11781c5 AK |
8292 | ################################################################################ |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8294 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8295 | # Check whether --enable-cmirrord was given. | |
8296 | if test "${enable_cmirrord+set}" = set; then : | |
8297 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8298 | else | |
8299 | CMIRRORD=no | |
8300 | fi | |
8301 | ||
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8303 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8304 | |
f11781c5 | 8305 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8306 | |
f11781c5 AK |
8307 | ################################################################################ |
8308 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8309 | ||
8310 | # Check whether --with-cmirrord-pidfile was given. | |
8311 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8312 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8313 | else |
5723db01 | 8314 | CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" |
ad6254c5 | 8315 | fi |
ad6254c5 | 8316 | |
72b2cb61 | 8317 | |
f11781c5 AK |
8318 | cat >>confdefs.h <<_ACEOF |
8319 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8320 | _ACEOF |
8321 | ||
ad6254c5 AK |
8322 | fi |
8323 | ||
f11781c5 AK |
8324 | ################################################################################ |
8325 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8326 | if test x$PKGCONFIG_INIT != x1; then | |
8327 | pkg_config_init | |
8328 | fi | |
ad6254c5 | 8329 | |
62e38da1 JEB |
8330 | |
8331 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h | |
8332 | ||
8333 | ||
f11781c5 AK |
8334 | pkg_failed=no |
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8336 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8337 | |
f11781c5 AK |
8338 | if test -n "$SACKPT_CFLAGS"; then |
8339 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8340 | elif test -n "$PKG_CONFIG"; then | |
8341 | if test -n "$PKG_CONFIG" && \ | |
8342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8343 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8344 | ac_status=$? | |
8345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8346 | test $ac_status = 0; }; then | |
8347 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8348 | else |
f11781c5 AK |
8349 | pkg_failed=yes |
8350 | fi | |
8351 | else | |
8352 | pkg_failed=untried | |
8353 | fi | |
8354 | if test -n "$SACKPT_LIBS"; then | |
8355 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8356 | elif test -n "$PKG_CONFIG"; then | |
8357 | if test -n "$PKG_CONFIG" && \ | |
8358 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8359 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8360 | ac_status=$? |
f11781c5 AK |
8361 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8362 | test $ac_status = 0; }; then | |
8363 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8364 | else |
f11781c5 AK |
8365 | pkg_failed=yes |
8366 | fi | |
8367 | else | |
8368 | pkg_failed=untried | |
8369 | fi | |
539f4a77 ZK |
8370 | |
8371 | ||
539f4a77 | 8372 | |
f11781c5 AK |
8373 | if test $pkg_failed = yes; then |
8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8375 | $as_echo "no" >&6; } | |
8376 | ||
8377 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8378 | _pkg_short_errors_supported=yes | |
539f4a77 | 8379 | else |
f11781c5 | 8380 | _pkg_short_errors_supported=no |
539f4a77 | 8381 | fi |
f11781c5 AK |
8382 | if test $_pkg_short_errors_supported = yes; then |
8383 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8384 | else | |
8385 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8386 | fi | |
8387 | # Put the nasty error message in config.log where it belongs | |
8388 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8389 | ||
62e38da1 JEB |
8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8391 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8392 | |
62e38da1 | 8393 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 AK |
8394 | |
8395 | elif test $pkg_failed = untried; then | |
8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8397 | $as_echo "no" >&6; } | |
62e38da1 JEB |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8399 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8400 | |
62e38da1 | 8401 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 | 8402 | |
539f4a77 | 8403 | else |
f11781c5 AK |
8404 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8405 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8407 | $as_echo "yes" >&6; } | |
62e38da1 | 8408 | HAVE_SACKPT=yes |
539f4a77 | 8409 | fi |
62e38da1 | 8410 | |
f11781c5 | 8411 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8412 | |
f11781c5 AK |
8413 | pkg_failed=no |
8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8415 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8416 | |
f11781c5 AK |
8417 | if test -n "$CPG_CFLAGS"; then |
8418 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8419 | elif test -n "$PKG_CONFIG"; then | |
8420 | if test -n "$PKG_CONFIG" && \ | |
8421 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8422 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8423 | ac_status=$? |
f11781c5 AK |
8424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8425 | test $ac_status = 0; }; then | |
8426 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8427 | else |
f11781c5 AK |
8428 | pkg_failed=yes |
8429 | fi | |
8430 | else | |
8431 | pkg_failed=untried | |
8432 | fi | |
8433 | if test -n "$CPG_LIBS"; then | |
8434 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8435 | elif test -n "$PKG_CONFIG"; then | |
8436 | if test -n "$PKG_CONFIG" && \ | |
8437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8438 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8439 | ac_status=$? | |
8440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8441 | test $ac_status = 0; }; then | |
8442 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8443 | else | |
8444 | pkg_failed=yes | |
8445 | fi | |
8446 | else | |
8447 | pkg_failed=untried | |
8448 | fi | |
8449 | ||
8450 | ||
8451 | ||
8452 | if test $pkg_failed = yes; then | |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8454 | $as_echo "no" >&6; } | |
ad6254c5 | 8455 | |
f11781c5 AK |
8456 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8457 | _pkg_short_errors_supported=yes | |
8458 | else | |
8459 | _pkg_short_errors_supported=no | |
ad6254c5 | 8460 | fi |
f11781c5 AK |
8461 | if test $_pkg_short_errors_supported = yes; then |
8462 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8463 | else | |
8464 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8465 | fi | |
8466 | # Put the nasty error message in config.log where it belongs | |
8467 | echo "$CPG_PKG_ERRORS" >&5 | |
8468 | ||
8469 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8470 | ||
8471 | $CPG_PKG_ERRORS | |
8472 | ||
8473 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8474 | installed software in a non-standard prefix. | |
8475 | ||
8476 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8477 | and CPG_LIBS to avoid the need to call pkg-config. | |
8478 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8479 | |
f11781c5 AK |
8480 | elif test $pkg_failed = untried; then |
8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8482 | $as_echo "no" >&6; } | |
8483 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8484 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8485 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8486 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8487 | path to pkg-config. | |
539f4a77 | 8488 | |
f11781c5 AK |
8489 | Alternatively, you may set the environment variables CPG_CFLAGS |
8490 | and CPG_LIBS to avoid the need to call pkg-config. | |
8491 | See the pkg-config man page for more details. | |
539f4a77 | 8492 | |
f11781c5 AK |
8493 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8494 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8495 | |
539f4a77 | 8496 | else |
f11781c5 AK |
8497 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8498 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8500 | $as_echo "yes" >&6; } | |
bc1024f8 | 8501 | |
f11781c5 AK |
8502 | fi |
8503 | fi | |
8504 | fi | |
8505 | ||
8506 | ################################################################################ | |
8507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8508 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8509 | # Check whether --enable-debug was given. | |
8510 | if test "${enable_debug+set}" = set; then : | |
8511 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8512 | else |
f11781c5 AK |
8513 | DEBUG=no |
8514 | fi | |
8515 | ||
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8517 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8518 | |
f11781c5 AK |
8519 | if test x$DEBUG = xyes; then |
8520 | COPTIMISE_FLAG= | |
8521 | else | |
8522 | CSCOPE_CMD= | |
06e459df JM |
8523 | fi |
8524 | ||
f11781c5 AK |
8525 | ################################################################################ |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8527 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8528 | ||
8529 | # Check whether --with-optimisation was given. | |
8530 | if test "${with_optimisation+set}" = set; then : | |
8531 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8532 | fi |
539f4a77 | 8533 | |
f11781c5 AK |
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8535 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8536 | |
f11781c5 AK |
8537 | ################################################################################ |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8539 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8540 | # Check whether --enable-profiling was given. | |
8541 | if test "${enable_profiling+set}" = set; then : | |
8542 | enableval=$enable_profiling; PROFILING=$enableval | |
8543 | else | |
8544 | PROFILING=no | |
539f4a77 ZK |
8545 | fi |
8546 | ||
f11781c5 AK |
8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8548 | $as_echo "$PROFILING" >&6; } | |
8549 | ||
8550 | if test "x$PROFILING" = xyes; then | |
8551 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8552 | # Extract the first word of "lcov", so it can be a program name with args. | |
8553 | set dummy lcov; ac_word=$2 | |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8555 | $as_echo_n "checking for $ac_word... " >&6; } | |
8556 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8557 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8558 | else |
f11781c5 AK |
8559 | case $LCOV in |
8560 | [\\/]* | ?:[\\/]*) | |
8561 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8562 | ;; | |
8563 | *) | |
8564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8565 | for as_dir in $PATH | |
8566 | do | |
8567 | IFS=$as_save_IFS | |
8568 | test -z "$as_dir" && as_dir=. | |
8569 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8571 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8573 | break 2 | |
8574 | fi | |
8575 | done | |
8576 | done | |
8577 | IFS=$as_save_IFS | |
539f4a77 | 8578 | |
f11781c5 AK |
8579 | ;; |
8580 | esac | |
8581 | fi | |
8582 | LCOV=$ac_cv_path_LCOV | |
8583 | if test -n "$LCOV"; then | |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8585 | $as_echo "$LCOV" >&6; } | |
8586 | else | |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8588 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8589 | fi |
8590 | ||
bc1024f8 | 8591 | |
f11781c5 AK |
8592 | # Extract the first word of "genhtml", so it can be a program name with args. |
8593 | set dummy genhtml; ac_word=$2 | |
8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8595 | $as_echo_n "checking for $ac_word... " >&6; } | |
8596 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8597 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8598 | else |
f11781c5 AK |
8599 | case $GENHTML in |
8600 | [\\/]* | ?:[\\/]*) | |
8601 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8602 | ;; | |
8603 | *) | |
8604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8605 | for as_dir in $PATH | |
8606 | do | |
8607 | IFS=$as_save_IFS | |
8608 | test -z "$as_dir" && as_dir=. | |
8609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8611 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8613 | break 2 | |
8614 | fi | |
8615 | done | |
8616 | done | |
8617 | IFS=$as_save_IFS | |
8a2fc586 | 8618 | |
f11781c5 AK |
8619 | ;; |
8620 | esac | |
8621 | fi | |
8622 | GENHTML=$ac_cv_path_GENHTML | |
8623 | if test -n "$GENHTML"; then | |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8625 | $as_echo "$GENHTML" >&6; } | |
8626 | else | |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8628 | $as_echo "no" >&6; } | |
8629 | fi | |
8a2fc586 | 8630 | |
8a2fc586 | 8631 | |
f11781c5 AK |
8632 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8633 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8634 | fi | |
8635 | # Extract the first word of "genpng", so it can be a program name with args. | |
8636 | set dummy genpng; ac_word=$2 | |
8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8638 | $as_echo_n "checking for $ac_word... " >&6; } | |
8639 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8640 | $as_echo_n "(cached) " >&6 | |
8641 | else | |
8642 | case $GENPNG in | |
8643 | [\\/]* | ?:[\\/]*) | |
8644 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8645 | ;; | |
8646 | *) | |
8647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8648 | for as_dir in $PATH | |
8649 | do | |
8650 | IFS=$as_save_IFS | |
8651 | test -z "$as_dir" && as_dir=. | |
8652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8654 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8656 | break 2 | |
8657 | fi | |
8658 | done | |
8659 | done | |
8660 | IFS=$as_save_IFS | |
ad6254c5 | 8661 | |
f11781c5 | 8662 | ;; |
7a197a62 | 8663 | esac |
f11781c5 AK |
8664 | fi |
8665 | GENPNG=$ac_cv_path_GENPNG | |
8666 | if test -n "$GENPNG"; then | |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8668 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8669 | else |
f11781c5 AK |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8671 | $as_echo "no" >&6; } | |
8672 | fi | |
8673 | ||
8674 | ||
8675 | if test -n "$GENPNG"; then | |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8677 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8678 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8680 | $as_echo "ok" >&6; } | |
8681 | GENHTML="$GENHTML --frames" | |
8682 | else | |
8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8684 | $as_echo "not supported" >&6; } | |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8686 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8687 | GENPNG= | |
8688 | fi | |
8689 | fi | |
8690 | fi | |
ad6254c5 | 8691 | |
f11781c5 AK |
8692 | ################################################################################ |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8694 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8695 | # Check whether --enable-testing was given. | |
8696 | if test "${enable_testing+set}" = set; then : | |
8697 | enableval=$enable_testing; TESTING=$enableval | |
8698 | else | |
8699 | TESTING=no | |
ad6254c5 | 8700 | fi |
7a197a62 | 8701 | |
f11781c5 AK |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8703 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8704 | |
f11781c5 | 8705 | if test "$TESTING" = yes; then |
426fc742 PR |
8706 | |
8707 | pkg_failed=no | |
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5 | |
8709 | $as_echo_n "checking for CUNIT... " >&6; } | |
8710 | ||
8711 | if test -n "$CUNIT_CFLAGS"; then | |
8712 | pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS" | |
8713 | elif test -n "$PKG_CONFIG"; then | |
8714 | if test -n "$PKG_CONFIG" && \ | |
8715 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8716 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8717 | ac_status=$? | |
8718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8719 | test $ac_status = 0; }; then | |
8720 | pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null` | |
8721 | else | |
8722 | pkg_failed=yes | |
8723 | fi | |
8724 | else | |
8725 | pkg_failed=untried | |
8726 | fi | |
8727 | if test -n "$CUNIT_LIBS"; then | |
8728 | pkg_cv_CUNIT_LIBS="$CUNIT_LIBS" | |
8729 | elif test -n "$PKG_CONFIG"; then | |
8730 | if test -n "$PKG_CONFIG" && \ | |
8731 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8732 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8733 | ac_status=$? | |
8734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8735 | test $ac_status = 0; }; then | |
8736 | pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null` | |
ad6254c5 | 8737 | else |
426fc742 PR |
8738 | pkg_failed=yes |
8739 | fi | |
8740 | else | |
8741 | pkg_failed=untried | |
ad6254c5 AK |
8742 | fi |
8743 | ||
7a197a62 | 8744 | |
426fc742 PR |
8745 | |
8746 | if test $pkg_failed = yes; then | |
8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8748 | $as_echo "no" >&6; } | |
8749 | ||
8750 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8751 | _pkg_short_errors_supported=yes | |
8752 | else | |
8753 | _pkg_short_errors_supported=no | |
8754 | fi | |
8755 | if test $_pkg_short_errors_supported = yes; then | |
8756 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1` | |
8757 | else | |
8758 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1` | |
8759 | fi | |
8760 | # Put the nasty error message in config.log where it belongs | |
8761 | echo "$CUNIT_PKG_ERRORS" >&5 | |
8762 | ||
8763 | as_fn_error $? "Package requirements (cunit >= 2.0) were not met: | |
8764 | ||
8765 | $CUNIT_PKG_ERRORS | |
8766 | ||
8767 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8768 | installed software in a non-standard prefix. | |
8769 | ||
8770 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8771 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8772 | See the pkg-config man page for more details." "$LINENO" 5 | |
8773 | ||
8774 | elif test $pkg_failed = untried; then | |
8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8776 | $as_echo "no" >&6; } | |
8777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8779 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8780 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8781 | path to pkg-config. | |
8782 | ||
8783 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8784 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8785 | See the pkg-config man page for more details. | |
8786 | ||
8787 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8788 | See \`config.log' for more details" "$LINENO" 5; } | |
8789 | ||
8790 | else | |
8791 | CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS | |
8792 | CUNIT_LIBS=$pkg_cv_CUNIT_LIBS | |
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8794 | $as_echo "yes" >&6; } | |
8795 | ||
8796 | fi | |
f11781c5 | 8797 | fi |
ad6254c5 | 8798 | |
f11781c5 AK |
8799 | ################################################################################ |
8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8801 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8802 | # Check whether --enable-valgrind_pool was given. | |
8803 | if test "${enable_valgrind_pool+set}" = set; then : | |
8804 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8805 | else | |
8806 | VALGRIND_POOL=no | |
8807 | fi | |
8808 | ||
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8810 | $as_echo "$VALGRIND_POOL" >&6; } | |
8811 | ||
8812 | if test "$VALGRIND_POOL" = yes; then | |
8813 | for ac_header in valgrind/memcheck.h | |
8814 | do : | |
8815 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8816 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8817 | cat >>confdefs.h <<_ACEOF | |
8818 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8819 | _ACEOF | |
ad6254c5 | 8820 | |
ad6254c5 | 8821 | else |
f11781c5 | 8822 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8823 | fi |
8824 | ||
f11781c5 AK |
8825 | done |
8826 | ||
8827 | ||
8828 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8829 | ||
ad6254c5 AK |
8830 | fi |
8831 | ||
8832 | ################################################################################ | |
f11781c5 AK |
8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8834 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8835 | # Check whether --enable-devmapper was given. | |
8836 | if test "${enable_devmapper+set}" = set; then : | |
8837 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8838 | fi |
8839 | ||
f11781c5 AK |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8841 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8842 | |
f11781c5 | 8843 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8844 | |
f11781c5 AK |
8845 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8846 | ||
8847 | fi | |
8848 | ||
cdd50823 ZK |
8849 | ################################################################################ |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5 | |
8851 | $as_echo_n "checking whether to build LVMetaD... " >&6; } | |
8852 | # Check whether --enable-lvmetad was given. | |
8853 | if test "${enable_lvmetad+set}" = set; then : | |
8854 | enableval=$enable_lvmetad; LVMETAD=$enableval | |
8855 | fi | |
8856 | ||
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5 | |
8858 | $as_echo "$LVMETAD" >&6; } | |
8859 | ||
8860 | BUILD_LVMETAD=$LVMETAD | |
8861 | ||
7126d8c2 AK |
8862 | if test x$BUILD_LVMETAD = xyes; then |
8863 | ||
8864 | $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h | |
8865 | ||
5723db01 PR |
8866 | |
8867 | ||
8868 | # Check whether --with-lvmetad-pidfile was given. | |
8869 | if test "${with_lvmetad_pidfile+set}" = set; then : | |
8870 | withval=$with_lvmetad_pidfile; LVMETAD_PIDFILE=$withval | |
8871 | else | |
8872 | LVMETAD_PIDFILE="$DEFAULT_PID_DIR/lvmetad.pid" | |
8873 | fi | |
8874 | ||
8875 | ||
8876 | cat >>confdefs.h <<_ACEOF | |
8877 | #define LVMETAD_PIDFILE "$LVMETAD_PIDFILE" | |
8878 | _ACEOF | |
8879 | ||
7126d8c2 AK |
8880 | fi |
8881 | ||
f11781c5 AK |
8882 | ################################################################################ |
8883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8884 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8885 | # Check whether --enable-udev_sync was given. | |
8886 | if test "${enable_udev_sync+set}" = set; then : | |
8887 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8888 | else |
f11781c5 | 8889 | UDEV_SYNC=no |
7a197a62 | 8890 | fi |
ad6254c5 | 8891 | |
f11781c5 AK |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8893 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8894 | |
f11781c5 | 8895 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8896 | if test x$PKGCONFIG_INIT != x1; then |
8897 | pkg_config_init | |
8898 | fi | |
7a197a62 | 8899 | |
d93275eb PR |
8900 | pkg_failed=no |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8902 | $as_echo_n "checking for UDEV... " >&6; } | |
8903 | ||
8904 | if test -n "$UDEV_CFLAGS"; then | |
8905 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8906 | elif test -n "$PKG_CONFIG"; then | |
8907 | if test -n "$PKG_CONFIG" && \ | |
8908 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8909 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8910 | ac_status=$? | |
8911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8912 | test $ac_status = 0; }; then | |
8913 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8914 | else |
d93275eb | 8915 | pkg_failed=yes |
f11781c5 | 8916 | fi |
d93275eb PR |
8917 | else |
8918 | pkg_failed=untried | |
f11781c5 | 8919 | fi |
d93275eb PR |
8920 | if test -n "$UDEV_LIBS"; then |
8921 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8922 | elif test -n "$PKG_CONFIG"; then | |
8923 | if test -n "$PKG_CONFIG" && \ | |
8924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8925 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8926 | ac_status=$? | |
8927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8928 | test $ac_status = 0; }; then | |
8929 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8930 | else |
d93275eb | 8931 | pkg_failed=yes |
68f2de6d | 8932 | fi |
d93275eb PR |
8933 | else |
8934 | pkg_failed=untried | |
8935 | fi | |
8936 | ||
8937 | ||
8938 | ||
8939 | if test $pkg_failed = yes; then | |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8941 | $as_echo "no" >&6; } | |
8942 | ||
8943 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8944 | _pkg_short_errors_supported=yes | |
8945 | else | |
8946 | _pkg_short_errors_supported=no | |
8947 | fi | |
8948 | if test $_pkg_short_errors_supported = yes; then | |
8949 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8950 | else | |
8951 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8952 | fi | |
8953 | # Put the nasty error message in config.log where it belongs | |
8954 | echo "$UDEV_PKG_ERRORS" >&5 | |
8955 | ||
8956 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8957 | ||
8958 | $UDEV_PKG_ERRORS | |
8959 | ||
8960 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8961 | installed software in a non-standard prefix. | |
8962 | ||
8963 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8964 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8965 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8966 | |
d93275eb PR |
8967 | elif test $pkg_failed = untried; then |
8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8969 | $as_echo "no" >&6; } | |
8970 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8972 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8973 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8974 | path to pkg-config. | |
8975 | ||
8976 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8977 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8978 | See the pkg-config man page for more details. | |
8979 | ||
8980 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8981 | See \`config.log' for more details" "$LINENO" 5; } | |
8982 | ||
8983 | else | |
8984 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8985 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8987 | $as_echo "yes" >&6; } | |
8988 | UDEV_PC="libudev" | |
8989 | fi | |
68f2de6d | 8990 | |
f11781c5 | 8991 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8992 | |
f11781c5 AK |
8993 | fi |
8994 | ||
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8996 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8997 | # Check whether --enable-udev_rules was given. | |
8998 | if test "${enable_udev_rules+set}" = set; then : | |
8999 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 9000 | else |
f11781c5 | 9001 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
9002 | fi |
9003 | ||
f11781c5 AK |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
9005 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 9006 | |
5723db01 PR |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5 |
9008 | $as_echo_n "checking whether to enable executable path detection in udev rules... " >&6; } | |
9009 | # Check whether --enable-udev_rule_exec_detection was given. | |
9010 | if test "${enable_udev_rule_exec_detection+set}" = set; then : | |
9011 | enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval | |
9012 | else | |
9013 | UDEV_RULE_EXEC_DETECTION=no | |
9014 | fi | |
9015 | ||
9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5 | |
9017 | $as_echo "$UDEV_RULE_EXEC_DETECTION" >&6; } | |
9018 | ||
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5 | |
9020 | $as_echo_n "checking whether udev supports built-in blkid... " >&6; } | |
9021 | test x$PKGCONFIG_INIT != x1 && pkg_config_init | |
9022 | if $($PKG_CONFIG --atleast-version=176 libudev); then | |
9023 | UDEV_HAS_BUILTIN_BLKID=yes | |
9024 | else | |
9025 | UDEV_HAS_BUILTIN_BLKID=no | |
b559a1e6 | 9026 | fi |
5723db01 PR |
9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 |
9028 | $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
b559a1e6 | 9029 | |
a5f46f6a | 9030 | ################################################################################ |
f11781c5 AK |
9031 | # Check whether --enable-compat was given. |
9032 | if test "${enable_compat+set}" = set; then : | |
9033 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9034 | else | |
9035 | DM_COMPAT=no | |
9036 | fi | |
a5f46f6a | 9037 | |
f11781c5 | 9038 | |
2061c0ec AK |
9039 | if test x$DM_COMPAT = xyes; then |
9040 | as_fn_error $? "--enable-compat is not currently supported. | |
9041 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
9042 | ioctl protocol is supported. | |
9043 | " "$LINENO" 5 | |
9044 | fi | |
9045 | ||
f11781c5 AK |
9046 | ################################################################################ |
9047 | # Check whether --enable-units-compat was given. | |
9048 | if test "${enable_units_compat+set}" = set; then : | |
9049 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 9050 | else |
f11781c5 | 9051 | UNITS_COMPAT=no |
a5f46f6a AK |
9052 | fi |
9053 | ||
9054 | ||
f11781c5 | 9055 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 9056 | |
f11781c5 AK |
9057 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
9058 | ||
9059 | fi | |
9060 | ||
9061 | ################################################################################ | |
9062 | # Check whether --enable-ioctl was given. | |
9063 | if test "${enable_ioctl+set}" = set; then : | |
9064 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
9065 | fi |
9066 | ||
a5f46f6a | 9067 | |
ad6254c5 | 9068 | ################################################################################ |
f11781c5 AK |
9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
9070 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
9071 | # Check whether --enable-o_direct was given. | |
9072 | if test "${enable_o_direct+set}" = set; then : | |
9073 | enableval=$enable_o_direct; ODIRECT=$enableval | |
9074 | fi | |
ad6254c5 | 9075 | |
f11781c5 AK |
9076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
9077 | $as_echo "$ODIRECT" >&6; } | |
9078 | ||
9079 | if test x$ODIRECT = xyes; then | |
9080 | ||
9081 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 9082 | |
ad6254c5 | 9083 | fi |
ad6254c5 | 9084 | |
f11781c5 AK |
9085 | ################################################################################ |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
9087 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9088 | # Check whether --enable-applib was given. | |
9089 | if test "${enable_applib+set}" = set; then : | |
9090 | enableval=$enable_applib; APPLIB=$enableval | |
9091 | else | |
9092 | APPLIB=no | |
ad6254c5 | 9093 | fi |
7a197a62 | 9094 | |
f11781c5 AK |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
9096 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 9097 | |
f11781c5 AK |
9098 | test x$APPLIB = xyes \ |
9099 | && LVM2APP_LIB=-llvm2app \ | |
9100 | || LVM2APP_LIB= | |
ad6254c5 | 9101 | |
f11781c5 AK |
9102 | ################################################################################ |
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
9104 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
9105 | # Check whether --enable-cmdlib was given. | |
9106 | if test "${enable_cmdlib+set}" = set; then : | |
9107 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
9108 | else | |
9109 | CMDLIB=no | |
ad6254c5 | 9110 | fi |
7a197a62 | 9111 | |
f11781c5 AK |
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
9113 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 9114 | |
f11781c5 AK |
9115 | test x$CMDLIB = xyes \ |
9116 | && LVM2CMD_LIB=-llvm2cmd \ | |
9117 | || LVM2CMD_LIB= | |
9118 | ||
9119 | ################################################################################ | |
9120 | # Check whether --enable-pkgconfig was given. | |
9121 | if test "${enable_pkgconfig+set}" = set; then : | |
9122 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 9123 | else |
f11781c5 | 9124 | PKGCONFIG=no |
ad6254c5 | 9125 | fi |
ad6254c5 | 9126 | |
ad6254c5 | 9127 | |
f11781c5 AK |
9128 | ################################################################################ |
9129 | # Check whether --enable-write_install was given. | |
9130 | if test "${enable_write_install+set}" = set; then : | |
9131 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 9132 | else |
f11781c5 | 9133 | WRITE_INSTALL=no |
ad6254c5 AK |
9134 | fi |
9135 | ||
ad6254c5 | 9136 | |
f11781c5 AK |
9137 | ################################################################################ |
9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
9139 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
9140 | # Check whether --enable-fsadm was given. | |
9141 | if test "${enable_fsadm+set}" = set; then : | |
9142 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
9143 | fi |
9144 | ||
f11781c5 AK |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
9146 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 9147 | |
f11781c5 AK |
9148 | ################################################################################ |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
9150 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
9151 | # Check whether --enable-dmeventd was given. | |
9152 | if test "${enable_dmeventd+set}" = set; then : | |
9153 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9154 | fi | |
ad6254c5 | 9155 | |
f11781c5 AK |
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9157 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9158 | |
f11781c5 | 9159 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9160 | |
f11781c5 AK |
9161 | if test x$DMEVENTD = xyes; then |
9162 | if test x$MIRRORS != xinternal; then | |
9163 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9164 | " "$LINENO" 5 | |
9165 | fi | |
9166 | if test x$CMDLIB = xno; then | |
9167 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9168 | " "$LINENO" 5 | |
9169 | fi | |
9170 | fi | |
ad6254c5 | 9171 | |
f11781c5 | 9172 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9173 | |
f11781c5 | 9174 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9175 | |
f11781c5 | 9176 | fi |
ad6254c5 | 9177 | |
f11781c5 | 9178 | ################################################################################ |
ad6254c5 | 9179 | |
f11781c5 AK |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9181 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9182 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9183 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9184 | else |
f11781c5 AK |
9185 | ac_check_lib_save_LIBS=$LIBS |
9186 | LIBS="-lc $LIBS" | |
9187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9188 | /* end confdefs.h. */ |
f11781c5 AK |
9189 | |
9190 | /* Override any GCC internal prototype to avoid an error. | |
9191 | Use char because int might match the return type of a GCC | |
9192 | builtin and then its argument prototype would still apply. */ | |
9193 | #ifdef __cplusplus | |
9194 | extern "C" | |
9195 | #endif | |
9196 | char getline (); | |
9197 | int | |
9198 | main () | |
9199 | { | |
9200 | return getline (); | |
9201 | ; | |
9202 | return 0; | |
9203 | } | |
ad6254c5 | 9204 | _ACEOF |
f11781c5 AK |
9205 | if ac_fn_c_try_link "$LINENO"; then : |
9206 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9207 | else |
f11781c5 AK |
9208 | ac_cv_lib_c_getline=no |
9209 | fi | |
9210 | rm -f core conftest.err conftest.$ac_objext \ | |
9211 | conftest$ac_exeext conftest.$ac_ext | |
9212 | LIBS=$ac_check_lib_save_LIBS | |
9213 | fi | |
9214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9215 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9216 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9217 | ||
9218 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9219 | |
ad6254c5 | 9220 | fi |
7a197a62 | 9221 | |
ad6254c5 | 9222 | |
f11781c5 AK |
9223 | ################################################################################ |
9224 | ||
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9226 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9227 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9228 | $as_echo_n "(cached) " >&6 | |
9229 | else | |
9230 | ac_check_lib_save_LIBS=$LIBS | |
9231 | LIBS="-lc $LIBS" | |
9232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9233 | /* end confdefs.h. */ |
f11781c5 AK |
9234 | |
9235 | /* Override any GCC internal prototype to avoid an error. | |
9236 | Use char because int might match the return type of a GCC | |
9237 | builtin and then its argument prototype would still apply. */ | |
9238 | #ifdef __cplusplus | |
9239 | extern "C" | |
9240 | #endif | |
9241 | char canonicalize_file_name (); | |
9242 | int | |
9243 | main () | |
9244 | { | |
9245 | return canonicalize_file_name (); | |
9246 | ; | |
9247 | return 0; | |
9248 | } | |
ad6254c5 | 9249 | _ACEOF |
f11781c5 AK |
9250 | if ac_fn_c_try_link "$LINENO"; then : |
9251 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9252 | else |
f11781c5 AK |
9253 | ac_cv_lib_c_canonicalize_file_name=no |
9254 | fi | |
9255 | rm -f core conftest.err conftest.$ac_objext \ | |
9256 | conftest$ac_exeext conftest.$ac_ext | |
9257 | LIBS=$ac_check_lib_save_LIBS | |
9258 | fi | |
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9260 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9261 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9262 | ||
9263 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9264 | |
ad6254c5 | 9265 | fi |
7a197a62 | 9266 | |
ad6254c5 | 9267 | |
f11781c5 AK |
9268 | ################################################################################ |
9269 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9270 | then exec_prefix=""; | |
9271 | fi; | |
7a197a62 | 9272 | |
f11781c5 AK |
9273 | ################################################################################ |
9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9275 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9276 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9277 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9278 | else |
f11781c5 AK |
9279 | ac_check_lib_save_LIBS=$LIBS |
9280 | LIBS="-ldl $LIBS" | |
9281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9282 | /* end confdefs.h. */ | |
ad6254c5 | 9283 | |
f11781c5 AK |
9284 | /* Override any GCC internal prototype to avoid an error. |
9285 | Use char because int might match the return type of a GCC | |
9286 | builtin and then its argument prototype would still apply. */ | |
9287 | #ifdef __cplusplus | |
9288 | extern "C" | |
9289 | #endif | |
9290 | char dlopen (); | |
9291 | int | |
9292 | main () | |
9293 | { | |
9294 | return dlopen (); | |
9295 | ; | |
9296 | return 0; | |
9297 | } | |
ad6254c5 | 9298 | _ACEOF |
f11781c5 AK |
9299 | if ac_fn_c_try_link "$LINENO"; then : |
9300 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9301 | else |
f11781c5 | 9302 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9303 | fi |
f11781c5 AK |
9304 | rm -f core conftest.err conftest.$ac_objext \ |
9305 | conftest$ac_exeext conftest.$ac_ext | |
9306 | LIBS=$ac_check_lib_save_LIBS | |
9307 | fi | |
9308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9309 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9310 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9311 | |
ad6254c5 | 9312 | |
f11781c5 | 9313 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9314 | |
f11781c5 AK |
9315 | DL_LIBS="-ldl" |
9316 | HAVE_LIBDL=yes | |
9317 | else | |
795ca3e5 | 9318 | |
f11781c5 AK |
9319 | DL_LIBS= |
9320 | HAVE_LIBDL=no | |
9321 | fi | |
8106cdd5 | 9322 | |
ad6254c5 | 9323 | |
f11781c5 AK |
9324 | ################################################################################ |
9325 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9326 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9327 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9328 | \) -a "x$STATIC_LINK" = xyes ]; |
9329 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9330 | " "$LINENO" 5 | |
9331 | fi | |
ad6254c5 | 9332 | |
f11781c5 AK |
9333 | ################################################################################ |
9334 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9336 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9337 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9338 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9339 | else |
f11781c5 AK |
9340 | ac_check_lib_save_LIBS=$LIBS |
9341 | LIBS="-lpthread $LIBS" | |
9342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9343 | /* end confdefs.h. */ |
8a2fc586 | 9344 | |
f11781c5 AK |
9345 | /* Override any GCC internal prototype to avoid an error. |
9346 | Use char because int might match the return type of a GCC | |
9347 | builtin and then its argument prototype would still apply. */ | |
9348 | #ifdef __cplusplus | |
9349 | extern "C" | |
ad6254c5 | 9350 | #endif |
f11781c5 AK |
9351 | char pthread_mutex_lock (); |
9352 | int | |
9353 | main () | |
9354 | { | |
9355 | return pthread_mutex_lock (); | |
9356 | ; | |
9357 | return 0; | |
9358 | } | |
9359 | _ACEOF | |
9360 | if ac_fn_c_try_link "$LINENO"; then : | |
9361 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9362 | else | |
9363 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9364 | fi | |
9365 | rm -f core conftest.err conftest.$ac_objext \ | |
9366 | conftest$ac_exeext conftest.$ac_ext | |
9367 | LIBS=$ac_check_lib_save_LIBS | |
9368 | fi | |
9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9370 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9371 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9372 | PTHREAD_LIBS="-lpthread" | |
9373 | else | |
9374 | hard_bailout | |
9375 | fi | |
9376 | ||
9377 | fi | |
9378 | ||
9379 | ################################################################################ | |
9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9381 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9382 | # Check whether --enable-selinux was given. | |
9383 | if test "${enable_selinux+set}" = set; then : | |
9384 | enableval=$enable_selinux; SELINUX=$enableval | |
9385 | fi | |
9386 | ||
9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9388 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9389 | |
f11781c5 AK |
9390 | ################################################################################ |
9391 | if test x$SELINUX = xyes; then | |
9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9393 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9394 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9395 | $as_echo_n "(cached) " >&6 | |
9396 | else | |
9397 | ac_check_lib_save_LIBS=$LIBS | |
9398 | LIBS="-lsepol $LIBS" | |
9399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9400 | /* end confdefs.h. */ | |
8a2fc586 | 9401 | |
7a197a62 AK |
9402 | /* Override any GCC internal prototype to avoid an error. |
9403 | Use char because int might match the return type of a GCC | |
9404 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9405 | #ifdef __cplusplus |
9406 | extern "C" | |
ad6254c5 | 9407 | #endif |
f11781c5 | 9408 | char sepol_check_context (); |
ad6254c5 AK |
9409 | int |
9410 | main () | |
9411 | { | |
f11781c5 | 9412 | return sepol_check_context (); |
ad6254c5 AK |
9413 | ; |
9414 | return 0; | |
9415 | } | |
9416 | _ACEOF | |
f11781c5 AK |
9417 | if ac_fn_c_try_link "$LINENO"; then : |
9418 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9419 | else |
f11781c5 AK |
9420 | ac_cv_lib_sepol_sepol_check_context=no |
9421 | fi | |
9422 | rm -f core conftest.err conftest.$ac_objext \ | |
9423 | conftest$ac_exeext conftest.$ac_ext | |
9424 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9425 | fi |
f11781c5 AK |
9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9427 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9428 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9429 | |
80992638 | 9430 | |
f11781c5 AK |
9431 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9432 | ||
9433 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9434 | fi |
795ca3e5 | 9435 | |
f11781c5 AK |
9436 | |
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9438 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9439 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9440 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9441 | else |
f11781c5 AK |
9442 | ac_check_lib_save_LIBS=$LIBS |
9443 | LIBS="-lselinux $LIBS" | |
9444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9445 | /* end confdefs.h. */ |
80992638 | 9446 | |
7a197a62 AK |
9447 | /* Override any GCC internal prototype to avoid an error. |
9448 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9449 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9450 | #ifdef __cplusplus |
9451 | extern "C" | |
9452 | #endif | |
f11781c5 | 9453 | char is_selinux_enabled (); |
ad6254c5 AK |
9454 | int |
9455 | main () | |
9456 | { | |
f11781c5 | 9457 | return is_selinux_enabled (); |
ad6254c5 AK |
9458 | ; |
9459 | return 0; | |
9460 | } | |
9461 | _ACEOF | |
f11781c5 AK |
9462 | if ac_fn_c_try_link "$LINENO"; then : |
9463 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9464 | else |
f11781c5 | 9465 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9466 | fi |
f11781c5 AK |
9467 | rm -f core conftest.err conftest.$ac_objext \ |
9468 | conftest$ac_exeext conftest.$ac_ext | |
9469 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9470 | fi |
f11781c5 AK |
9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9472 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9473 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9474 | |
f11781c5 AK |
9475 | for ac_header in selinux/selinux.h |
9476 | do : | |
9477 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9478 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9479 | cat >>confdefs.h <<_ACEOF | |
9480 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9481 | _ACEOF |
795ca3e5 | 9482 | |
25fbec5b | 9483 | else |
f11781c5 | 9484 | hard_bailout |
795ca3e5 | 9485 | fi |
795ca3e5 | 9486 | |
f11781c5 | 9487 | done |
795ca3e5 | 9488 | |
f11781c5 AK |
9489 | for ac_header in selinux/label.h |
9490 | do : | |
9491 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9492 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9493 | cat >>confdefs.h <<_ACEOF | |
9494 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9495 | _ACEOF |
ad6254c5 | 9496 | |
ad6254c5 | 9497 | fi |
7a197a62 | 9498 | |
f11781c5 | 9499 | done |
7a197a62 | 9500 | |
ad6254c5 | 9501 | |
f11781c5 | 9502 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9503 | |
f11781c5 AK |
9504 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9505 | SELINUX_PC="libselinux" | |
9506 | HAVE_SELINUX=yes | |
ad6254c5 | 9507 | else |
8106cdd5 | 9508 | |
f11781c5 AK |
9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9510 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9511 | SELINUX_LIBS= | |
9512 | SELINUX_PC= | |
9513 | HAVE_SELINUX=no | |
795ca3e5 | 9514 | fi |
ad6254c5 | 9515 | |
795ca3e5 AK |
9516 | fi |
9517 | ||
f11781c5 AK |
9518 | ################################################################################ |
9519 | if test x$REALTIME = xyes; then | |
9520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9521 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9522 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9523 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9524 | else |
f11781c5 AK |
9525 | ac_check_lib_save_LIBS=$LIBS |
9526 | LIBS="-lrt $LIBS" | |
9527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9528 | /* end confdefs.h. */ |
ad6254c5 | 9529 | |
f11781c5 AK |
9530 | /* Override any GCC internal prototype to avoid an error. |
9531 | Use char because int might match the return type of a GCC | |
9532 | builtin and then its argument prototype would still apply. */ | |
9533 | #ifdef __cplusplus | |
9534 | extern "C" | |
9535 | #endif | |
9536 | char clock_gettime (); | |
ad6254c5 AK |
9537 | int |
9538 | main () | |
9539 | { | |
f11781c5 | 9540 | return clock_gettime (); |
ad6254c5 AK |
9541 | ; |
9542 | return 0; | |
9543 | } | |
9544 | _ACEOF | |
f11781c5 AK |
9545 | if ac_fn_c_try_link "$LINENO"; then : |
9546 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9547 | else |
f11781c5 | 9548 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9549 | fi |
f11781c5 AK |
9550 | rm -f core conftest.err conftest.$ac_objext \ |
9551 | conftest$ac_exeext conftest.$ac_ext | |
9552 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9553 | fi |
f11781c5 AK |
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9555 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9556 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9557 | HAVE_REALTIME=yes | |
9558 | else | |
9559 | HAVE_REALTIME=no | |
8106cdd5 | 9560 | fi |
ad6254c5 | 9561 | |
ad6254c5 | 9562 | |
f11781c5 | 9563 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9564 | |
f11781c5 | 9565 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9566 | |
f11781c5 AK |
9567 | LIBS="-lrt $LIBS" |
9568 | else | |
9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9570 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9571 | fi | |
9572 | fi | |
9573 | ||
9574 | ################################################################################ | |
9575 | for ac_header in getopt.h | |
9576 | do : | |
9577 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9578 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9579 | cat >>confdefs.h <<_ACEOF | |
9580 | #define HAVE_GETOPT_H 1 | |
9581 | _ACEOF | |
9582 | ||
9583 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9584 | |
ad6254c5 | 9585 | fi |
7a197a62 | 9586 | |
f11781c5 | 9587 | done |
ad6254c5 | 9588 | |
7a197a62 | 9589 | |
f11781c5 AK |
9590 | ################################################################################ |
9591 | if test x$READLINE != xno; then | |
9592 | lvm_saved_libs=$LIBS | |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9594 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9595 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9596 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9597 | else |
f11781c5 AK |
9598 | ac_func_search_save_LIBS=$LIBS |
9599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9600 | /* end confdefs.h. */ | |
ad6254c5 | 9601 | |
f11781c5 AK |
9602 | /* Override any GCC internal prototype to avoid an error. |
9603 | Use char because int might match the return type of a GCC | |
9604 | builtin and then its argument prototype would still apply. */ | |
9605 | #ifdef __cplusplus | |
9606 | extern "C" | |
9607 | #endif | |
9608 | char tgetent (); | |
9609 | int | |
9610 | main () | |
9611 | { | |
9612 | return tgetent (); | |
9613 | ; | |
9614 | return 0; | |
9615 | } | |
ad6254c5 | 9616 | _ACEOF |
f11781c5 AK |
9617 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9618 | if test -z "$ac_lib"; then | |
9619 | ac_res="none required" | |
9620 | else | |
9621 | ac_res=-l$ac_lib | |
9622 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9623 | fi | |
9624 | if ac_fn_c_try_link "$LINENO"; then : | |
9625 | ac_cv_search_tgetent=$ac_res | |
9626 | fi | |
9627 | rm -f core conftest.err conftest.$ac_objext \ | |
9628 | conftest$ac_exeext | |
9629 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9630 | break | |
9631 | fi | |
9632 | done | |
9633 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9634 | |
80992638 | 9635 | else |
f11781c5 | 9636 | ac_cv_search_tgetent=no |
b896caa1 | 9637 | fi |
f11781c5 AK |
9638 | rm conftest.$ac_ext |
9639 | LIBS=$ac_func_search_save_LIBS | |
9640 | fi | |
9641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9642 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9643 | ac_res=$ac_cv_search_tgetent | |
9644 | if test "$ac_res" != no; then : | |
9645 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9646 | READLINE_LIBS=$ac_cv_search_tgetent | |
9647 | else | |
ad6254c5 | 9648 | |
f11781c5 AK |
9649 | if test "$READLINE" = yes; then |
9650 | as_fn_error $? "termcap could not be found which is required for the | |
9651 | --enable-readline option (which is enabled by default). Either disable readline | |
9652 | support with --disable-readline or download and install termcap from: | |
9653 | ftp.gnu.org/gnu/termcap | |
9654 | Note: if you are using precompiled packages you will also need the development | |
9655 | package as well (which may be called termcap-devel or something similar). | |
9656 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9657 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9658 | fi | |
9659 | fi | |
b896caa1 | 9660 | |
f11781c5 AK |
9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9662 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9663 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9664 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9665 | else |
f11781c5 AK |
9666 | ac_check_lib_save_LIBS=$LIBS |
9667 | LIBS="-lreadline $LIBS" | |
9668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9669 | /* end confdefs.h. */ |
8a2fc586 | 9670 | |
f11781c5 AK |
9671 | /* Override any GCC internal prototype to avoid an error. |
9672 | Use char because int might match the return type of a GCC | |
9673 | builtin and then its argument prototype would still apply. */ | |
9674 | #ifdef __cplusplus | |
9675 | extern "C" | |
ad6254c5 | 9676 | #endif |
f11781c5 AK |
9677 | char readline (); |
9678 | int | |
9679 | main () | |
9680 | { | |
9681 | return readline (); | |
9682 | ; | |
9683 | return 0; | |
9684 | } | |
9685 | _ACEOF | |
9686 | if ac_fn_c_try_link "$LINENO"; then : | |
9687 | ac_cv_lib_readline_readline=yes | |
9688 | else | |
9689 | ac_cv_lib_readline_readline=no | |
9690 | fi | |
9691 | rm -f core conftest.err conftest.$ac_objext \ | |
9692 | conftest$ac_exeext conftest.$ac_ext | |
9693 | LIBS=$ac_check_lib_save_LIBS | |
9694 | fi | |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9696 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9697 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9698 | ||
8a2fc586 | 9699 | |
f11781c5 AK |
9700 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9701 | ||
9702 | LIBS=$lvm_saved_libs | |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9704 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9705 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9706 | $as_echo_n "(cached) " >&6 | |
9707 | else | |
9708 | ac_check_lib_save_LIBS=$LIBS | |
9709 | LIBS="-lreadline $LIBS" | |
9710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9711 | /* end confdefs.h. */ | |
8a2fc586 | 9712 | |
7a197a62 AK |
9713 | /* Override any GCC internal prototype to avoid an error. |
9714 | Use char because int might match the return type of a GCC | |
9715 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9716 | #ifdef __cplusplus |
9717 | extern "C" | |
ad6254c5 | 9718 | #endif |
f11781c5 | 9719 | char rl_line_buffer (); |
ad6254c5 AK |
9720 | int |
9721 | main () | |
9722 | { | |
f11781c5 | 9723 | return rl_line_buffer (); |
ad6254c5 AK |
9724 | ; |
9725 | return 0; | |
9726 | } | |
9727 | _ACEOF | |
f11781c5 AK |
9728 | if ac_fn_c_try_link "$LINENO"; then : |
9729 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9730 | else |
f11781c5 AK |
9731 | ac_cv_lib_readline_rl_line_buffer=no |
9732 | fi | |
9733 | rm -f core conftest.err conftest.$ac_objext \ | |
9734 | conftest$ac_exeext conftest.$ac_ext | |
9735 | LIBS=$ac_check_lib_save_LIBS | |
9736 | fi | |
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9738 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9739 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9740 | READLINE_LIBS="-lreadline" | |
9741 | else | |
9742 | ||
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9744 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9745 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9746 | |
ad6254c5 | 9747 | fi |
7a197a62 | 9748 | |
f11781c5 AK |
9749 | else |
9750 | ||
9751 | READLINE_LIBS= | |
9752 | if test "$READLINE" = yes; then | |
9753 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9754 | --enable-readline option (which is enabled by default). Either disable readline | |
9755 | support with --disable-readline or download and install readline from: | |
9756 | ftp.gnu.org/gnu/readline | |
9757 | Note: if you are using precompiled packages you will also need the development | |
9758 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9759 | fi | |
ad6254c5 | 9760 | fi |
f11781c5 AK |
9761 | |
9762 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9763 | for ac_func in rl_completion_matches | |
9764 | do : | |
9765 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9766 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9767 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9768 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9769 | _ACEOF |
9770 | ||
ad6254c5 AK |
9771 | fi |
9772 | done | |
9773 | ||
f11781c5 | 9774 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9775 | fi |
9776 | ||
f11781c5 AK |
9777 | ################################################################################ |
9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9779 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9780 | # Check whether --enable-nls was given. | |
9781 | if test "${enable_nls+set}" = set; then : | |
9782 | enableval=$enable_nls; INTL=$enableval | |
9783 | else | |
9784 | INTL=no | |
9785 | fi | |
d911ec67 | 9786 | |
f11781c5 AK |
9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9788 | $as_echo "$INTL" >&6; } | |
9789 | ||
9790 | if test x$INTL = xyes; then | |
9791 | # FIXME - Move this - can be device-mapper too | |
9792 | INTL_PACKAGE="lvm2" | |
9793 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9794 | set dummy msgfmt; ac_word=$2 | |
9795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9796 | $as_echo_n "checking for $ac_word... " >&6; } | |
9797 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9798 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9799 | else |
f11781c5 AK |
9800 | case $MSGFMT in |
9801 | [\\/]* | ?:[\\/]*) | |
9802 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9803 | ;; | |
9804 | *) | |
9805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9806 | for as_dir in $PATH | |
9807 | do | |
9808 | IFS=$as_save_IFS | |
9809 | test -z "$as_dir" && as_dir=. | |
9810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9812 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9814 | break 2 | |
9815 | fi | |
9816 | done | |
9817 | done | |
9818 | IFS=$as_save_IFS | |
9819 | ||
9820 | ;; | |
d911ec67 | 9821 | esac |
f11781c5 AK |
9822 | fi |
9823 | MSGFMT=$ac_cv_path_MSGFMT | |
9824 | if test -n "$MSGFMT"; then | |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9826 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9827 | else |
f11781c5 AK |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9829 | $as_echo "no" >&6; } | |
9830 | fi | |
d911ec67 | 9831 | |
f11781c5 AK |
9832 | |
9833 | if [ "x$MSGFMT" == x ]; | |
9834 | then as_fn_error $? "msgfmt not found in path $PATH | |
9835 | " "$LINENO" 5 | |
9836 | fi; | |
9837 | ||
9838 | ||
9839 | # Check whether --with-localedir was given. | |
9840 | if test "${with_localedir+set}" = set; then : | |
9841 | withval=$with_localedir; LOCALEDIR=$withval | |
9842 | else | |
9843 | LOCALEDIR='${prefix}/share/locale' | |
9844 | fi | |
9845 | ||
9846 | fi | |
9847 | ||
9848 | ################################################################################ | |
9849 | ||
9850 | # Check whether --with-confdir was given. | |
9851 | if test "${with_confdir+set}" = set; then : | |
9852 | withval=$with_confdir; CONFDIR=$withval | |
9853 | else | |
9854 | CONFDIR="/etc" | |
9855 | fi | |
9856 | ||
9857 | ||
9858 | ||
9859 | # Check whether --with-staticdir was given. | |
9860 | if test "${with_staticdir+set}" = set; then : | |
9861 | withval=$with_staticdir; STATICDIR=$withval | |
9862 | else | |
9863 | STATICDIR='${exec_prefix}/sbin' | |
9864 | fi | |
9865 | ||
9866 | ||
9867 | ||
9868 | # Check whether --with-usrlibdir was given. | |
9869 | if test "${with_usrlibdir+set}" = set; then : | |
9870 | withval=$with_usrlibdir; usrlibdir=$withval | |
9871 | else | |
9872 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9873 | fi |
9874 | ||
d911ec67 | 9875 | |
d911ec67 | 9876 | |
f11781c5 AK |
9877 | # Check whether --with-usrsbindir was given. |
9878 | if test "${with_usrsbindir+set}" = set; then : | |
9879 | withval=$with_usrsbindir; usrsbindir=$withval | |
9880 | else | |
9881 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9882 | fi |
9883 | ||
d911ec67 | 9884 | |
f11781c5 | 9885 | ################################################################################ |
d911ec67 | 9886 | |
f11781c5 AK |
9887 | # Check whether --with-udev_prefix was given. |
9888 | if test "${with_udev_prefix+set}" = set; then : | |
9889 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9890 | else |
f11781c5 | 9891 | udev_prefix='${exec_prefix}' |
d911ec67 | 9892 | fi |
d911ec67 | 9893 | |
f11781c5 AK |
9894 | |
9895 | ||
9896 | # Check whether --with-udevdir was given. | |
9897 | if test "${with_udevdir+set}" = set; then : | |
9898 | withval=$with_udevdir; udevdir=$withval | |
9899 | else | |
9900 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9901 | fi |
f11781c5 AK |
9902 | |
9903 | ||
e587cb6a PR |
9904 | ################################################################################ |
9905 | ||
9906 | # Check whether --with-systemdsystemunitdir was given. | |
9907 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
9908 | withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval | |
9909 | else | |
767ce95a ZK |
9910 | test x$PKGCONFIG_INIT != x1 && pkg_config_init |
9911 | pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | |
e587cb6a PR |
9912 | fi |
9913 | ||
9914 | ||
9915 | if test -n "$pkg_systemdsystemunitdir"; then | |
9916 | systemdsystemunitdir=$pkg_systemdsystemunitdir; | |
9917 | fi | |
9918 | ||
9919 | if test -z "$systemdsystemunitdir"; then | |
9920 | systemdsystemunitdir='/lib/systemd/system'; | |
9921 | fi | |
4417a8bd PR |
9922 | ################################################################################ |
9923 | ||
9924 | # Check whether --with-tmpfilesdir was given. | |
9925 | if test "${with_tmpfilesdir+set}" = set; then : | |
9926 | withval=$with_tmpfilesdir; tmpfilesdir=$withval | |
9927 | else | |
9928 | tmpfilesdir='${sysconfdir}/tmpfiles.d' | |
9929 | fi | |
9930 | ||
f11781c5 AK |
9931 | ################################################################################ |
9932 | if test x$READLINE = xyes; then | |
9933 | for ac_header in readline/readline.h readline/history.h | |
9934 | do : | |
9935 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9936 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9937 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9938 | cat >>confdefs.h <<_ACEOF |
9939 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9940 | _ACEOF | |
9941 | ||
9942 | else | |
f11781c5 | 9943 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9944 | fi |
9945 | ||
9946 | done | |
9947 | ||
9948 | fi | |
9949 | ||
f11781c5 AK |
9950 | if test x$CLVMD != xnone; then |
9951 | 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 | |
9952 | do : | |
9953 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9954 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9955 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9956 | cat >>confdefs.h <<_ACEOF | |
9957 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9958 | _ACEOF |
ad6254c5 | 9959 | |
f11781c5 AK |
9960 | else |
9961 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9962 | fi |
7a197a62 | 9963 | |
f11781c5 | 9964 | done |
ad6254c5 | 9965 | |
f11781c5 AK |
9966 | for ac_func in dup2 getmntent memmove select socket |
9967 | do : | |
9968 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9969 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9970 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9971 | cat >>confdefs.h <<_ACEOF | |
9972 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9973 | _ACEOF |
ad6254c5 | 9974 | |
f11781c5 AK |
9975 | else |
9976 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9977 | fi |
f11781c5 | 9978 | done |
7a197a62 | 9979 | |
f11781c5 AK |
9980 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9981 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9983 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9984 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9985 | $as_echo_n "(cached) " >&6 | |
9986 | else | |
9987 | ac_func_search_save_LIBS=$LIBS | |
9988 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9989 | /* end confdefs.h. */ | |
ad6254c5 | 9990 | |
f11781c5 AK |
9991 | /* Override any GCC internal prototype to avoid an error. |
9992 | Use char because int might match the return type of a GCC | |
9993 | builtin and then its argument prototype would still apply. */ | |
9994 | #ifdef __cplusplus | |
9995 | extern "C" | |
9996 | #endif | |
9997 | char getmntent (); | |
9998 | int | |
9999 | main () | |
10000 | { | |
10001 | return getmntent (); | |
10002 | ; | |
10003 | return 0; | |
10004 | } | |
10005 | _ACEOF | |
10006 | for ac_lib in '' sun seq gen; do | |
10007 | if test -z "$ac_lib"; then | |
10008 | ac_res="none required" | |
10009 | else | |
10010 | ac_res=-l$ac_lib | |
10011 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10012 | fi | |
10013 | if ac_fn_c_try_link "$LINENO"; then : | |
10014 | ac_cv_search_getmntent=$ac_res | |
10015 | fi | |
10016 | rm -f core conftest.err conftest.$ac_objext \ | |
10017 | conftest$ac_exeext | |
10018 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
10019 | break | |
10020 | fi | |
10021 | done | |
10022 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 10023 | |
ad6254c5 | 10024 | else |
f11781c5 | 10025 | ac_cv_search_getmntent=no |
795ca3e5 | 10026 | fi |
f11781c5 AK |
10027 | rm conftest.$ac_ext |
10028 | LIBS=$ac_func_search_save_LIBS | |
10029 | fi | |
10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
10031 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
10032 | ac_res=$ac_cv_search_getmntent | |
10033 | if test "$ac_res" != no; then : | |
10034 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10035 | ac_cv_func_getmntent=yes | |
10036 | ||
10037 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 10038 | |
f11781c5 AK |
10039 | else |
10040 | ac_cv_func_getmntent=no | |
8106cdd5 | 10041 | fi |
f11781c5 AK |
10042 | |
10043 | ||
10044 | for ac_header in sys/select.h sys/socket.h | |
10045 | do : | |
10046 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10047 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10048 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 10049 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10050 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10051 | _ACEOF |
795ca3e5 | 10052 | |
795ca3e5 AK |
10053 | fi |
10054 | ||
ad6254c5 | 10055 | done |
80992638 | 10056 | |
f11781c5 AK |
10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
10058 | $as_echo_n "checking types of arguments for select... " >&6; } | |
10059 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 10060 | $as_echo_n "(cached) " >&6 |
83912faa | 10061 | else |
f11781c5 AK |
10062 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
10063 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
10064 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
10065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
10066 | /* end confdefs.h. */ |
10067 | $ac_includes_default | |
f11781c5 AK |
10068 | #ifdef HAVE_SYS_SELECT_H |
10069 | # include <sys/select.h> | |
10070 | #endif | |
10071 | #ifdef HAVE_SYS_SOCKET_H | |
10072 | # include <sys/socket.h> | |
10073 | #endif | |
10074 | ||
10075 | int | |
10076 | main () | |
10077 | { | |
10078 | extern int select ($ac_arg1, | |
10079 | $ac_arg234, $ac_arg234, $ac_arg234, | |
10080 | $ac_arg5); | |
10081 | ; | |
10082 | return 0; | |
10083 | } | |
ad6254c5 | 10084 | _ACEOF |
f11781c5 AK |
10085 | if ac_fn_c_try_compile "$LINENO"; then : |
10086 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
10087 | fi | |
10088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10089 | done | |
10090 | done | |
10091 | done | |
10092 | # Provide a safe default value. | |
10093 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 10094 | |
ad6254c5 | 10095 | fi |
f11781c5 AK |
10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
10097 | $as_echo "$ac_cv_func_select_args" >&6; } | |
10098 | ac_save_IFS=$IFS; IFS=',' | |
10099 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10100 | IFS=$ac_save_IFS | |
10101 | shift | |
7a197a62 | 10102 | |
f11781c5 AK |
10103 | cat >>confdefs.h <<_ACEOF |
10104 | #define SELECT_TYPE_ARG1 $1 | |
10105 | _ACEOF | |
ad6254c5 | 10106 | |
f11781c5 AK |
10107 | |
10108 | cat >>confdefs.h <<_ACEOF | |
10109 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 10110 | _ACEOF |
f11781c5 AK |
10111 | |
10112 | ||
10113 | cat >>confdefs.h <<_ACEOF | |
10114 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 10115 | _ACEOF |
ad6254c5 | 10116 | |
f11781c5 AK |
10117 | rm -f conftest* |
10118 | ||
ad6254c5 | 10119 | fi |
7a197a62 | 10120 | |
f11781c5 AK |
10121 | if test x$CLUSTER != xnone; then |
10122 | for ac_header in sys/socket.h sys/un.h | |
10123 | do : | |
10124 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10125 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10126 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10127 | cat >>confdefs.h <<_ACEOF | |
10128 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10129 | _ACEOF | |
ad6254c5 | 10130 | |
f11781c5 AK |
10131 | else |
10132 | as_fn_error $? "bailing out" "$LINENO" 5 | |
10133 | fi | |
10134 | ||
10135 | done | |
10136 | ||
10137 | for ac_func in socket | |
10138 | do : | |
10139 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
10140 | if test "x$ac_cv_func_socket" = x""yes; then : | |
10141 | cat >>confdefs.h <<_ACEOF | |
10142 | #define HAVE_SOCKET 1 | |
10143 | _ACEOF | |
7a197a62 | 10144 | |
80992638 | 10145 | else |
f11781c5 | 10146 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 10147 | fi |
f11781c5 | 10148 | done |
83912faa | 10149 | |
69792976 | 10150 | fi |
f11781c5 AK |
10151 | |
10152 | if test x$DMEVENTD = xyes; then | |
10153 | for ac_header in arpa/inet.h | |
10154 | do : | |
10155 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
10156 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 10157 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10158 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 10159 | _ACEOF |
69792976 | 10160 | |
69792976 | 10161 | else |
f11781c5 | 10162 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
10163 | fi |
10164 | ||
ad6254c5 | 10165 | done |
69792976 | 10166 | |
ad6254c5 AK |
10167 | fi |
10168 | ||
f11781c5 AK |
10169 | if test x$HAVE_LIBDL = xyes; then |
10170 | for ac_header in dlfcn.h | |
10171 | do : | |
10172 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
10173 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
10174 | cat >>confdefs.h <<_ACEOF | |
10175 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 10176 | _ACEOF |
a5f46f6a | 10177 | |
f11781c5 AK |
10178 | else |
10179 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
10180 | fi |
10181 | ||
f11781c5 | 10182 | done |
a5f46f6a | 10183 | |
a5f46f6a AK |
10184 | fi |
10185 | ||
f11781c5 AK |
10186 | if test x$INTL = xyes; then |
10187 | for ac_header in libintl.h | |
10188 | do : | |
10189 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10190 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10191 | cat >>confdefs.h <<_ACEOF | |
10192 | #define HAVE_LIBINTL_H 1 | |
10193 | _ACEOF | |
a5f46f6a | 10194 | |
a5f46f6a | 10195 | else |
f11781c5 | 10196 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10197 | fi |
f11781c5 AK |
10198 | |
10199 | done | |
a5f46f6a AK |
10200 | |
10201 | fi | |
f11781c5 AK |
10202 | |
10203 | if test x$UDEV_SYNC = xyes; then | |
10204 | for ac_header in sys/ipc.h sys/sem.h | |
10205 | do : | |
10206 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10207 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10208 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10209 | cat >>confdefs.h <<_ACEOF |
10210 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10211 | _ACEOF | |
10212 | ||
10213 | else | |
f11781c5 | 10214 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10215 | fi |
10216 | ||
10217 | done | |
10218 | ||
10219 | fi | |
10220 | ||
a653923f AK |
10221 | ################################################################################ |
10222 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10223 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10225 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10226 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10227 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10228 | else |
10229 | case $MODPROBE_CMD in | |
10230 | [\\/]* | ?:[\\/]*) | |
10231 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10232 | ;; | |
10233 | *) | |
10234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10235 | for as_dir in $PATH | |
10236 | do | |
10237 | IFS=$as_save_IFS | |
10238 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10239 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10241 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10243 | break 2 |
10244 | fi | |
10245 | done | |
f11781c5 | 10246 | done |
7a197a62 | 10247 | IFS=$as_save_IFS |
72b2cb61 AK |
10248 | |
10249 | ;; | |
10250 | esac | |
10251 | fi | |
10252 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10253 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10255 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10256 | else |
f11781c5 | 10257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10258 | $as_echo "no" >&6; } |
72b2cb61 AK |
10259 | fi |
10260 | ||
a653923f | 10261 | |
7a197a62 | 10262 | |
a653923f | 10263 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10264 | |
10265 | cat >>confdefs.h <<_ACEOF | |
10266 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10267 | _ACEOF | |
10268 | ||
a653923f AK |
10269 | fi |
10270 | ||
b5c2529b | 10271 | |
a9b601e2 ZK |
10272 | lvm_exec_prefix=$exec_prefix |
10273 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10274 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 | 10275 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
a9b601e2 | 10276 | |
b5c2529b | 10277 | cat >>confdefs.h <<_ACEOF |
d2c11605 | 10278 | #define LVM_PATH "$LVM_PATH" |
b5c2529b ZK |
10279 | _ACEOF |
10280 | ||
10281 | ||
10282 | if test "$CLVMD" != none; then | |
10283 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 10284 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b ZK |
10285 | test "$prefix" != NONE && clvmd_prefix=$prefix |
10286 | ||
10287 | cat >>confdefs.h <<_ACEOF | |
d2c11605 | 10288 | #define CLVMD_PATH "$CLVMD_PATH" |
b5c2529b ZK |
10289 | _ACEOF |
10290 | ||
10291 | fi | |
10292 | ||
80992638 | 10293 | ################################################################################ |
93bd259b AK |
10294 | if test "$BUILD_DMEVENTD" = yes; then |
10295 | ||
10296 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10297 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10298 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10299 | else |
5723db01 | 10300 | DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" |
93bd259b AK |
10301 | fi |
10302 | ||
93bd259b | 10303 | |
71082be4 ZK |
10304 | cat >>confdefs.h <<_ACEOF |
10305 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10306 | _ACEOF | |
93bd259b | 10307 | |
71082be4 | 10308 | fi |
93bd259b AK |
10309 | |
10310 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10311 | |
10312 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10313 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10314 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10315 | else |
71082be4 | 10316 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10317 | fi |
10318 | ||
93bd259b | 10319 | |
71082be4 ZK |
10320 | cat >>confdefs.h <<_ACEOF |
10321 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10322 | _ACEOF | |
3399ae32 | 10323 | |
71082be4 | 10324 | fi |
3399ae32 | 10325 | |
71082be4 | 10326 | ################################################################################ |
3399ae32 AK |
10327 | |
10328 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10329 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10330 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10331 | else |
71082be4 | 10332 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10333 | fi |
10334 | ||
71082be4 | 10335 | |
3399ae32 AK |
10336 | cat >>confdefs.h <<_ACEOF |
10337 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10338 | _ACEOF | |
10339 | ||
10340 | ||
10341 | ||
3399ae32 | 10342 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10343 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10344 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10345 | else |
71082be4 | 10346 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10347 | fi |
10348 | ||
71082be4 | 10349 | |
3399ae32 AK |
10350 | cat >>confdefs.h <<_ACEOF |
10351 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10352 | _ACEOF | |
10353 | ||
10354 | ||
10355 | ||
3399ae32 | 10356 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10357 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10358 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10359 | else |
71082be4 | 10360 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10361 | fi |
10362 | ||
71082be4 | 10363 | |
3399ae32 AK |
10364 | cat >>confdefs.h <<_ACEOF |
10365 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10366 | _ACEOF | |
10367 | ||
10368 | ||
10369 | ||
3399ae32 | 10370 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10371 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10372 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10373 | else |
71082be4 | 10374 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10375 | fi |
10376 | ||
71082be4 | 10377 | |
3399ae32 AK |
10378 | cat >>confdefs.h <<_ACEOF |
10379 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10380 | _ACEOF | |
10381 | ||
10382 | ||
10383 | ||
3399ae32 | 10384 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10385 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10386 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10387 | else |
71082be4 | 10388 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10389 | fi |
10390 | ||
71082be4 | 10391 | |
3399ae32 AK |
10392 | cat >>confdefs.h <<_ACEOF |
10393 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10394 | _ACEOF | |
10395 | ||
10396 | ||
fea55602 DW |
10397 | ################################################################################ |
10398 | ||
10399 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10400 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10401 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10402 | else | |
10403 | DEFAULT_DATA_ALIGNMENT=1 | |
10404 | fi | |
10405 | ||
10406 | ||
10407 | cat >>confdefs.h <<_ACEOF | |
10408 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10409 | _ACEOF | |
10410 | ||
10411 | ||
93bd259b | 10412 | ################################################################################ |
f11781c5 | 10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10414 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10415 | |
10416 | # Check whether --with-interface was given. | |
f11781c5 | 10417 | if test "${with_interface+set}" = set; then : |
71082be4 | 10418 | withval=$with_interface; interface=$withval |
93bd259b | 10419 | else |
71082be4 | 10420 | interface=ioctl |
93bd259b AK |
10421 | fi |
10422 | ||
10423 | if [ "x$interface" != xioctl ]; | |
10424 | then | |
f11781c5 | 10425 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10426 | fi |
f11781c5 | 10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10428 | $as_echo "$interface" >&6; } |
93bd259b AK |
10429 | |
10430 | ################################################################################ | |
db8b5af9 | 10431 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10432 | |
10433 | cat >>confdefs.h <<_ACEOF | |
10434 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10435 | _ACEOF | |
10436 | ||
10437 | ||
db8b5af9 | 10438 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10439 | |
db8b5af9 | 10440 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10441 | |
db8b5af9 | 10442 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10443 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10444 | VER=`echo "$VER" | $AWK '{print $1}'` |
10445 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10446 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10447 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10448 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10449 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10450 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10451 | |
80992638 | 10452 | ################################################################################ |
fae0c576 | 10453 | |
83912faa | 10454 | |
795ca3e5 AK |
10455 | |
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
5a52dca9 | 10461 | |
8ef2b021 | 10462 | |
199e490e | 10463 | |
69792976 AK |
10464 | |
10465 | ||
10466 | ||
d0191583 | 10467 | |
69792976 | 10468 | |
8106cdd5 AK |
10469 | |
10470 | ||
10471 | ||
10472 | ||
10473 | ||
d68a82ec | 10474 | |
036f273a | 10475 | |
7d1552c9 | 10476 | |
8106cdd5 | 10477 | |
0a62c911 | 10478 | |
8106cdd5 | 10479 | |
4a7f3eb2 | 10480 | |
4922197a AK |
10481 | |
10482 | ||
d8ac0fbc | 10483 | |
1a9ea74d | 10484 | |
8a2fc586 AK |
10485 | |
10486 | ||
d0191583 | 10487 | |
93bd259b AK |
10488 | |
10489 | ||
10490 | ||
10491 | ||
10492 | ||
d0191583 JM |
10493 | |
10494 | ||
10495 | ||
10496 | ||
10497 | ||
8a2fc586 | 10498 | |
19a2c6e0 | 10499 | |
f7f0854e ZK |
10500 | |
10501 | ||
3ceb7608 | 10502 | |
8ce0cbda | 10503 | |
8b1a3214 | 10504 | |
ec6a6fbe AK |
10505 | |
10506 | ||
10507 | ||
10508 | ||
e2997b73 AK |
10509 | |
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
a946372e AK |
10515 | |
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
ec6a6fbe | 10526 | |
cac52ca4 | 10527 | |
d3c8211f | 10528 | |
7e3fe830 | 10529 | |
a5f46f6a AK |
10530 | |
10531 | ||
10532 | ||
572fefeb | 10533 | |
90c80887 | 10534 | |
3399ae32 AK |
10535 | |
10536 | ||
10537 | ||
10538 | ||
10539 | ||
90c80887 | 10540 | |
bf456146 | 10541 | |
e1b8a236 | 10542 | |
0878503f | 10543 | |
8fea97b7 | 10544 | |
54b362f9 | 10545 | |
b1f08e51 | 10546 | |
d1e8046f | 10547 | |
fea55602 | 10548 | |
c89bc357 | 10549 | |
6e5c1f75 | 10550 | |
3ba4a195 | 10551 | |
d2c11605 ZK |
10552 | |
10553 | ||
cdd50823 | 10554 | |
426fc742 PR |
10555 | |
10556 | ||
b6d7a484 AK |
10557 | |
10558 | ||
bf09a320 | 10559 | |
e587cb6a | 10560 | |
b559a1e6 | 10561 | |
5723db01 PR |
10562 | |
10563 | ||
10564 | ||
4417a8bd | 10565 | |
f61cacad | 10566 | |
68f2de6d AK |
10567 | |
10568 | ||
80992638 | 10569 | ################################################################################ |
5723db01 | 10570 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10571 | |
ad6254c5 | 10572 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10573 | # This file is a shell script that caches the results of configure |
10574 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10575 | # scripts and configure runs, see configure's option --config-cache. |
10576 | # It is not useful on other systems. If it contains results you don't | |
10577 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10578 | # |
ad6254c5 AK |
10579 | # config.status only pays attention to the cache file if you give it |
10580 | # the --recheck option to rerun configure. | |
795ca3e5 | 10581 | # |
ad6254c5 AK |
10582 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10583 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10584 | # following values. | |
10585 | ||
10586 | _ACEOF | |
10587 | ||
795ca3e5 AK |
10588 | # The following way of writing the cache mishandles newlines in values, |
10589 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10590 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10591 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10592 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10593 | ( |
10594 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10595 | eval ac_val=\$$ac_var | |
10596 | case $ac_val in #( | |
10597 | *${as_nl}*) | |
10598 | case $ac_var in #( | |
f11781c5 | 10599 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10600 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10601 | esac |
10602 | case $ac_var in #( | |
10603 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10604 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10605 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10606 | esac ;; |
10607 | esac | |
10608 | done | |
10609 | ||
ad6254c5 | 10610 | (set) 2>&1 | |
7a197a62 AK |
10611 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10612 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10613 | # `set' does not quote correctly, so add quotes: double-quote |
10614 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10615 | sed -n \ |
8a2fc586 AK |
10616 | "s/'/'\\\\''/g; |
10617 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10618 | ;; #( |
ad6254c5 AK |
10619 | *) |
10620 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10621 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10622 | ;; |
7a197a62 AK |
10623 | esac | |
10624 | sort | |
10625 | ) | | |
ad6254c5 | 10626 | sed ' |
7a197a62 | 10627 | /^ac_cv_env_/b end |
ad6254c5 | 10628 | t clear |
7a197a62 | 10629 | :clear |
ad6254c5 AK |
10630 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10631 | t end | |
7a197a62 AK |
10632 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10633 | :end' >>confcache | |
10634 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10635 | if test -w "$cache_file"; then | |
10636 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10638 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10639 | cat confcache >$cache_file |
795ca3e5 | 10640 | else |
f11781c5 | 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10642 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10643 | fi |
10644 | fi | |
10645 | rm -f confcache | |
10646 | ||
795ca3e5 AK |
10647 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10648 | # Let make expand exec_prefix. | |
10649 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10650 | ||
72b2cb61 | 10651 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10652 | |
10653 | ac_libobjs= | |
10654 | ac_ltlibobjs= | |
f11781c5 | 10655 | U= |
ad6254c5 AK |
10656 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10657 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10658 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10659 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10660 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10661 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10662 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10663 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10664 | done |
10665 | LIBOBJS=$ac_libobjs | |
80992638 | 10666 | |
ad6254c5 AK |
10667 | LTLIBOBJS=$ac_ltlibobjs |
10668 | ||
10669 | ||
10670 | ||
10671 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10672 | ac_write_fail=0 |
ad6254c5 AK |
10673 | ac_clean_files_save=$ac_clean_files |
10674 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10675 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10676 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10677 | as_write_fail=0 |
10678 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10679 | #! $SHELL |
10680 | # Generated by $as_me. | |
795ca3e5 | 10681 | # Run this file to recreate the current configuration. |
795ca3e5 | 10682 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10683 | # configure, is in config.log if it exists. |
10684 | ||
10685 | debug=false | |
10686 | ac_cs_recheck=false | |
10687 | ac_cs_silent=false | |
ad6254c5 | 10688 | |
f11781c5 AK |
10689 | SHELL=\${CONFIG_SHELL-$SHELL} |
10690 | export SHELL | |
10691 | _ASEOF | |
10692 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10693 | ## -------------------- ## | |
10694 | ## M4sh Initialization. ## | |
10695 | ## -------------------- ## | |
ad6254c5 | 10696 | |
25fbec5b AK |
10697 | # Be more Bourne compatible |
10698 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10699 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10700 | emulate sh |
10701 | NULLCMD=: | |
ec6a6fbe | 10702 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10703 | # is contrary to our usage. Disable this feature. |
10704 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10705 | setopt NO_GLOB_SUBST |
10706 | else | |
f11781c5 AK |
10707 | case `(set -o) 2>/dev/null` in #( |
10708 | *posix*) : | |
10709 | set -o posix ;; #( | |
10710 | *) : | |
10711 | ;; | |
25fbec5b | 10712 | esac |
7a197a62 | 10713 | fi |
25fbec5b AK |
10714 | |
10715 | ||
ec6a6fbe AK |
10716 | as_nl=' |
10717 | ' | |
10718 | export as_nl | |
10719 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10720 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10721 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10722 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10723 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10724 | # but without wasting forks for bash or zsh. | |
10725 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10726 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10727 | as_echo='print -r --' | |
10728 | as_echo_n='print -rn --' | |
10729 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10730 | as_echo='printf %s\n' |
10731 | as_echo_n='printf %s' | |
10732 | else | |
10733 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10734 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10735 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10736 | else |
ec6a6fbe AK |
10737 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10738 | as_echo_n_body='eval | |
10739 | arg=$1; | |
f11781c5 | 10740 | case $arg in #( |
ec6a6fbe AK |
10741 | *"$as_nl"*) |
10742 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10743 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10744 | esac; | |
10745 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10746 | ' | |
10747 | export as_echo_n_body | |
10748 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10749 | fi |
ec6a6fbe AK |
10750 | export as_echo_body |
10751 | as_echo='sh -c $as_echo_body as_echo' | |
10752 | fi | |
10753 | ||
10754 | # The user is always right. | |
10755 | if test "${PATH_SEPARATOR+set}" != set; then | |
10756 | PATH_SEPARATOR=: | |
10757 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10758 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10759 | PATH_SEPARATOR=';' | |
10760 | } | |
ad6254c5 AK |
10761 | fi |
10762 | ||
ad6254c5 | 10763 | |
7a197a62 AK |
10764 | # IFS |
10765 | # We need space, tab and new line, in precisely that order. Quoting is | |
10766 | # there to prevent editors from complaining about space-tab. | |
10767 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10768 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10769 | IFS=" "" $as_nl" |
10770 | ||
10771 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10772 | case $0 in #(( |
7a197a62 AK |
10773 | *[\\/]* ) as_myself=$0 ;; |
10774 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10775 | for as_dir in $PATH | |
10776 | do | |
10777 | IFS=$as_save_IFS | |
10778 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10779 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10780 | done | |
7a197a62 AK |
10781 | IFS=$as_save_IFS |
10782 | ||
10783 | ;; | |
10784 | esac | |
10785 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10786 | # in which case we are not to be found in the path. | |
10787 | if test "x$as_myself" = x; then | |
10788 | as_myself=$0 | |
10789 | fi | |
10790 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10791 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10792 | exit 1 |
7a197a62 AK |
10793 | fi |
10794 | ||
f11781c5 AK |
10795 | # Unset variables that we do not need and which cause bugs (e.g. in |
10796 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10797 | # suppresses any "Segmentation fault" message there. '((' could | |
10798 | # trigger a bug in pdksh 5.2.14. | |
10799 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10800 | do eval test x\${$as_var+set} = xset \ | |
10801 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10802 | done |
ad6254c5 AK |
10803 | PS1='$ ' |
10804 | PS2='> ' | |
10805 | PS4='+ ' | |
10806 | ||
10807 | # NLS nuisances. | |
ec6a6fbe AK |
10808 | LC_ALL=C |
10809 | export LC_ALL | |
10810 | LANGUAGE=C | |
10811 | export LANGUAGE | |
8106cdd5 | 10812 | |
f11781c5 AK |
10813 | # CDPATH. |
10814 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10815 | ||
10816 | ||
10817 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10818 | # ---------------------------------------- | |
10819 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10820 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10821 | # script with STATUS, using 1 if that was 0. | |
10822 | as_fn_error () | |
10823 | { | |
10824 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10825 | if test "$4"; then | |
10826 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10827 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10828 | fi | |
10829 | $as_echo "$as_me: error: $2" >&2 | |
10830 | as_fn_exit $as_status | |
10831 | } # as_fn_error | |
10832 | ||
10833 | ||
10834 | # as_fn_set_status STATUS | |
10835 | # ----------------------- | |
10836 | # Set $? to STATUS, without forking. | |
10837 | as_fn_set_status () | |
10838 | { | |
10839 | return $1 | |
10840 | } # as_fn_set_status | |
10841 | ||
10842 | # as_fn_exit STATUS | |
10843 | # ----------------- | |
10844 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10845 | as_fn_exit () | |
10846 | { | |
10847 | set +e | |
10848 | as_fn_set_status $1 | |
10849 | exit $1 | |
10850 | } # as_fn_exit | |
10851 | ||
10852 | # as_fn_unset VAR | |
10853 | # --------------- | |
10854 | # Portably unset VAR. | |
10855 | as_fn_unset () | |
10856 | { | |
10857 | { eval $1=; unset $1;} | |
10858 | } | |
10859 | as_unset=as_fn_unset | |
10860 | # as_fn_append VAR VALUE | |
10861 | # ---------------------- | |
10862 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10863 | # advantage of any shell optimizations that allow amortized linear growth over | |
10864 | # repeated appends, instead of the typical quadratic growth present in naive | |
10865 | # implementations. | |
10866 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10867 | eval 'as_fn_append () | |
10868 | { | |
10869 | eval $1+=\$2 | |
10870 | }' | |
10871 | else | |
10872 | as_fn_append () | |
10873 | { | |
10874 | eval $1=\$$1\$2 | |
10875 | } | |
10876 | fi # as_fn_append | |
10877 | ||
10878 | # as_fn_arith ARG... | |
10879 | # ------------------ | |
10880 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10881 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10882 | # must be portable across $(()) and expr. | |
10883 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10884 | eval 'as_fn_arith () | |
10885 | { | |
10886 | as_val=$(( $* )) | |
10887 | }' | |
10888 | else | |
10889 | as_fn_arith () | |
10890 | { | |
10891 | as_val=`expr "$@" || test $? -eq 1` | |
10892 | } | |
10893 | fi # as_fn_arith | |
10894 | ||
10895 | ||
7a197a62 AK |
10896 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10897 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10898 | as_expr=expr |
10899 | else | |
10900 | as_expr=false | |
10901 | fi | |
8106cdd5 | 10902 | |
7a197a62 | 10903 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10904 | as_basename=basename |
10905 | else | |
10906 | as_basename=false | |
10907 | fi | |
10908 | ||
f11781c5 AK |
10909 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10910 | as_dirname=dirname | |
10911 | else | |
10912 | as_dirname=false | |
10913 | fi | |
ad6254c5 | 10914 | |
7a197a62 | 10915 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10916 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10917 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10918 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10919 | $as_echo X/"$0" | |
7a197a62 AK |
10920 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10921 | s//\1/ | |
10922 | q | |
10923 | } | |
10924 | /^X\/\(\/\/\)$/{ | |
10925 | s//\1/ | |
10926 | q | |
10927 | } | |
10928 | /^X\/\(\/\).*/{ | |
10929 | s//\1/ | |
10930 | q | |
10931 | } | |
10932 | s/.*/./; q'` | |
ad6254c5 | 10933 | |
f11781c5 AK |
10934 | # Avoid depending upon Character Ranges. |
10935 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10936 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10937 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10938 | as_cr_digits='0123456789' | |
10939 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10940 | |
10941 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10942 | case `echo -n x` in #((((( |
7a197a62 | 10943 | -n*) |
f11781c5 | 10944 | case `echo 'xy\c'` in |
7a197a62 | 10945 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10946 | xy) ECHO_C='\c';; |
10947 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10948 | ECHO_T=' ';; | |
7a197a62 AK |
10949 | esac;; |
10950 | *) | |
10951 | ECHO_N='-n';; | |
ad6254c5 | 10952 | esac |
80992638 | 10953 | |
ad6254c5 | 10954 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10955 | if test -d conf$$.dir; then |
10956 | rm -f conf$$.dir/conf$$.file | |
10957 | else | |
10958 | rm -f conf$$.dir | |
ec6a6fbe AK |
10959 | mkdir conf$$.dir 2>/dev/null |
10960 | fi | |
10961 | if (echo >conf$$.file) 2>/dev/null; then | |
10962 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10963 | as_ln_s='ln -s' | |
10964 | # ... but there are two gotchas: | |
10965 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10966 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10967 | # In both cases, we have to default to `cp -p'. | |
10968 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10969 | as_ln_s='cp -p' | |
10970 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10971 | as_ln_s=ln | |
10972 | else | |
ad6254c5 | 10973 | as_ln_s='cp -p' |
ec6a6fbe | 10974 | fi |
ad6254c5 AK |
10975 | else |
10976 | as_ln_s='cp -p' | |
10977 | fi | |
7a197a62 AK |
10978 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10979 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10980 | |
f11781c5 AK |
10981 | |
10982 | # as_fn_mkdir_p | |
10983 | # ------------- | |
10984 | # Create "$as_dir" as a directory, including parents if necessary. | |
10985 | as_fn_mkdir_p () | |
10986 | { | |
10987 | ||
10988 | case $as_dir in #( | |
10989 | -*) as_dir=./$as_dir;; | |
10990 | esac | |
10991 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10992 | as_dirs= | |
10993 | while :; do | |
10994 | case $as_dir in #( | |
10995 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10996 | *) as_qdir=$as_dir;; | |
10997 | esac | |
10998 | as_dirs="'$as_qdir' $as_dirs" | |
10999 | as_dir=`$as_dirname -- "$as_dir" || | |
11000 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11001 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11002 | X"$as_dir" : 'X\(//\)$' \| \ | |
11003 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11004 | $as_echo X"$as_dir" | | |
11005 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11006 | s//\1/ | |
11007 | q | |
11008 | } | |
11009 | /^X\(\/\/\)[^/].*/{ | |
11010 | s//\1/ | |
11011 | q | |
11012 | } | |
11013 | /^X\(\/\/\)$/{ | |
11014 | s//\1/ | |
11015 | q | |
11016 | } | |
11017 | /^X\(\/\).*/{ | |
11018 | s//\1/ | |
11019 | q | |
11020 | } | |
11021 | s/.*/./; q'` | |
11022 | test -d "$as_dir" && break | |
11023 | done | |
11024 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11025 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
11026 | ||
11027 | ||
11028 | } # as_fn_mkdir_p | |
ad6254c5 | 11029 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 11030 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 11031 | else |
8a2fc586 | 11032 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11033 | as_mkdir_p=false |
11034 | fi | |
11035 | ||
25fbec5b AK |
11036 | if test -x / >/dev/null 2>&1; then |
11037 | as_test_x='test -x' | |
7a197a62 | 11038 | else |
25fbec5b AK |
11039 | if ls -dL / >/dev/null 2>&1; then |
11040 | as_ls_L_option=L | |
11041 | else | |
11042 | as_ls_L_option= | |
11043 | fi | |
11044 | as_test_x=' | |
11045 | eval sh -c '\'' | |
11046 | if test -d "$1"; then | |
ec6a6fbe | 11047 | test -d "$1/."; |
25fbec5b | 11048 | else |
f11781c5 | 11049 | case $1 in #( |
ec6a6fbe | 11050 | -*)set "./$1";; |
25fbec5b | 11051 | esac; |
f11781c5 | 11052 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
11053 | ???[sx]*):;;*)false;;esac;fi |
11054 | '\'' sh | |
11055 | ' | |
7a197a62 | 11056 | fi |
25fbec5b | 11057 | as_executable_p=$as_test_x |
ad6254c5 AK |
11058 | |
11059 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11060 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11061 | |
11062 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11063 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11064 | |
11065 | ||
ad6254c5 | 11066 | exec 6>&1 |
f11781c5 AK |
11067 | ## ----------------------------------- ## |
11068 | ## Main body of $CONFIG_STATUS script. ## | |
11069 | ## ----------------------------------- ## | |
11070 | _ASEOF | |
11071 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 11072 | |
f11781c5 AK |
11073 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11074 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 11075 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11076 | # values after options handling. |
11077 | ac_log=" | |
ad6254c5 | 11078 | This file was extended by $as_me, which was |
f11781c5 | 11079 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
11080 | |
11081 | CONFIG_FILES = $CONFIG_FILES | |
11082 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11083 | CONFIG_LINKS = $CONFIG_LINKS | |
11084 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11085 | $ $0 $@ | |
11086 | ||
7a197a62 AK |
11087 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11088 | " | |
11089 | ||
ad6254c5 AK |
11090 | _ACEOF |
11091 | ||
ec6a6fbe AK |
11092 | case $ac_config_files in *" |
11093 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11094 | esac | |
11095 | ||
11096 | case $ac_config_headers in *" | |
11097 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11098 | esac | |
11099 | ||
11100 | ||
11101 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 11102 | # Files that config.status was made for. |
68f2de6d AK |
11103 | config_files="$ac_config_files" |
11104 | config_headers="$ac_config_headers" | |
ad6254c5 | 11105 | |
7a197a62 | 11106 | _ACEOF |
ad6254c5 | 11107 | |
ec6a6fbe | 11108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 11109 | ac_cs_usage="\ |
f11781c5 AK |
11110 | \`$as_me' instantiates files and other configuration actions |
11111 | from templates according to the current configuration. Unless the files | |
11112 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 11113 | |
f11781c5 | 11114 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
11115 | |
11116 | -h, --help print this help, then exit | |
25fbec5b | 11117 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 11118 | --config print configuration, then exit |
ec6a6fbe AK |
11119 | -q, --quiet, --silent |
11120 | do not print progress messages | |
ad6254c5 AK |
11121 | -d, --debug don't remove temporary files |
11122 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
11123 | --file=FILE[:TEMPLATE] |
11124 | instantiate the configuration file FILE | |
11125 | --header=FILE[:TEMPLATE] | |
11126 | instantiate the configuration header FILE | |
ad6254c5 AK |
11127 | |
11128 | Configuration files: | |
11129 | $config_files | |
11130 | ||
72b2cb61 AK |
11131 | Configuration headers: |
11132 | $config_headers | |
11133 | ||
f11781c5 | 11134 | Report bugs to the package provider." |
ad6254c5 | 11135 | |
7a197a62 | 11136 | _ACEOF |
ec6a6fbe | 11137 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 11138 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
11139 | ac_cs_version="\\ |
11140 | config.status | |
f11781c5 AK |
11141 | configured by $0, generated by GNU Autoconf 2.66, |
11142 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 11143 | |
f11781c5 | 11144 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
11145 | This config.status script is free software; the Free Software Foundation |
11146 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11147 | |
11148 | ac_pwd='$ac_pwd' | |
11149 | srcdir='$srcdir' | |
11150 | INSTALL='$INSTALL' | |
fddafd51 | 11151 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
11152 | AWK='$AWK' |
11153 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
11154 | _ACEOF |
11155 | ||
ec6a6fbe AK |
11156 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11157 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
11158 | ac_need_defaults=: |
11159 | while test $# != 0 | |
11160 | do | |
11161 | case $1 in | |
11162 | --*=*) | |
7a197a62 AK |
11163 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11164 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11165 | ac_shift=: |
11166 | ;; | |
7a197a62 | 11167 | *) |
ad6254c5 AK |
11168 | ac_option=$1 |
11169 | ac_optarg=$2 | |
11170 | ac_shift=shift | |
11171 | ;; | |
ad6254c5 AK |
11172 | esac |
11173 | ||
11174 | case $ac_option in | |
11175 | # Handling of the options. | |
ad6254c5 AK |
11176 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11177 | ac_cs_recheck=: ;; | |
7a197a62 | 11178 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 11179 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
11180 | --config | --confi | --conf | --con | --co | --c ) |
11181 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 11182 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11183 | debug=: ;; |
11184 | --file | --fil | --fi | --f ) | |
11185 | $ac_shift | |
ec6a6fbe AK |
11186 | case $ac_optarg in |
11187 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11188 | esac | |
f11781c5 | 11189 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11190 | ac_need_defaults=false;; |
11191 | --header | --heade | --head | --hea ) | |
11192 | $ac_shift | |
ec6a6fbe AK |
11193 | case $ac_optarg in |
11194 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11195 | esac | |
f11781c5 | 11196 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11197 | ac_need_defaults=false;; |
7a197a62 AK |
11198 | --he | --h) |
11199 | # Conflict between --help and --header | |
f11781c5 AK |
11200 | as_fn_error $? "ambiguous option: \`$1' |
11201 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11202 | --help | --hel | -h ) |
ec6a6fbe | 11203 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11204 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11205 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11206 | ac_cs_silent=: ;; | |
11207 | ||
11208 | # This is an error. | |
f11781c5 AK |
11209 | -*) as_fn_error $? "unrecognized option: \`$1' |
11210 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11211 | |
f11781c5 | 11212 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11213 | ac_need_defaults=false ;; |
ad6254c5 AK |
11214 | |
11215 | esac | |
11216 | shift | |
11217 | done | |
11218 | ||
11219 | ac_configure_extra_args= | |
11220 | ||
11221 | if $ac_cs_silent; then | |
11222 | exec 6>/dev/null | |
11223 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11224 | fi | |
11225 | ||
11226 | _ACEOF | |
ec6a6fbe | 11227 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11228 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11229 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11230 | shift | |
11231 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11232 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11233 | export CONFIG_SHELL |
ec6a6fbe | 11234 | exec "\$@" |
ad6254c5 AK |
11235 | fi |
11236 | ||
11237 | _ACEOF | |
ec6a6fbe | 11238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11239 | exec 5>>config.log |
11240 | { | |
11241 | echo | |
11242 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11243 | ## Running $as_me. ## | |
11244 | _ASBOX | |
ec6a6fbe | 11245 | $as_echo "$ac_log" |
7a197a62 | 11246 | } >&5 |
ad6254c5 | 11247 | |
7a197a62 | 11248 | _ACEOF |
ec6a6fbe | 11249 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11250 | _ACEOF |
ad6254c5 | 11251 | |
ec6a6fbe | 11252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11253 | |
11254 | # Handling of arguments. | |
ad6254c5 AK |
11255 | for ac_config_target in $ac_config_targets |
11256 | do | |
7a197a62 AK |
11257 | case $ac_config_target in |
11258 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11259 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11260 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11261 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11262 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11263 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11264 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11265 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11266 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11267 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 11268 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
11269 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11270 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
2bc1d759 | 11271 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; |
cdd50823 | 11272 | "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;; |
7a197a62 | 11273 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11274 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11275 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11276 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11277 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11278 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11279 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11280 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11281 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11282 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11283 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
40dbaac8 | 11284 | "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;; |
7a197a62 | 11285 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
3ba4a195 | 11286 | "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;; |
7126d8c2 AK |
11287 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; |
11288 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
11289 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
93bd259b AK |
11290 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11291 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11292 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11293 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11294 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11295 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11296 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11297 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
a30491b2 | 11298 | "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;; |
dac3c36f | 11299 | "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;; |
da532741 | 11300 | "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;; |
595eaf92 | 11301 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
5723db01 | 11302 | "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;; |
6e5c1f75 PR |
11303 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11304 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
4417a8bd | 11305 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; |
7a197a62 | 11306 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11307 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11308 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
9493f1df | 11309 | "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;; |
7a197a62 | 11310 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11311 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11312 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11313 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11314 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11315 | |
f11781c5 | 11316 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11317 | esac |
ad6254c5 AK |
11318 | done |
11319 | ||
7a197a62 | 11320 | |
ad6254c5 AK |
11321 | # If the user did not use the arguments to specify the items to instantiate, |
11322 | # then the envvar interface is used. Set only those that are not. | |
11323 | # We use the long form for the default assignment because of an extremely | |
11324 | # bizarre bug on SunOS 4.1.3. | |
11325 | if $ac_need_defaults; then | |
11326 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11327 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11328 | fi |
11329 | ||
11330 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11331 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11332 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11333 | # Hook for its removal unless debugging. |
11334 | # Note that there is a small window in which the directory will not be cleaned: | |
11335 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11336 | $debug || |
11337 | { | |
7a197a62 AK |
11338 | tmp= |
11339 | trap 'exit_status=$? | |
11340 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11341 | ' 0 | |
f11781c5 | 11342 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11343 | } |
ad6254c5 AK |
11344 | # Create a (secure) tmp directory for tmp files. |
11345 | ||
11346 | { | |
7a197a62 | 11347 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11348 | test -n "$tmp" && test -d "$tmp" |
11349 | } || | |
11350 | { | |
7a197a62 AK |
11351 | tmp=./conf$$-$RANDOM |
11352 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11353 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11354 | |
ec6a6fbe AK |
11355 | # Set up the scripts for CONFIG_FILES section. |
11356 | # No need to generate them if there are no CONFIG_FILES. | |
11357 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11358 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11359 | |
68f2de6d | 11360 | |
f11781c5 AK |
11361 | ac_cr=`echo X | tr X '\015'` |
11362 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11363 | # But we know of no other shell where ac_cr would be empty at this | |
11364 | # point, so we can use a bashism as a fallback. | |
11365 | if test "x$ac_cr" = x; then | |
11366 | eval ac_cr=\$\'\\r\' | |
11367 | fi | |
ec6a6fbe AK |
11368 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11369 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11370 | ac_cs_awk_cr='\\r' | |
11371 | else | |
11372 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11373 | fi |
7a197a62 | 11374 | |
ec6a6fbe | 11375 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11376 | _ACEOF |
7a197a62 | 11377 | |
8106cdd5 | 11378 | |
ec6a6fbe AK |
11379 | { |
11380 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11381 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11382 | echo "_ACEOF" | |
11383 | } >conf$$subs.sh || | |
f11781c5 AK |
11384 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11385 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11386 | ac_delim='%!_!# ' |
11387 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11388 | . ./conf$$subs.sh || |
f11781c5 | 11389 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11390 | |
11391 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11392 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11393 | break |
11394 | elif $ac_last_try; then | |
f11781c5 | 11395 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11396 | else |
11397 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11398 | fi | |
11399 | done | |
ec6a6fbe AK |
11400 | rm -f conf$$subs.sh |
11401 | ||
11402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11403 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11404 | _ACEOF | |
11405 | sed -n ' | |
11406 | h | |
11407 | s/^/S["/; s/!.*/"]=/ | |
11408 | p | |
11409 | g | |
11410 | s/^[^!]*!// | |
11411 | :repl | |
11412 | t repl | |
11413 | s/'"$ac_delim"'$// | |
11414 | t delim | |
11415 | :nl | |
11416 | h | |
f11781c5 | 11417 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11418 | t more1 |
11419 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11420 | p | |
11421 | n | |
11422 | b repl | |
11423 | :more1 | |
11424 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11425 | p | |
11426 | g | |
11427 | s/.\{148\}// | |
11428 | t nl | |
11429 | :delim | |
11430 | h | |
f11781c5 | 11431 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11432 | t more2 |
11433 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11434 | p | |
11435 | b | |
11436 | :more2 | |
11437 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11438 | p | |
11439 | g | |
11440 | s/.\{148\}// | |
11441 | t delim | |
11442 | ' <conf$$subs.awk | sed ' | |
11443 | /^[^""]/{ | |
11444 | N | |
11445 | s/\n// | |
11446 | } | |
11447 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11448 | rm -f conf$$subs.awk | |
11449 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11450 | _ACAWK | |
11451 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11452 | for (key in S) S_is_set[key] = 1 | |
11453 | FS = "\a" | |
7a197a62 | 11454 | |
ec6a6fbe AK |
11455 | } |
11456 | { | |
11457 | line = $ 0 | |
11458 | nfields = split(line, field, "@") | |
11459 | substed = 0 | |
11460 | len = length(field[1]) | |
11461 | for (i = 2; i < nfields; i++) { | |
11462 | key = field[i] | |
11463 | keylen = length(key) | |
11464 | if (S_is_set[key]) { | |
11465 | value = S[key] | |
11466 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11467 | len += length(value) + length(field[++i]) | |
11468 | substed = 1 | |
11469 | } else | |
11470 | len += 1 + keylen | |
11471 | } | |
11472 | ||
11473 | print line | |
11474 | } | |
fddafd51 | 11475 | |
ec6a6fbe | 11476 | _ACAWK |
1995c9ff | 11477 | _ACEOF |
ec6a6fbe AK |
11478 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11479 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11480 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11481 | else | |
11482 | cat | |
11483 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11484 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11485 | _ACEOF |
11486 | ||
f11781c5 AK |
11487 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11488 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11489 | # trailing colons and then remove the whole line if VPATH becomes empty |
11490 | # (actually we leave an empty line to preserve line numbers). | |
11491 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11492 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11493 | h | |
11494 | s/// | |
11495 | s/^/:/ | |
11496 | s/[ ]*$/:/ | |
11497 | s/:\$(srcdir):/:/g | |
11498 | s/:\${srcdir}:/:/g | |
11499 | s/:@srcdir@:/:/g | |
11500 | s/^:*// | |
7a197a62 | 11501 | s/:*$// |
f11781c5 AK |
11502 | x |
11503 | s/\(=[ ]*\).*/\1/ | |
11504 | G | |
11505 | s/\n// | |
7a197a62 AK |
11506 | s/^[^=]*=[ ]*$// |
11507 | }' | |
11508 | fi | |
11509 | ||
ec6a6fbe | 11510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11511 | fi # test -n "$CONFIG_FILES" |
11512 | ||
ec6a6fbe AK |
11513 | # Set up the scripts for CONFIG_HEADERS section. |
11514 | # No need to generate them if there are no CONFIG_HEADERS. | |
11515 | # This happens for instance with `./config.status Makefile'. | |
11516 | if test -n "$CONFIG_HEADERS"; then | |
11517 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11518 | BEGIN { | |
11519 | _ACEOF | |
11520 | ||
11521 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11522 | # here-document in config.status, that substitutes the proper values into | |
11523 | # config.h.in to produce config.h. | |
11524 | ||
11525 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11526 | # handling of long lines. | |
11527 | ac_delim='%!_!# ' | |
11528 | for ac_last_try in false false :; do | |
11529 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11530 | if test -z "$ac_t"; then | |
11531 | break | |
11532 | elif $ac_last_try; then | |
f11781c5 | 11533 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11534 | else |
11535 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11536 | fi | |
11537 | done | |
11538 | ||
11539 | # For the awk script, D is an array of macro values keyed by name, | |
11540 | # likewise P contains macro parameters if any. Preserve backslash | |
11541 | # newline sequences. | |
11542 | ||
11543 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11544 | sed -n ' | |
11545 | s/.\{148\}/&'"$ac_delim"'/g | |
11546 | t rset | |
11547 | :rset | |
11548 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11549 | t def | |
11550 | d | |
11551 | :def | |
11552 | s/\\$// | |
11553 | t bsnl | |
11554 | s/["\\]/\\&/g | |
11555 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11556 | D["\1"]=" \3"/p | |
11557 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11558 | d | |
11559 | :bsnl | |
11560 | s/["\\]/\\&/g | |
11561 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11562 | D["\1"]=" \3\\\\\\n"\\/p | |
11563 | t cont | |
11564 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11565 | t cont | |
11566 | d | |
11567 | :cont | |
11568 | n | |
11569 | s/.\{148\}/&'"$ac_delim"'/g | |
11570 | t clear | |
11571 | :clear | |
11572 | s/\\$// | |
11573 | t bsnlc | |
11574 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11575 | d | |
11576 | :bsnlc | |
11577 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11578 | b cont | |
11579 | ' <confdefs.h | sed ' | |
11580 | s/'"$ac_delim"'/"\\\ | |
11581 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11582 | ||
11583 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11584 | for (key in D) D_is_set[key] = 1 | |
11585 | FS = "\a" | |
11586 | } | |
11587 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11588 | line = \$ 0 | |
11589 | split(line, arg, " ") | |
11590 | if (arg[1] == "#") { | |
11591 | defundef = arg[2] | |
11592 | mac1 = arg[3] | |
11593 | } else { | |
11594 | defundef = substr(arg[1], 2) | |
11595 | mac1 = arg[2] | |
11596 | } | |
11597 | split(mac1, mac2, "(") #) | |
11598 | macro = mac2[1] | |
11599 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11600 | if (D_is_set[macro]) { | |
11601 | # Preserve the white space surrounding the "#". | |
11602 | print prefix "define", macro P[macro] D[macro] | |
11603 | next | |
11604 | } else { | |
11605 | # Replace #undef with comments. This is necessary, for example, | |
11606 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11607 | # on some systems where configure will not decide to define it. | |
11608 | if (defundef == "undef") { | |
11609 | print "/*", prefix defundef, macro, "*/" | |
11610 | next | |
11611 | } | |
11612 | } | |
11613 | } | |
11614 | { print } | |
11615 | _ACAWK | |
11616 | _ACEOF | |
11617 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11618 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11619 | fi # test -n "$CONFIG_HEADERS" |
11620 | ||
7a197a62 | 11621 | |
ec6a6fbe AK |
11622 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11623 | shift | |
11624 | for ac_tag | |
7a197a62 AK |
11625 | do |
11626 | case $ac_tag in | |
11627 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11628 | esac | |
11629 | case $ac_mode$ac_tag in | |
11630 | :[FHL]*:*);; | |
f11781c5 | 11631 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11632 | :[FH]-) ac_tag=-:-;; |
11633 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11634 | esac | |
11635 | ac_save_IFS=$IFS | |
11636 | IFS=: | |
11637 | set x $ac_tag | |
11638 | IFS=$ac_save_IFS | |
11639 | shift | |
11640 | ac_file=$1 | |
11641 | shift | |
11642 | ||
11643 | case $ac_mode in | |
11644 | :L) ac_source=$1;; | |
11645 | :[FH]) | |
11646 | ac_file_inputs= | |
11647 | for ac_f | |
11648 | do | |
11649 | case $ac_f in | |
11650 | -) ac_f="$tmp/stdin";; | |
11651 | *) # Look for the file first in the build tree, then in the source tree | |
11652 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11653 | # because $ac_f cannot contain `:'. | |
11654 | test -f "$ac_f" || | |
11655 | case $ac_f in | |
11656 | [\\/$]*) false;; | |
11657 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11658 | esac || | |
f11781c5 | 11659 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11660 | esac |
ec6a6fbe | 11661 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11662 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11663 | done |
11664 | ||
11665 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11666 | # use $as_me), people would be surprised to read: | |
11667 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11668 | configure_input='Generated from '` |
11669 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11670 | `' by configure.' | |
7a197a62 AK |
11671 | if test x"$ac_file" != x-; then |
11672 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11674 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11675 | fi |
ec6a6fbe AK |
11676 | # Neutralize special characters interpreted by sed in replacement strings. |
11677 | case $configure_input in #( | |
11678 | *\&* | *\|* | *\\* ) | |
11679 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11680 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11681 | *) ac_sed_conf_input=$configure_input;; | |
11682 | esac | |
7a197a62 AK |
11683 | |
11684 | case $ac_tag in | |
ec6a6fbe | 11685 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11686 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11687 | esac |
11688 | ;; | |
80992638 | 11689 | esac |
8106cdd5 | 11690 | |
7a197a62 | 11691 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11692 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11693 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11694 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11695 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11696 | $as_echo X"$ac_file" | |
7a197a62 AK |
11697 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11698 | s//\1/ | |
11699 | q | |
11700 | } | |
11701 | /^X\(\/\/\)[^/].*/{ | |
11702 | s//\1/ | |
11703 | q | |
11704 | } | |
11705 | /^X\(\/\/\)$/{ | |
11706 | s//\1/ | |
11707 | q | |
11708 | } | |
11709 | /^X\(\/\).*/{ | |
11710 | s//\1/ | |
11711 | q | |
11712 | } | |
11713 | s/.*/./; q'` | |
f11781c5 | 11714 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11715 | ac_builddir=. |
11716 | ||
7a197a62 AK |
11717 | case "$ac_dir" in |
11718 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11719 | *) | |
ec6a6fbe | 11720 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11721 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11722 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11723 | case $ac_top_builddir_sub in |
11724 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11725 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11726 | esac ;; | |
11727 | esac | |
11728 | ac_abs_top_builddir=$ac_pwd | |
11729 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11730 | # for backward compatibility: | |
11731 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11732 | |
11733 | case $srcdir in | |
7a197a62 | 11734 | .) # We are building in place. |
ad6254c5 | 11735 | ac_srcdir=. |
7a197a62 AK |
11736 | ac_top_srcdir=$ac_top_builddir_sub |
11737 | ac_abs_top_srcdir=$ac_pwd ;; | |
11738 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11739 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11740 | ac_top_srcdir=$srcdir |
11741 | ac_abs_top_srcdir=$srcdir ;; | |
11742 | *) # Relative name. | |
11743 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11744 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11745 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11746 | esac |
7a197a62 | 11747 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11748 | |
ad6254c5 | 11749 | |
7a197a62 AK |
11750 | case $ac_mode in |
11751 | :F) | |
11752 | # | |
11753 | # CONFIG_FILE | |
11754 | # | |
ad6254c5 AK |
11755 | |
11756 | case $INSTALL in | |
11757 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11758 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11759 | esac |
fddafd51 ZK |
11760 | ac_MKDIR_P=$MKDIR_P |
11761 | case $MKDIR_P in | |
11762 | [\\/$]* | ?:[\\/]* ) ;; | |
11763 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11764 | esac | |
7a197a62 | 11765 | _ACEOF |
795ca3e5 | 11766 | |
ec6a6fbe | 11767 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11768 | # If the template does not know about datarootdir, expand it. |
11769 | # FIXME: This hack should be removed a few years after 2.60. | |
11770 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11771 | ac_sed_dataroot=' |
11772 | /datarootdir/ { | |
7a197a62 AK |
11773 | p |
11774 | q | |
11775 | } | |
11776 | /@datadir@/p | |
11777 | /@docdir@/p | |
11778 | /@infodir@/p | |
11779 | /@localedir@/p | |
f11781c5 | 11780 | /@mandir@/p' |
ec6a6fbe | 11781 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11782 | *datarootdir*) ac_datarootdir_seen=yes;; |
11783 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11785 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11786 | _ACEOF |
ec6a6fbe | 11787 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11788 | ac_datarootdir_hack=' |
11789 | s&@datadir@&$datadir&g | |
11790 | s&@docdir@&$docdir&g | |
11791 | s&@infodir@&$infodir&g | |
11792 | s&@localedir@&$localedir&g | |
11793 | s&@mandir@&$mandir&g | |
f11781c5 | 11794 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11795 | esac |
11796 | _ACEOF | |
11797 | ||
11798 | # Neutralize VPATH when `$srcdir' = `.'. | |
11799 | # Shell code in configure.ac might set extrasub. | |
11800 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11801 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11802 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11803 | $extrasub |
11804 | _ACEOF | |
ec6a6fbe | 11805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11806 | :t |
11807 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11808 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11809 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11810 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11811 | s&@srcdir@&$ac_srcdir&;t t |
11812 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11813 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11814 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11815 | s&@builddir@&$ac_builddir&;t t | |
11816 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11817 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11818 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11819 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11820 | $ac_datarootdir_hack |
ec6a6fbe AK |
11821 | " |
11822 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11823 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11824 | |
11825 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11826 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11827 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11829 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11830 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11831 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11832 | |
11833 | rm -f "$tmp/stdin" | |
72b2cb61 | 11834 | case $ac_file in |
ec6a6fbe AK |
11835 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11836 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11837 | esac \ | |
f11781c5 | 11838 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11839 | ;; |
11840 | :H) | |
11841 | # | |
11842 | # CONFIG_HEADER | |
11843 | # | |
72b2cb61 | 11844 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11845 | { |
11846 | $as_echo "/* $configure_input */" \ | |
11847 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11848 | } >"$tmp/config.h" \ | |
f11781c5 | 11849 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11850 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11852 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11853 | else |
ec6a6fbe AK |
11854 | rm -f "$ac_file" |
11855 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11856 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11857 | fi |
11858 | else | |
ec6a6fbe AK |
11859 | $as_echo "/* $configure_input */" \ |
11860 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11861 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11862 | fi |
7a197a62 AK |
11863 | ;; |
11864 | ||
11865 | ||
11866 | esac | |
11867 | ||
11868 | done # for ac_tag | |
795ca3e5 | 11869 | |
795ca3e5 | 11870 | |
f11781c5 | 11871 | as_fn_exit 0 |
ad6254c5 | 11872 | _ACEOF |
ad6254c5 AK |
11873 | ac_clean_files=$ac_clean_files_save |
11874 | ||
ec6a6fbe | 11875 | test $ac_write_fail = 0 || |
f11781c5 | 11876 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11877 | |
ad6254c5 AK |
11878 | |
11879 | # configure is writing to config.log, and then calls config.status. | |
11880 | # config.status does its own redirection, appending to config.log. | |
11881 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11882 | # by configure, so config.status won't be able to write to it; its | |
11883 | # output is simply discarded. So we exec the FD to /dev/null, | |
11884 | # effectively closing config.log, so it can be properly (re)opened and | |
11885 | # appended to by config.status. When coming back to configure, we | |
11886 | # need to make the FD available again. | |
11887 | if test "$no_create" != yes; then | |
11888 | ac_cs_success=: | |
11889 | ac_config_status_args= | |
11890 | test "$silent" = yes && | |
11891 | ac_config_status_args="$ac_config_status_args --quiet" | |
11892 | exec 5>/dev/null | |
11893 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11894 | exec 5>>config.log | |
11895 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11896 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11897 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11898 | fi |
ec6a6fbe | 11899 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11901 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11902 | fi | |
795ca3e5 | 11903 | |
2dc95e1c AK |
11904 | |
11905 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11907 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11908 | fi |