]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f11781c5 AK |
3 | # Generated by GNU Autoconf 2.66. |
4 | # | |
795ca3e5 | 5 | # |
7a197a62 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
f11781c5 AK |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
795ca3e5 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
ad6254c5 | 16 | |
25fbec5b AK |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
20 | emulate sh |
21 | NULLCMD=: | |
ec6a6fbe | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
25 | setopt NO_GLOB_SUBST |
26 | else | |
f11781c5 AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
25fbec5b | 32 | esac |
7a197a62 | 33 | fi |
25fbec5b AK |
34 | |
35 | ||
ec6a6fbe AK |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 56 | else |
ec6a6fbe AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
f11781c5 | 60 | case $arg in #( |
ec6a6fbe AK |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 69 | fi |
ec6a6fbe AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
ad6254c5 AK |
81 | fi |
82 | ||
ad6254c5 | 83 | |
7a197a62 AK |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 92 | case $0 in #(( |
7a197a62 AK |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7a197a62 AK |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 112 | exit 1 |
7a197a62 AK |
113 | fi |
114 | ||
f11781c5 AK |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 122 | done |
ad6254c5 AK |
123 | PS1='$ ' |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
ec6a6fbe AK |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
ad6254c5 | 132 | |
f11781c5 AK |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 | $0: including any error possibly output before this | |
233 | $0: message. Then install a modern shell, or manually run | |
234 | $0: the script under such a shell if you do have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 | # ---------------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with STATUS, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 | if test "$4"; then | |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 | fi | |
371 | $as_echo "$as_me: error: $2" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
7a197a62 AK |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
377 | as_expr=expr |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
7a197a62 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
383 | as_basename=basename |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
f11781c5 AK |
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
ad6254c5 | 393 | |
7a197a62 | 394 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 398 | $as_echo X/"$0" | |
7a197a62 AK |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
ad6254c5 | 412 | |
f11781c5 AK |
413 | # Avoid depending upon Character Ranges. |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 419 | |
ad6254c5 | 420 | |
f11781c5 AK |
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ad6254c5 | 443 | |
f11781c5 AK |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
7a197a62 | 450 | } |
ad6254c5 | 451 | |
f11781c5 AK |
452 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
ad6254c5 | 464 | |
f11781c5 AK |
465 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 471 | fi |
f11781c5 AK |
472 | if (echo >conf$$.file) 2>/dev/null; then |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
7a197a62 | 486 | else |
f11781c5 | 487 | as_ln_s='cp -p' |
7a197a62 | 488 | fi |
f11781c5 AK |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 491 | |
f11781c5 AK |
492 | if mkdir -p . 2>/dev/null; then |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
7a197a62 AK |
497 | fi |
498 | ||
f11781c5 AK |
499 | if test -x / >/dev/null 2>&1; then |
500 | as_test_x='test -x' | |
7a197a62 | 501 | else |
f11781c5 AK |
502 | if ls -dL / >/dev/null 2>&1; then |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
7a197a62 | 519 | fi |
f11781c5 | 520 | as_executable_p=$as_test_x |
7a197a62 | 521 | |
f11781c5 AK |
522 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 | 524 | |
f11781c5 AK |
525 | # Sed expression to map a string onto a valid variable name. |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 AK |
527 | |
528 | ||
f11781c5 AK |
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
530 | exec 6>&1 | |
ad6254c5 AK |
531 | |
532 | # Name of the host. | |
f11781c5 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
534 | # so uname gets run too. |
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
536 | ||
ad6254c5 AK |
537 | # |
538 | # Initializations. | |
539 | # | |
795ca3e5 | 540 | ac_default_prefix=/usr/local |
7a197a62 | 541 | ac_clean_files= |
ad6254c5 | 542 | ac_config_libobj_dir=. |
7a197a62 | 543 | LIBOBJS= |
ad6254c5 AK |
544 | cross_compiling=no |
545 | subdirs= | |
546 | MFLAGS= | |
547 | MAKEFLAGS= | |
ad6254c5 | 548 | |
ad6254c5 AK |
549 | # Identity of this package. |
550 | PACKAGE_NAME= | |
551 | PACKAGE_TARNAME= | |
552 | PACKAGE_VERSION= | |
553 | PACKAGE_STRING= | |
554 | PACKAGE_BUGREPORT= | |
f11781c5 | 555 | PACKAGE_URL= |
ad6254c5 AK |
556 | |
557 | ac_unique_file="lib/device/dev-cache.h" | |
558 | # Factoring default headers for most tests. | |
559 | ac_includes_default="\ | |
560 | #include <stdio.h> | |
25fbec5b | 561 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
562 | # include <sys/types.h> |
563 | #endif | |
25fbec5b | 564 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
565 | # include <sys/stat.h> |
566 | #endif | |
25fbec5b | 567 | #ifdef STDC_HEADERS |
ad6254c5 AK |
568 | # include <stdlib.h> |
569 | # include <stddef.h> | |
570 | #else | |
25fbec5b | 571 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
572 | # include <stdlib.h> |
573 | # endif | |
574 | #endif | |
25fbec5b AK |
575 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
577 | # include <memory.h> |
578 | # endif | |
579 | # include <string.h> | |
580 | #endif | |
25fbec5b | 581 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
582 | # include <strings.h> |
583 | #endif | |
25fbec5b | 584 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 585 | # include <inttypes.h> |
ad6254c5 | 586 | #endif |
25fbec5b | 587 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
588 | # include <stdint.h> |
589 | #endif | |
25fbec5b | 590 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
591 | # include <unistd.h> |
592 | #endif" | |
593 | ||
f11781c5 | 594 | ac_header_list= |
795ca3e5 | 595 | ac_default_prefix=/usr |
ec6a6fbe | 596 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 597 | usrsbindir |
ec6a6fbe | 598 | usrlibdir |
a5f46f6a AK |
599 | udevdir |
600 | udev_prefix | |
ec6a6fbe AK |
601 | tmpdir |
602 | kernelvsn | |
603 | missingkernel | |
604 | kerneldir | |
605 | interface | |
6e5c1f75 | 606 | DMEVENTD_PIDFILE |
23b059e7 | 607 | WRITE_INSTALL |
0878503f | 608 | UDEV_SYNC |
a5f46f6a | 609 | UDEV_RULES |
f7f0854e | 610 | UDEV_PC |
3ba4a195 | 611 | THIN |
54b362f9 | 612 | TESTING |
ec6a6fbe AK |
613 | STATIC_LINK |
614 | STATICDIR | |
615 | SNAPSHOTS | |
f7f0854e | 616 | SELINUX_PC |
e1b8a236 | 617 | SELINUX_LIBS |
cac52ca4 | 618 | REPLICATORS |
539f4a77 | 619 | READLINE_LIBS |
cac52ca4 | 620 | RAID |
f30875db | 621 | PTHREAD_LIBS |
ec6a6fbe AK |
622 | POOL |
623 | PKGCONFIG | |
606d0858 | 624 | OCFDIR |
37ddf259 | 625 | OCF |
ec6a6fbe AK |
626 | MIRRORS |
627 | LVM_RELEASE_DATE | |
628 | LVM_RELEASE | |
d2c11605 | 629 | LVM_PATH |
ec6a6fbe AK |
630 | LVM_PATCHLEVEL |
631 | LVM_MINOR | |
632 | LVM_MAJOR | |
bf456146 | 633 | LVM_LIBAPI |
ec6a6fbe | 634 | LVM_VERSION |
ec6a6fbe AK |
635 | LVM1_FALLBACK |
636 | LVM1 | |
637 | LOCALEDIR | |
638 | LIB_SUFFIX | |
639 | LDDEPS | |
640 | JOBS | |
641 | INTL_PACKAGE | |
642 | INTL | |
ec6a6fbe AK |
643 | HAVE_REALTIME |
644 | HAVE_LIBDL | |
ec6a6fbe | 645 | FSADM |
bf09a320 | 646 | ELDFLAGS |
ec6a6fbe AK |
647 | DM_LIB_PATCHLEVEL |
648 | DM_LIB_VERSION | |
649 | DM_IOCTLS | |
650 | DM_DEVICE_UID | |
651 | DM_DEVICE_MODE | |
652 | DM_DEVICE_GID | |
653 | DM_COMPAT | |
d1e8046f | 654 | DMEVENTD_PATH |
ec6a6fbe | 655 | DMEVENTD |
19a2c6e0 | 656 | DL_LIBS |
ec6a6fbe | 657 | DEVMAPPER |
b1f08e51 | 658 | DEFAULT_RUN_DIR |
3399ae32 | 659 | DEFAULT_LOCK_DIR |
fea55602 | 660 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
661 | DEFAULT_CACHE_SUBDIR |
662 | DEFAULT_BACKUP_SUBDIR | |
663 | DEFAULT_ARCHIVE_SUBDIR | |
664 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
665 | DEBUG |
666 | COPTIMISE_FLAG | |
e2997b73 | 667 | CONFDIR |
ec6a6fbe | 668 | CMDLIB |
d2c11605 | 669 | CLVMD_PATH |
c89bc357 | 670 | CLVMD_CMANAGERS |
ec6a6fbe AK |
671 | CLVMD |
672 | CLUSTER | |
673 | CLDWHOLEARCHIVE | |
674 | CLDNOWHOLEARCHIVE | |
675 | CLDFLAGS | |
cdd50823 | 676 | BUILD_LVMETAD |
ec6a6fbe | 677 | BUILD_DMEVENTD |
66fd4529 | 678 | BUILD_CMIRRORD |
572fefeb | 679 | APPLIB |
ec6a6fbe AK |
680 | MODPROBE_CMD |
681 | MSGFMT | |
682 | LVM2CMD_LIB | |
572fefeb | 683 | LVM2APP_LIB |
d93275eb PR |
684 | UDEV_LIBS |
685 | UDEV_CFLAGS | |
54b362f9 AK |
686 | VALGRIND |
687 | RUBY19 | |
fd4728e1 | 688 | GENPNG |
ec6a6fbe AK |
689 | GENHTML |
690 | LCOV | |
90c80887 AK |
691 | SACKPT_LIBS |
692 | SACKPT_CFLAGS | |
a946372e AK |
693 | DLM_LIBS |
694 | DLM_CFLAGS | |
e2997b73 AK |
695 | CPG_LIBS |
696 | CPG_CFLAGS | |
697 | CONFDB_LIBS | |
698 | CONFDB_CFLAGS | |
a946372e AK |
699 | SALCK_LIBS |
700 | SALCK_CFLAGS | |
e2997b73 AK |
701 | QUORUM_LIBS |
702 | QUORUM_CFLAGS | |
a946372e AK |
703 | COROSYNC_LIBS |
704 | COROSYNC_CFLAGS | |
705 | CMAN_LIBS | |
706 | CMAN_CFLAGS | |
a946372e AK |
707 | PKGCONFIGINIT_LIBS |
708 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
709 | PKG_CONFIG_LIBDIR |
710 | PKG_CONFIG_PATH | |
e2997b73 | 711 | PKG_CONFIG |
ec6a6fbe AK |
712 | POW_LIB |
713 | LIBOBJS | |
714 | ALLOCA | |
715 | CSCOPE_CMD | |
716 | CFLOW_CMD | |
717 | RANLIB | |
718 | MKDIR_P | |
719 | SET_MAKE | |
720 | LN_S | |
721 | INSTALL_DATA | |
722 | INSTALL_SCRIPT | |
723 | INSTALL_PROGRAM | |
724 | EGREP | |
725 | GREP | |
726 | CPP | |
727 | OBJEXT | |
728 | EXEEXT | |
729 | ac_ct_CC | |
730 | CPPFLAGS | |
731 | LDFLAGS | |
732 | CFLAGS | |
733 | CC | |
734 | AWK | |
735 | SED | |
736 | target_os | |
737 | target_vendor | |
738 | target_cpu | |
739 | target | |
740 | host_os | |
741 | host_vendor | |
742 | host_cpu | |
743 | host | |
744 | build_os | |
745 | build_vendor | |
746 | build_cpu | |
747 | build | |
748 | target_alias | |
749 | host_alias | |
750 | build_alias | |
751 | LIBS | |
752 | ECHO_T | |
753 | ECHO_N | |
754 | ECHO_C | |
755 | DEFS | |
756 | mandir | |
757 | localedir | |
758 | libdir | |
759 | psdir | |
760 | pdfdir | |
761 | dvidir | |
762 | htmldir | |
763 | infodir | |
764 | docdir | |
765 | oldincludedir | |
766 | includedir | |
767 | localstatedir | |
768 | sharedstatedir | |
769 | sysconfdir | |
770 | datadir | |
771 | datarootdir | |
772 | libexecdir | |
773 | sbindir | |
774 | bindir | |
775 | program_transform_name | |
776 | prefix | |
777 | exec_prefix | |
f11781c5 | 778 | PACKAGE_URL |
ec6a6fbe AK |
779 | PACKAGE_BUGREPORT |
780 | PACKAGE_STRING | |
781 | PACKAGE_VERSION | |
782 | PACKAGE_TARNAME | |
783 | PACKAGE_NAME | |
784 | PATH_SEPARATOR | |
785 | SHELL' | |
ad6254c5 | 786 | ac_subst_files='' |
ec6a6fbe AK |
787 | ac_user_opts=' |
788 | enable_option_checking | |
789 | enable_static_link | |
790 | with_user | |
791 | with_group | |
792 | with_device_uid | |
793 | with_device_gid | |
794 | with_device_mode | |
d0df875d | 795 | with_device_nodes_on |
ec6a6fbe AK |
796 | enable_lvm1_fallback |
797 | with_lvm1 | |
798 | with_pool | |
799 | with_cluster | |
800 | with_snapshots | |
801 | with_mirrors | |
cac52ca4 | 802 | with_raid |
8fea97b7 | 803 | with_replicators |
3ba4a195 | 804 | with_thin |
ec6a6fbe AK |
805 | enable_readline |
806 | enable_realtime | |
37ddf259 | 807 | enable_ocf |
606d0858 | 808 | with_ocfdir |
ec6a6fbe | 809 | with_clvmd |
8c4e8a18 | 810 | with_clvmd_pidfile |
66fd4529 AK |
811 | enable_cmirrord |
812 | with_cmirrord_pidfile | |
ec6a6fbe AK |
813 | enable_debug |
814 | with_optimisation | |
815 | enable_profiling | |
54b362f9 | 816 | enable_testing |
d1e8046f | 817 | enable_valgrind_pool |
ec6a6fbe | 818 | enable_devmapper |
cdd50823 | 819 | enable_lvmetad |
a5f46f6a AK |
820 | enable_udev_sync |
821 | enable_udev_rules | |
ec6a6fbe | 822 | enable_compat |
95eaa683 | 823 | enable_units_compat |
ec6a6fbe AK |
824 | enable_ioctl |
825 | enable_o_direct | |
572fefeb | 826 | enable_applib |
ec6a6fbe AK |
827 | enable_cmdlib |
828 | enable_pkgconfig | |
23b059e7 | 829 | enable_write_install |
ec6a6fbe AK |
830 | enable_fsadm |
831 | enable_dmeventd | |
832 | enable_selinux | |
833 | enable_nls | |
834 | with_localedir | |
835 | with_confdir | |
836 | with_staticdir | |
837 | with_usrlibdir | |
838 | with_usrsbindir | |
a5f46f6a | 839 | with_udev_prefix |
78ce7acc | 840 | with_udevdir |
ec6a6fbe AK |
841 | with_dmeventd_pidfile |
842 | with_dmeventd_path | |
8bae0a1e | 843 | with_default_run_dir |
3399ae32 AK |
844 | with_default_system_dir |
845 | with_default_archive_subdir | |
846 | with_default_backup_subdir | |
847 | with_default_cache_subdir | |
848 | with_default_locking_dir | |
fea55602 | 849 | with_default_data_alignment |
ec6a6fbe AK |
850 | with_interface |
851 | ' | |
7a197a62 AK |
852 | ac_precious_vars='build_alias |
853 | host_alias | |
854 | target_alias | |
855 | CC | |
856 | CFLAGS | |
857 | LDFLAGS | |
25fbec5b | 858 | LIBS |
7a197a62 | 859 | CPPFLAGS |
e2997b73 AK |
860 | CPP |
861 | PKG_CONFIG | |
f11781c5 AK |
862 | PKG_CONFIG_PATH |
863 | PKG_CONFIG_LIBDIR | |
a946372e AK |
864 | PKGCONFIGINIT_CFLAGS |
865 | PKGCONFIGINIT_LIBS | |
a946372e AK |
866 | CMAN_CFLAGS |
867 | CMAN_LIBS | |
868 | COROSYNC_CFLAGS | |
869 | COROSYNC_LIBS | |
e2997b73 AK |
870 | QUORUM_CFLAGS |
871 | QUORUM_LIBS | |
a946372e AK |
872 | SALCK_CFLAGS |
873 | SALCK_LIBS | |
e2997b73 AK |
874 | CONFDB_CFLAGS |
875 | CONFDB_LIBS | |
876 | CPG_CFLAGS | |
a946372e AK |
877 | CPG_LIBS |
878 | DLM_CFLAGS | |
90c80887 AK |
879 | DLM_LIBS |
880 | SACKPT_CFLAGS | |
d93275eb PR |
881 | SACKPT_LIBS |
882 | UDEV_CFLAGS | |
883 | UDEV_LIBS' | |
7a197a62 | 884 | |
795ca3e5 AK |
885 | |
886 | # Initialize some variables set by options. | |
ad6254c5 AK |
887 | ac_init_help= |
888 | ac_init_version=false | |
ec6a6fbe AK |
889 | ac_unrecognized_opts= |
890 | ac_unrecognized_sep= | |
795ca3e5 AK |
891 | # The variables have the same names as the options, with |
892 | # dashes changed to underlines. | |
ad6254c5 | 893 | cache_file=/dev/null |
795ca3e5 | 894 | exec_prefix=NONE |
795ca3e5 | 895 | no_create= |
795ca3e5 AK |
896 | no_recursion= |
897 | prefix=NONE | |
898 | program_prefix=NONE | |
899 | program_suffix=NONE | |
900 | program_transform_name=s,x,x, | |
901 | silent= | |
902 | site= | |
903 | srcdir= | |
795ca3e5 AK |
904 | verbose= |
905 | x_includes=NONE | |
906 | x_libraries=NONE | |
ad6254c5 AK |
907 | |
908 | # Installation directory options. | |
909 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
910 | # and all the variables that are supposed to be based on exec_prefix | |
911 | # by default will actually change. | |
912 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 913 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
914 | bindir='${exec_prefix}/bin' |
915 | sbindir='${exec_prefix}/sbin' | |
916 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
917 | datarootdir='${prefix}/share' |
918 | datadir='${datarootdir}' | |
795ca3e5 AK |
919 | sysconfdir='${prefix}/etc' |
920 | sharedstatedir='${prefix}/com' | |
921 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
922 | includedir='${prefix}/include' |
923 | oldincludedir='/usr/include' | |
7a197a62 AK |
924 | docdir='${datarootdir}/doc/${PACKAGE}' |
925 | infodir='${datarootdir}/info' | |
926 | htmldir='${docdir}' | |
927 | dvidir='${docdir}' | |
928 | pdfdir='${docdir}' | |
929 | psdir='${docdir}' | |
930 | libdir='${exec_prefix}/lib' | |
931 | localedir='${datarootdir}/locale' | |
932 | mandir='${datarootdir}/man' | |
795ca3e5 | 933 | |
795ca3e5 | 934 | ac_prev= |
7a197a62 | 935 | ac_dashdash= |
795ca3e5 AK |
936 | for ac_option |
937 | do | |
795ca3e5 AK |
938 | # If the previous option needs an argument, assign it. |
939 | if test -n "$ac_prev"; then | |
7a197a62 | 940 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
941 | ac_prev= |
942 | continue | |
943 | fi | |
944 | ||
7a197a62 AK |
945 | case $ac_option in |
946 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
947 | *) ac_optarg=yes ;; | |
948 | esac | |
795ca3e5 AK |
949 | |
950 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
951 | ||
7a197a62 AK |
952 | case $ac_dashdash$ac_option in |
953 | --) | |
954 | ac_dashdash=yes ;; | |
795ca3e5 AK |
955 | |
956 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
957 | ac_prev=bindir ;; | |
958 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 959 | bindir=$ac_optarg ;; |
795ca3e5 AK |
960 | |
961 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 962 | ac_prev=build_alias ;; |
795ca3e5 | 963 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 964 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
965 | |
966 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
967 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
968 | ac_prev=cache_file ;; | |
969 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
970 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
971 | cache_file=$ac_optarg ;; |
972 | ||
973 | --config-cache | -C) | |
974 | cache_file=config.cache ;; | |
795ca3e5 | 975 | |
7a197a62 | 976 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 977 | ac_prev=datadir ;; |
7a197a62 | 978 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 979 | datadir=$ac_optarg ;; |
795ca3e5 | 980 | |
7a197a62 AK |
981 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
982 | | --dataroo | --dataro | --datar) | |
983 | ac_prev=datarootdir ;; | |
984 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
985 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
986 | datarootdir=$ac_optarg ;; | |
987 | ||
795ca3e5 | 988 | -disable-* | --disable-*) |
ec6a6fbe | 989 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 990 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 991 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 992 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
993 | ac_useropt_orig=$ac_useropt |
994 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
995 | case $ac_user_opts in | |
996 | *" | |
997 | "enable_$ac_useropt" | |
998 | "*) ;; | |
999 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1000 | ac_unrecognized_sep=', ';; | |
1001 | esac | |
1002 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1003 | |
1004 | -docdir | --docdir | --docdi | --doc | --do) | |
1005 | ac_prev=docdir ;; | |
1006 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1007 | docdir=$ac_optarg ;; | |
1008 | ||
1009 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1010 | ac_prev=dvidir ;; | |
1011 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1012 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1013 | |
1014 | -enable-* | --enable-*) | |
ec6a6fbe | 1015 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1016 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1017 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1018 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1019 | ac_useropt_orig=$ac_useropt |
1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1021 | case $ac_user_opts in | |
1022 | *" | |
1023 | "enable_$ac_useropt" | |
1024 | "*) ;; | |
1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1026 | ac_unrecognized_sep=', ';; | |
1027 | esac | |
1028 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1029 | |
1030 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1031 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1032 | | --exec | --exe | --ex) | |
1033 | ac_prev=exec_prefix ;; | |
1034 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1035 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1036 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1037 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1038 | |
1039 | -gas | --gas | --ga | --g) | |
1040 | # Obsolete; use --with-gas. | |
1041 | with_gas=yes ;; | |
1042 | ||
ad6254c5 AK |
1043 | -help | --help | --hel | --he | -h) |
1044 | ac_init_help=long ;; | |
1045 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1046 | ac_init_help=recursive ;; | |
1047 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1048 | ac_init_help=short ;; | |
795ca3e5 AK |
1049 | |
1050 | -host | --host | --hos | --ho) | |
ad6254c5 | 1051 | ac_prev=host_alias ;; |
795ca3e5 | 1052 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1053 | host_alias=$ac_optarg ;; |
795ca3e5 | 1054 | |
7a197a62 AK |
1055 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1056 | ac_prev=htmldir ;; | |
1057 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1058 | | --ht=*) | |
1059 | htmldir=$ac_optarg ;; | |
1060 | ||
795ca3e5 AK |
1061 | -includedir | --includedir | --includedi | --included | --include \ |
1062 | | --includ | --inclu | --incl | --inc) | |
1063 | ac_prev=includedir ;; | |
1064 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1065 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1066 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1067 | |
1068 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1069 | ac_prev=infodir ;; | |
1070 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1071 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1072 | |
1073 | -libdir | --libdir | --libdi | --libd) | |
1074 | ac_prev=libdir ;; | |
1075 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1076 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1077 | |
1078 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1079 | | --libexe | --libex | --libe) | |
1080 | ac_prev=libexecdir ;; | |
1081 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1082 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1083 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1084 | |
7a197a62 AK |
1085 | -localedir | --localedir | --localedi | --localed | --locale) |
1086 | ac_prev=localedir ;; | |
1087 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1088 | localedir=$ac_optarg ;; | |
1089 | ||
795ca3e5 | 1090 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1091 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1092 | ac_prev=localstatedir ;; |
1093 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1094 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1095 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1096 | |
1097 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1098 | ac_prev=mandir ;; | |
1099 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1100 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1101 | |
1102 | -nfp | --nfp | --nf) | |
1103 | # Obsolete; use --without-fp. | |
1104 | with_fp=no ;; | |
1105 | ||
1106 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1107 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1108 | no_create=yes ;; |
1109 | ||
1110 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1111 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1112 | no_recursion=yes ;; | |
1113 | ||
1114 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1115 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1116 | | --oldin | --oldi | --old | --ol | --o) | |
1117 | ac_prev=oldincludedir ;; | |
1118 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1119 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1120 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1121 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1122 | |
1123 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1124 | ac_prev=prefix ;; | |
1125 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1126 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1127 | |
1128 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1129 | | --program-pre | --program-pr | --program-p) | |
1130 | ac_prev=program_prefix ;; | |
1131 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1132 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1133 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1134 | |
1135 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1136 | | --program-suf | --program-su | --program-s) | |
1137 | ac_prev=program_suffix ;; | |
1138 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1139 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1140 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1141 | |
1142 | -program-transform-name | --program-transform-name \ | |
1143 | | --program-transform-nam | --program-transform-na \ | |
1144 | | --program-transform-n | --program-transform- \ | |
1145 | | --program-transform | --program-transfor \ | |
1146 | | --program-transfo | --program-transf \ | |
1147 | | --program-trans | --program-tran \ | |
1148 | | --progr-tra | --program-tr | --program-t) | |
1149 | ac_prev=program_transform_name ;; | |
1150 | -program-transform-name=* | --program-transform-name=* \ | |
1151 | | --program-transform-nam=* | --program-transform-na=* \ | |
1152 | | --program-transform-n=* | --program-transform-=* \ | |
1153 | | --program-transform=* | --program-transfor=* \ | |
1154 | | --program-transfo=* | --program-transf=* \ | |
1155 | | --program-trans=* | --program-tran=* \ | |
1156 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1157 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1158 | |
7a197a62 AK |
1159 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1160 | ac_prev=pdfdir ;; | |
1161 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1162 | pdfdir=$ac_optarg ;; | |
1163 | ||
1164 | -psdir | --psdir | --psdi | --psd | --ps) | |
1165 | ac_prev=psdir ;; | |
1166 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1167 | psdir=$ac_optarg ;; | |
1168 | ||
795ca3e5 AK |
1169 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1170 | | -silent | --silent | --silen | --sile | --sil) | |
1171 | silent=yes ;; | |
1172 | ||
1173 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1174 | ac_prev=sbindir ;; | |
1175 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1176 | | --sbi=* | --sb=*) | |
ad6254c5 | 1177 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1178 | |
1179 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1180 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1181 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1182 | | --sha | --sh) | |
1183 | ac_prev=sharedstatedir ;; | |
1184 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1185 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1186 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1187 | | --sha=* | --sh=*) | |
ad6254c5 | 1188 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1189 | |
1190 | -site | --site | --sit) | |
1191 | ac_prev=site ;; | |
1192 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1193 | site=$ac_optarg ;; |
795ca3e5 AK |
1194 | |
1195 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1196 | ac_prev=srcdir ;; | |
1197 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1198 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1199 | |
1200 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1201 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1202 | ac_prev=sysconfdir ;; | |
1203 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1204 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1205 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1206 | |
1207 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1208 | ac_prev=target_alias ;; |
795ca3e5 | 1209 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1210 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1211 | |
1212 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1213 | verbose=yes ;; | |
1214 | ||
ad6254c5 AK |
1215 | -version | --version | --versio | --versi | --vers | -V) |
1216 | ac_init_version=: ;; | |
795ca3e5 AK |
1217 | |
1218 | -with-* | --with-*) | |
ec6a6fbe | 1219 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1220 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1221 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1222 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1223 | ac_useropt_orig=$ac_useropt |
1224 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1225 | case $ac_user_opts in | |
1226 | *" | |
1227 | "with_$ac_useropt" | |
1228 | "*) ;; | |
1229 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1230 | ac_unrecognized_sep=', ';; | |
1231 | esac | |
1232 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1233 | |
1234 | -without-* | --without-*) | |
ec6a6fbe | 1235 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1236 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1237 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1238 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1239 | ac_useropt_orig=$ac_useropt |
1240 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1241 | case $ac_user_opts in | |
1242 | *" | |
1243 | "with_$ac_useropt" | |
1244 | "*) ;; | |
1245 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1246 | ac_unrecognized_sep=', ';; | |
1247 | esac | |
1248 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1249 | |
1250 | --x) | |
1251 | # Obsolete; use --with-x. | |
1252 | with_x=yes ;; | |
1253 | ||
1254 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1255 | | --x-incl | --x-inc | --x-in | --x-i) | |
1256 | ac_prev=x_includes ;; | |
1257 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1258 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1259 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1260 | |
1261 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1262 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1263 | ac_prev=x_libraries ;; | |
1264 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1265 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1266 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1267 | |
f11781c5 AK |
1268 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1269 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1270 | ;; |
1271 | ||
ad6254c5 AK |
1272 | *=*) |
1273 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1274 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1275 | case $ac_envvar in #( |
1276 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1277 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1278 | esac | |
7a197a62 | 1279 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1280 | export $ac_envvar ;; |
1281 | ||
795ca3e5 | 1282 | *) |
ad6254c5 | 1283 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1284 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1285 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1286 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1287 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1288 | ;; |
1289 | ||
1290 | esac | |
1291 | done | |
1292 | ||
1293 | if test -n "$ac_prev"; then | |
ad6254c5 | 1294 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1295 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1296 | fi |
795ca3e5 | 1297 | |
ec6a6fbe AK |
1298 | if test -n "$ac_unrecognized_opts"; then |
1299 | case $enable_option_checking in | |
1300 | no) ;; | |
f11781c5 | 1301 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1302 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1303 | esac | |
1304 | fi | |
1305 | ||
1306 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1307 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1308 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1309 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1310 | libdir localedir mandir | |
795ca3e5 | 1311 | do |
7a197a62 | 1312 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1313 | # Remove trailing slashes. |
1314 | case $ac_val in | |
1315 | */ ) | |
1316 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1317 | eval $ac_var=\$ac_val;; | |
1318 | esac | |
1319 | # Be sure to have absolute directory names. | |
ad6254c5 | 1320 | case $ac_val in |
7a197a62 AK |
1321 | [\\/$]* | ?:[\\/]* ) continue;; |
1322 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1323 | esac |
f11781c5 | 1324 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1325 | done |
1326 | ||
ad6254c5 AK |
1327 | # There might be people who depend on the old broken behavior: `$host' |
1328 | # used to hold the argument of --host etc. | |
1329 | # FIXME: To remove some day. | |
1330 | build=$build_alias | |
1331 | host=$host_alias | |
1332 | target=$target_alias | |
1333 | ||
1334 | # FIXME: To remove some day. | |
1335 | if test "x$host_alias" != x; then | |
1336 | if test "x$build_alias" = x; then | |
1337 | cross_compiling=maybe | |
f11781c5 AK |
1338 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1339 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1340 | elif test "x$build_alias" != "x$host_alias"; then |
1341 | cross_compiling=yes | |
1342 | fi | |
1343 | fi | |
8106cdd5 | 1344 | |
ad6254c5 AK |
1345 | ac_tool_prefix= |
1346 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1347 | ||
1348 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1349 | |
795ca3e5 | 1350 | |
7a197a62 AK |
1351 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1352 | ac_ls_di=`ls -di .` && | |
1353 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1354 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1355 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1356 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1357 | |
1358 | ||
795ca3e5 AK |
1359 | # Find the source files, if location was not specified. |
1360 | if test -z "$srcdir"; then | |
1361 | ac_srcdir_defaulted=yes | |
7a197a62 | 1362 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1363 | ac_confdir=`$as_dirname -- "$as_myself" || |
1364 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1365 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1366 | X"$as_myself" : 'X\(//\)$' \| \ | |
1367 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1368 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\/\)[^/].*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | /^X\(\/\/\)$/{ | |
1378 | s//\1/ | |
1379 | q | |
1380 | } | |
1381 | /^X\(\/\).*/{ | |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | s/.*/./; q'` | |
795ca3e5 | 1386 | srcdir=$ac_confdir |
7a197a62 | 1387 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1388 | srcdir=.. |
1389 | fi | |
1390 | else | |
1391 | ac_srcdir_defaulted=no | |
1392 | fi | |
7a197a62 AK |
1393 | if test ! -r "$srcdir/$ac_unique_file"; then |
1394 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1395 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1396 | fi |
7a197a62 AK |
1397 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1398 | ac_abs_confdir=`( | |
f11781c5 | 1399 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1400 | pwd)` |
1401 | # When building in place, set srcdir=. | |
1402 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1403 | srcdir=. | |
1404 | fi | |
1405 | # Remove unnecessary trailing slashes from srcdir. | |
1406 | # Double slashes in file names in object file debugging info | |
1407 | # mess up M-x gdb in Emacs. | |
1408 | case $srcdir in | |
1409 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1410 | esac | |
1411 | for ac_var in $ac_precious_vars; do | |
1412 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1413 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1414 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1415 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1416 | done | |
ad6254c5 AK |
1417 | |
1418 | # | |
1419 | # Report the --help message. | |
1420 | # | |
1421 | if test "$ac_init_help" = "long"; then | |
1422 | # Omit some internal or obsolete options to make the list less imposing. | |
1423 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1424 | cat <<_ACEOF | |
1425 | \`configure' configures this package to adapt to many kinds of systems. | |
1426 | ||
1427 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1428 | ||
1429 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1430 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1431 | ||
1432 | Defaults for the options are specified in brackets. | |
1433 | ||
1434 | Configuration: | |
1435 | -h, --help display this help and exit | |
1436 | --help=short display options specific to this package | |
1437 | --help=recursive display the short help of all the included packages | |
1438 | -V, --version display version information and exit | |
f11781c5 | 1439 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1440 | --cache-file=FILE cache test results in FILE [disabled] |
1441 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1442 | -n, --no-create do not create output files | |
1443 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1444 | ||
ad6254c5 AK |
1445 | Installation directories: |
1446 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1447 | [$ac_default_prefix] |
ad6254c5 | 1448 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1449 | [PREFIX] |
ad6254c5 AK |
1450 | |
1451 | By default, \`make install' will install all the files in | |
1452 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1453 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1454 | for instance \`--prefix=\$HOME'. | |
1455 | ||
1456 | For better control, use the options below. | |
1457 | ||
1458 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1459 | --bindir=DIR user executables [EPREFIX/bin] |
1460 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1461 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1462 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1463 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1464 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1465 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1466 | --includedir=DIR C header files [PREFIX/include] | |
1467 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1468 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1469 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1470 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1471 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1472 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1473 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1474 | --htmldir=DIR html documentation [DOCDIR] | |
1475 | --dvidir=DIR dvi documentation [DOCDIR] | |
1476 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1477 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1478 | _ACEOF |
1479 | ||
1480 | cat <<\_ACEOF | |
1481 | ||
1482 | System types: | |
1483 | --build=BUILD configure for building on BUILD [guessed] | |
1484 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1485 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1486 | _ACEOF | |
1487 | fi | |
1488 | ||
1489 | if test -n "$ac_init_help"; then | |
1490 | ||
1491 | cat <<\_ACEOF | |
1492 | ||
1493 | Optional Features: | |
ec6a6fbe | 1494 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1495 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1496 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1497 | --enable-static_link use this to link the tools to their libraries |
1498 | statically (default is dynamic linking | |
1499 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1500 | device-mapper is missing from the kernel |
71082be4 ZK |
1501 | --disable-readline disable readline support |
1502 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1503 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1504 | resource agents | |
71082be4 ZK |
1505 | --enable-cmirrord enable the cluster mirror log daemon |
1506 | --enable-debug enable debugging | |
1507 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1508 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1509 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1510 | --disable-devmapper disable LVM2 device-mapper interaction |
cdd50823 | 1511 | --disable-lvmetad disable the LVM Metadata Daemon |
71082be4 ZK |
1512 | --enable-udev_sync enable synchronisation with udev processing |
1513 | --enable-udev_rules install rule files needed for udev synchronisation | |
1514 | --enable-compat enable support for old device-mapper versions | |
1515 | --enable-units-compat enable output compatibility with old versions that | |
1516 | that do not use KiB-style unit suffixes | |
1517 | --disable-driver disable calls to device-mapper in the kernel | |
1518 | --disable-o_direct disable O_DIRECT | |
1519 | --enable-applib build application library | |
1520 | --enable-cmdlib build shared command library | |
1521 | --enable-pkgconfig install pkgconfig support | |
1522 | --enable-write_install install user writable files | |
1523 | --disable-fsadm disable fsadm | |
1524 | --enable-dmeventd enable the device-mapper event daemon | |
1525 | --disable-selinux disable selinux support | |
1526 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1527 | |
1528 | Optional Packages: | |
1529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1531 | --with-user=USER set the owner of installed files [[USER=]] |
1532 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1533 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1534 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1535 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1536 | --with-device-nodes-on=ON |
1537 | create nodes on resume or create [[ON=resume]] | |
ad6254c5 | 1538 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1539 | [[TYPE=internal]] |
ad6254c5 | 1540 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1541 | [[TYPE=internal]] |
71082be4 | 1542 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1543 | [[TYPE=internal]] |
71082be4 | 1544 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1545 | [[TYPE=internal]] |
71082be4 | 1546 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1547 | [[TYPE=internal]] |
cac52ca4 JEB |
1548 | --with-raid=TYPE mirror support: internal/shared/none |
1549 | [[TYPE=internal]] | |
71082be4 | 1550 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1551 | [[TYPE=none]] |
3ba4a195 ZK |
1552 | --with-thin=TYPE thin provisioning support: internal/shared/none |
1553 | [[TYPE=none]] | |
606d0858 AK |
1554 | --with-ocfdir=DIR install OCF files in DIR |
1555 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1556 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1557 | The following cluster manager combinations are valid: |
a946372e AK |
1558 | * cman (RHEL5 or equivalent) |
1559 | * cman,corosync,openais (or selection of them) | |
1091650a | 1560 | * singlenode (localhost only) |
a946372e AK |
1561 | * all (autodetect) |
1562 | * none (disable build) | |
71082be4 | 1563 | [TYPE=none] |
8c4e8a18 | 1564 | --with-clvmd-pidfile=PATH |
f11781c5 | 1565 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1566 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1567 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1568 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1569 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1570 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1571 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1572 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1573 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1574 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1575 | install udev rule files in UPREFIX [[EPREFIX]] |
1576 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
71082be4 | 1577 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1578 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1579 | --with-dmeventd-path=PATH |
f11781c5 | 1580 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1581 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1582 | --with-default-system-dir=DIR |
f11781c5 | 1583 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1584 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1585 | default metadata archive subdir [[archive]] |
71082be4 | 1586 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1587 | default metadata backup subdir [[backup]] |
71082be4 | 1588 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1589 | default metadata cache subdir [[cache]] |
71082be4 | 1590 | --with-default-locking-dir=DIR |
f11781c5 | 1591 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1592 | --with-default-data-alignment=NUM |
f11781c5 AK |
1593 | set the default data alignment in MiB [[1]] |
1594 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1595 | |
1596 | Some influential environment variables: | |
1597 | CC C compiler command | |
1598 | CFLAGS C compiler flags | |
1599 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1600 | nonstandard directory <lib dir> | |
25fbec5b | 1601 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1602 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1603 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1604 | CPP C preprocessor |
e2997b73 | 1605 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1606 | PKG_CONFIG_PATH |
1607 | directories to add to pkg-config's search path | |
1608 | PKG_CONFIG_LIBDIR | |
1609 | path overriding pkg-config's built-in search path | |
a946372e AK |
1610 | PKGCONFIGINIT_CFLAGS |
1611 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1612 | PKGCONFIGINIT_LIBS | |
1613 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1614 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1615 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1616 | COROSYNC_CFLAGS | |
1617 | C compiler flags for COROSYNC, overriding pkg-config | |
1618 | COROSYNC_LIBS | |
1619 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1620 | QUORUM_CFLAGS |
1621 | C compiler flags for QUORUM, overriding pkg-config | |
1622 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1623 | SALCK_CFLAGS |
1624 | C compiler flags for SALCK, overriding pkg-config | |
1625 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1626 | CONFDB_CFLAGS |
1627 | C compiler flags for CONFDB, overriding pkg-config | |
1628 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1629 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1630 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1631 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1632 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1633 | SACKPT_CFLAGS |
1634 | C compiler flags for SACKPT, overriding pkg-config | |
1635 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
d93275eb PR |
1636 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1637 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1638 | |
1639 | Use these variables to override the choices made by `configure' or to help | |
1640 | it to find libraries and programs with nonstandard names/locations. | |
1641 | ||
f11781c5 | 1642 | Report bugs to the package provider. |
ad6254c5 | 1643 | _ACEOF |
7a197a62 | 1644 | ac_status=$? |
ad6254c5 AK |
1645 | fi |
1646 | ||
1647 | if test "$ac_init_help" = "recursive"; then | |
1648 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1649 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1650 | test -d "$ac_dir" || |
1651 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1652 | continue | |
ad6254c5 AK |
1653 | ac_builddir=. |
1654 | ||
7a197a62 AK |
1655 | case "$ac_dir" in |
1656 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1657 | *) | |
ec6a6fbe | 1658 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1659 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1660 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1661 | case $ac_top_builddir_sub in |
1662 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1663 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1664 | esac ;; | |
1665 | esac | |
1666 | ac_abs_top_builddir=$ac_pwd | |
1667 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1668 | # for backward compatibility: | |
1669 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1670 | |
1671 | case $srcdir in | |
7a197a62 | 1672 | .) # We are building in place. |
ad6254c5 | 1673 | ac_srcdir=. |
7a197a62 AK |
1674 | ac_top_srcdir=$ac_top_builddir_sub |
1675 | ac_abs_top_srcdir=$ac_pwd ;; | |
1676 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1677 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1678 | ac_top_srcdir=$srcdir |
1679 | ac_abs_top_srcdir=$srcdir ;; | |
1680 | *) # Relative name. | |
1681 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1682 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1683 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1684 | esac |
7a197a62 AK |
1685 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1686 | ||
1687 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1688 | # Check for guested configure. | |
1689 | if test -f "$ac_srcdir/configure.gnu"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1692 | elif test -f "$ac_srcdir/configure"; then | |
1693 | echo && | |
1694 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1695 | else |
ec6a6fbe | 1696 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1697 | fi || ac_status=$? |
1698 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1699 | done |
1700 | fi | |
1701 | ||
7a197a62 | 1702 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1703 | if $ac_init_version; then |
1704 | cat <<\_ACEOF | |
7a197a62 | 1705 | configure |
f11781c5 | 1706 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1707 | |
f11781c5 | 1708 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1709 | This configure script is free software; the Free Software Foundation |
1710 | gives unlimited permission to copy, distribute and modify it. | |
1711 | _ACEOF | |
7a197a62 | 1712 | exit |
ad6254c5 | 1713 | fi |
ad6254c5 | 1714 | |
f11781c5 AK |
1715 | ## ------------------------ ## |
1716 | ## Autoconf initialization. ## | |
1717 | ## ------------------------ ## | |
ad6254c5 | 1718 | |
f11781c5 AK |
1719 | # ac_fn_c_try_compile LINENO |
1720 | # -------------------------- | |
1721 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1722 | ac_fn_c_try_compile () | |
ad6254c5 | 1723 | { |
f11781c5 AK |
1724 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1725 | rm -f conftest.$ac_objext | |
1726 | if { { ac_try="$ac_compile" | |
1727 | case "(($ac_try" in | |
1728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1729 | *) ac_try_echo=$ac_try;; | |
1730 | esac | |
1731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1732 | $as_echo "$ac_try_echo"; } >&5 | |
1733 | (eval "$ac_compile") 2>conftest.err | |
1734 | ac_status=$? | |
1735 | if test -s conftest.err; then | |
1736 | grep -v '^ *+' conftest.err >conftest.er1 | |
1737 | cat conftest.er1 >&5 | |
1738 | mv -f conftest.er1 conftest.err | |
1739 | fi | |
1740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1741 | test $ac_status = 0; } && { | |
1742 | test -z "$ac_c_werror_flag" || | |
1743 | test ! -s conftest.err | |
1744 | } && test -s conftest.$ac_objext; then : | |
1745 | ac_retval=0 | |
1746 | else | |
1747 | $as_echo "$as_me: failed program was:" >&5 | |
1748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1749 | |
f11781c5 AK |
1750 | ac_retval=1 |
1751 | fi | |
1752 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1753 | as_fn_set_status $ac_retval | |
ad6254c5 | 1754 | |
f11781c5 | 1755 | } # ac_fn_c_try_compile |
ad6254c5 | 1756 | |
f11781c5 AK |
1757 | # ac_fn_c_try_cpp LINENO |
1758 | # ---------------------- | |
1759 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1760 | ac_fn_c_try_cpp () | |
1761 | { | |
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1763 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1764 | case "(($ac_try" in | |
1765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1766 | *) ac_try_echo=$ac_try;; | |
1767 | esac | |
1768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1769 | $as_echo "$ac_try_echo"; } >&5 | |
1770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1771 | ac_status=$? | |
1772 | if test -s conftest.err; then | |
1773 | grep -v '^ *+' conftest.err >conftest.er1 | |
1774 | cat conftest.er1 >&5 | |
1775 | mv -f conftest.er1 conftest.err | |
1776 | fi | |
1777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1778 | test $ac_status = 0; } >/dev/null && { | |
1779 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1780 | test ! -s conftest.err | |
1781 | }; then : | |
1782 | ac_retval=0 | |
1783 | else | |
1784 | $as_echo "$as_me: failed program was:" >&5 | |
1785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1786 | |
f11781c5 AK |
1787 | ac_retval=1 |
1788 | fi | |
1789 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1790 | as_fn_set_status $ac_retval | |
ad6254c5 | 1791 | |
f11781c5 | 1792 | } # ac_fn_c_try_cpp |
d911ec67 | 1793 | |
f11781c5 AK |
1794 | # ac_fn_c_try_link LINENO |
1795 | # ----------------------- | |
1796 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1797 | ac_fn_c_try_link () | |
d911ec67 | 1798 | { |
f11781c5 AK |
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1801 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1802 | case "(($ac_try" in |
1803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1804 | *) ac_try_echo=$ac_try;; | |
1805 | esac | |
f11781c5 AK |
1806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1807 | $as_echo "$ac_try_echo"; } >&5 | |
1808 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1809 | ac_status=$? |
f11781c5 AK |
1810 | if test -s conftest.err; then |
1811 | grep -v '^ *+' conftest.err >conftest.er1 | |
1812 | cat conftest.er1 >&5 | |
1813 | mv -f conftest.er1 conftest.err | |
1814 | fi | |
1815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1816 | test $ac_status = 0; } && { | |
1817 | test -z "$ac_c_werror_flag" || | |
1818 | test ! -s conftest.err | |
1819 | } && test -s conftest$ac_exeext && { | |
1820 | test "$cross_compiling" = yes || | |
1821 | $as_test_x conftest$ac_exeext | |
1822 | }; then : | |
1823 | ac_retval=0 | |
d911ec67 | 1824 | else |
f11781c5 | 1825 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1826 | sed 's/^/| /' conftest.$ac_ext >&5 |
1827 | ||
f11781c5 | 1828 | ac_retval=1 |
d911ec67 | 1829 | fi |
f11781c5 AK |
1830 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1831 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1832 | # interfere with the next link command; also delete a directory that is | |
1833 | # left behind by Apple's compiler. We do this before executing the actions. | |
1834 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1835 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1836 | as_fn_set_status $ac_retval | |
d911ec67 | 1837 | |
f11781c5 | 1838 | } # ac_fn_c_try_link |
d911ec67 | 1839 | |
f11781c5 AK |
1840 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1841 | # ------------------------------------------------------- | |
1842 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1843 | # the include files in INCLUDES and setting the cache variable VAR | |
1844 | # accordingly. | |
1845 | ac_fn_c_check_header_mongrel () | |
1846 | { | |
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1848 | if eval "test \"\${$3+set}\"" = set; then : | |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1850 | $as_echo_n "checking for $2... " >&6; } | |
1851 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1852 | $as_echo_n "(cached) " >&6 |
1853 | fi | |
f11781c5 AK |
1854 | eval ac_res=\$$3 |
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1856 | $as_echo "$ac_res" >&6; } |
1857 | else | |
1858 | # Is the header compilable? | |
f11781c5 AK |
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1860 | $as_echo_n "checking $2 usability... " >&6; } | |
1861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1862 | /* end confdefs.h. */ |
f11781c5 AK |
1863 | $4 |
1864 | #include <$2> | |
d911ec67 | 1865 | _ACEOF |
f11781c5 | 1866 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1867 | ac_header_compiler=yes |
1868 | else | |
f11781c5 | 1869 | ac_header_compiler=no |
d911ec67 | 1870 | fi |
d911ec67 | 1871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1873 | $as_echo "$ac_header_compiler" >&6; } |
1874 | ||
1875 | # Is the header present? | |
f11781c5 AK |
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1877 | $as_echo_n "checking $2 presence... " >&6; } | |
1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1879 | /* end confdefs.h. */ |
f11781c5 | 1880 | #include <$2> |
d911ec67 | 1881 | _ACEOF |
f11781c5 | 1882 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1883 | ac_header_preproc=yes |
1884 | else | |
d911ec67 AK |
1885 | ac_header_preproc=no |
1886 | fi | |
d911ec67 | 1887 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1889 | $as_echo "$ac_header_preproc" >&6; } |
1890 | ||
1891 | # So? What about this header? | |
f11781c5 | 1892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1893 | yes:no: ) |
f11781c5 AK |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1895 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1897 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1898 | ;; |
1899 | no:yes:* ) | |
f11781c5 AK |
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1901 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1903 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1905 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1907 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1909 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1910 | ;; |
1911 | esac | |
f11781c5 AK |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1913 | $as_echo_n "checking for $2... " >&6; } | |
1914 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1915 | $as_echo_n "(cached) " >&6 |
1916 | else | |
f11781c5 | 1917 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1918 | fi |
f11781c5 AK |
1919 | eval ac_res=\$$3 |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1921 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1922 | fi |
f11781c5 | 1923 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1924 | |
f11781c5 | 1925 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1926 | |
f11781c5 AK |
1927 | # ac_fn_c_try_run LINENO |
1928 | # ---------------------- | |
1929 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1930 | # that executables *can* be run. | |
1931 | ac_fn_c_try_run () | |
ad6254c5 | 1932 | { |
f11781c5 AK |
1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1934 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1935 | case "(($ac_try" in |
1936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1937 | *) ac_try_echo=$ac_try;; | |
1938 | esac | |
f11781c5 AK |
1939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1940 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1941 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1942 | ac_status=$? |
f11781c5 AK |
1943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1944 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1945 | { { case "(($ac_try" in | |
7a197a62 AK |
1946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1947 | *) ac_try_echo=$ac_try;; | |
1948 | esac | |
f11781c5 AK |
1949 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1950 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1951 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1952 | ac_status=$? |
f11781c5 AK |
1953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1954 | test $ac_status = 0; }; }; then : | |
1955 | ac_retval=0 | |
ad6254c5 | 1956 | else |
ec6a6fbe | 1957 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1958 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1959 | sed 's/^/| /' conftest.$ac_ext >&5 |
1960 | ||
f11781c5 | 1961 | ac_retval=$ac_status |
ad6254c5 | 1962 | fi |
f11781c5 AK |
1963 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1964 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1965 | as_fn_set_status $ac_retval | |
ad6254c5 | 1966 | |
f11781c5 | 1967 | } # ac_fn_c_try_run |
ad6254c5 | 1968 | |
f11781c5 AK |
1969 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1970 | # ------------------------------------------------------- | |
1971 | # Tests whether HEADER exists and can be compiled using the include files in | |
1972 | # INCLUDES, setting the cache variable VAR accordingly. | |
1973 | ac_fn_c_check_header_compile () | |
1974 | { | |
1975 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1977 | $as_echo_n "checking for $2... " >&6; } | |
1978 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 1979 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1980 | else |
f11781c5 | 1981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 1982 | /* end confdefs.h. */ |
f11781c5 AK |
1983 | $4 |
1984 | #include <$2> | |
ad6254c5 | 1985 | _ACEOF |
f11781c5 AK |
1986 | if ac_fn_c_try_compile "$LINENO"; then : |
1987 | eval "$3=yes" | |
ad6254c5 | 1988 | else |
f11781c5 | 1989 | eval "$3=no" |
ad6254c5 | 1990 | fi |
7a197a62 | 1991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 1992 | fi |
f11781c5 AK |
1993 | eval ac_res=\$$3 |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 1995 | $as_echo "$ac_res" >&6; } |
f11781c5 | 1996 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1997 | |
f11781c5 | 1998 | } # ac_fn_c_check_header_compile |
ad6254c5 | 1999 | |
f11781c5 AK |
2000 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2001 | # ---------------------------------------------------- | |
2002 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2003 | # INCLUDES, setting cache variable VAR accordingly. | |
2004 | ac_fn_c_check_member () | |
2005 | { | |
2006 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2008 | $as_echo_n "checking for $2.$3... " >&6; } | |
2009 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2010 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2011 | else |
f11781c5 AK |
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2013 | /* end confdefs.h. */ | |
2014 | $5 | |
2015 | int | |
2016 | main () | |
2017 | { | |
2018 | static $2 ac_aggr; | |
2019 | if (ac_aggr.$3) | |
2020 | return 0; | |
2021 | ; | |
2022 | return 0; | |
2023 | } | |
ad6254c5 | 2024 | _ACEOF |
f11781c5 AK |
2025 | if ac_fn_c_try_compile "$LINENO"; then : |
2026 | eval "$4=yes" | |
2027 | else | |
2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2029 | /* end confdefs.h. */ |
f11781c5 AK |
2030 | $5 |
2031 | int | |
2032 | main () | |
2033 | { | |
2034 | static $2 ac_aggr; | |
2035 | if (sizeof ac_aggr.$3) | |
2036 | return 0; | |
2037 | ; | |
2038 | return 0; | |
2039 | } | |
2040 | _ACEOF | |
2041 | if ac_fn_c_try_compile "$LINENO"; then : | |
2042 | eval "$4=yes" | |
2043 | else | |
2044 | eval "$4=no" | |
2045 | fi | |
2046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2047 | fi | |
2048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2049 | fi | |
2050 | eval ac_res=\$$4 | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2052 | $as_echo "$ac_res" >&6; } | |
2053 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2054 | ||
2055 | } # ac_fn_c_check_member | |
795ca3e5 | 2056 | |
f11781c5 AK |
2057 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2058 | # ------------------------------------------- | |
2059 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2060 | # variable VAR accordingly. | |
2061 | ac_fn_c_check_type () | |
2062 | { | |
2063 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2065 | $as_echo_n "checking for $2... " >&6; } | |
2066 | if eval "test \"\${$3+set}\"" = set; then : | |
2067 | $as_echo_n "(cached) " >&6 | |
2068 | else | |
2069 | eval "$3=no" | |
2070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2071 | /* end confdefs.h. */ | |
2072 | $4 | |
ad6254c5 AK |
2073 | int |
2074 | main () | |
2075 | { | |
f11781c5 AK |
2076 | if (sizeof ($2)) |
2077 | return 0; | |
ad6254c5 AK |
2078 | ; |
2079 | return 0; | |
2080 | } | |
2081 | _ACEOF | |
f11781c5 AK |
2082 | if ac_fn_c_try_compile "$LINENO"; then : |
2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2084 | /* end confdefs.h. */ | |
2085 | $4 | |
2086 | int | |
2087 | main () | |
2088 | { | |
2089 | if (sizeof (($2))) | |
2090 | return 0; | |
2091 | ; | |
2092 | return 0; | |
2093 | } | |
2094 | _ACEOF | |
2095 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2096 | |
f11781c5 AK |
2097 | else |
2098 | eval "$3=yes" | |
795ca3e5 | 2099 | fi |
f11781c5 AK |
2100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2101 | fi | |
2102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2103 | fi |
f11781c5 AK |
2104 | eval ac_res=\$$3 |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2106 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2107 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2108 | |
f11781c5 | 2109 | } # ac_fn_c_check_type |
ad6254c5 | 2110 | |
f11781c5 AK |
2111 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2112 | # ----------------------------------- | |
2113 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2114 | # accordingly. | |
2115 | ac_fn_c_find_intX_t () | |
2116 | { | |
2117 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2119 | $as_echo_n "checking for int$2_t... " >&6; } | |
2120 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2121 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2122 | else |
f11781c5 AK |
2123 | eval "$3=no" |
2124 | # Order is important - never check a type that is potentially smaller | |
2125 | # than half of the expected target width. | |
2126 | for ac_type in int$2_t 'int' 'long int' \ | |
2127 | 'long long int' 'short int' 'signed char'; do | |
2128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2129 | /* end confdefs.h. */ |
2130 | $ac_includes_default | |
f11781c5 | 2131 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2132 | int |
2133 | main () | |
2134 | { | |
f11781c5 AK |
2135 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2136 | test_array [0] = 0 | |
7a197a62 | 2137 | |
f11781c5 AK |
2138 | ; |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | if ac_fn_c_try_compile "$LINENO"; then : | |
2143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2144 | /* end confdefs.h. */ | |
2145 | $ac_includes_default | |
2146 | enum { N = $2 / 2 - 1 }; | |
2147 | int | |
2148 | main () | |
2149 | { | |
2150 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2151 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2152 | test_array [0] = 0 | |
7a197a62 AK |
2153 | |
2154 | ; | |
2155 | return 0; | |
2156 | } | |
ad6254c5 | 2157 | _ACEOF |
f11781c5 | 2158 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2159 | |
f11781c5 AK |
2160 | else |
2161 | case $ac_type in #( | |
2162 | int$2_t) : | |
2163 | eval "$3=yes" ;; #( | |
2164 | *) : | |
2165 | eval "$3=\$ac_type" ;; | |
2166 | esac | |
ad6254c5 | 2167 | fi |
f11781c5 | 2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2169 | fi |
f11781c5 AK |
2170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2171 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2172 | |
2173 | else | |
f11781c5 | 2174 | break |
ad6254c5 | 2175 | fi |
f11781c5 | 2176 | done |
ad6254c5 | 2177 | fi |
f11781c5 AK |
2178 | eval ac_res=\$$3 |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2180 | $as_echo "$ac_res" >&6; } | |
2181 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2182 | ||
2183 | } # ac_fn_c_find_intX_t | |
2184 | ||
2185 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2186 | # ------------------------------------ | |
2187 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2188 | # accordingly. | |
2189 | ac_fn_c_find_uintX_t () | |
2190 | { | |
2191 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2193 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2194 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2195 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2196 | else |
f11781c5 AK |
2197 | eval "$3=no" |
2198 | # Order is important - never check a type that is potentially smaller | |
2199 | # than half of the expected target width. | |
2200 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2201 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2203 | /* end confdefs.h. */ |
7a197a62 | 2204 | $ac_includes_default |
ad6254c5 AK |
2205 | int |
2206 | main () | |
2207 | { | |
f11781c5 AK |
2208 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2209 | test_array [0] = 0 | |
ad6254c5 | 2210 | |
f11781c5 AK |
2211 | ; |
2212 | return 0; | |
ad6254c5 AK |
2213 | } |
2214 | _ACEOF | |
f11781c5 AK |
2215 | if ac_fn_c_try_compile "$LINENO"; then : |
2216 | case $ac_type in #( | |
2217 | uint$2_t) : | |
2218 | eval "$3=yes" ;; #( | |
2219 | *) : | |
2220 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2221 | esac |
ad6254c5 | 2222 | fi |
f11781c5 AK |
2223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2224 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2225 | |
f11781c5 AK |
2226 | else |
2227 | break | |
ad6254c5 | 2228 | fi |
f11781c5 | 2229 | done |
ad6254c5 | 2230 | fi |
f11781c5 AK |
2231 | eval ac_res=\$$3 |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2233 | $as_echo "$ac_res" >&6; } | |
2234 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2235 | |
f11781c5 | 2236 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2237 | |
f11781c5 AK |
2238 | # ac_fn_c_check_func LINENO FUNC VAR |
2239 | # ---------------------------------- | |
2240 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2241 | ac_fn_c_check_func () | |
2242 | { | |
2243 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2245 | $as_echo_n "checking for $2... " >&6; } | |
2246 | if eval "test \"\${$3+set}\"" = set; then : | |
2247 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2248 | else |
f11781c5 AK |
2249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2250 | /* end confdefs.h. */ | |
2251 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2253 | #define $2 innocuous_$2 | |
ad6254c5 | 2254 | |
f11781c5 AK |
2255 | /* System header to define __stub macros and hopefully few prototypes, |
2256 | which can conflict with char $2 (); below. | |
2257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2258 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2259 | |
f11781c5 AK |
2260 | #ifdef __STDC__ |
2261 | # include <limits.h> | |
2262 | #else | |
2263 | # include <assert.h> | |
2264 | #endif | |
ad6254c5 | 2265 | |
f11781c5 AK |
2266 | #undef $2 |
2267 | ||
2268 | /* Override any GCC internal prototype to avoid an error. | |
2269 | Use char because int might match the return type of a GCC | |
2270 | builtin and then its argument prototype would still apply. */ | |
2271 | #ifdef __cplusplus | |
2272 | extern "C" | |
2273 | #endif | |
2274 | char $2 (); | |
2275 | /* The GNU C library defines this for functions which it implements | |
2276 | to always fail with ENOSYS. Some functions are actually named | |
2277 | something starting with __ and the normal name is an alias. */ | |
2278 | #if defined __stub_$2 || defined __stub___$2 | |
2279 | choke me | |
2280 | #endif | |
ad6254c5 | 2281 | |
ad6254c5 AK |
2282 | int |
2283 | main () | |
2284 | { | |
f11781c5 | 2285 | return $2 (); |
ad6254c5 AK |
2286 | ; |
2287 | return 0; | |
2288 | } | |
2289 | _ACEOF | |
f11781c5 AK |
2290 | if ac_fn_c_try_link "$LINENO"; then : |
2291 | eval "$3=yes" | |
ad6254c5 | 2292 | else |
f11781c5 | 2293 | eval "$3=no" |
ad6254c5 | 2294 | fi |
f11781c5 AK |
2295 | rm -f core conftest.err conftest.$ac_objext \ |
2296 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2297 | fi |
f11781c5 AK |
2298 | eval ac_res=\$$3 |
2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2300 | $as_echo "$ac_res" >&6; } | |
2301 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2302 | |
f11781c5 AK |
2303 | } # ac_fn_c_check_func |
2304 | cat >config.log <<_ACEOF | |
2305 | This file contains any messages produced by compilers while | |
2306 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2307 | |
f11781c5 AK |
2308 | It was created by $as_me, which was |
2309 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2310 | |
f11781c5 | 2311 | $ $0 $@ |
ad6254c5 | 2312 | |
ad6254c5 | 2313 | _ACEOF |
f11781c5 AK |
2314 | exec 5>>config.log |
2315 | { | |
2316 | cat <<_ASUNAME | |
2317 | ## --------- ## | |
2318 | ## Platform. ## | |
2319 | ## --------- ## | |
ad6254c5 | 2320 | |
f11781c5 AK |
2321 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2322 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2323 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2324 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2325 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2326 | |
f11781c5 AK |
2327 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2328 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2329 | |
f11781c5 AK |
2330 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2331 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2332 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2333 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2334 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2335 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2336 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2337 | ||
2338 | _ASUNAME | |
2339 | ||
2340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2341 | for as_dir in $PATH | |
2342 | do | |
2343 | IFS=$as_save_IFS | |
2344 | test -z "$as_dir" && as_dir=. | |
2345 | $as_echo "PATH: $as_dir" | |
2346 | done | |
2347 | IFS=$as_save_IFS | |
2348 | ||
2349 | } >&5 | |
2350 | ||
2351 | cat >&5 <<_ACEOF | |
2352 | ||
2353 | ||
2354 | ## ----------- ## | |
2355 | ## Core tests. ## | |
2356 | ## ----------- ## | |
ad6254c5 | 2357 | |
ad6254c5 | 2358 | _ACEOF |
ad6254c5 | 2359 | |
7a197a62 | 2360 | |
f11781c5 AK |
2361 | # Keep a trace of the command line. |
2362 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2363 | # Strip out --silent because we don't want to record it for future runs. | |
2364 | # Also quote any args containing shell meta-characters. | |
2365 | # Make two passes to allow for proper duplicate-argument suppression. | |
2366 | ac_configure_args= | |
2367 | ac_configure_args0= | |
2368 | ac_configure_args1= | |
2369 | ac_must_keep_next=false | |
2370 | for ac_pass in 1 2 | |
2371 | do | |
2372 | for ac_arg | |
2373 | do | |
2374 | case $ac_arg in | |
2375 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2376 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2377 | | -silent | --silent | --silen | --sile | --sil) | |
2378 | continue ;; | |
2379 | *\'*) | |
2380 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2381 | esac | |
2382 | case $ac_pass in | |
2383 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2384 | 2) | |
2385 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2386 | if test $ac_must_keep_next = true; then | |
2387 | ac_must_keep_next=false # Got value, back to normal. | |
2388 | else | |
2389 | case $ac_arg in | |
2390 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2391 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2392 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2393 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2394 | case "$ac_configure_args0 " in | |
2395 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2396 | esac | |
2397 | ;; | |
2398 | -* ) ac_must_keep_next=true ;; | |
2399 | esac | |
2400 | fi | |
2401 | as_fn_append ac_configure_args " '$ac_arg'" | |
2402 | ;; | |
2403 | esac | |
2404 | done | |
2405 | done | |
2406 | { ac_configure_args0=; unset ac_configure_args0;} | |
2407 | { ac_configure_args1=; unset ac_configure_args1;} | |
2408 | ||
2409 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2410 | # config.log. We remove comments because anyway the quotes in there | |
2411 | # would cause problems or look ugly. | |
2412 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2413 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2414 | trap 'exit_status=$? | |
2415 | # Save into config.log some information that might help in debugging. | |
2416 | { | |
2417 | echo | |
2418 | ||
2419 | $as_echo "## ---------------- ## | |
2420 | ## Cache variables. ## | |
2421 | ## ---------------- ##" | |
2422 | echo | |
2423 | # The following way of writing the cache mishandles newlines in values, | |
2424 | ( | |
2425 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2426 | eval ac_val=\$$ac_var | |
2427 | case $ac_val in #( | |
2428 | *${as_nl}*) | |
2429 | case $ac_var in #( | |
2430 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2431 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2432 | esac | |
2433 | case $ac_var in #( | |
2434 | _ | IFS | as_nl) ;; #( | |
2435 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2436 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2437 | esac ;; | |
2438 | esac | |
2439 | done | |
2440 | (set) 2>&1 | | |
2441 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2442 | *${as_nl}ac_space=\ *) | |
2443 | sed -n \ | |
2444 | "s/'\''/'\''\\\\'\'''\''/g; | |
2445 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2446 | ;; #( | |
2447 | *) | |
2448 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2449 | ;; | |
2450 | esac | | |
2451 | sort | |
2452 | ) | |
2453 | echo | |
2454 | ||
2455 | $as_echo "## ----------------- ## | |
2456 | ## Output variables. ## | |
2457 | ## ----------------- ##" | |
2458 | echo | |
2459 | for ac_var in $ac_subst_vars | |
2460 | do | |
2461 | eval ac_val=\$$ac_var | |
2462 | case $ac_val in | |
2463 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2464 | esac | |
2465 | $as_echo "$ac_var='\''$ac_val'\''" | |
2466 | done | sort | |
2467 | echo | |
2468 | ||
2469 | if test -n "$ac_subst_files"; then | |
2470 | $as_echo "## ------------------- ## | |
2471 | ## File substitutions. ## | |
2472 | ## ------------------- ##" | |
2473 | echo | |
2474 | for ac_var in $ac_subst_files | |
2475 | do | |
2476 | eval ac_val=\$$ac_var | |
2477 | case $ac_val in | |
2478 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2479 | esac | |
2480 | $as_echo "$ac_var='\''$ac_val'\''" | |
2481 | done | sort | |
2482 | echo | |
2483 | fi | |
2484 | ||
2485 | if test -s confdefs.h; then | |
2486 | $as_echo "## ----------- ## | |
2487 | ## confdefs.h. ## | |
2488 | ## ----------- ##" | |
2489 | echo | |
2490 | cat confdefs.h | |
2491 | echo | |
2492 | fi | |
2493 | test "$ac_signal" != 0 && | |
2494 | $as_echo "$as_me: caught signal $ac_signal" | |
2495 | $as_echo "$as_me: exit $exit_status" | |
2496 | } >&5 | |
2497 | rm -f core *.core core.conftest.* && | |
2498 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2499 | exit $exit_status | |
2500 | ' 0 | |
2501 | for ac_signal in 1 2 13 15; do | |
2502 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2503 | done | |
2504 | ac_signal=0 | |
2505 | ||
2506 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2507 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2508 | |
f11781c5 | 2509 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2510 | |
f11781c5 | 2511 | # Predefined preprocessor variables. |
ad6254c5 AK |
2512 | |
2513 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2514 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2515 | _ACEOF |
2516 | ||
f11781c5 AK |
2517 | cat >>confdefs.h <<_ACEOF |
2518 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2519 | _ACEOF |
ad6254c5 | 2520 | |
f11781c5 AK |
2521 | cat >>confdefs.h <<_ACEOF |
2522 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2523 | _ACEOF |
f11781c5 AK |
2524 | |
2525 | cat >>confdefs.h <<_ACEOF | |
2526 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2527 | _ACEOF |
ad6254c5 | 2528 | |
f11781c5 AK |
2529 | cat >>confdefs.h <<_ACEOF |
2530 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2531 | _ACEOF | |
7a197a62 | 2532 | |
f11781c5 AK |
2533 | cat >>confdefs.h <<_ACEOF |
2534 | #define PACKAGE_URL "$PACKAGE_URL" | |
2535 | _ACEOF | |
ad6254c5 | 2536 | |
7a197a62 | 2537 | |
f11781c5 AK |
2538 | # Let the site file select an alternate cache file if it wants to. |
2539 | # Prefer an explicitly selected file to automatically selected ones. | |
2540 | ac_site_file1=NONE | |
2541 | ac_site_file2=NONE | |
2542 | if test -n "$CONFIG_SITE"; then | |
2543 | # We do not want a PATH search for config.site. | |
2544 | case $CONFIG_SITE in #(( | |
2545 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2546 | */*) ac_site_file1=$CONFIG_SITE;; | |
2547 | *) ac_site_file1=./$CONFIG_SITE;; | |
2548 | esac | |
2549 | elif test "x$prefix" != xNONE; then | |
2550 | ac_site_file1=$prefix/share/config.site | |
2551 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2552 | else |
f11781c5 AK |
2553 | ac_site_file1=$ac_default_prefix/share/config.site |
2554 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2555 | fi |
f11781c5 AK |
2556 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2557 | do | |
2558 | test "x$ac_site_file" = xNONE && continue | |
2559 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2561 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2562 | sed 's/^/| /' "$ac_site_file" >&5 | |
2563 | . "$ac_site_file" \ | |
2564 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2565 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2566 | as_fn_error $? "failed to load site script $ac_site_file | |
2567 | See \`config.log' for more details" "$LINENO" 5; } | |
2568 | fi | |
2569 | done | |
ad6254c5 | 2570 | |
f11781c5 AK |
2571 | if test -r "$cache_file"; then |
2572 | # Some versions of bash will fail to source /dev/null (special files | |
2573 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2574 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2576 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2577 | case $cache_file in | |
2578 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2579 | *) . "./$cache_file";; | |
2580 | esac | |
2581 | fi | |
2582 | else | |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2584 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2585 | >$cache_file | |
ad6254c5 | 2586 | fi |
ad6254c5 | 2587 | |
f11781c5 AK |
2588 | as_fn_append ac_header_list " stdlib.h" |
2589 | as_fn_append ac_header_list " unistd.h" | |
2590 | as_fn_append ac_header_list " sys/param.h" | |
2591 | # Check that the precious variables saved in the cache have kept the same | |
2592 | # value. | |
2593 | ac_cache_corrupted=false | |
2594 | for ac_var in $ac_precious_vars; do | |
2595 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2596 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2597 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2598 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2599 | case $ac_old_set,$ac_new_set in | |
2600 | set,) | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2602 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2603 | ac_cache_corrupted=: ;; | |
2604 | ,set) | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2606 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2607 | ac_cache_corrupted=: ;; | |
2608 | ,);; | |
2609 | *) | |
2610 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2611 | # differences in whitespace do not lead to failure. | |
2612 | ac_old_val_w=`echo x $ac_old_val` | |
2613 | ac_new_val_w=`echo x $ac_new_val` | |
2614 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2616 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2617 | ac_cache_corrupted=: | |
2618 | else | |
2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2620 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2621 | eval $ac_var=\$ac_old_val | |
2622 | fi | |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2624 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2625 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2626 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2627 | fi;; | |
2628 | esac | |
2629 | # Pass precious variables to config.status. | |
2630 | if test "$ac_new_set" = set; then | |
2631 | case $ac_new_val in | |
2632 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2633 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2634 | esac | |
2635 | case " $ac_configure_args " in | |
2636 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2637 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2638 | esac | |
2639 | fi | |
2640 | done | |
2641 | if $ac_cache_corrupted; then | |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2645 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2646 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2647 | fi |
f11781c5 AK |
2648 | ## -------------------- ## |
2649 | ## Main body of script. ## | |
2650 | ## -------------------- ## | |
ad6254c5 | 2651 | |
f11781c5 AK |
2652 | ac_ext=c |
2653 | ac_cpp='$CPP $CPPFLAGS' | |
2654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2657 | |
ad6254c5 | 2658 | |
ad6254c5 | 2659 | |
f11781c5 | 2660 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2661 | |
2662 | ||
f11781c5 AK |
2663 | ################################################################################ |
2664 | ac_aux_dir= | |
2665 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2666 | if test -f "$ac_dir/install-sh"; then | |
2667 | ac_aux_dir=$ac_dir | |
2668 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2669 | break | |
2670 | elif test -f "$ac_dir/install.sh"; then | |
2671 | ac_aux_dir=$ac_dir | |
2672 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2673 | break | |
2674 | elif test -f "$ac_dir/shtool"; then | |
2675 | ac_aux_dir=$ac_dir | |
2676 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2677 | break | |
2678 | fi | |
2679 | done | |
2680 | if test -z "$ac_aux_dir"; then | |
2681 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2682 | fi |
ad6254c5 | 2683 | |
f11781c5 AK |
2684 | # These three variables are undocumented and unsupported, |
2685 | # and are intended to be withdrawn in a future Autoconf release. | |
2686 | # They can cause serious problems if a builder's source tree is in a directory | |
2687 | # whose full name contains unusual characters. | |
2688 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2689 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2690 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2691 | |
ad6254c5 | 2692 | |
8a2fc586 | 2693 | |
f11781c5 AK |
2694 | ################################################################################ |
2695 | # Make sure we can run config.sub. | |
2696 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2697 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2698 | |
f11781c5 AK |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2700 | $as_echo_n "checking build system type... " >&6; } | |
2701 | if test "${ac_cv_build+set}" = set; then : | |
2702 | $as_echo_n "(cached) " >&6 | |
2703 | else | |
2704 | ac_build_alias=$build_alias | |
2705 | test "x$ac_build_alias" = x && | |
2706 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2707 | test "x$ac_build_alias" = x && | |
2708 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2709 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2710 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2711 | |
2712 | fi | |
f11781c5 AK |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2714 | $as_echo "$ac_cv_build" >&6; } | |
2715 | case $ac_cv_build in | |
2716 | *-*-*) ;; | |
2717 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2718 | esac | |
2719 | build=$ac_cv_build | |
2720 | ac_save_IFS=$IFS; IFS='-' | |
2721 | set x $ac_cv_build | |
2722 | shift | |
2723 | build_cpu=$1 | |
2724 | build_vendor=$2 | |
2725 | shift; shift | |
2726 | # Remember, the first character of IFS is used to create $*, | |
2727 | # except with old shells: | |
2728 | build_os=$* | |
2729 | IFS=$ac_save_IFS | |
2730 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2731 | |
2732 | ||
f11781c5 AK |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2734 | $as_echo_n "checking host system type... " >&6; } | |
2735 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2736 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2737 | else |
f11781c5 AK |
2738 | if test "x$host_alias" = x; then |
2739 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2740 | else |
f11781c5 AK |
2741 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2742 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2743 | fi | |
ad6254c5 | 2744 | |
f11781c5 AK |
2745 | fi |
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2747 | $as_echo "$ac_cv_host" >&6; } | |
2748 | case $ac_cv_host in | |
2749 | *-*-*) ;; | |
2750 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2751 | esac | |
2752 | host=$ac_cv_host | |
2753 | ac_save_IFS=$IFS; IFS='-' | |
2754 | set x $ac_cv_host | |
2755 | shift | |
2756 | host_cpu=$1 | |
2757 | host_vendor=$2 | |
2758 | shift; shift | |
2759 | # Remember, the first character of IFS is used to create $*, | |
2760 | # except with old shells: | |
2761 | host_os=$* | |
2762 | IFS=$ac_save_IFS | |
2763 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2764 | |
ad6254c5 | 2765 | |
f11781c5 AK |
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2767 | $as_echo_n "checking target system type... " >&6; } | |
2768 | if test "${ac_cv_target+set}" = set; then : | |
2769 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2770 | else |
f11781c5 AK |
2771 | if test "x$target_alias" = x; then |
2772 | ac_cv_target=$ac_cv_host | |
2773 | else | |
2774 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2775 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2776 | fi |
7a197a62 | 2777 | |
ad6254c5 | 2778 | fi |
f11781c5 AK |
2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2780 | $as_echo "$ac_cv_target" >&6; } | |
2781 | case $ac_cv_target in | |
2782 | *-*-*) ;; | |
2783 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2784 | esac |
f11781c5 AK |
2785 | target=$ac_cv_target |
2786 | ac_save_IFS=$IFS; IFS='-' | |
2787 | set x $ac_cv_target | |
2788 | shift | |
2789 | target_cpu=$1 | |
2790 | target_vendor=$2 | |
2791 | shift; shift | |
2792 | # Remember, the first character of IFS is used to create $*, | |
2793 | # except with old shells: | |
2794 | target_os=$* | |
2795 | IFS=$ac_save_IFS | |
2796 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2797 | |
ad6254c5 | 2798 | |
f11781c5 AK |
2799 | # The aliases save the names the user supplied, while $host etc. |
2800 | # will get canonicalized. | |
2801 | test -n "$target_alias" && | |
2802 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2803 | NONENONEs,x,x, && | |
2804 | program_prefix=${target_alias}- | |
ad6254c5 | 2805 | |
f11781c5 AK |
2806 | case "$host_os" in |
2807 | linux*) | |
2808 | CFLAGS="$CFLAGS" | |
2809 | COPTIMISE_FLAG="-O2" | |
2810 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
bf09a320 AK |
2811 | ELDFLAGS="-Wl,--export-dynamic" |
2812 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
f11781c5 AK |
2813 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
2814 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2815 | LDDEPS="$LDDEPS .export.sym" | |
f11781c5 AK |
2816 | LIB_SUFFIX=so |
2817 | DEVMAPPER=yes | |
cdd50823 | 2818 | LVMETAD=no |
f11781c5 AK |
2819 | ODIRECT=yes |
2820 | DM_IOCTLS=yes | |
2821 | SELINUX=yes | |
2822 | CLUSTER=internal | |
2823 | FSADM=yes | |
2824 | ;; | |
2825 | darwin*) | |
2826 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2827 | COPTIMISE_FLAG="-O2" | |
2828 | CLDFLAGS="$CLDFLAGS" | |
bf09a320 | 2829 | ELDFLAGS= |
f11781c5 AK |
2830 | CLDWHOLEARCHIVE="-all_load" |
2831 | CLDNOWHOLEARCHIVE= | |
2832 | LIB_SUFFIX=dylib | |
2833 | DEVMAPPER=yes | |
2834 | ODIRECT=no | |
2835 | DM_IOCTLS=no | |
2836 | SELINUX=no | |
2837 | CLUSTER=none | |
2838 | FSADM=no | |
2839 | ;; | |
2840 | esac | |
ad6254c5 | 2841 | |
f11781c5 AK |
2842 | ################################################################################ |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2844 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2845 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2846 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2847 | else |
f11781c5 AK |
2848 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2849 | for ac_i in 1 2 3 4 5 6 7; do | |
2850 | ac_script="$ac_script$as_nl$ac_script" | |
2851 | done | |
2852 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2853 | { ac_script=; unset ac_script;} | |
2854 | if test -z "$SED"; then | |
2855 | ac_path_SED_found=false | |
2856 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2858 | for as_dir in $PATH | |
2859 | do | |
2860 | IFS=$as_save_IFS | |
2861 | test -z "$as_dir" && as_dir=. | |
2862 | for ac_prog in sed gsed; do | |
2863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2864 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2865 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2866 | # Check for GNU ac_path_SED and select it if it is found. | |
2867 | # Check for GNU $ac_path_SED | |
2868 | case `"$ac_path_SED" --version 2>&1` in | |
2869 | *GNU*) | |
2870 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2871 | *) | |
2872 | ac_count=0 | |
2873 | $as_echo_n 0123456789 >"conftest.in" | |
2874 | while : | |
2875 | do | |
2876 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2877 | mv "conftest.tmp" "conftest.in" | |
2878 | cp "conftest.in" "conftest.nl" | |
2879 | $as_echo '' >> "conftest.nl" | |
2880 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2881 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2882 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2883 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2884 | # Best one so far, save it but keep looking for a better one | |
2885 | ac_cv_path_SED="$ac_path_SED" | |
2886 | ac_path_SED_max=$ac_count | |
2887 | fi | |
2888 | # 10*(2^10) chars as input seems more than enough | |
2889 | test $ac_count -gt 10 && break | |
2890 | done | |
2891 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2892 | esac |
ad6254c5 | 2893 | |
f11781c5 AK |
2894 | $ac_path_SED_found && break 3 |
2895 | done | |
2896 | done | |
2897 | done | |
2898 | IFS=$as_save_IFS | |
2899 | if test -z "$ac_cv_path_SED"; then | |
2900 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2901 | fi | |
2902 | else | |
2903 | ac_cv_path_SED=$SED | |
ad6254c5 | 2904 | fi |
7a197a62 | 2905 | |
f11781c5 AK |
2906 | fi |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2908 | $as_echo "$ac_cv_path_SED" >&6; } | |
2909 | SED="$ac_cv_path_SED" | |
2910 | rm -f conftest.sed | |
ad6254c5 | 2911 | |
f11781c5 AK |
2912 | for ac_prog in gawk mawk nawk awk |
2913 | do | |
2914 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2915 | set dummy $ac_prog; ac_word=$2 | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2917 | $as_echo_n "checking for $ac_word... " >&6; } | |
2918 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2919 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2920 | else |
f11781c5 AK |
2921 | if test -n "$AWK"; then |
2922 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2923 | else | |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2925 | for as_dir in $PATH | |
2926 | do | |
2927 | IFS=$as_save_IFS | |
2928 | test -z "$as_dir" && as_dir=. | |
2929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2931 | ac_cv_prog_AWK="$ac_prog" | |
2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2933 | break 2 | |
2934 | fi | |
2935 | done | |
2936 | done | |
2937 | IFS=$as_save_IFS | |
ad6254c5 | 2938 | |
ad6254c5 | 2939 | fi |
ad6254c5 | 2940 | fi |
f11781c5 AK |
2941 | AWK=$ac_cv_prog_AWK |
2942 | if test -n "$AWK"; then | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2944 | $as_echo "$AWK" >&6; } | |
2945 | else | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2947 | $as_echo "no" >&6; } | |
ad6254c5 | 2948 | fi |
ad6254c5 | 2949 | |
ad6254c5 | 2950 | |
f11781c5 | 2951 | test -n "$AWK" && break |
ad6254c5 AK |
2952 | done |
2953 | ||
f11781c5 AK |
2954 | ac_ext=c |
2955 | ac_cpp='$CPP $CPPFLAGS' | |
2956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2959 | if test -n "$ac_tool_prefix"; then | |
2960 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2961 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2963 | $as_echo_n "checking for $ac_word... " >&6; } | |
2964 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2965 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2966 | else |
f11781c5 AK |
2967 | if test -n "$CC"; then |
2968 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2969 | else |
f11781c5 AK |
2970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2971 | for as_dir in $PATH | |
2972 | do | |
2973 | IFS=$as_save_IFS | |
2974 | test -z "$as_dir" && as_dir=. | |
2975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2977 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2979 | break 2 | |
2980 | fi | |
2981 | done | |
2982 | done | |
2983 | IFS=$as_save_IFS | |
ad6254c5 | 2984 | |
ad6254c5 | 2985 | fi |
ad6254c5 | 2986 | fi |
f11781c5 AK |
2987 | CC=$ac_cv_prog_CC |
2988 | if test -n "$CC"; then | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2990 | $as_echo "$CC" >&6; } | |
2991 | else | |
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2993 | $as_echo "no" >&6; } | |
ad6254c5 | 2994 | fi |
ad6254c5 | 2995 | |
f11781c5 AK |
2996 | |
2997 | fi | |
2998 | if test -z "$ac_cv_prog_CC"; then | |
2999 | ac_ct_CC=$CC | |
3000 | # Extract the first word of "gcc", so it can be a program name with args. | |
3001 | set dummy gcc; ac_word=$2 | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3003 | $as_echo_n "checking for $ac_word... " >&6; } | |
3004 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3005 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3006 | else |
f11781c5 AK |
3007 | if test -n "$ac_ct_CC"; then |
3008 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3009 | else |
f11781c5 AK |
3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3011 | for as_dir in $PATH | |
3012 | do | |
3013 | IFS=$as_save_IFS | |
3014 | test -z "$as_dir" && as_dir=. | |
3015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3017 | ac_cv_prog_ac_ct_CC="gcc" | |
3018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3019 | break 2 | |
3020 | fi | |
3021 | done | |
3022 | done | |
3023 | IFS=$as_save_IFS | |
d911ec67 | 3024 | |
d911ec67 | 3025 | fi |
d911ec67 | 3026 | fi |
f11781c5 AK |
3027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3028 | if test -n "$ac_ct_CC"; then | |
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3030 | $as_echo "$ac_ct_CC" >&6; } | |
3031 | else | |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3033 | $as_echo "no" >&6; } | |
d911ec67 | 3034 | fi |
d911ec67 | 3035 | |
f11781c5 AK |
3036 | if test "x$ac_ct_CC" = x; then |
3037 | CC="" | |
3038 | else | |
3039 | case $cross_compiling:$ac_tool_warned in | |
3040 | yes:) | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3042 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3043 | ac_tool_warned=yes ;; | |
3044 | esac | |
3045 | CC=$ac_ct_CC | |
3046 | fi | |
3047 | else | |
3048 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3049 | fi |
d911ec67 | 3050 | |
f11781c5 AK |
3051 | if test -z "$CC"; then |
3052 | if test -n "$ac_tool_prefix"; then | |
3053 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3054 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3056 | $as_echo_n "checking for $ac_word... " >&6; } | |
3057 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3058 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3059 | else |
f11781c5 AK |
3060 | if test -n "$CC"; then |
3061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3062 | else |
f11781c5 AK |
3063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3064 | for as_dir in $PATH | |
3065 | do | |
3066 | IFS=$as_save_IFS | |
3067 | test -z "$as_dir" && as_dir=. | |
3068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3070 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3072 | break 2 | |
3073 | fi | |
3074 | done | |
3075 | done | |
3076 | IFS=$as_save_IFS | |
d911ec67 | 3077 | |
f11781c5 AK |
3078 | fi |
3079 | fi | |
3080 | CC=$ac_cv_prog_CC | |
3081 | if test -n "$CC"; then | |
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3083 | $as_echo "$CC" >&6; } | |
3084 | else | |
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3086 | $as_echo "no" >&6; } | |
d911ec67 AK |
3087 | fi |
3088 | ||
d911ec67 | 3089 | |
f11781c5 AK |
3090 | fi |
3091 | fi | |
3092 | if test -z "$CC"; then | |
3093 | # Extract the first word of "cc", so it can be a program name with args. | |
3094 | set dummy cc; ac_word=$2 | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3096 | $as_echo_n "checking for $ac_word... " >&6; } | |
3097 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3098 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3099 | else |
f11781c5 AK |
3100 | if test -n "$CC"; then |
3101 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3102 | else | |
3103 | ac_prog_rejected=no | |
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3105 | for as_dir in $PATH | |
3106 | do | |
3107 | IFS=$as_save_IFS | |
3108 | test -z "$as_dir" && as_dir=. | |
3109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3111 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3112 | ac_prog_rejected=yes | |
3113 | continue | |
3114 | fi | |
3115 | ac_cv_prog_CC="cc" | |
3116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3117 | break 2 | |
3118 | fi | |
3119 | done | |
3120 | done | |
3121 | IFS=$as_save_IFS | |
d911ec67 | 3122 | |
f11781c5 AK |
3123 | if test $ac_prog_rejected = yes; then |
3124 | # We found a bogon in the path, so make sure we never use it. | |
3125 | set dummy $ac_cv_prog_CC | |
3126 | shift | |
3127 | if test $# != 0; then | |
3128 | # We chose a different compiler from the bogus one. | |
3129 | # However, it has the same basename, so the bogon will be chosen | |
3130 | # first if we set CC to just the basename; use the full file name. | |
3131 | shift | |
3132 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3133 | fi | |
3134 | fi | |
3135 | fi | |
3136 | fi | |
3137 | CC=$ac_cv_prog_CC | |
3138 | if test -n "$CC"; then | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3140 | $as_echo "$CC" >&6; } | |
3141 | else | |
3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3143 | $as_echo "no" >&6; } | |
d911ec67 AK |
3144 | fi |
3145 | ||
d911ec67 | 3146 | |
f11781c5 AK |
3147 | fi |
3148 | if test -z "$CC"; then | |
3149 | if test -n "$ac_tool_prefix"; then | |
3150 | for ac_prog in cl.exe | |
3151 | do | |
3152 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3153 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3155 | $as_echo_n "checking for $ac_word... " >&6; } | |
3156 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3157 | $as_echo_n "(cached) " >&6 |
3158 | else | |
f11781c5 AK |
3159 | if test -n "$CC"; then |
3160 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3161 | else | |
3162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3163 | for as_dir in $PATH | |
3164 | do | |
3165 | IFS=$as_save_IFS | |
3166 | test -z "$as_dir" && as_dir=. | |
3167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3169 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3171 | break 2 | |
3172 | fi | |
3173 | done | |
3174 | done | |
3175 | IFS=$as_save_IFS | |
d911ec67 AK |
3176 | |
3177 | fi | |
f11781c5 AK |
3178 | fi |
3179 | CC=$ac_cv_prog_CC | |
3180 | if test -n "$CC"; then | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3182 | $as_echo "$CC" >&6; } | |
3183 | else | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3185 | $as_echo "no" >&6; } | |
d911ec67 AK |
3186 | fi |
3187 | ||
d911ec67 | 3188 | |
f11781c5 AK |
3189 | test -n "$CC" && break |
3190 | done | |
3191 | fi | |
3192 | if test -z "$CC"; then | |
3193 | ac_ct_CC=$CC | |
3194 | for ac_prog in cl.exe | |
3195 | do | |
3196 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3197 | set dummy $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_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3201 | $as_echo_n "(cached) " >&6 |
3202 | else | |
f11781c5 AK |
3203 | if test -n "$ac_ct_CC"; then |
3204 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3205 | else |
f11781c5 AK |
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_ac_ct_CC="$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 | |
ad6254c5 | 3220 | |
ad6254c5 | 3221 | fi |
ad6254c5 | 3222 | fi |
f11781c5 AK |
3223 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3224 | if test -n "$ac_ct_CC"; then | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3226 | $as_echo "$ac_ct_CC" >&6; } | |
3227 | else | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3229 | $as_echo "no" >&6; } | |
ad6254c5 | 3230 | fi |
ad6254c5 | 3231 | |
d911ec67 | 3232 | |
f11781c5 AK |
3233 | test -n "$ac_ct_CC" && break |
3234 | done | |
d911ec67 | 3235 | |
f11781c5 AK |
3236 | if test "x$ac_ct_CC" = x; then |
3237 | CC="" | |
3238 | else | |
3239 | case $cross_compiling:$ac_tool_warned in | |
3240 | yes:) | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3242 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3243 | ac_tool_warned=yes ;; | |
d911ec67 | 3244 | esac |
f11781c5 AK |
3245 | CC=$ac_ct_CC |
3246 | fi | |
3247 | fi | |
ad6254c5 AK |
3248 | |
3249 | fi | |
d911ec67 AK |
3250 | |
3251 | ||
f11781c5 AK |
3252 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3253 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3254 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3255 | See \`config.log' for more details" "$LINENO" 5; } | |
3256 | ||
3257 | # Provide some information about the compiler. | |
3258 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3259 | set X $ac_compile | |
3260 | ac_compiler=$2 | |
3261 | for ac_option in --version -v -V -qversion; do | |
3262 | { { ac_try="$ac_compiler $ac_option >&5" | |
3263 | case "(($ac_try" in | |
3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3265 | *) ac_try_echo=$ac_try;; | |
3266 | esac | |
3267 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3268 | $as_echo "$ac_try_echo"; } >&5 | |
3269 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3270 | ac_status=$? | |
3271 | if test -s conftest.err; then | |
3272 | sed '10a\ | |
3273 | ... rest of stderr output deleted ... | |
3274 | 10q' conftest.err >conftest.er1 | |
3275 | cat conftest.er1 >&5 | |
3276 | fi | |
3277 | rm -f conftest.er1 conftest.err | |
3278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3279 | test $ac_status = 0; } | |
3280 | done | |
ad6254c5 | 3281 | |
f11781c5 | 3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3283 | /* end confdefs.h. */ |
f11781c5 | 3284 | |
ad6254c5 AK |
3285 | int |
3286 | main () | |
3287 | { | |
f11781c5 | 3288 | |
ad6254c5 AK |
3289 | ; |
3290 | return 0; | |
3291 | } | |
3292 | _ACEOF | |
f11781c5 AK |
3293 | ac_clean_files_save=$ac_clean_files |
3294 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3295 | # Try to create an executable without -o first, disregard a.out. | |
3296 | # It will help us diagnose broken compilers, and finding out an intuition | |
3297 | # of exeext. | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3299 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3300 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3301 | ||
3302 | # The possible output files: | |
3303 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3304 | ||
3305 | ac_rmfiles= | |
3306 | for ac_file in $ac_files | |
3307 | do | |
3308 | case $ac_file in | |
3309 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3310 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3311 | esac | |
3312 | done | |
3313 | rm -f $ac_rmfiles | |
3314 | ||
3315 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3316 | case "(($ac_try" in |
3317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3318 | *) ac_try_echo=$ac_try;; | |
3319 | esac | |
f11781c5 AK |
3320 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3321 | $as_echo "$ac_try_echo"; } >&5 | |
3322 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3323 | ac_status=$? |
f11781c5 AK |
3324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3325 | test $ac_status = 0; }; then : | |
3326 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3327 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3328 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3329 | # so that the user can short-circuit this test for compilers unknown to | |
3330 | # Autoconf. | |
3331 | for ac_file in $ac_files '' | |
3332 | do | |
3333 | test -f "$ac_file" || continue | |
3334 | case $ac_file in | |
3335 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3336 | ;; | |
3337 | [ab].out ) | |
3338 | # We found the default executable, but exeext='' is most | |
3339 | # certainly right. | |
3340 | break;; | |
3341 | *.* ) | |
3342 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3343 | then :; else | |
3344 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3345 | fi | |
3346 | # We set ac_cv_exeext here because the later test for it is not | |
3347 | # safe: cross compilers may not add the suffix if given an `-o' | |
3348 | # argument, so we may need to know it at that point already. | |
3349 | # Even if this section looks crufty: it has the advantage of | |
3350 | # actually working. | |
3351 | break;; | |
3352 | * ) | |
3353 | break;; | |
3354 | esac | |
3355 | done | |
3356 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3357 | ||
ad6254c5 | 3358 | else |
f11781c5 AK |
3359 | ac_file='' |
3360 | fi | |
3361 | if test -z "$ac_file"; then : | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3363 | $as_echo "no" >&6; } | |
ec6a6fbe | 3364 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3365 | sed 's/^/| /' conftest.$ac_ext >&5 |
3366 | ||
f11781c5 AK |
3367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3369 | as_fn_error 77 "C compiler cannot create executables | |
3370 | See \`config.log' for more details" "$LINENO" 5; } | |
3371 | else | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3373 | $as_echo "yes" >&6; } | |
ad6254c5 | 3374 | fi |
f11781c5 AK |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3376 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3378 | $as_echo "$ac_file" >&6; } | |
3379 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3380 | |
f11781c5 AK |
3381 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3382 | ac_clean_files=$ac_clean_files_save | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3384 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3385 | if { { ac_try="$ac_link" | |
3386 | case "(($ac_try" in | |
3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3388 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3389 | esac |
f11781c5 AK |
3390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3391 | $as_echo "$ac_try_echo"; } >&5 | |
3392 | (eval "$ac_link") 2>&5 | |
3393 | ac_status=$? | |
3394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3395 | test $ac_status = 0; }; then : | |
3396 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3397 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3398 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3399 | # `rm'. | |
3400 | for ac_file in conftest.exe conftest conftest.*; do | |
3401 | test -f "$ac_file" || continue | |
3402 | case $ac_file in | |
3403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3404 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3405 | break;; | |
3406 | * ) break;; | |
3407 | esac | |
3408 | done | |
3409 | else | |
3410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3412 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3413 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3414 | fi |
f11781c5 AK |
3415 | rm -f conftest conftest$ac_cv_exeext |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3417 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3418 | |
f11781c5 AK |
3419 | rm -f conftest.$ac_ext |
3420 | EXEEXT=$ac_cv_exeext | |
3421 | ac_exeext=$EXEEXT | |
3422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3423 | /* end confdefs.h. */ |
f11781c5 | 3424 | #include <stdio.h> |
ad6254c5 | 3425 | int |
f11781c5 | 3426 | main () |
ad6254c5 | 3427 | { |
f11781c5 AK |
3428 | FILE *f = fopen ("conftest.out", "w"); |
3429 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3430 | |
f11781c5 | 3431 | ; |
7a197a62 | 3432 | return 0; |
ad6254c5 | 3433 | } |
ad6254c5 | 3434 | _ACEOF |
f11781c5 AK |
3435 | ac_clean_files="$ac_clean_files conftest.out" |
3436 | # Check that the compiler produces executables we can run. If not, either | |
3437 | # the compiler is broken, or we cross compile. | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3439 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3440 | if test "$cross_compiling" != yes; then | |
3441 | { { ac_try="$ac_link" | |
7a197a62 AK |
3442 | case "(($ac_try" in |
3443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3444 | *) ac_try_echo=$ac_try;; | |
3445 | esac | |
f11781c5 AK |
3446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3447 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3448 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3449 | ac_status=$? |
f11781c5 AK |
3450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3451 | test $ac_status = 0; } | |
3452 | if { ac_try='./conftest$ac_cv_exeext' | |
3453 | { { case "(($ac_try" in | |
7a197a62 AK |
3454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3455 | *) ac_try_echo=$ac_try;; | |
3456 | esac | |
f11781c5 AK |
3457 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3458 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3459 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3460 | ac_status=$? |
f11781c5 AK |
3461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3462 | test $ac_status = 0; }; }; then | |
3463 | cross_compiling=no | |
3464 | else | |
3465 | if test "$cross_compiling" = maybe; then | |
3466 | cross_compiling=yes | |
3467 | else | |
3468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3470 | as_fn_error $? "cannot run C compiled programs. | |
3471 | If you meant to cross compile, use \`--host'. | |
3472 | See \`config.log' for more details" "$LINENO" 5; } | |
3473 | fi | |
3474 | fi | |
3475 | fi | |
3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3477 | $as_echo "$cross_compiling" >&6; } | |
3478 | ||
3479 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3480 | ac_clean_files=$ac_clean_files_save | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3482 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3483 | if test "${ac_cv_objext+set}" = set; then : | |
3484 | $as_echo_n "(cached) " >&6 | |
3485 | else | |
3486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3487 | /* end confdefs.h. */ | |
ad6254c5 AK |
3488 | |
3489 | int | |
3490 | main () | |
3491 | { | |
f11781c5 | 3492 | |
ad6254c5 AK |
3493 | ; |
3494 | return 0; | |
3495 | } | |
3496 | _ACEOF | |
f11781c5 AK |
3497 | rm -f conftest.o conftest.obj |
3498 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3499 | case "(($ac_try" in |
3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3501 | *) ac_try_echo=$ac_try;; | |
3502 | esac | |
f11781c5 AK |
3503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3504 | $as_echo "$ac_try_echo"; } >&5 | |
3505 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3506 | ac_status=$? |
f11781c5 AK |
3507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3508 | test $ac_status = 0; }; then : | |
3509 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3510 | test -f "$ac_file" || continue; | |
3511 | case $ac_file in | |
3512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3513 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3514 | break;; | |
3515 | esac | |
3516 | done | |
ad6254c5 | 3517 | else |
ec6a6fbe | 3518 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
3520 | ||
f11781c5 AK |
3521 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3523 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3524 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3525 | fi |
f11781c5 | 3526 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3527 | fi |
f11781c5 AK |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3529 | $as_echo "$ac_cv_objext" >&6; } | |
3530 | OBJEXT=$ac_cv_objext | |
3531 | ac_objext=$OBJEXT | |
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3533 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3534 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3535 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3536 | else |
f11781c5 | 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3538 | /* end confdefs.h. */ |
3539 | ||
ad6254c5 AK |
3540 | int |
3541 | main () | |
3542 | { | |
f11781c5 AK |
3543 | #ifndef __GNUC__ |
3544 | choke me | |
3545 | #endif | |
3546 | ||
ad6254c5 AK |
3547 | ; |
3548 | return 0; | |
3549 | } | |
3550 | _ACEOF | |
f11781c5 AK |
3551 | if ac_fn_c_try_compile "$LINENO"; then : |
3552 | ac_compiler_gnu=yes | |
ad6254c5 | 3553 | else |
f11781c5 | 3554 | ac_compiler_gnu=no |
ad6254c5 | 3555 | fi |
f11781c5 AK |
3556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3557 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3558 | |
d0191583 | 3559 | fi |
f11781c5 AK |
3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3561 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3562 | if test $ac_compiler_gnu = yes; then | |
3563 | GCC=yes | |
d0191583 | 3564 | else |
f11781c5 | 3565 | GCC= |
d0191583 | 3566 | fi |
f11781c5 AK |
3567 | ac_test_CFLAGS=${CFLAGS+set} |
3568 | ac_save_CFLAGS=$CFLAGS | |
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3570 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3571 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3572 | $as_echo_n "(cached) " >&6 | |
3573 | else | |
3574 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3575 | ac_c_werror_flag=yes | |
3576 | ac_cv_prog_cc_g=no | |
3577 | CFLAGS="-g" | |
3578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3579 | /* end confdefs.h. */ | |
72b2cb61 | 3580 | |
f11781c5 AK |
3581 | int |
3582 | main () | |
3583 | { | |
72b2cb61 | 3584 | |
f11781c5 AK |
3585 | ; |
3586 | return 0; | |
3587 | } | |
3588 | _ACEOF | |
3589 | if ac_fn_c_try_compile "$LINENO"; then : | |
3590 | ac_cv_prog_cc_g=yes | |
3591 | else | |
3592 | CFLAGS="" | |
3593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3594 | /* end confdefs.h. */ | |
ad6254c5 | 3595 | |
f11781c5 AK |
3596 | int |
3597 | main () | |
3598 | { | |
ad6254c5 | 3599 | |
f11781c5 AK |
3600 | ; |
3601 | return 0; | |
3602 | } | |
d0191583 | 3603 | _ACEOF |
f11781c5 AK |
3604 | if ac_fn_c_try_compile "$LINENO"; then : |
3605 | ||
3606 | else | |
3607 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3608 | CFLAGS="-g" | |
3609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3610 | /* end confdefs.h. */ |
7a197a62 | 3611 | |
f11781c5 AK |
3612 | int |
3613 | main () | |
3614 | { | |
ad6254c5 | 3615 | |
f11781c5 AK |
3616 | ; |
3617 | return 0; | |
3618 | } | |
3619 | _ACEOF | |
3620 | if ac_fn_c_try_compile "$LINENO"; then : | |
3621 | ac_cv_prog_cc_g=yes | |
3622 | fi | |
3623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3624 | fi | |
3625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3626 | fi | |
3627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3628 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3629 | fi | |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3631 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3632 | if test "$ac_test_CFLAGS" = set; then | |
3633 | CFLAGS=$ac_save_CFLAGS | |
3634 | elif test $ac_cv_prog_cc_g = yes; then | |
3635 | if test "$GCC" = yes; then | |
3636 | CFLAGS="-g -O2" | |
3637 | else | |
3638 | CFLAGS="-g" | |
3639 | fi | |
3640 | else | |
3641 | if test "$GCC" = yes; then | |
3642 | CFLAGS="-O2" | |
3643 | else | |
3644 | CFLAGS= | |
3645 | fi | |
3646 | fi | |
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3648 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3649 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3650 | $as_echo_n "(cached) " >&6 | |
3651 | else | |
3652 | ac_cv_prog_cc_c89=no | |
3653 | ac_save_CC=$CC | |
3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3655 | /* end confdefs.h. */ | |
3656 | #include <stdarg.h> | |
3657 | #include <stdio.h> | |
3658 | #include <sys/types.h> | |
3659 | #include <sys/stat.h> | |
3660 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3661 | struct buf { int x; }; | |
3662 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3663 | static char *e (p, i) | |
3664 | char **p; | |
3665 | int i; | |
3666 | { | |
3667 | return p[i]; | |
3668 | } | |
3669 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3670 | { | |
3671 | char *s; | |
3672 | va_list v; | |
3673 | va_start (v,p); | |
3674 | s = g (p, va_arg (v,int)); | |
3675 | va_end (v); | |
3676 | return s; | |
3677 | } | |
ad6254c5 | 3678 | |
f11781c5 AK |
3679 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3680 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3681 | These don't provoke an error unfortunately, instead are silently treated | |
3682 | as 'x'. The following induces an error, until -std is added to get | |
3683 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3684 | array size at least. It's necessary to write '\x00'==0 to get something | |
3685 | that's true only with -std. */ | |
3686 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3687 | |
f11781c5 AK |
3688 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3689 | inside strings and character constants. */ | |
3690 | #define FOO(x) 'x' | |
3691 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3692 | |
f11781c5 AK |
3693 | int test (int i, double x); |
3694 | struct s1 {int (*f) (int a);}; | |
3695 | struct s2 {int (*f) (double a);}; | |
3696 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3697 | int argc; | |
3698 | char **argv; | |
d0191583 JM |
3699 | int |
3700 | main () | |
3701 | { | |
f11781c5 | 3702 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3703 | ; |
3704 | return 0; | |
3705 | } | |
72b2cb61 | 3706 | _ACEOF |
f11781c5 AK |
3707 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3708 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3709 | do | |
3710 | CC="$ac_save_CC $ac_arg" | |
3711 | if ac_fn_c_try_compile "$LINENO"; then : | |
3712 | ac_cv_prog_cc_c89=$ac_arg | |
3713 | fi | |
3714 | rm -f core conftest.err conftest.$ac_objext | |
3715 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3716 | done | |
3717 | rm -f conftest.$ac_ext | |
3718 | CC=$ac_save_CC | |
3719 | ||
3720 | fi | |
3721 | # AC_CACHE_VAL | |
3722 | case "x$ac_cv_prog_cc_c89" in | |
3723 | x) | |
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3725 | $as_echo "none needed" >&6; } ;; | |
3726 | xno) | |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3728 | $as_echo "unsupported" >&6; } ;; | |
3729 | *) | |
3730 | CC="$CC $ac_cv_prog_cc_c89" | |
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3732 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3733 | esac |
f11781c5 AK |
3734 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3735 | ||
3736 | fi | |
3737 | ||
3738 | ac_ext=c | |
3739 | ac_cpp='$CPP $CPPFLAGS' | |
3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3743 | |
ad6254c5 | 3744 | |
7a197a62 | 3745 | |
f11781c5 AK |
3746 | ac_ext=c |
3747 | ac_cpp='$CPP $CPPFLAGS' | |
3748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3752 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3753 | # On Suns, sometimes $CPP names a directory. | |
3754 | if test -n "$CPP" && test -d "$CPP"; then | |
3755 | CPP= | |
3756 | fi | |
3757 | if test -z "$CPP"; then | |
3758 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3759 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3760 | else |
f11781c5 AK |
3761 | # Double quotes because CPP needs to be expanded |
3762 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3763 | do | |
3764 | ac_preproc_ok=false | |
3765 | for ac_c_preproc_warn_flag in '' yes | |
3766 | do | |
3767 | # Use a header file that comes with gcc, so configuring glibc | |
3768 | # with a fresh cross-compiler works. | |
3769 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3770 | # <limits.h> exists even on freestanding compilers. | |
3771 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3772 | # not just through cpp. "Syntax error" is here to catch this case. | |
3773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3774 | /* end confdefs.h. */ |
d0191583 JM |
3775 | #ifdef __STDC__ |
3776 | # include <limits.h> | |
3777 | #else | |
3778 | # include <assert.h> | |
3779 | #endif | |
f11781c5 AK |
3780 | Syntax error |
3781 | _ACEOF | |
3782 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3783 | |
f11781c5 AK |
3784 | else |
3785 | # Broken: fails on valid input. | |
3786 | continue | |
3787 | fi | |
3788 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3789 | |
f11781c5 AK |
3790 | # OK, works on sane cases. Now check whether nonexistent headers |
3791 | # can be detected and how. | |
3792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3793 | /* end confdefs.h. */ | |
3794 | #include <ac_nonexistent.h> | |
72b2cb61 | 3795 | _ACEOF |
f11781c5 AK |
3796 | if ac_fn_c_try_cpp "$LINENO"; then : |
3797 | # Broken: success on invalid input. | |
3798 | continue | |
d0191583 | 3799 | else |
f11781c5 AK |
3800 | # Passes both tests. |
3801 | ac_preproc_ok=: | |
3802 | break | |
ad6254c5 | 3803 | fi |
f11781c5 | 3804 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3805 | |
f11781c5 AK |
3806 | done |
3807 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3808 | rm -f conftest.err conftest.$ac_ext | |
3809 | if $ac_preproc_ok; then : | |
3810 | break | |
7a197a62 AK |
3811 | fi |
3812 | ||
f11781c5 AK |
3813 | done |
3814 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3815 | |
7a197a62 | 3816 | fi |
f11781c5 AK |
3817 | CPP=$ac_cv_prog_CPP |
3818 | else | |
3819 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3820 | fi |
f11781c5 AK |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3822 | $as_echo "$CPP" >&6; } | |
3823 | ac_preproc_ok=false | |
3824 | for ac_c_preproc_warn_flag in '' yes | |
3825 | do | |
3826 | # Use a header file that comes with gcc, so configuring glibc | |
3827 | # with a fresh cross-compiler works. | |
3828 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3829 | # <limits.h> exists even on freestanding compilers. | |
3830 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3831 | # not just through cpp. "Syntax error" is here to catch this case. | |
3832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3833 | /* end confdefs.h. */ | |
3834 | #ifdef __STDC__ | |
3835 | # include <limits.h> | |
3836 | #else | |
3837 | # include <assert.h> | |
3838 | #endif | |
3839 | Syntax error | |
3840 | _ACEOF | |
3841 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3842 | |
9c961554 | 3843 | else |
f11781c5 AK |
3844 | # Broken: fails on valid input. |
3845 | continue | |
9c961554 | 3846 | fi |
f11781c5 | 3847 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3848 | |
f11781c5 AK |
3849 | # OK, works on sane cases. Now check whether nonexistent headers |
3850 | # can be detected and how. | |
3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3852 | /* end confdefs.h. */ | |
3853 | #include <ac_nonexistent.h> | |
3854 | _ACEOF | |
3855 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3856 | # Broken: success on invalid input. | |
3857 | continue | |
3858 | else | |
3859 | # Passes both tests. | |
3860 | ac_preproc_ok=: | |
3861 | break | |
3862 | fi | |
3863 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3864 | |
f11781c5 AK |
3865 | done |
3866 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3867 | rm -f conftest.err conftest.$ac_ext | |
3868 | if $ac_preproc_ok; then : | |
d0191583 | 3869 | |
f11781c5 AK |
3870 | else |
3871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3873 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3874 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3875 | fi |
3876 | ||
f11781c5 AK |
3877 | ac_ext=c |
3878 | ac_cpp='$CPP $CPPFLAGS' | |
3879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3882 | |
ad6254c5 | 3883 | |
f11781c5 AK |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3885 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3886 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3887 | $as_echo_n "(cached) " >&6 | |
3888 | else | |
3889 | if test -z "$GREP"; then | |
3890 | ac_path_GREP_found=false | |
3891 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3894 | do | |
3895 | IFS=$as_save_IFS | |
3896 | test -z "$as_dir" && as_dir=. | |
3897 | for ac_prog in grep ggrep; do | |
3898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3899 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3900 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3901 | # Check for GNU ac_path_GREP and select it if it is found. | |
3902 | # Check for GNU $ac_path_GREP | |
3903 | case `"$ac_path_GREP" --version 2>&1` in | |
3904 | *GNU*) | |
3905 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3906 | *) | |
3907 | ac_count=0 | |
3908 | $as_echo_n 0123456789 >"conftest.in" | |
3909 | while : | |
3910 | do | |
3911 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3912 | mv "conftest.tmp" "conftest.in" | |
3913 | cp "conftest.in" "conftest.nl" | |
3914 | $as_echo 'GREP' >> "conftest.nl" | |
3915 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3916 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3917 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3918 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3919 | # Best one so far, save it but keep looking for a better one | |
3920 | ac_cv_path_GREP="$ac_path_GREP" | |
3921 | ac_path_GREP_max=$ac_count | |
3922 | fi | |
3923 | # 10*(2^10) chars as input seems more than enough | |
3924 | test $ac_count -gt 10 && break | |
3925 | done | |
3926 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3927 | esac | |
ad6254c5 | 3928 | |
f11781c5 AK |
3929 | $ac_path_GREP_found && break 3 |
3930 | done | |
3931 | done | |
3932 | done | |
3933 | IFS=$as_save_IFS | |
3934 | if test -z "$ac_cv_path_GREP"; then | |
3935 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3936 | fi | |
3937 | else | |
3938 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3939 | fi |
3940 | ||
d0191583 | 3941 | fi |
f11781c5 AK |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3943 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3944 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3945 | |
24bbc4d7 | 3946 | |
f11781c5 AK |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3948 | $as_echo_n "checking for egrep... " >&6; } | |
3949 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3950 | $as_echo_n "(cached) " >&6 | |
3951 | else | |
3952 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3953 | then ac_cv_path_EGREP="$GREP -E" | |
3954 | else | |
3955 | if test -z "$EGREP"; then | |
3956 | ac_path_EGREP_found=false | |
3957 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3959 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3960 | do | |
3961 | IFS=$as_save_IFS | |
3962 | test -z "$as_dir" && as_dir=. | |
3963 | for ac_prog in egrep; do | |
3964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3965 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3966 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3967 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3968 | # Check for GNU $ac_path_EGREP | |
3969 | case `"$ac_path_EGREP" --version 2>&1` in | |
3970 | *GNU*) | |
3971 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3972 | *) | |
3973 | ac_count=0 | |
3974 | $as_echo_n 0123456789 >"conftest.in" | |
3975 | while : | |
3976 | do | |
3977 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3978 | mv "conftest.tmp" "conftest.in" | |
3979 | cp "conftest.in" "conftest.nl" | |
3980 | $as_echo 'EGREP' >> "conftest.nl" | |
3981 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3982 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3983 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3984 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3985 | # Best one so far, save it but keep looking for a better one | |
3986 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3987 | ac_path_EGREP_max=$ac_count | |
3988 | fi | |
3989 | # 10*(2^10) chars as input seems more than enough | |
3990 | test $ac_count -gt 10 && break | |
3991 | done | |
3992 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3993 | esac | |
24bbc4d7 | 3994 | |
f11781c5 AK |
3995 | $ac_path_EGREP_found && break 3 |
3996 | done | |
3997 | done | |
3998 | done | |
3999 | IFS=$as_save_IFS | |
4000 | if test -z "$ac_cv_path_EGREP"; then | |
4001 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4002 | fi | |
24bbc4d7 | 4003 | else |
f11781c5 | 4004 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4005 | fi |
4006 | ||
f11781c5 | 4007 | fi |
24bbc4d7 | 4008 | fi |
f11781c5 AK |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4010 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4011 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4012 | |
4013 | ||
f11781c5 AK |
4014 | if test $ac_cv_c_compiler_gnu = yes; then |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4016 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4017 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4018 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4019 | else |
f11781c5 AK |
4020 | ac_pattern="Autoconf.*'x'" |
4021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4022 | /* end confdefs.h. */ | |
4023 | #include <sgtty.h> | |
4024 | Autoconf TIOCGETP | |
4025 | _ACEOF | |
4026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4027 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4028 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4029 | else |
f11781c5 | 4030 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4031 | fi |
f11781c5 | 4032 | rm -f conftest* |
7a197a62 | 4033 | |
72b2cb61 | 4034 | |
f11781c5 AK |
4035 | if test $ac_cv_prog_gcc_traditional = no; then |
4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4037 | /* end confdefs.h. */ | |
4038 | #include <termio.h> | |
4039 | Autoconf TCGETA | |
72b2cb61 | 4040 | _ACEOF |
f11781c5 AK |
4041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4042 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4043 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4044 | fi |
f11781c5 | 4045 | rm -f conftest* |
ad6254c5 | 4046 | |
f11781c5 | 4047 | fi |
7a197a62 | 4048 | fi |
f11781c5 AK |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4050 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4051 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4052 | CC="$CC -traditional" | |
4053 | fi | |
ad6254c5 AK |
4054 | fi |
4055 | ||
f11781c5 AK |
4056 | # Find a good install program. We prefer a C program (faster), |
4057 | # so one script is as good as another. But avoid the broken or | |
4058 | # incompatible versions: | |
4059 | # SysV /etc/install, /usr/sbin/install | |
4060 | # SunOS /usr/etc/install | |
4061 | # IRIX /sbin/install | |
4062 | # AIX /bin/install | |
4063 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4064 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4065 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4066 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4067 | # OS/2's system install, which has a completely different semantic | |
4068 | # ./install, which can be erroneously created by make from ./install.sh. | |
4069 | # Reject install programs that cannot install multiple files. | |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4071 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4072 | if test -z "$INSTALL"; then | |
4073 | if test "${ac_cv_path_install+set}" = set; then : | |
4074 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4075 | else |
f11781c5 AK |
4076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4077 | for as_dir in $PATH | |
4078 | do | |
4079 | IFS=$as_save_IFS | |
4080 | test -z "$as_dir" && as_dir=. | |
4081 | # Account for people who put trailing slashes in PATH elements. | |
4082 | case $as_dir/ in #(( | |
4083 | ./ | .// | /[cC]/* | \ | |
4084 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4085 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4086 | /usr/ucb/* ) ;; | |
4087 | *) | |
4088 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4089 | # Don't use installbsd from OSF since it installs stuff as root | |
4090 | # by default. | |
4091 | for ac_prog in ginstall scoinst install; do | |
4092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4093 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4094 | if test $ac_prog = install && | |
4095 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4096 | # AIX install. It has an incompatible calling convention. | |
4097 | : | |
4098 | elif test $ac_prog = install && | |
4099 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4100 | # program-specific install script used by HP pwplus--don't use. | |
4101 | : | |
4102 | else | |
4103 | rm -rf conftest.one conftest.two conftest.dir | |
4104 | echo one > conftest.one | |
4105 | echo two > conftest.two | |
4106 | mkdir conftest.dir | |
4107 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4108 | test -s conftest.one && test -s conftest.two && | |
4109 | test -s conftest.dir/conftest.one && | |
4110 | test -s conftest.dir/conftest.two | |
4111 | then | |
4112 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4113 | break 3 | |
4114 | fi | |
4115 | fi | |
4116 | fi | |
4117 | done | |
4118 | done | |
4119 | ;; | |
4120 | esac | |
7a197a62 | 4121 | |
f11781c5 AK |
4122 | done |
4123 | IFS=$as_save_IFS | |
d0191583 | 4124 | |
f11781c5 | 4125 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4126 | |
4127 | fi | |
f11781c5 AK |
4128 | if test "${ac_cv_path_install+set}" = set; then |
4129 | INSTALL=$ac_cv_path_install | |
4130 | else | |
4131 | # As a last resort, use the slow shell script. Don't cache a | |
4132 | # value for INSTALL within a source directory, because that will | |
4133 | # break other packages using the cache if that directory is | |
4134 | # removed, or if the value is a relative name. | |
4135 | INSTALL=$ac_install_sh | |
4136 | fi | |
7a197a62 | 4137 | fi |
f11781c5 AK |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4139 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4140 | |
f11781c5 AK |
4141 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4142 | # It thinks the first close brace ends the variable substitution. | |
4143 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4144 | |
f11781c5 | 4145 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4146 | |
f11781c5 | 4147 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4148 | |
f11781c5 AK |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4150 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4151 | LN_S=$as_ln_s | |
4152 | if test "$LN_S" = "ln -s"; then | |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4154 | $as_echo "yes" >&6; } | |
4155 | else | |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4157 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4158 | fi |
ad6254c5 | 4159 | |
f11781c5 AK |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4161 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4162 | set x ${MAKE-make} | |
4163 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4164 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4165 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4166 | else |
f11781c5 AK |
4167 | cat >conftest.make <<\_ACEOF |
4168 | SHELL = /bin/sh | |
4169 | all: | |
4170 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4171 | _ACEOF | |
4172 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4173 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4174 | *@@@%%%=?*=@@@%%%*) | |
4175 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4176 | *) | |
4177 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4178 | esac | |
4179 | rm -f conftest.make | |
4180 | fi | |
4181 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4183 | $as_echo "yes" >&6; } | |
4184 | SET_MAKE= | |
4185 | else | |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4187 | $as_echo "no" >&6; } | |
4188 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4189 | fi |
4190 | ||
f11781c5 AK |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4192 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4193 | if test -z "$MKDIR_P"; then | |
4194 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4195 | $as_echo_n "(cached) " >&6 | |
4196 | else | |
4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4198 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4199 | do | |
4200 | IFS=$as_save_IFS | |
4201 | test -z "$as_dir" && as_dir=. | |
4202 | for ac_prog in mkdir gmkdir; do | |
4203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4204 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4205 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4206 | 'mkdir (GNU coreutils) '* | \ | |
4207 | 'mkdir (coreutils) '* | \ | |
4208 | 'mkdir (fileutils) '4.1*) | |
4209 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4210 | break 3;; | |
4211 | esac | |
4212 | done | |
4213 | done | |
4214 | done | |
4215 | IFS=$as_save_IFS | |
d0191583 | 4216 | |
f11781c5 | 4217 | fi |
ad6254c5 | 4218 | |
f11781c5 AK |
4219 | test -d ./--version && rmdir ./--version |
4220 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4221 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4222 | else | |
4223 | # As a last resort, use the slow shell script. Don't cache a | |
4224 | # value for MKDIR_P within a source directory, because that will | |
4225 | # break other packages using the cache if that directory is | |
4226 | # removed, or if the value is a relative name. | |
4227 | MKDIR_P="$ac_install_sh -d" | |
4228 | fi | |
ad6254c5 | 4229 | fi |
f11781c5 AK |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4231 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4232 | |
f11781c5 AK |
4233 | if test -n "$ac_tool_prefix"; then |
4234 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4235 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4237 | $as_echo_n "checking for $ac_word... " >&6; } | |
4238 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4239 | $as_echo_n "(cached) " >&6 | |
4240 | else | |
4241 | if test -n "$RANLIB"; then | |
4242 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4243 | else | |
4244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4245 | for as_dir in $PATH | |
4246 | do | |
4247 | IFS=$as_save_IFS | |
4248 | test -z "$as_dir" && as_dir=. | |
4249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4251 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4253 | break 2 | |
4254 | fi | |
4255 | done | |
4256 | done | |
4257 | IFS=$as_save_IFS | |
d0191583 | 4258 | |
f11781c5 AK |
4259 | fi |
4260 | fi | |
4261 | RANLIB=$ac_cv_prog_RANLIB | |
4262 | if test -n "$RANLIB"; then | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4264 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4265 | else |
f11781c5 AK |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4267 | $as_echo "no" >&6; } | |
ad6254c5 | 4268 | fi |
ad6254c5 | 4269 | |
8a2fc586 | 4270 | |
d0191583 | 4271 | fi |
f11781c5 AK |
4272 | if test -z "$ac_cv_prog_RANLIB"; then |
4273 | ac_ct_RANLIB=$RANLIB | |
4274 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4275 | set dummy ranlib; ac_word=$2 | |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4277 | $as_echo_n "checking for $ac_word... " >&6; } | |
4278 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4279 | $as_echo_n "(cached) " >&6 | |
4280 | else | |
4281 | if test -n "$ac_ct_RANLIB"; then | |
4282 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4283 | else | |
4284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4285 | for as_dir in $PATH | |
4286 | do | |
4287 | IFS=$as_save_IFS | |
4288 | test -z "$as_dir" && as_dir=. | |
4289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4291 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4293 | break 2 | |
4294 | fi | |
4295 | done | |
4296 | done | |
4297 | IFS=$as_save_IFS | |
8a2fc586 | 4298 | |
f11781c5 AK |
4299 | fi |
4300 | fi | |
4301 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4302 | if test -n "$ac_ct_RANLIB"; then | |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4304 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4305 | else |
f11781c5 AK |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4307 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4308 | fi |
4309 | ||
f11781c5 AK |
4310 | if test "x$ac_ct_RANLIB" = x; then |
4311 | RANLIB=":" | |
4312 | else | |
4313 | case $cross_compiling:$ac_tool_warned in | |
4314 | yes:) | |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4316 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4317 | ac_tool_warned=yes ;; | |
8fea97b7 | 4318 | esac |
f11781c5 AK |
4319 | RANLIB=$ac_ct_RANLIB |
4320 | fi | |
d0191583 | 4321 | else |
f11781c5 | 4322 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4323 | fi |
8a2fc586 | 4324 | |
f11781c5 AK |
4325 | # Extract the first word of "cflow", so it can be a program name with args. |
4326 | set dummy cflow; ac_word=$2 | |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4328 | $as_echo_n "checking for $ac_word... " >&6; } | |
4329 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4330 | $as_echo_n "(cached) " >&6 | |
4331 | else | |
4332 | case $CFLOW_CMD in | |
4333 | [\\/]* | ?:[\\/]*) | |
4334 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4335 | ;; | |
4336 | *) | |
4337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4338 | for as_dir in $PATH | |
4339 | do | |
4340 | IFS=$as_save_IFS | |
4341 | test -z "$as_dir" && as_dir=. | |
4342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4344 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4346 | break 2 | |
4347 | fi | |
4348 | done | |
4349 | done | |
4350 | IFS=$as_save_IFS | |
8a2fc586 | 4351 | |
f11781c5 AK |
4352 | ;; |
4353 | esac | |
ad6254c5 | 4354 | fi |
f11781c5 AK |
4355 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4356 | if test -n "$CFLOW_CMD"; then | |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4358 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4359 | else |
f11781c5 AK |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4361 | $as_echo "no" >&6; } | |
37ddf259 AK |
4362 | fi |
4363 | ||
e2997b73 | 4364 | |
f11781c5 AK |
4365 | # Extract the first word of "cscope", so it can be a program name with args. |
4366 | set dummy cscope; ac_word=$2 | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4368 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4369 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4370 | $as_echo_n "(cached) " >&6 |
4371 | else | |
f11781c5 | 4372 | case $CSCOPE_CMD in |
e2997b73 | 4373 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4374 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4375 | ;; |
4376 | *) | |
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4378 | for as_dir in $PATH | |
4379 | do | |
4380 | IFS=$as_save_IFS | |
4381 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4382 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4384 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4386 | break 2 |
4387 | fi | |
4388 | done | |
f11781c5 | 4389 | done |
e2997b73 AK |
4390 | IFS=$as_save_IFS |
4391 | ||
4392 | ;; | |
4393 | esac | |
4394 | fi | |
f11781c5 AK |
4395 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4396 | if test -n "$CSCOPE_CMD"; then | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4398 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4399 | else |
f11781c5 | 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4401 | $as_echo "no" >&6; } |
4402 | fi | |
f11781c5 AK |
4403 | |
4404 | ||
4405 | ||
4406 | ################################################################################ | |
4407 | ac_header_dirent=no | |
4408 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4409 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4411 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4412 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4413 | $as_echo_n "(cached) " >&6 | |
4414 | else | |
4415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4416 | /* end confdefs.h. */ | |
4417 | #include <sys/types.h> | |
4418 | #include <$ac_hdr> | |
4419 | ||
4420 | int | |
4421 | main () | |
4422 | { | |
4423 | if ((DIR *) 0) | |
4424 | return 0; | |
4425 | ; | |
4426 | return 0; | |
4427 | } | |
4428 | _ACEOF | |
4429 | if ac_fn_c_try_compile "$LINENO"; then : | |
4430 | eval "$as_ac_Header=yes" | |
4431 | else | |
4432 | eval "$as_ac_Header=no" | |
4433 | fi | |
4434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4435 | fi | |
4436 | eval ac_res=\$$as_ac_Header | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4438 | $as_echo "$ac_res" >&6; } | |
4439 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4440 | cat >>confdefs.h <<_ACEOF | |
4441 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4442 | _ACEOF | |
4443 | ||
4444 | ac_header_dirent=$ac_hdr; break | |
4445 | fi | |
4446 | ||
4447 | done | |
4448 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4449 | if test $ac_header_dirent = dirent.h; then | |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4451 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4452 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4453 | $as_echo_n "(cached) " >&6 | |
4454 | else | |
4455 | ac_func_search_save_LIBS=$LIBS | |
4456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4457 | /* end confdefs.h. */ | |
4458 | ||
4459 | /* Override any GCC internal prototype to avoid an error. | |
4460 | Use char because int might match the return type of a GCC | |
4461 | builtin and then its argument prototype would still apply. */ | |
4462 | #ifdef __cplusplus | |
4463 | extern "C" | |
4464 | #endif | |
4465 | char opendir (); | |
4466 | int | |
4467 | main () | |
4468 | { | |
4469 | return opendir (); | |
4470 | ; | |
4471 | return 0; | |
4472 | } | |
4473 | _ACEOF | |
4474 | for ac_lib in '' dir; do | |
4475 | if test -z "$ac_lib"; then | |
4476 | ac_res="none required" | |
4477 | else | |
4478 | ac_res=-l$ac_lib | |
4479 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4480 | fi | |
4481 | if ac_fn_c_try_link "$LINENO"; then : | |
4482 | ac_cv_search_opendir=$ac_res | |
4483 | fi | |
4484 | rm -f core conftest.err conftest.$ac_objext \ | |
4485 | conftest$ac_exeext | |
4486 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4487 | break | |
4488 | fi | |
4489 | done | |
4490 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4491 | ||
4492 | else | |
4493 | ac_cv_search_opendir=no | |
4494 | fi | |
4495 | rm conftest.$ac_ext | |
4496 | LIBS=$ac_func_search_save_LIBS | |
4497 | fi | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4499 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4500 | ac_res=$ac_cv_search_opendir | |
4501 | if test "$ac_res" != no; then : | |
4502 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4503 | |
4504 | fi | |
f11781c5 AK |
4505 | |
4506 | else | |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4508 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4509 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4510 | $as_echo_n "(cached) " >&6 |
4511 | else | |
f11781c5 AK |
4512 | ac_func_search_save_LIBS=$LIBS |
4513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4514 | /* end confdefs.h. */ | |
e2997b73 | 4515 | |
f11781c5 AK |
4516 | /* Override any GCC internal prototype to avoid an error. |
4517 | Use char because int might match the return type of a GCC | |
4518 | builtin and then its argument prototype would still apply. */ | |
4519 | #ifdef __cplusplus | |
4520 | extern "C" | |
4521 | #endif | |
4522 | char opendir (); | |
4523 | int | |
4524 | main () | |
4525 | { | |
4526 | return opendir (); | |
4527 | ; | |
4528 | return 0; | |
4529 | } | |
4530 | _ACEOF | |
4531 | for ac_lib in '' x; do | |
4532 | if test -z "$ac_lib"; then | |
4533 | ac_res="none required" | |
4534 | else | |
4535 | ac_res=-l$ac_lib | |
4536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4537 | fi | |
4538 | if ac_fn_c_try_link "$LINENO"; then : | |
4539 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4540 | fi |
f11781c5 AK |
4541 | rm -f core conftest.err conftest.$ac_objext \ |
4542 | conftest$ac_exeext | |
4543 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4544 | break | |
e2997b73 | 4545 | fi |
f11781c5 AK |
4546 | done |
4547 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4548 | |
e2997b73 | 4549 | else |
f11781c5 AK |
4550 | ac_cv_search_opendir=no |
4551 | fi | |
4552 | rm conftest.$ac_ext | |
4553 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4554 | fi |
f11781c5 AK |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4556 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4557 | ac_res=$ac_cv_search_opendir | |
4558 | if test "$ac_res" != no; then : | |
4559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4560 | |
4561 | fi | |
8c4e8a18 | 4562 | |
e2997b73 AK |
4563 | fi |
4564 | ||
f11781c5 AK |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4566 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4567 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4568 | $as_echo_n "(cached) " >&6 | |
4569 | else | |
4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4571 | /* end confdefs.h. */ | |
4572 | #include <stdlib.h> | |
4573 | #include <stdarg.h> | |
4574 | #include <string.h> | |
4575 | #include <float.h> | |
e2997b73 | 4576 | |
f11781c5 AK |
4577 | int |
4578 | main () | |
4579 | { | |
4580 | ||
4581 | ; | |
4582 | return 0; | |
4583 | } | |
4584 | _ACEOF | |
4585 | if ac_fn_c_try_compile "$LINENO"; then : | |
4586 | ac_cv_header_stdc=yes | |
e2997b73 | 4587 | else |
f11781c5 | 4588 | ac_cv_header_stdc=no |
e2997b73 | 4589 | fi |
f11781c5 AK |
4590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4591 | ||
4592 | if test $ac_cv_header_stdc = yes; then | |
4593 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4595 | /* end confdefs.h. */ | |
4596 | #include <string.h> | |
4597 | ||
4598 | _ACEOF | |
4599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4600 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4601 | ||
e2997b73 | 4602 | else |
f11781c5 | 4603 | ac_cv_header_stdc=no |
e2997b73 | 4604 | fi |
f11781c5 | 4605 | rm -f conftest* |
e2997b73 | 4606 | |
f11781c5 | 4607 | fi |
e2997b73 | 4608 | |
f11781c5 AK |
4609 | if test $ac_cv_header_stdc = yes; then |
4610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4612 | /* end confdefs.h. */ | |
4613 | #include <stdlib.h> | |
e2997b73 | 4614 | |
f11781c5 AK |
4615 | _ACEOF |
4616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4617 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4618 | |
e2997b73 | 4619 | else |
f11781c5 | 4620 | ac_cv_header_stdc=no |
e2997b73 | 4621 | fi |
f11781c5 | 4622 | rm -f conftest* |
e2997b73 | 4623 | |
e2997b73 | 4624 | fi |
90c80887 | 4625 | |
f11781c5 AK |
4626 | if test $ac_cv_header_stdc = yes; then |
4627 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4628 | if test "$cross_compiling" = yes; then : | |
4629 | : | |
4630 | else | |
4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4632 | /* end confdefs.h. */ | |
4633 | #include <ctype.h> | |
4634 | #include <stdlib.h> | |
4635 | #if ((' ' & 0x0FF) == 0x020) | |
4636 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4637 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4638 | #else | |
4639 | # define ISLOWER(c) \ | |
4640 | (('a' <= (c) && (c) <= 'i') \ | |
4641 | || ('j' <= (c) && (c) <= 'r') \ | |
4642 | || ('s' <= (c) && (c) <= 'z')) | |
4643 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4644 | #endif | |
4645 | ||
4646 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4647 | int | |
4648 | main () | |
4649 | { | |
4650 | int i; | |
4651 | for (i = 0; i < 256; i++) | |
4652 | if (XOR (islower (i), ISLOWER (i)) | |
4653 | || toupper (i) != TOUPPER (i)) | |
4654 | return 2; | |
4655 | return 0; | |
4656 | } | |
4657 | _ACEOF | |
4658 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4659 | |
90c80887 | 4660 | else |
f11781c5 | 4661 | ac_cv_header_stdc=no |
90c80887 | 4662 | fi |
f11781c5 AK |
4663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4664 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4665 | fi |
90c80887 | 4666 | |
90c80887 | 4667 | fi |
90c80887 | 4668 | fi |
f11781c5 AK |
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4670 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4671 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4672 | |
f11781c5 | 4673 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4674 | |
90c80887 | 4675 | fi |
f11781c5 AK |
4676 | |
4677 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4678 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4679 | inttypes.h stdint.h unistd.h | |
4680 | do : | |
4681 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4682 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4683 | " | |
4684 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4685 | cat >>confdefs.h <<_ACEOF | |
4686 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4687 | _ACEOF | |
4688 | ||
90c80887 | 4689 | fi |
f11781c5 AK |
4690 | |
4691 | done | |
4692 | ||
4693 | ||
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4695 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4696 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4697 | $as_echo_n "(cached) " >&6 | |
4698 | else | |
4699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4700 | /* end confdefs.h. */ | |
4701 | #include <sys/types.h> | |
4702 | int | |
4703 | main () | |
4704 | { | |
4705 | return makedev(0, 0); | |
4706 | ; | |
4707 | return 0; | |
4708 | } | |
4709 | _ACEOF | |
4710 | if ac_fn_c_try_link "$LINENO"; then : | |
4711 | ac_cv_header_sys_types_h_makedev=yes | |
4712 | else | |
4713 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4714 | fi |
f11781c5 AK |
4715 | rm -f core conftest.err conftest.$ac_objext \ |
4716 | conftest$ac_exeext conftest.$ac_ext | |
4717 | ||
90c80887 | 4718 | fi |
f11781c5 AK |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4720 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4721 | ||
4722 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4723 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4724 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4725 | ||
4726 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4727 | |
a946372e | 4728 | fi |
e2997b73 | 4729 | |
e2997b73 | 4730 | |
a946372e | 4731 | |
f11781c5 AK |
4732 | if test $ac_cv_header_sys_mkdev_h = no; then |
4733 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4734 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4735 | ||
4736 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4737 | ||
e2997b73 | 4738 | fi |
a946372e | 4739 | |
a946372e | 4740 | |
f11781c5 AK |
4741 | fi |
4742 | fi | |
4743 | ||
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4745 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4746 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4747 | $as_echo_n "(cached) " >&6 |
4748 | else | |
f11781c5 | 4749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4750 | /* end confdefs.h. */ |
f11781c5 AK |
4751 | #include <stdlib.h> |
4752 | #include <stdarg.h> | |
4753 | #include <string.h> | |
4754 | #include <float.h> | |
a946372e | 4755 | |
a946372e AK |
4756 | int |
4757 | main () | |
4758 | { | |
f11781c5 | 4759 | |
a946372e AK |
4760 | ; |
4761 | return 0; | |
4762 | } | |
4763 | _ACEOF | |
f11781c5 AK |
4764 | if ac_fn_c_try_compile "$LINENO"; then : |
4765 | ac_cv_header_stdc=yes | |
e2997b73 | 4766 | else |
f11781c5 AK |
4767 | ac_cv_header_stdc=no |
4768 | fi | |
4769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4770 | ||
4771 | if test $ac_cv_header_stdc = yes; then | |
4772 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4774 | /* end confdefs.h. */ | |
4775 | #include <string.h> | |
4776 | ||
4777 | _ACEOF | |
4778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4779 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4780 | |
f11781c5 AK |
4781 | else |
4782 | ac_cv_header_stdc=no | |
a946372e | 4783 | fi |
f11781c5 | 4784 | rm -f conftest* |
e2997b73 | 4785 | |
a946372e | 4786 | fi |
e2997b73 | 4787 | |
f11781c5 AK |
4788 | if test $ac_cv_header_stdc = yes; then |
4789 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4791 | /* end confdefs.h. */ | |
4792 | #include <stdlib.h> | |
4793 | ||
4794 | _ACEOF | |
4795 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4796 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4797 | |
e2997b73 | 4798 | else |
f11781c5 | 4799 | ac_cv_header_stdc=no |
e2997b73 | 4800 | fi |
f11781c5 | 4801 | rm -f conftest* |
e2997b73 | 4802 | |
f11781c5 | 4803 | fi |
a946372e | 4804 | |
f11781c5 AK |
4805 | if test $ac_cv_header_stdc = yes; then |
4806 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4807 | if test "$cross_compiling" = yes; then : | |
4808 | : | |
4809 | else | |
4810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4811 | /* end confdefs.h. */ | |
4812 | #include <ctype.h> | |
4813 | #include <stdlib.h> | |
4814 | #if ((' ' & 0x0FF) == 0x020) | |
4815 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4816 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4817 | #else | |
4818 | # define ISLOWER(c) \ | |
4819 | (('a' <= (c) && (c) <= 'i') \ | |
4820 | || ('j' <= (c) && (c) <= 'r') \ | |
4821 | || ('s' <= (c) && (c) <= 'z')) | |
4822 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4823 | #endif | |
e2997b73 | 4824 | |
f11781c5 AK |
4825 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4826 | int | |
4827 | main () | |
4828 | { | |
4829 | int i; | |
4830 | for (i = 0; i < 256; i++) | |
4831 | if (XOR (islower (i), ISLOWER (i)) | |
4832 | || toupper (i) != TOUPPER (i)) | |
4833 | return 2; | |
4834 | return 0; | |
4835 | } | |
4836 | _ACEOF | |
4837 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4838 | |
e2997b73 | 4839 | else |
f11781c5 | 4840 | ac_cv_header_stdc=no |
e2997b73 | 4841 | fi |
f11781c5 AK |
4842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4843 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4844 | fi |
f11781c5 | 4845 | |
e2997b73 | 4846 | fi |
e2997b73 | 4847 | fi |
f11781c5 AK |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4849 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4850 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4851 | |
f11781c5 | 4852 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4853 | |
f11781c5 | 4854 | fi |
e2997b73 | 4855 | |
f11781c5 AK |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4857 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4858 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4859 | $as_echo_n "(cached) " >&6 | |
4860 | else | |
4861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4862 | /* end confdefs.h. */ | |
4863 | #include <sys/types.h> | |
4864 | #include <sys/wait.h> | |
4865 | #ifndef WEXITSTATUS | |
4866 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4867 | #endif | |
4868 | #ifndef WIFEXITED | |
4869 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4870 | #endif | |
e2997b73 | 4871 | |
f11781c5 AK |
4872 | int |
4873 | main () | |
4874 | { | |
4875 | int s; | |
4876 | wait (&s); | |
4877 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4878 | ; | |
4879 | return 0; | |
4880 | } | |
4881 | _ACEOF | |
4882 | if ac_fn_c_try_compile "$LINENO"; then : | |
4883 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4884 | else |
f11781c5 | 4885 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4886 | fi |
f11781c5 AK |
4887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4888 | fi | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4890 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4891 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4892 | |
f11781c5 | 4893 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4894 | |
d0191583 | 4895 | fi |
f11781c5 AK |
4896 | |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4898 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4899 | if test "${ac_cv_header_time+set}" = set; then : | |
4900 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4901 | else |
f11781c5 | 4902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4903 | /* end confdefs.h. */ |
f11781c5 AK |
4904 | #include <sys/types.h> |
4905 | #include <sys/time.h> | |
4906 | #include <time.h> | |
4907 | ||
4908 | int | |
4909 | main () | |
4910 | { | |
4911 | if ((struct tm *) 0) | |
4912 | return 0; | |
4913 | ; | |
4914 | return 0; | |
4915 | } | |
a946372e | 4916 | _ACEOF |
f11781c5 AK |
4917 | if ac_fn_c_try_compile "$LINENO"; then : |
4918 | ac_cv_header_time=yes | |
a946372e | 4919 | else |
f11781c5 AK |
4920 | ac_cv_header_time=no |
4921 | fi | |
4922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4923 | fi | |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4925 | $as_echo "$ac_cv_header_time" >&6; } | |
4926 | if test $ac_cv_header_time = yes; then | |
4927 | ||
4928 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4929 | ||
4930 | fi | |
4931 | ||
4932 | ||
4933 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4934 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4935 | sys/wait.h time.h | |
4936 | do : | |
4937 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4938 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4939 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4940 | cat >>confdefs.h <<_ACEOF | |
4941 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4942 | _ACEOF | |
d0191583 | 4943 | |
f11781c5 AK |
4944 | else |
4945 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4946 | fi |
4947 | ||
f11781c5 | 4948 | done |
fddafd51 | 4949 | |
f11781c5 AK |
4950 | |
4951 | case "$host_os" in | |
4952 | linux*) | |
4953 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4954 | do : | |
4955 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4956 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4957 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4958 | cat >>confdefs.h <<_ACEOF | |
4959 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4960 | _ACEOF |
a946372e | 4961 | |
f11781c5 AK |
4962 | else |
4963 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4964 | fi |
4965 | ||
f11781c5 AK |
4966 | done |
4967 | ;; | |
4968 | darwin*) | |
4969 | for ac_header in machine/endian.h sys/disk.h | |
4970 | do : | |
4971 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4972 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4973 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4974 | cat >>confdefs.h <<_ACEOF | |
4975 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4976 | _ACEOF | |
a946372e | 4977 | |
f11781c5 AK |
4978 | else |
4979 | as_fn_error $? "bailing out" "$LINENO" 5 | |
4980 | fi | |
a946372e | 4981 | |
f11781c5 AK |
4982 | done |
4983 | ;; | |
a946372e | 4984 | esac |
f11781c5 AK |
4985 | |
4986 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4987 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4988 | sys/types.h unistd.h | |
4989 | do : | |
4990 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4991 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4992 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4993 | cat >>confdefs.h <<_ACEOF | |
4994 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4995 | _ACEOF | |
4996 | ||
a946372e | 4997 | else |
f11781c5 | 4998 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 4999 | fi |
a946372e | 5000 | |
f11781c5 AK |
5001 | done |
5002 | ||
5003 | for ac_header in termios.h sys/statvfs.h | |
5004 | do : | |
5005 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5006 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5007 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5008 | cat >>confdefs.h <<_ACEOF |
5009 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5010 | _ACEOF | |
5011 | ||
a946372e AK |
5012 | fi |
5013 | ||
5014 | done | |
5015 | ||
a946372e | 5016 | |
f11781c5 AK |
5017 | ################################################################################ |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5019 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5020 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5021 | $as_echo_n "(cached) " >&6 |
a946372e | 5022 | else |
f11781c5 | 5023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5024 | /* end confdefs.h. */ |
a946372e | 5025 | |
f11781c5 AK |
5026 | int |
5027 | main () | |
5028 | { | |
5029 | /* FIXME: Include the comments suggested by Paul. */ | |
5030 | #ifndef __cplusplus | |
5031 | /* Ultrix mips cc rejects this. */ | |
5032 | typedef int charset[2]; | |
5033 | const charset cs; | |
5034 | /* SunOS 4.1.1 cc rejects this. */ | |
5035 | char const *const *pcpcc; | |
5036 | char **ppc; | |
5037 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5038 | struct point {int x, y;}; | |
5039 | static struct point const zero = {0,0}; | |
5040 | /* AIX XL C 1.02.0.0 rejects this. | |
5041 | It does not let you subtract one const X* pointer from another in | |
5042 | an arm of an if-expression whose if-part is not a constant | |
5043 | expression */ | |
5044 | const char *g = "string"; | |
5045 | pcpcc = &g + (g ? g-g : 0); | |
5046 | /* HPUX 7.0 cc rejects these. */ | |
5047 | ++pcpcc; | |
5048 | ppc = (char**) pcpcc; | |
5049 | pcpcc = (char const *const *) ppc; | |
5050 | { /* SCO 3.2v4 cc rejects this. */ | |
5051 | char *t; | |
5052 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5053 | |
f11781c5 AK |
5054 | *t++ = 0; |
5055 | if (s) return 0; | |
5056 | } | |
5057 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5058 | int x[] = {25, 17}; | |
5059 | const int *foo = &x[0]; | |
5060 | ++foo; | |
5061 | } | |
5062 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5063 | typedef const int *iptr; | |
5064 | iptr p = 0; | |
5065 | ++p; | |
5066 | } | |
5067 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5068 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5069 | struct s { int j; const int *ap[3]; }; | |
5070 | struct s *b; b->j = 5; | |
5071 | } | |
5072 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5073 | const int foo = 10; | |
5074 | if (!foo) return 0; | |
5075 | } | |
5076 | return !cs[0] && !zero.x; | |
5077 | #endif | |
a946372e | 5078 | |
f11781c5 AK |
5079 | ; |
5080 | return 0; | |
5081 | } | |
a946372e | 5082 | _ACEOF |
f11781c5 AK |
5083 | if ac_fn_c_try_compile "$LINENO"; then : |
5084 | ac_cv_c_const=yes | |
a946372e | 5085 | else |
f11781c5 AK |
5086 | ac_cv_c_const=no |
5087 | fi | |
5088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5089 | fi |
f11781c5 AK |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5091 | $as_echo "$ac_cv_c_const" >&6; } | |
5092 | if test $ac_cv_c_const = no; then | |
a946372e | 5093 | |
f11781c5 | 5094 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5095 | |
f11781c5 | 5096 | fi |
a946372e | 5097 | |
f11781c5 AK |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5099 | $as_echo_n "checking for inline... " >&6; } | |
5100 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5101 | $as_echo_n "(cached) " >&6 |
5102 | else | |
f11781c5 AK |
5103 | ac_cv_c_inline=no |
5104 | for ac_kw in inline __inline__ __inline; do | |
5105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5106 | /* end confdefs.h. */ | |
5107 | #ifndef __cplusplus | |
5108 | typedef int foo_t; | |
5109 | static $ac_kw foo_t static_foo () {return 0; } | |
5110 | $ac_kw foo_t foo () {return 0; } | |
5111 | #endif | |
5112 | ||
5113 | _ACEOF | |
5114 | if ac_fn_c_try_compile "$LINENO"; then : | |
5115 | ac_cv_c_inline=$ac_kw | |
a946372e | 5116 | fi |
f11781c5 AK |
5117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5118 | test "$ac_cv_c_inline" != no && break | |
5119 | done | |
a946372e AK |
5120 | |
5121 | fi | |
f11781c5 AK |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5123 | $as_echo "$ac_cv_c_inline" >&6; } | |
5124 | ||
5125 | case $ac_cv_c_inline in | |
5126 | inline | yes) ;; | |
5127 | *) | |
5128 | case $ac_cv_c_inline in | |
5129 | no) ac_val=;; | |
5130 | *) ac_val=$ac_cv_c_inline;; | |
5131 | esac | |
5132 | cat >>confdefs.h <<_ACEOF | |
5133 | #ifndef __cplusplus | |
5134 | #define inline $ac_val | |
5135 | #endif | |
5136 | _ACEOF | |
5137 | ;; | |
5138 | esac | |
5139 | ||
5140 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5141 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5142 | ||
5143 | cat >>confdefs.h <<_ACEOF | |
5144 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5145 | _ACEOF |
5146 | ||
f11781c5 | 5147 | |
a946372e AK |
5148 | fi |
5149 | ||
f11781c5 AK |
5150 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5151 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5152 | |
a946372e | 5153 | else |
f11781c5 AK |
5154 | |
5155 | cat >>confdefs.h <<_ACEOF | |
5156 | #define off_t long int | |
5157 | _ACEOF | |
5158 | ||
a946372e AK |
5159 | fi |
5160 | ||
f11781c5 AK |
5161 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5162 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5163 | |
a946372e | 5164 | else |
f11781c5 AK |
5165 | |
5166 | cat >>confdefs.h <<_ACEOF | |
5167 | #define pid_t int | |
5168 | _ACEOF | |
5169 | ||
5170 | fi | |
5171 | ||
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5173 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5174 | if test "${ac_cv_type_signal+set}" = set; then : | |
5175 | $as_echo_n "(cached) " >&6 | |
a946372e | 5176 | else |
f11781c5 AK |
5177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5178 | /* end confdefs.h. */ | |
5179 | #include <sys/types.h> | |
5180 | #include <signal.h> | |
5181 | ||
5182 | int | |
5183 | main () | |
5184 | { | |
5185 | return *(signal (0, 0)) (0) == 1; | |
5186 | ; | |
5187 | return 0; | |
5188 | } | |
5189 | _ACEOF | |
5190 | if ac_fn_c_try_compile "$LINENO"; then : | |
5191 | ac_cv_type_signal=int | |
5192 | else | |
5193 | ac_cv_type_signal=void | |
a946372e | 5194 | fi |
f11781c5 | 5195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5196 | fi |
f11781c5 AK |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5198 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5199 | |
f11781c5 AK |
5200 | cat >>confdefs.h <<_ACEOF |
5201 | #define RETSIGTYPE $ac_cv_type_signal | |
5202 | _ACEOF | |
a946372e AK |
5203 | |
5204 | ||
f11781c5 AK |
5205 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5206 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5207 | |
a946372e | 5208 | else |
a946372e | 5209 | |
f11781c5 AK |
5210 | cat >>confdefs.h <<_ACEOF |
5211 | #define size_t unsigned int | |
5212 | _ACEOF | |
a946372e | 5213 | |
a946372e | 5214 | fi |
f11781c5 AK |
5215 | |
5216 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5217 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5218 | ||
a946372e | 5219 | else |
f11781c5 AK |
5220 | |
5221 | cat >>confdefs.h <<_ACEOF | |
5222 | #define mode_t int | |
a946372e | 5223 | _ACEOF |
a946372e | 5224 | |
a946372e AK |
5225 | fi |
5226 | ||
f11781c5 AK |
5227 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5228 | case $ac_cv_c_int8_t in #( | |
5229 | no|yes) ;; #( | |
5230 | *) | |
a946372e | 5231 | |
f11781c5 AK |
5232 | cat >>confdefs.h <<_ACEOF |
5233 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5234 | _ACEOF |
f11781c5 | 5235 | ;; |
a946372e | 5236 | esac |
a946372e | 5237 | |
f11781c5 AK |
5238 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5239 | case $ac_cv_c_int16_t in #( | |
5240 | no|yes) ;; #( | |
5241 | *) | |
a946372e | 5242 | |
f11781c5 AK |
5243 | cat >>confdefs.h <<_ACEOF |
5244 | #define int16_t $ac_cv_c_int16_t | |
5245 | _ACEOF | |
5246 | ;; | |
5247 | esac | |
a946372e | 5248 | |
f11781c5 AK |
5249 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5250 | case $ac_cv_c_int32_t in #( | |
5251 | no|yes) ;; #( | |
5252 | *) | |
a946372e | 5253 | |
f11781c5 AK |
5254 | cat >>confdefs.h <<_ACEOF |
5255 | #define int32_t $ac_cv_c_int32_t | |
5256 | _ACEOF | |
5257 | ;; | |
a946372e | 5258 | esac |
a946372e | 5259 | |
f11781c5 AK |
5260 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5261 | case $ac_cv_c_int64_t in #( | |
5262 | no|yes) ;; #( | |
5263 | *) | |
5264 | ||
5265 | cat >>confdefs.h <<_ACEOF | |
5266 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5267 | _ACEOF |
f11781c5 AK |
5268 | ;; |
5269 | esac | |
5270 | ||
5271 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5272 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5273 | |
5274 | else | |
a946372e | 5275 | |
f11781c5 AK |
5276 | cat >>confdefs.h <<_ACEOF |
5277 | #define ssize_t int | |
5278 | _ACEOF | |
a946372e | 5279 | |
f11781c5 | 5280 | fi |
a946372e | 5281 | |
f11781c5 AK |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5283 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5284 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5285 | $as_echo_n "(cached) " >&6 |
a946372e | 5286 | else |
f11781c5 | 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5288 | /* end confdefs.h. */ |
f11781c5 AK |
5289 | #include <sys/types.h> |
5290 | ||
a946372e | 5291 | _ACEOF |
f11781c5 AK |
5292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5293 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5294 | ac_cv_type_uid_t=yes | |
a946372e | 5295 | else |
f11781c5 AK |
5296 | ac_cv_type_uid_t=no |
5297 | fi | |
5298 | rm -f conftest* | |
a946372e | 5299 | |
a946372e | 5300 | fi |
f11781c5 AK |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5302 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5303 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5304 | |
f11781c5 | 5305 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5306 | |
f11781c5 AK |
5307 | |
5308 | $as_echo "#define gid_t int" >>confdefs.h | |
5309 | ||
5310 | fi | |
5311 | ||
5312 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5313 | case $ac_cv_c_uint8_t in #( | |
5314 | no|yes) ;; #( | |
5315 | *) | |
5316 | ||
5317 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5318 | ||
5319 | ||
5320 | cat >>confdefs.h <<_ACEOF | |
5321 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5322 | _ACEOF |
f11781c5 AK |
5323 | ;; |
5324 | esac | |
5325 | ||
5326 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5327 | case $ac_cv_c_uint16_t in #( | |
5328 | no|yes) ;; #( | |
5329 | *) | |
5330 | ||
5331 | ||
5332 | cat >>confdefs.h <<_ACEOF | |
5333 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5334 | _ACEOF |
f11781c5 AK |
5335 | ;; |
5336 | esac | |
a946372e | 5337 | |
f11781c5 AK |
5338 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5339 | case $ac_cv_c_uint32_t in #( | |
5340 | no|yes) ;; #( | |
5341 | *) | |
a946372e | 5342 | |
f11781c5 | 5343 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5344 | |
a946372e | 5345 | |
f11781c5 AK |
5346 | cat >>confdefs.h <<_ACEOF |
5347 | #define uint32_t $ac_cv_c_uint32_t | |
5348 | _ACEOF | |
5349 | ;; | |
5350 | esac | |
5351 | ||
5352 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5353 | case $ac_cv_c_uint64_t in #( | |
5354 | no|yes) ;; #( | |
5355 | *) | |
5356 | ||
5357 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5358 | ||
5359 | ||
5360 | cat >>confdefs.h <<_ACEOF | |
5361 | #define uint64_t $ac_cv_c_uint64_t | |
5362 | _ACEOF | |
5363 | ;; | |
5364 | esac | |
5365 | ||
5366 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5367 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5368 | ||
5369 | cat >>confdefs.h <<_ACEOF | |
5370 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5371 | _ACEOF | |
5372 | ||
5373 | ||
5374 | fi | |
5375 | ||
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5377 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5378 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5379 | $as_echo_n "(cached) " >&6 |
5380 | else | |
f11781c5 AK |
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5382 | /* end confdefs.h. */ | |
5383 | #include <sys/types.h> | |
5384 | #include <time.h> | |
5385 | ||
5386 | int | |
5387 | main () | |
5388 | { | |
5389 | struct tm tm; | |
5390 | int *p = &tm.tm_sec; | |
5391 | return !p; | |
5392 | ; | |
5393 | return 0; | |
5394 | } | |
5395 | _ACEOF | |
5396 | if ac_fn_c_try_compile "$LINENO"; then : | |
5397 | ac_cv_struct_tm=time.h | |
5398 | else | |
5399 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5400 | fi |
f11781c5 AK |
5401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5402 | fi | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5404 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5405 | if test $ac_cv_struct_tm = sys/time.h; then | |
5406 | ||
5407 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5408 | |
5409 | fi | |
f11781c5 AK |
5410 | |
5411 | ||
5412 | ################################################################################ | |
5413 | for ac_func in ftruncate gethostname getpagesize \ | |
5414 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5415 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5416 | strstr strtol strtoul uname | |
5417 | do : | |
5418 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5419 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5420 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5421 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5422 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5423 | _ACEOF |
5424 | ||
5425 | else | |
f11781c5 | 5426 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5427 | fi |
a946372e AK |
5428 | done |
5429 | ||
f11781c5 AK |
5430 | for ac_func in siginterrupt |
5431 | do : | |
5432 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5433 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5434 | cat >>confdefs.h <<_ACEOF | |
5435 | #define HAVE_SIGINTERRUPT 1 | |
5436 | _ACEOF | |
a946372e | 5437 | |
f11781c5 AK |
5438 | fi |
5439 | done | |
a946372e | 5440 | |
f11781c5 AK |
5441 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5442 | # for constant arguments. Useless! | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5444 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5445 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5446 | $as_echo_n "(cached) " >&6 | |
a946372e | 5447 | else |
f11781c5 AK |
5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5449 | /* end confdefs.h. */ | |
5450 | #include <alloca.h> | |
5451 | int | |
5452 | main () | |
5453 | { | |
5454 | char *p = (char *) alloca (2 * sizeof (int)); | |
5455 | if (p) return 0; | |
5456 | ; | |
5457 | return 0; | |
5458 | } | |
5459 | _ACEOF | |
5460 | if ac_fn_c_try_link "$LINENO"; then : | |
5461 | ac_cv_working_alloca_h=yes | |
a946372e | 5462 | else |
f11781c5 | 5463 | ac_cv_working_alloca_h=no |
a946372e | 5464 | fi |
f11781c5 AK |
5465 | rm -f core conftest.err conftest.$ac_objext \ |
5466 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5467 | fi |
f11781c5 AK |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5469 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5470 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5471 | |
f11781c5 | 5472 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5473 | |
a946372e | 5474 | fi |
a946372e | 5475 | |
f11781c5 AK |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5477 | $as_echo_n "checking for alloca... " >&6; } | |
5478 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5479 | $as_echo_n "(cached) " >&6 |
a946372e | 5480 | else |
f11781c5 | 5481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5482 | /* end confdefs.h. */ |
f11781c5 AK |
5483 | #ifdef __GNUC__ |
5484 | # define alloca __builtin_alloca | |
5485 | #else | |
5486 | # ifdef _MSC_VER | |
5487 | # include <malloc.h> | |
5488 | # define alloca _alloca | |
5489 | # else | |
5490 | # ifdef HAVE_ALLOCA_H | |
5491 | # include <alloca.h> | |
5492 | # else | |
5493 | # ifdef _AIX | |
5494 | #pragma alloca | |
5495 | # else | |
5496 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5497 | char *alloca (); | |
5498 | # endif | |
5499 | # endif | |
5500 | # endif | |
5501 | # endif | |
5502 | #endif | |
a946372e | 5503 | |
f11781c5 AK |
5504 | int |
5505 | main () | |
5506 | { | |
5507 | char *p = (char *) alloca (1); | |
5508 | if (p) return 0; | |
5509 | ; | |
5510 | return 0; | |
5511 | } | |
a946372e | 5512 | _ACEOF |
f11781c5 AK |
5513 | if ac_fn_c_try_link "$LINENO"; then : |
5514 | ac_cv_func_alloca_works=yes | |
a946372e | 5515 | else |
f11781c5 | 5516 | ac_cv_func_alloca_works=no |
a946372e | 5517 | fi |
f11781c5 AK |
5518 | rm -f core conftest.err conftest.$ac_objext \ |
5519 | conftest$ac_exeext conftest.$ac_ext | |
5520 | fi | |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5522 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5523 | |
f11781c5 | 5524 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5525 | |
f11781c5 | 5526 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5527 | |
a946372e | 5528 | else |
f11781c5 AK |
5529 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5530 | # that cause trouble. Some versions do not even contain alloca or | |
5531 | # contain a buggy version. If you still want to use their alloca, | |
5532 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5533 | |
f11781c5 | 5534 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5535 | |
f11781c5 | 5536 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5537 | |
a946372e | 5538 | |
f11781c5 AK |
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5540 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5541 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5542 | $as_echo_n "(cached) " >&6 |
a946372e | 5543 | else |
f11781c5 | 5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5545 | /* end confdefs.h. */ |
f11781c5 AK |
5546 | #if defined CRAY && ! defined CRAY2 |
5547 | webecray | |
5548 | #else | |
5549 | wenotbecray | |
5550 | #endif | |
5551 | ||
a946372e | 5552 | _ACEOF |
f11781c5 AK |
5553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5554 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5555 | ac_cv_os_cray=yes | |
a946372e | 5556 | else |
f11781c5 | 5557 | ac_cv_os_cray=no |
a946372e | 5558 | fi |
f11781c5 | 5559 | rm -f conftest* |
a946372e | 5560 | |
f11781c5 AK |
5561 | fi |
5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5563 | $as_echo "$ac_cv_os_cray" >&6; } | |
5564 | if test $ac_cv_os_cray = yes; then | |
5565 | for ac_func in _getb67 GETB67 getb67; do | |
5566 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5567 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5568 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5569 | |
f11781c5 AK |
5570 | cat >>confdefs.h <<_ACEOF |
5571 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5572 | _ACEOF |
a946372e | 5573 | |
f11781c5 | 5574 | break |
a946372e AK |
5575 | fi |
5576 | ||
f11781c5 AK |
5577 | done |
5578 | fi | |
a946372e | 5579 | |
f11781c5 AK |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5581 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5582 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5583 | $as_echo_n "(cached) " >&6 |
5584 | else | |
f11781c5 AK |
5585 | if test "$cross_compiling" = yes; then : |
5586 | ac_cv_c_stack_direction=0 | |
5587 | else | |
5588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5589 | /* end confdefs.h. */ | |
5590 | $ac_includes_default | |
5591 | int | |
5592 | find_stack_direction () | |
5593 | { | |
5594 | static char *addr = 0; | |
5595 | auto char dummy; | |
5596 | if (addr == 0) | |
5597 | { | |
5598 | addr = &dummy; | |
5599 | return find_stack_direction (); | |
5600 | } | |
5601 | else | |
5602 | return (&dummy > addr) ? 1 : -1; | |
5603 | } | |
5604 | ||
5605 | int | |
5606 | main () | |
5607 | { | |
5608 | return find_stack_direction () < 0; | |
5609 | } | |
5610 | _ACEOF | |
5611 | if ac_fn_c_try_run "$LINENO"; then : | |
5612 | ac_cv_c_stack_direction=1 | |
5613 | else | |
5614 | ac_cv_c_stack_direction=-1 | |
5615 | fi | |
5616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5617 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5618 | fi |
a946372e AK |
5619 | |
5620 | fi | |
f11781c5 AK |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5622 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5623 | cat >>confdefs.h <<_ACEOF | |
5624 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5625 | _ACEOF |
5626 | ||
f11781c5 | 5627 | |
a946372e AK |
5628 | fi |
5629 | ||
f11781c5 AK |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5631 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5632 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5633 | $as_echo_n "(cached) " >&6 | |
5634 | else | |
5635 | if test "$cross_compiling" = yes; then : | |
5636 | ac_cv_func_closedir_void=yes | |
5637 | else | |
5638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5639 | /* end confdefs.h. */ | |
5640 | $ac_includes_default | |
5641 | #include <$ac_header_dirent> | |
5642 | #ifndef __cplusplus | |
5643 | int closedir (); | |
5644 | #endif | |
a946372e | 5645 | |
f11781c5 AK |
5646 | int |
5647 | main () | |
5648 | { | |
5649 | return closedir (opendir (".")) != 0; | |
5650 | ; | |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | if ac_fn_c_try_run "$LINENO"; then : | |
5655 | ac_cv_func_closedir_void=no | |
a946372e | 5656 | else |
f11781c5 | 5657 | ac_cv_func_closedir_void=yes |
a946372e | 5658 | fi |
f11781c5 AK |
5659 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5660 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5661 | fi |
5662 | ||
f11781c5 AK |
5663 | fi |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5665 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5666 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5667 | |
f11781c5 | 5668 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5669 | |
a946372e AK |
5670 | fi |
5671 | ||
f11781c5 AK |
5672 | for ac_header in unistd.h |
5673 | do : | |
5674 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5675 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5676 | cat >>confdefs.h <<_ACEOF | |
5677 | #define HAVE_UNISTD_H 1 | |
5678 | _ACEOF | |
a946372e | 5679 | |
f11781c5 | 5680 | fi |
a946372e | 5681 | |
f11781c5 | 5682 | done |
a946372e | 5683 | |
f11781c5 AK |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5685 | $as_echo_n "checking for working chown... " >&6; } | |
5686 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5687 | $as_echo_n "(cached) " >&6 | |
a946372e | 5688 | else |
f11781c5 AK |
5689 | if test "$cross_compiling" = yes; then : |
5690 | ac_cv_func_chown_works=no | |
a946372e | 5691 | else |
f11781c5 AK |
5692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5693 | /* end confdefs.h. */ | |
5694 | $ac_includes_default | |
5695 | #include <fcntl.h> | |
a946372e | 5696 | |
f11781c5 AK |
5697 | int |
5698 | main () | |
5699 | { | |
5700 | char *f = "conftest.chown"; | |
5701 | struct stat before, after; | |
a946372e | 5702 | |
f11781c5 AK |
5703 | if (creat (f, 0600) < 0) |
5704 | return 1; | |
5705 | if (stat (f, &before) < 0) | |
5706 | return 1; | |
5707 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5708 | return 1; | |
5709 | if (stat (f, &after) < 0) | |
5710 | return 1; | |
5711 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5712 | |
f11781c5 AK |
5713 | ; |
5714 | return 0; | |
5715 | } | |
5716 | _ACEOF | |
5717 | if ac_fn_c_try_run "$LINENO"; then : | |
5718 | ac_cv_func_chown_works=yes | |
a946372e | 5719 | else |
f11781c5 | 5720 | ac_cv_func_chown_works=no |
a946372e | 5721 | fi |
f11781c5 AK |
5722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5723 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5724 | fi |
5725 | ||
f11781c5 | 5726 | rm -f conftest.chown |
a946372e | 5727 | |
f11781c5 AK |
5728 | fi |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5730 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5731 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5732 | |
f11781c5 | 5733 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5734 | |
a946372e | 5735 | fi |
a946372e | 5736 | |
f11781c5 AK |
5737 | for ac_header in vfork.h |
5738 | do : | |
5739 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5740 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5741 | cat >>confdefs.h <<_ACEOF | |
5742 | #define HAVE_VFORK_H 1 | |
5743 | _ACEOF | |
a946372e | 5744 | |
f11781c5 | 5745 | fi |
a946372e | 5746 | |
f11781c5 | 5747 | done |
a946372e | 5748 | |
f11781c5 AK |
5749 | for ac_func in fork vfork |
5750 | do : | |
5751 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5752 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5753 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5754 | cat >>confdefs.h <<_ACEOF | |
5755 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5756 | _ACEOF | |
a946372e | 5757 | |
f11781c5 AK |
5758 | fi |
5759 | done | |
a946372e | 5760 | |
f11781c5 AK |
5761 | if test "x$ac_cv_func_fork" = xyes; then |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5763 | $as_echo_n "checking for working fork... " >&6; } | |
5764 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5765 | $as_echo_n "(cached) " >&6 | |
5766 | else | |
5767 | if test "$cross_compiling" = yes; then : | |
5768 | ac_cv_func_fork_works=cross | |
5769 | else | |
5770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5771 | /* end confdefs.h. */ | |
5772 | $ac_includes_default | |
5773 | int | |
5774 | main () | |
5775 | { | |
a946372e | 5776 | |
f11781c5 AK |
5777 | /* By Ruediger Kuhlmann. */ |
5778 | return fork () < 0; | |
a946372e | 5779 | |
f11781c5 AK |
5780 | ; |
5781 | return 0; | |
5782 | } | |
5783 | _ACEOF | |
5784 | if ac_fn_c_try_run "$LINENO"; then : | |
5785 | ac_cv_func_fork_works=yes | |
a946372e | 5786 | else |
f11781c5 AK |
5787 | ac_cv_func_fork_works=no |
5788 | fi | |
5789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5790 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5791 | fi |
a946372e | 5792 | |
f11781c5 AK |
5793 | fi |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5795 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5796 | ||
a946372e | 5797 | else |
f11781c5 | 5798 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5799 | fi |
f11781c5 AK |
5800 | if test "x$ac_cv_func_fork_works" = xcross; then |
5801 | case $host in | |
5802 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5803 | # Override, as these systems have only a dummy fork() stub | |
5804 | ac_cv_func_fork_works=no | |
5805 | ;; | |
5806 | *) | |
5807 | ac_cv_func_fork_works=yes | |
5808 | ;; | |
5809 | esac | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5811 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5812 | fi |
f11781c5 AK |
5813 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5814 | if test "x$ac_cv_func_vfork" = xyes; then | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5816 | $as_echo_n "checking for working vfork... " >&6; } | |
5817 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5818 | $as_echo_n "(cached) " >&6 | |
5819 | else | |
5820 | if test "$cross_compiling" = yes; then : | |
5821 | ac_cv_func_vfork_works=cross | |
5822 | else | |
5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5824 | /* end confdefs.h. */ | |
5825 | /* Thanks to Paul Eggert for this test. */ | |
5826 | $ac_includes_default | |
5827 | #include <sys/wait.h> | |
5828 | #ifdef HAVE_VFORK_H | |
5829 | # include <vfork.h> | |
5830 | #endif | |
5831 | /* On some sparc systems, changes by the child to local and incoming | |
5832 | argument registers are propagated back to the parent. The compiler | |
5833 | is told about this with #include <vfork.h>, but some compilers | |
5834 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5835 | static variable whose address is put into a register that is | |
5836 | clobbered by the vfork. */ | |
5837 | static void | |
5838 | #ifdef __cplusplus | |
5839 | sparc_address_test (int arg) | |
5840 | # else | |
5841 | sparc_address_test (arg) int arg; | |
5842 | #endif | |
5843 | { | |
5844 | static pid_t child; | |
5845 | if (!child) { | |
5846 | child = vfork (); | |
5847 | if (child < 0) { | |
5848 | perror ("vfork"); | |
5849 | _exit(2); | |
5850 | } | |
5851 | if (!child) { | |
5852 | arg = getpid(); | |
5853 | write(-1, "", 0); | |
5854 | _exit (arg); | |
5855 | } | |
5856 | } | |
5857 | } | |
a946372e | 5858 | |
f11781c5 AK |
5859 | int |
5860 | main () | |
5861 | { | |
5862 | pid_t parent = getpid (); | |
5863 | pid_t child; | |
a946372e | 5864 | |
f11781c5 | 5865 | sparc_address_test (0); |
a946372e | 5866 | |
f11781c5 | 5867 | child = vfork (); |
a946372e | 5868 | |
f11781c5 AK |
5869 | if (child == 0) { |
5870 | /* Here is another test for sparc vfork register problems. This | |
5871 | test uses lots of local variables, at least as many local | |
5872 | variables as main has allocated so far including compiler | |
5873 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5874 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5875 | reuse the register of parent for one of the local variables, | |
5876 | since it will think that parent can't possibly be used any more | |
5877 | in this routine. Assigning to the local variable will thus | |
5878 | munge parent in the parent process. */ | |
5879 | pid_t | |
5880 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5881 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5882 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5883 | use the same hardware register for all 8 local variables. */ | |
5884 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5885 | || p != p5 || p != p6 || p != p7) | |
5886 | _exit(1); | |
a946372e | 5887 | |
f11781c5 AK |
5888 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5889 | from child file descriptors. If the child closes a descriptor | |
5890 | before it execs or exits, this munges the parent's descriptor | |
5891 | as well. Test for this by closing stdout in the child. */ | |
5892 | _exit(close(fileno(stdout)) != 0); | |
5893 | } else { | |
5894 | int status; | |
5895 | struct stat st; | |
5896 | ||
5897 | while (wait(&status) != child) | |
5898 | ; | |
5899 | return ( | |
5900 | /* Was there some problem with vforking? */ | |
5901 | child < 0 | |
5902 | ||
5903 | /* Did the child fail? (This shouldn't happen.) */ | |
5904 | || status | |
5905 | ||
5906 | /* Did the vfork/compiler bug occur? */ | |
5907 | || parent != getpid() | |
5908 | ||
5909 | /* Did the file descriptor bug occur? */ | |
5910 | || fstat(fileno(stdout), &st) != 0 | |
5911 | ); | |
5912 | } | |
5913 | } | |
5914 | _ACEOF | |
5915 | if ac_fn_c_try_run "$LINENO"; then : | |
5916 | ac_cv_func_vfork_works=yes | |
a946372e | 5917 | else |
f11781c5 | 5918 | ac_cv_func_vfork_works=no |
a946372e | 5919 | fi |
f11781c5 AK |
5920 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5921 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5922 | fi |
f11781c5 | 5923 | |
a946372e | 5924 | fi |
f11781c5 AK |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5926 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5927 | |
f11781c5 AK |
5928 | fi; |
5929 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5930 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5932 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5933 | fi | |
a946372e | 5934 | |
f11781c5 | 5935 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5936 | |
f11781c5 | 5937 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5938 | |
a946372e | 5939 | else |
a946372e | 5940 | |
f11781c5 AK |
5941 | $as_echo "#define vfork fork" >>confdefs.h |
5942 | ||
a946372e | 5943 | fi |
f11781c5 | 5944 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5945 | |
f11781c5 | 5946 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5947 | |
a946372e | 5948 | fi |
f11781c5 AK |
5949 | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5951 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5952 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5953 | $as_echo_n "(cached) " >&6 | |
a946372e | 5954 | else |
f11781c5 AK |
5955 | rm -f conftest.sym conftest.file |
5956 | echo >conftest.file | |
5957 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5958 | if test "$cross_compiling" = yes; then : | |
5959 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5960 | else |
f11781c5 | 5961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5962 | /* end confdefs.h. */ |
f11781c5 AK |
5963 | $ac_includes_default |
5964 | int | |
5965 | main () | |
5966 | { | |
5967 | struct stat sbuf; | |
5968 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5969 | That is better in the sense that it means we will not | |
5970 | have to compile and use the lstat wrapper. */ | |
5971 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5972 | ; | |
5973 | return 0; | |
5974 | } | |
a946372e | 5975 | _ACEOF |
f11781c5 AK |
5976 | if ac_fn_c_try_run "$LINENO"; then : |
5977 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 5978 | else |
f11781c5 | 5979 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 5980 | fi |
f11781c5 AK |
5981 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5982 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5983 | fi |
a946372e | 5984 | |
a946372e | 5985 | else |
f11781c5 AK |
5986 | # If the `ln -s' command failed, then we probably don't even |
5987 | # have an lstat function. | |
5988 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5989 | fi |
f11781c5 | 5990 | rm -f conftest.sym conftest.file |
a946372e | 5991 | |
f11781c5 AK |
5992 | fi |
5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5994 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 5995 | |
f11781c5 | 5996 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 5997 | |
f11781c5 AK |
5998 | cat >>confdefs.h <<_ACEOF |
5999 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6000 | _ACEOF | |
a946372e | 6001 | |
a946372e | 6002 | |
f11781c5 AK |
6003 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6004 | case " $LIBOBJS " in | |
6005 | *" lstat.$ac_objext "* ) ;; | |
6006 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6007 | ;; | |
6008 | esac | |
a946372e | 6009 | |
f11781c5 | 6010 | fi |
a946372e | 6011 | |
f11781c5 AK |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6013 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6014 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6015 | $as_echo_n "(cached) " >&6 | |
a946372e | 6016 | else |
f11781c5 AK |
6017 | if test "$cross_compiling" = yes; then : |
6018 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6019 | else |
f11781c5 AK |
6020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6021 | /* end confdefs.h. */ | |
6022 | $ac_includes_default | |
6023 | int | |
6024 | main () | |
6025 | { | |
6026 | struct stat sbuf; | |
6027 | return lstat ("", &sbuf) == 0; | |
6028 | ; | |
6029 | return 0; | |
6030 | } | |
6031 | _ACEOF | |
6032 | if ac_fn_c_try_run "$LINENO"; then : | |
6033 | ac_cv_func_lstat_empty_string_bug=no | |
6034 | else | |
6035 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6036 | fi |
f11781c5 AK |
6037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6038 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6039 | fi |
6040 | ||
f11781c5 AK |
6041 | fi |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6043 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6044 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6045 | case " $LIBOBJS " in | |
6046 | *" lstat.$ac_objext "* ) ;; | |
6047 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6048 | ;; | |
6049 | esac | |
a946372e AK |
6050 | |
6051 | ||
f11781c5 AK |
6052 | cat >>confdefs.h <<_ACEOF |
6053 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6054 | _ACEOF | |
a946372e | 6055 | |
a946372e | 6056 | fi |
a946372e | 6057 | |
f11781c5 AK |
6058 | for ac_header in stdlib.h |
6059 | do : | |
6060 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6061 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6062 | cat >>confdefs.h <<_ACEOF | |
6063 | #define HAVE_STDLIB_H 1 | |
6064 | _ACEOF | |
6065 | ||
a946372e AK |
6066 | fi |
6067 | ||
f11781c5 | 6068 | done |
a946372e | 6069 | |
f11781c5 AK |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6071 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6072 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6073 | $as_echo_n "(cached) " >&6 | |
6074 | else | |
6075 | if test "$cross_compiling" = yes; then : | |
6076 | ac_cv_func_malloc_0_nonnull=no | |
6077 | else | |
6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6079 | /* end confdefs.h. */ | |
6080 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6081 | # include <stdlib.h> | |
6082 | #else | |
6083 | char *malloc (); | |
6084 | #endif | |
a946372e | 6085 | |
f11781c5 AK |
6086 | int |
6087 | main () | |
6088 | { | |
6089 | return ! malloc (0); | |
6090 | ; | |
6091 | return 0; | |
6092 | } | |
6093 | _ACEOF | |
6094 | if ac_fn_c_try_run "$LINENO"; then : | |
6095 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6096 | else |
f11781c5 | 6097 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6098 | fi |
f11781c5 AK |
6099 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6100 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6101 | fi |
f11781c5 | 6102 | |
a946372e | 6103 | fi |
f11781c5 AK |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6105 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6106 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6107 | |
f11781c5 | 6108 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6109 | |
f11781c5 AK |
6110 | else |
6111 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6112 | |
f11781c5 AK |
6113 | case " $LIBOBJS " in |
6114 | *" malloc.$ac_objext "* ) ;; | |
6115 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6116 | ;; | |
6117 | esac | |
6118 | ||
6119 | ||
6120 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6121 | |
a946372e | 6122 | fi |
a946372e | 6123 | |
a946372e | 6124 | |
f11781c5 AK |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6126 | $as_echo_n "checking for working memcmp... " >&6; } | |
6127 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6128 | $as_echo_n "(cached) " >&6 |
a946372e | 6129 | else |
f11781c5 AK |
6130 | if test "$cross_compiling" = yes; then : |
6131 | ac_cv_func_memcmp_working=no | |
6132 | else | |
6133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6134 | /* end confdefs.h. */ |
6135 | $ac_includes_default | |
f11781c5 AK |
6136 | int |
6137 | main () | |
6138 | { | |
a946372e | 6139 | |
f11781c5 AK |
6140 | /* Some versions of memcmp are not 8-bit clean. */ |
6141 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6142 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6143 | return 1; | |
a946372e | 6144 | |
f11781c5 AK |
6145 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6146 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6147 | William Lewis provided this test program. */ | |
6148 | { | |
6149 | char foo[21]; | |
6150 | char bar[21]; | |
6151 | int i; | |
6152 | for (i = 0; i < 4; i++) | |
6153 | { | |
6154 | char *a = foo + i; | |
6155 | char *b = bar + i; | |
6156 | strcpy (a, "--------01111111"); | |
6157 | strcpy (b, "--------10000000"); | |
6158 | if (memcmp (a, b, 16) >= 0) | |
6159 | return 1; | |
6160 | } | |
6161 | return 0; | |
6162 | } | |
a946372e | 6163 | |
f11781c5 AK |
6164 | ; |
6165 | return 0; | |
6166 | } | |
a946372e | 6167 | _ACEOF |
f11781c5 AK |
6168 | if ac_fn_c_try_run "$LINENO"; then : |
6169 | ac_cv_func_memcmp_working=yes | |
a946372e | 6170 | else |
f11781c5 AK |
6171 | ac_cv_func_memcmp_working=no |
6172 | fi | |
6173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6174 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6175 | fi | |
a946372e | 6176 | |
a946372e | 6177 | fi |
f11781c5 AK |
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6179 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6180 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6181 | *" memcmp.$ac_objext "* ) ;; | |
6182 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6183 | ;; | |
6184 | esac | |
a946372e | 6185 | |
a946372e | 6186 | |
a946372e | 6187 | |
a946372e | 6188 | |
f11781c5 AK |
6189 | |
6190 | for ac_header in $ac_header_list | |
6191 | do : | |
6192 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6193 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6194 | " | |
6195 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6196 | cat >>confdefs.h <<_ACEOF |
6197 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6198 | _ACEOF | |
6199 | ||
a946372e AK |
6200 | fi |
6201 | ||
6202 | done | |
6203 | ||
a946372e | 6204 | |
f11781c5 AK |
6205 | |
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | for ac_func in getpagesize | |
6212 | do : | |
6213 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6214 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6215 | cat >>confdefs.h <<_ACEOF | |
6216 | #define HAVE_GETPAGESIZE 1 | |
6217 | _ACEOF | |
6218 | ||
a946372e | 6219 | fi |
f11781c5 AK |
6220 | done |
6221 | ||
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6223 | $as_echo_n "checking for working mmap... " >&6; } | |
6224 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6225 | $as_echo_n "(cached) " >&6 | |
a946372e | 6226 | else |
f11781c5 AK |
6227 | if test "$cross_compiling" = yes; then : |
6228 | ac_cv_func_mmap_fixed_mapped=no | |
6229 | else | |
6230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6231 | /* end confdefs.h. */ |
6232 | $ac_includes_default | |
f11781c5 AK |
6233 | /* malloc might have been renamed as rpl_malloc. */ |
6234 | #undef malloc | |
6235 | ||
6236 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6237 | Here is a matrix of mmap possibilities: | |
6238 | mmap private not fixed | |
6239 | mmap private fixed at somewhere currently unmapped | |
6240 | mmap private fixed at somewhere already mapped | |
6241 | mmap shared not fixed | |
6242 | mmap shared fixed at somewhere currently unmapped | |
6243 | mmap shared fixed at somewhere already mapped | |
6244 | For private mappings, we should verify that changes cannot be read() | |
6245 | back from the file, nor mmap's back from the file at a different | |
6246 | address. (There have been systems where private was not correctly | |
6247 | implemented like the infamous i386 svr4.0, and systems where the | |
6248 | VM page cache was not coherent with the file system buffer cache | |
6249 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6250 | For shared mappings, we should conversely verify that changes get | |
6251 | propagated back to all the places they're supposed to be. | |
6252 | ||
6253 | Grep wants private fixed already mapped. | |
6254 | The main things grep needs to know about mmap are: | |
6255 | * does it exist and is it safe to write into the mmap'd area | |
6256 | * how to use it (BSD variants) */ | |
6257 | ||
6258 | #include <fcntl.h> | |
6259 | #include <sys/mman.h> | |
6260 | ||
6261 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6262 | char *malloc (); | |
6263 | #endif | |
6264 | ||
6265 | /* This mess was copied from the GNU getpagesize.h. */ | |
6266 | #ifndef HAVE_GETPAGESIZE | |
6267 | # ifdef _SC_PAGESIZE | |
6268 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6269 | # else /* no _SC_PAGESIZE */ | |
6270 | # ifdef HAVE_SYS_PARAM_H | |
6271 | # include <sys/param.h> | |
6272 | # ifdef EXEC_PAGESIZE | |
6273 | # define getpagesize() EXEC_PAGESIZE | |
6274 | # else /* no EXEC_PAGESIZE */ | |
6275 | # ifdef NBPG | |
6276 | # define getpagesize() NBPG * CLSIZE | |
6277 | # ifndef CLSIZE | |
6278 | # define CLSIZE 1 | |
6279 | # endif /* no CLSIZE */ | |
6280 | # else /* no NBPG */ | |
6281 | # ifdef NBPC | |
6282 | # define getpagesize() NBPC | |
6283 | # else /* no NBPC */ | |
6284 | # ifdef PAGESIZE | |
6285 | # define getpagesize() PAGESIZE | |
6286 | # endif /* PAGESIZE */ | |
6287 | # endif /* no NBPC */ | |
6288 | # endif /* no NBPG */ | |
6289 | # endif /* no EXEC_PAGESIZE */ | |
6290 | # else /* no HAVE_SYS_PARAM_H */ | |
6291 | # define getpagesize() 8192 /* punt totally */ | |
6292 | # endif /* no HAVE_SYS_PARAM_H */ | |
6293 | # endif /* no _SC_PAGESIZE */ | |
6294 | ||
6295 | #endif /* no HAVE_GETPAGESIZE */ | |
6296 | ||
6297 | int | |
6298 | main () | |
6299 | { | |
6300 | char *data, *data2, *data3; | |
6301 | const char *cdata2; | |
6302 | int i, pagesize; | |
6303 | int fd, fd2; | |
6304 | ||
6305 | pagesize = getpagesize (); | |
6306 | ||
6307 | /* First, make a file with some known garbage in it. */ | |
6308 | data = (char *) malloc (pagesize); | |
6309 | if (!data) | |
6310 | return 1; | |
6311 | for (i = 0; i < pagesize; ++i) | |
6312 | *(data + i) = rand (); | |
6313 | umask (0); | |
6314 | fd = creat ("conftest.mmap", 0600); | |
6315 | if (fd < 0) | |
6316 | return 2; | |
6317 | if (write (fd, data, pagesize) != pagesize) | |
6318 | return 3; | |
6319 | close (fd); | |
6320 | ||
6321 | /* Next, check that the tail of a page is zero-filled. File must have | |
6322 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6323 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6324 | if (fd2 < 0) | |
6325 | return 4; | |
6326 | cdata2 = ""; | |
6327 | if (write (fd2, cdata2, 1) != 1) | |
6328 | return 5; | |
6329 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6330 | if (data2 == MAP_FAILED) | |
6331 | return 6; | |
6332 | for (i = 0; i < pagesize; ++i) | |
6333 | if (*(data2 + i)) | |
6334 | return 7; | |
6335 | close (fd2); | |
6336 | if (munmap (data2, pagesize)) | |
6337 | return 8; | |
6338 | ||
6339 | /* Next, try to mmap the file at a fixed address which already has | |
6340 | something else allocated at it. If we can, also make sure that | |
6341 | we see the same garbage. */ | |
6342 | fd = open ("conftest.mmap", O_RDWR); | |
6343 | if (fd < 0) | |
6344 | return 9; | |
6345 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6346 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6347 | return 10; | |
6348 | for (i = 0; i < pagesize; ++i) | |
6349 | if (*(data + i) != *(data2 + i)) | |
6350 | return 11; | |
6351 | ||
6352 | /* Finally, make sure that changes to the mapped area do not | |
6353 | percolate back to the file as seen by read(). (This is a bug on | |
6354 | some variants of i386 svr4.0.) */ | |
6355 | for (i = 0; i < pagesize; ++i) | |
6356 | *(data2 + i) = *(data2 + i) + 1; | |
6357 | data3 = (char *) malloc (pagesize); | |
6358 | if (!data3) | |
6359 | return 12; | |
6360 | if (read (fd, data3, pagesize) != pagesize) | |
6361 | return 13; | |
6362 | for (i = 0; i < pagesize; ++i) | |
6363 | if (*(data + i) != *(data3 + i)) | |
6364 | return 14; | |
6365 | close (fd); | |
6366 | return 0; | |
6367 | } | |
a946372e | 6368 | _ACEOF |
f11781c5 AK |
6369 | if ac_fn_c_try_run "$LINENO"; then : |
6370 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6371 | else |
f11781c5 AK |
6372 | ac_cv_func_mmap_fixed_mapped=no |
6373 | fi | |
6374 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6375 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6376 | fi | |
a946372e | 6377 | |
a946372e | 6378 | fi |
f11781c5 AK |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6380 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6381 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6382 | |
f11781c5 | 6383 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6384 | |
f11781c5 AK |
6385 | fi |
6386 | rm -f conftest.mmap conftest.txt | |
6387 | ||
6388 | for ac_header in stdlib.h | |
6389 | do : | |
6390 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6391 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6392 | cat >>confdefs.h <<_ACEOF | |
6393 | #define HAVE_STDLIB_H 1 | |
a946372e | 6394 | _ACEOF |
f11781c5 AK |
6395 | |
6396 | fi | |
6397 | ||
6398 | done | |
6399 | ||
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6401 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6402 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
6404 | else | |
6405 | if test "$cross_compiling" = yes; then : | |
6406 | ac_cv_func_realloc_0_nonnull=no | |
6407 | else | |
6408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6409 | /* end confdefs.h. */ |
f11781c5 AK |
6410 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6411 | # include <stdlib.h> | |
6412 | #else | |
6413 | char *realloc (); | |
6414 | #endif | |
6415 | ||
6416 | int | |
6417 | main () | |
6418 | { | |
6419 | return ! realloc (0, 0); | |
6420 | ; | |
6421 | return 0; | |
6422 | } | |
a946372e | 6423 | _ACEOF |
f11781c5 AK |
6424 | if ac_fn_c_try_run "$LINENO"; then : |
6425 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6426 | else |
f11781c5 AK |
6427 | ac_cv_func_realloc_0_nonnull=no |
6428 | fi | |
6429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6430 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6431 | fi |
6432 | ||
f11781c5 AK |
6433 | fi |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6435 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6436 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6437 | |
f11781c5 | 6438 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6439 | |
a946372e | 6440 | else |
f11781c5 AK |
6441 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6442 | ||
6443 | case " $LIBOBJS " in | |
6444 | *" realloc.$ac_objext "* ) ;; | |
6445 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6446 | ;; | |
6447 | esac | |
a946372e | 6448 | |
a946372e | 6449 | |
f11781c5 AK |
6450 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6451 | ||
a946372e AK |
6452 | fi |
6453 | ||
a946372e | 6454 | |
f11781c5 AK |
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6456 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6457 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6458 | $as_echo_n "(cached) " >&6 | |
a946372e | 6459 | else |
f11781c5 AK |
6460 | if test "$cross_compiling" = yes; then : |
6461 | ac_cv_func_stat_empty_string_bug=yes | |
6462 | else | |
6463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6464 | /* end confdefs.h. */ | |
6465 | $ac_includes_default | |
6466 | int | |
6467 | main () | |
6468 | { | |
6469 | struct stat sbuf; | |
6470 | return stat ("", &sbuf) == 0; | |
6471 | ; | |
6472 | return 0; | |
6473 | } | |
6474 | _ACEOF | |
6475 | if ac_fn_c_try_run "$LINENO"; then : | |
6476 | ac_cv_func_stat_empty_string_bug=no | |
6477 | else | |
6478 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6479 | fi |
f11781c5 AK |
6480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6482 | fi |
6483 | ||
8c4e8a18 | 6484 | fi |
f11781c5 AK |
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6486 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6487 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6488 | case " $LIBOBJS " in | |
6489 | *" stat.$ac_objext "* ) ;; | |
6490 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6491 | ;; | |
6492 | esac | |
8c4e8a18 FDN |
6493 | |
6494 | ||
6495 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6496 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6497 | _ACEOF |
6498 | ||
6499 | fi | |
6500 | ||
f11781c5 AK |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6502 | $as_echo_n "checking for working strtod... " >&6; } | |
6503 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6504 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6505 | else |
f11781c5 AK |
6506 | if test "$cross_compiling" = yes; then : |
6507 | ac_cv_func_strtod=no | |
6508 | else | |
6509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6510 | /* end confdefs.h. */ | |
66fd4529 | 6511 | |
f11781c5 AK |
6512 | $ac_includes_default |
6513 | #ifndef strtod | |
6514 | double strtod (); | |
6515 | #endif | |
6516 | int | |
6517 | main() | |
6518 | { | |
6519 | { | |
6520 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6521 | char *string = " +69"; | |
6522 | char *term; | |
6523 | double value; | |
6524 | value = strtod (string, &term); | |
6525 | if (value != 69 || term != (string + 4)) | |
6526 | return 1; | |
6527 | } | |
66fd4529 | 6528 | |
f11781c5 AK |
6529 | { |
6530 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6531 | terminating character under some conditions. */ | |
6532 | char *string = "NaN"; | |
6533 | char *term; | |
6534 | strtod (string, &term); | |
6535 | if (term != string && *(term - 1) == 0) | |
6536 | return 1; | |
6537 | } | |
6538 | return 0; | |
6539 | } | |
66fd4529 | 6540 | |
f11781c5 AK |
6541 | _ACEOF |
6542 | if ac_fn_c_try_run "$LINENO"; then : | |
6543 | ac_cv_func_strtod=yes | |
66fd4529 | 6544 | else |
f11781c5 AK |
6545 | ac_cv_func_strtod=no |
6546 | fi | |
6547 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6548 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6549 | fi |
6550 | ||
f11781c5 AK |
6551 | fi |
6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6553 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6554 | if test $ac_cv_func_strtod = no; then | |
6555 | case " $LIBOBJS " in | |
6556 | *" strtod.$ac_objext "* ) ;; | |
6557 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6558 | ;; | |
6559 | esac | |
71082be4 | 6560 | |
f11781c5 AK |
6561 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6562 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6563 | |
66fd4529 | 6564 | fi |
a946372e | 6565 | |
f11781c5 AK |
6566 | if test $ac_cv_func_pow = no; then |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6568 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6569 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6570 | $as_echo_n "(cached) " >&6 | |
6571 | else | |
6572 | ac_check_lib_save_LIBS=$LIBS | |
6573 | LIBS="-lm $LIBS" | |
6574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6575 | /* end confdefs.h. */ | |
90c80887 | 6576 | |
f11781c5 AK |
6577 | /* Override any GCC internal prototype to avoid an error. |
6578 | Use char because int might match the return type of a GCC | |
6579 | builtin and then its argument prototype would still apply. */ | |
6580 | #ifdef __cplusplus | |
6581 | extern "C" | |
6582 | #endif | |
6583 | char pow (); | |
6584 | int | |
6585 | main () | |
6586 | { | |
6587 | return pow (); | |
6588 | ; | |
6589 | return 0; | |
6590 | } | |
6591 | _ACEOF | |
6592 | if ac_fn_c_try_link "$LINENO"; then : | |
6593 | ac_cv_lib_m_pow=yes | |
90c80887 | 6594 | else |
f11781c5 | 6595 | ac_cv_lib_m_pow=no |
90c80887 | 6596 | fi |
f11781c5 AK |
6597 | rm -f core conftest.err conftest.$ac_objext \ |
6598 | conftest$ac_exeext conftest.$ac_ext | |
6599 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6600 | fi |
f11781c5 AK |
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6602 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6603 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6604 | POW_LIB=-lm | |
90c80887 | 6605 | else |
f11781c5 AK |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6607 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6608 | fi |
f11781c5 | 6609 | |
90c80887 AK |
6610 | fi |
6611 | ||
f11781c5 AK |
6612 | fi |
6613 | ||
6614 | for ac_func in vprintf | |
6615 | do : | |
6616 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6617 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6618 | cat >>confdefs.h <<_ACEOF | |
6619 | #define HAVE_VPRINTF 1 | |
6620 | _ACEOF | |
90c80887 | 6621 | |
f11781c5 AK |
6622 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6623 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6624 | |
f11781c5 | 6625 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6626 | |
90c80887 | 6627 | fi |
90c80887 | 6628 | |
f11781c5 AK |
6629 | fi |
6630 | done | |
90c80887 | 6631 | |
90c80887 | 6632 | |
90c80887 | 6633 | |
f11781c5 AK |
6634 | ################################################################################ |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6636 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6637 | # Check whether --enable-static_link was given. | |
6638 | if test "${enable_static_link+set}" = set; then : | |
6639 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6640 | else | |
6641 | STATIC_LINK=no | |
6642 | fi | |
90c80887 | 6643 | |
f11781c5 AK |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6645 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6646 | |
f11781c5 | 6647 | ################################################################################ |
90c80887 | 6648 | |
90c80887 | 6649 | |
f11781c5 AK |
6650 | ################################################################################ |
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6652 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6653 | |
f11781c5 AK |
6654 | # Check whether --with-user was given. |
6655 | if test "${with_user+set}" = set; then : | |
6656 | withval=$with_user; OWNER=$withval | |
6657 | fi | |
90c80887 | 6658 | |
f11781c5 AK |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6660 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6661 | |
f11781c5 AK |
6662 | if test x$OWNER != x; then |
6663 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6664 | fi |
a946372e | 6665 | |
f11781c5 AK |
6666 | ################################################################################ |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6668 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6669 | |
f11781c5 AK |
6670 | # Check whether --with-group was given. |
6671 | if test "${with_group+set}" = set; then : | |
6672 | withval=$with_group; GROUP=$withval | |
a946372e | 6673 | fi |
f11781c5 AK |
6674 | |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6676 | $as_echo "$GROUP" >&6; } | |
6677 | ||
6678 | if test x$GROUP != x; then | |
6679 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6680 | fi |
f11781c5 AK |
6681 | |
6682 | ################################################################################ | |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6684 | $as_echo_n "checking device node uid... " >&6; } | |
6685 | ||
6686 | ||
6687 | # Check whether --with-device-uid was given. | |
6688 | if test "${with_device_uid+set}" = set; then : | |
6689 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6690 | else |
f11781c5 | 6691 | DM_DEVICE_UID=0 |
a946372e AK |
6692 | fi |
6693 | ||
f11781c5 AK |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6695 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6696 | |
f11781c5 AK |
6697 | ################################################################################ |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6699 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6700 | |
a946372e | 6701 | |
f11781c5 AK |
6702 | # Check whether --with-device-gid was given. |
6703 | if test "${with_device_gid+set}" = set; then : | |
6704 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6705 | else |
f11781c5 | 6706 | DM_DEVICE_GID=0 |
a946372e | 6707 | fi |
a946372e | 6708 | |
f11781c5 AK |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6710 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6711 | |
f11781c5 AK |
6712 | ################################################################################ |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6714 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6715 | |
90c80887 | 6716 | |
f11781c5 AK |
6717 | # Check whether --with-device-mode was given. |
6718 | if test "${with_device_mode+set}" = set; then : | |
6719 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6720 | else | |
6721 | DM_DEVICE_MODE=0600 | |
6722 | fi | |
90c80887 | 6723 | |
f11781c5 AK |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6725 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6726 | |
d0df875d ZK |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6728 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6729 | ||
6730 | # Check whether --with-device-nodes-on was given. | |
6731 | if test "${with_device_nodes_on+set}" = set; then : | |
6732 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6733 | else | |
6734 | ADD_NODE=resume | |
6735 | fi | |
6736 | ||
6737 | case "$ADD_NODE" in | |
6738 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6739 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6740 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6741 | esac | |
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6743 | $as_echo "on $ADD_NODE" >&6; } | |
6744 | ||
6745 | cat >>confdefs.h <<_ACEOF | |
6746 | #define DEFAULT_DM_ADD_NODE $add_on | |
6747 | _ACEOF | |
6748 | ||
6749 | ||
f11781c5 AK |
6750 | ################################################################################ |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6752 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6753 | # Check whether --enable-lvm1_fallback was given. | |
6754 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6755 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6756 | else | |
6757 | LVM1_FALLBACK=no | |
6758 | fi | |
90c80887 | 6759 | |
f11781c5 AK |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6761 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6762 | |
f11781c5 | 6763 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6764 | |
f11781c5 | 6765 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6766 | |
f11781c5 | 6767 | fi |
90c80887 | 6768 | |
f11781c5 AK |
6769 | ################################################################################ |
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6771 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6772 | ||
6773 | # Check whether --with-lvm1 was given. | |
6774 | if test "${with_lvm1+set}" = set; then : | |
6775 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6776 | else |
f11781c5 | 6777 | LVM1=internal |
a946372e | 6778 | fi |
f11781c5 AK |
6779 | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6781 | $as_echo "$LVM1" >&6; } | |
6782 | ||
6783 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6784 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6785 | " "$LINENO" 5 | |
6786 | fi; | |
6787 | ||
6788 | if test x$LVM1 = xinternal; then | |
6789 | ||
6790 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6791 | ||
a946372e AK |
6792 | fi |
6793 | ||
6794 | ################################################################################ | |
f11781c5 AK |
6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6796 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6797 | ||
6798 | # Check whether --with-pool was given. | |
6799 | if test "${with_pool+set}" = set; then : | |
6800 | withval=$with_pool; POOL=$withval | |
a946372e | 6801 | else |
f11781c5 | 6802 | POOL=internal |
a946372e AK |
6803 | fi |
6804 | ||
f11781c5 AK |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6806 | $as_echo "$POOL" >&6; } | |
6807 | ||
6808 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6809 | then as_fn_error $? "--with-pool parameter invalid | |
6810 | " "$LINENO" 5 | |
6811 | fi; | |
6812 | ||
6813 | if test x$POOL = xinternal; then | |
6814 | ||
6815 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6816 | |
a946372e AK |
6817 | fi |
6818 | ||
6819 | ################################################################################ | |
f11781c5 AK |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6821 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6822 | |
f11781c5 AK |
6823 | # Check whether --with-cluster was given. |
6824 | if test "${with_cluster+set}" = set; then : | |
6825 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6826 | fi |
6827 | ||
f11781c5 AK |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6829 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6830 | |
f11781c5 AK |
6831 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6832 | then as_fn_error $? "--with-cluster parameter invalid | |
6833 | " "$LINENO" 5 | |
6834 | fi; | |
fddafd51 | 6835 | |
f11781c5 | 6836 | if test x$CLUSTER = xinternal; then |
5556819a | 6837 | |
f11781c5 | 6838 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6839 | |
fddafd51 | 6840 | fi |
f11781c5 AK |
6841 | |
6842 | ################################################################################ | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6844 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6845 | ||
6846 | # Check whether --with-snapshots was given. | |
6847 | if test "${with_snapshots+set}" = set; then : | |
6848 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6849 | else |
f11781c5 | 6850 | SNAPSHOTS=internal |
fddafd51 ZK |
6851 | fi |
6852 | ||
f11781c5 AK |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6854 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6855 | |
f11781c5 AK |
6856 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6857 | then as_fn_error $? "--with-snapshots parameter invalid | |
6858 | " "$LINENO" 5 | |
6859 | fi; | |
fddafd51 | 6860 | |
f11781c5 AK |
6861 | if test x$SNAPSHOTS = xinternal; then |
6862 | ||
6863 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6864 | ||
6865 | fi | |
6866 | ||
6867 | ################################################################################ | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6869 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6870 | ||
6871 | # Check whether --with-mirrors was given. | |
6872 | if test "${with_mirrors+set}" = set; then : | |
6873 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6874 | else |
f11781c5 | 6875 | MIRRORS=internal |
fddafd51 ZK |
6876 | fi |
6877 | ||
f11781c5 AK |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6879 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6880 | |
f11781c5 AK |
6881 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6882 | then as_fn_error $? "--with-mirrors parameter invalid | |
6883 | " "$LINENO" 5 | |
6884 | fi; | |
6885 | ||
6886 | if test x$MIRRORS = xinternal; then | |
6887 | ||
6888 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6889 | ||
6890 | fi | |
6891 | ||
cac52ca4 JEB |
6892 | ################################################################################ |
6893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6894 | $as_echo_n "checking whether to include raid... " >&6; } | |
6895 | ||
6896 | # Check whether --with-raid was given. | |
6897 | if test "${with_raid+set}" = set; then : | |
6898 | withval=$with_raid; RAID=$withval | |
6899 | else | |
6900 | RAID=internal | |
6901 | fi | |
6902 | ||
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6904 | $as_echo "$RAID" >&6; } | |
6905 | ||
6906 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6907 | then as_fn_error $? "--with-raid parameter invalid | |
6908 | " "$LINENO" 5 | |
6909 | fi; | |
6910 | ||
6911 | if test x$RAID = xinternal; then | |
6912 | ||
6913 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6914 | ||
6915 | fi | |
6916 | ||
f11781c5 AK |
6917 | ################################################################################ |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6919 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6920 | ||
6921 | # Check whether --with-replicators was given. | |
6922 | if test "${with_replicators+set}" = set; then : | |
6923 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6924 | else |
f11781c5 AK |
6925 | REPLICATORS=none |
6926 | fi | |
fd4728e1 | 6927 | |
f11781c5 AK |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6929 | $as_echo "$REPLICATORS" >&6; } | |
6930 | ||
6931 | case "$REPLICATORS" in | |
6932 | none|shared) ;; | |
6933 | internal) | |
6934 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6935 | ;; | |
6936 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6937 | esac |
f11781c5 | 6938 | |
3ba4a195 ZK |
6939 | ################################################################################ |
6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
6941 | $as_echo_n "checking whether to include thin provisioning... " >&6; } | |
6942 | ||
6943 | # Check whether --with-thin was given. | |
6944 | if test "${with_thin+set}" = set; then : | |
6945 | withval=$with_thin; THIN=$withval | |
6946 | else | |
6947 | THIN=none | |
6948 | fi | |
6949 | ||
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
6951 | $as_echo "$THIN" >&6; } | |
6952 | ||
6953 | case "$THIN" in | |
6954 | none|shared) ;; | |
6955 | internal) | |
6956 | $as_echo "#define THIN_INTERNAL 1" >>confdefs.h | |
6957 | ;; | |
6958 | *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
6959 | esac | |
6960 | ||
f11781c5 AK |
6961 | ################################################################################ |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
6963 | $as_echo_n "checking whether to enable readline... " >&6; } | |
6964 | # Check whether --enable-readline was given. | |
6965 | if test "${enable_readline+set}" = set; then : | |
6966 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 6967 | else |
f11781c5 | 6968 | READLINE=maybe |
fd4728e1 ZK |
6969 | fi |
6970 | ||
f11781c5 AK |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
6972 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 6973 | |
f11781c5 AK |
6974 | ################################################################################ |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
6976 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
6977 | # Check whether --enable-realtime was given. | |
6978 | if test "${enable_realtime+set}" = set; then : | |
6979 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 6980 | fi |
d0191583 | 6981 | |
f11781c5 AK |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
6983 | $as_echo "$REALTIME" >&6; } | |
6984 | ||
54b362f9 | 6985 | ################################################################################ |
f11781c5 AK |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
6987 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
6988 | # Check whether --enable-ocf was given. | |
6989 | if test "${enable_ocf+set}" = set; then : | |
6990 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 6991 | else |
f11781c5 | 6992 | OCF=no |
54b362f9 AK |
6993 | fi |
6994 | ||
f11781c5 AK |
6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
6996 | $as_echo "$OCF" >&6; } | |
54b362f9 | 6997 | |
606d0858 AK |
6998 | # Check whether --with-ocfdir was given. |
6999 | if test "${with_ocfdir+set}" = set; then : | |
7000 | withval=$with_ocfdir; OCFDIR=$withval | |
7001 | else | |
7002 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
7003 | fi | |
7004 | ||
7005 | ||
f11781c5 AK |
7006 | ################################################################################ |
7007 | pkg_config_init() { | |
7008 | ||
7009 | ||
7010 | ||
7011 | ||
7012 | ||
7013 | ||
7014 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7015 | if test -n "$ac_tool_prefix"; then | |
7016 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7017 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7019 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7020 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7021 | $as_echo_n "(cached) " >&6 |
7022 | else | |
f11781c5 | 7023 | case $PKG_CONFIG in |
54b362f9 | 7024 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7025 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7026 | ;; |
7027 | *) | |
7028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7029 | for as_dir in $PATH | |
7030 | do | |
7031 | IFS=$as_save_IFS | |
7032 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7033 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7035 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7037 | break 2 |
7038 | fi | |
7039 | done | |
f11781c5 | 7040 | done |
54b362f9 AK |
7041 | IFS=$as_save_IFS |
7042 | ||
7043 | ;; | |
7044 | esac | |
7045 | fi | |
f11781c5 AK |
7046 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7047 | if test -n "$PKG_CONFIG"; then | |
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7049 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7050 | else |
f11781c5 | 7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7052 | $as_echo "no" >&6; } |
7053 | fi | |
7054 | ||
7055 | ||
f11781c5 AK |
7056 | fi |
7057 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7058 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7059 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7060 | set dummy pkg-config; ac_word=$2 | |
7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7062 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7063 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7064 | $as_echo_n "(cached) " >&6 |
7065 | else | |
f11781c5 | 7066 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7067 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7068 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7069 | ;; |
7070 | *) | |
7071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7072 | for as_dir in $PATH | |
7073 | do | |
7074 | IFS=$as_save_IFS | |
7075 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7076 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7078 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7080 | break 2 |
7081 | fi | |
7082 | done | |
f11781c5 | 7083 | done |
54b362f9 AK |
7084 | IFS=$as_save_IFS |
7085 | ||
7086 | ;; | |
7087 | esac | |
7088 | fi | |
f11781c5 AK |
7089 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7090 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7092 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7093 | else |
f11781c5 | 7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7095 | $as_echo "no" >&6; } |
7096 | fi | |
7097 | ||
f11781c5 AK |
7098 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7099 | PKG_CONFIG="" | |
7100 | else | |
7101 | case $cross_compiling:$ac_tool_warned in | |
7102 | yes:) | |
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7104 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7105 | ac_tool_warned=yes ;; | |
7106 | esac | |
7107 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7108 | fi | |
d1e8046f | 7109 | else |
f11781c5 | 7110 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7111 | fi |
7112 | ||
f11781c5 AK |
7113 | fi |
7114 | if test -n "$PKG_CONFIG"; then | |
7115 | _pkg_min_version=0.9.0 | |
7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7117 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7118 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7120 | $as_echo "yes" >&6; } | |
7121 | else | |
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7123 | $as_echo "no" >&6; } | |
7124 | PKG_CONFIG="" | |
7125 | fi | |
7126 | fi | |
d1e8046f | 7127 | |
f11781c5 AK |
7128 | pkg_failed=no |
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7130 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7131 | |
f11781c5 AK |
7132 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7133 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7134 | elif test -n "$PKG_CONFIG"; then | |
7135 | if test -n "$PKG_CONFIG" && \ | |
7136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7137 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7138 | ac_status=$? | |
7139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7140 | test $ac_status = 0; }; then | |
7141 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7142 | else |
f11781c5 AK |
7143 | pkg_failed=yes |
7144 | fi | |
7145 | else | |
7146 | pkg_failed=untried | |
7147 | fi | |
7148 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7149 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7150 | elif test -n "$PKG_CONFIG"; then | |
7151 | if test -n "$PKG_CONFIG" && \ | |
7152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7153 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7154 | ac_status=$? |
f11781c5 AK |
7155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7156 | test $ac_status = 0; }; then | |
7157 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7158 | else |
f11781c5 AK |
7159 | pkg_failed=yes |
7160 | fi | |
7161 | else | |
7162 | pkg_failed=untried | |
d1e8046f AK |
7163 | fi |
7164 | ||
d1e8046f | 7165 | |
f11781c5 AK |
7166 | |
7167 | if test $pkg_failed = yes; then | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7169 | $as_echo "no" >&6; } | |
7170 | ||
7171 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7172 | _pkg_short_errors_supported=yes | |
7173 | else | |
7174 | _pkg_short_errors_supported=no | |
7175 | fi | |
7176 | if test $_pkg_short_errors_supported = yes; then | |
7177 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7178 | else | |
7179 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7180 | fi | |
7181 | # Put the nasty error message in config.log where it belongs | |
7182 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7183 | ||
7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7185 | $as_echo "pkg-config initialized" >&6; } | |
7186 | elif test $pkg_failed = untried; then | |
7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7188 | $as_echo "no" >&6; } | |
7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7190 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7191 | else |
f11781c5 AK |
7192 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7193 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7195 | $as_echo "yes" >&6; } | |
d1e8046f | 7196 | |
d1e8046f | 7197 | fi |
f11781c5 AK |
7198 | PKGCONFIG_INIT=1 |
7199 | } | |
d1e8046f | 7200 | |
f11781c5 AK |
7201 | ################################################################################ |
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7203 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7204 | |
f11781c5 AK |
7205 | # Check whether --with-clvmd was given. |
7206 | if test "${with_clvmd+set}" = set; then : | |
7207 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7208 | else |
f11781c5 | 7209 | CLVMD=none |
d1e8046f | 7210 | fi |
d1e8046f | 7211 | |
f11781c5 AK |
7212 | if test x$CLVMD = xyes; then |
7213 | CLVMD=all | |
d1e8046f | 7214 | fi |
f11781c5 AK |
7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7216 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7217 | |
f11781c5 AK |
7218 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7219 | CLUSTER=internal | |
d1e8046f AK |
7220 | fi |
7221 | ||
f11781c5 AK |
7222 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7223 | pkg_config_init | |
7224 | fi | |
d1e8046f | 7225 | |
f11781c5 AK |
7226 | CLVMD_CMANAGERS="" |
7227 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7228 | |
f11781c5 | 7229 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7230 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7231 | fi |
f11781c5 AK |
7232 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7233 | BUILDCMAN=yes | |
7234 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7235 | CLVMD_NEEDS_QDISKD=yes | |
7236 | fi | |
7237 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7238 | BUILDCOROSYNC=yes | |
7239 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7240 | fi | |
7241 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7242 | BUILDOPENAIS=yes | |
7243 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7244 | fi | |
7245 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7246 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7247 | fi |
7248 | ||
f11781c5 AK |
7249 | soft_bailout() { |
7250 | NOTFOUND=1 | |
7251 | } | |
ad6254c5 | 7252 | |
f11781c5 AK |
7253 | hard_bailout() { |
7254 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7255 | } | |
ad6254c5 | 7256 | |
f11781c5 AK |
7257 | if test x$CLVMD = xall; then |
7258 | bailout=soft_bailout | |
f11781c5 AK |
7259 | BUILDCMAN=yes |
7260 | BUILDCOROSYNC=yes | |
7261 | BUILDOPENAIS=yes | |
a5f46f6a | 7262 | else |
f11781c5 | 7263 | bailout=hard_bailout |
a5f46f6a AK |
7264 | fi |
7265 | ||
f11781c5 AK |
7266 | check_lib_no_libs() { |
7267 | lib_no_libs_arg1=$1 | |
7268 | shift | |
7269 | lib_no_libs_arg2=$1 | |
7270 | shift | |
7271 | lib_no_libs_args=$@ | |
7272 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7274 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7275 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7276 | $as_echo_n "(cached) " >&6 |
7277 | else | |
7278 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7279 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7281 | /* end confdefs.h. */ |
7282 | ||
7283 | /* Override any GCC internal prototype to avoid an error. | |
7284 | Use char because int might match the return type of a GCC | |
7285 | builtin and then its argument prototype would still apply. */ | |
7286 | #ifdef __cplusplus | |
7287 | extern "C" | |
7288 | #endif | |
f11781c5 | 7289 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7290 | int |
7291 | main () | |
7292 | { | |
f11781c5 | 7293 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7294 | ; |
7295 | return 0; | |
7296 | } | |
7297 | _ACEOF | |
f11781c5 AK |
7298 | if ac_fn_c_try_link "$LINENO"; then : |
7299 | eval "$as_ac_Lib=yes" | |
90c80887 | 7300 | else |
f11781c5 | 7301 | eval "$as_ac_Lib=no" |
90c80887 | 7302 | fi |
f11781c5 AK |
7303 | rm -f core conftest.err conftest.$ac_objext \ |
7304 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7305 | LIBS=$ac_check_lib_save_LIBS |
7306 | fi | |
f11781c5 AK |
7307 | eval ac_res=\$$as_ac_Lib |
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7309 | $as_echo "$ac_res" >&6; } | |
7310 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7311 | cat >>confdefs.h <<_ACEOF | |
7312 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7313 | _ACEOF | |
7314 | ||
7315 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7316 | ||
90c80887 | 7317 | else |
f11781c5 | 7318 | $bailout |
90c80887 AK |
7319 | fi |
7320 | ||
f11781c5 AK |
7321 | LIBS=$ac_check_lib_save_LIBS |
7322 | } | |
90c80887 | 7323 | |
f11781c5 | 7324 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7325 | |
f11781c5 AK |
7326 | pkg_failed=no |
7327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7328 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7329 | |
f11781c5 AK |
7330 | if test -n "$CMAN_CFLAGS"; then |
7331 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7332 | elif test -n "$PKG_CONFIG"; then | |
7333 | if test -n "$PKG_CONFIG" && \ | |
7334 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7335 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7336 | ac_status=$? | |
7337 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7338 | test $ac_status = 0; }; then | |
7339 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7340 | else | |
7341 | pkg_failed=yes | |
ad6254c5 | 7342 | fi |
f11781c5 AK |
7343 | else |
7344 | pkg_failed=untried | |
ad6254c5 | 7345 | fi |
f11781c5 AK |
7346 | if test -n "$CMAN_LIBS"; then |
7347 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7348 | elif test -n "$PKG_CONFIG"; then | |
7349 | if test -n "$PKG_CONFIG" && \ | |
7350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7351 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7352 | ac_status=$? |
f11781c5 AK |
7353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7354 | test $ac_status = 0; }; then | |
7355 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7356 | else |
f11781c5 AK |
7357 | pkg_failed=yes |
7358 | fi | |
7359 | else | |
7360 | pkg_failed=untried | |
93bd259b AK |
7361 | fi |
7362 | ||
f11781c5 AK |
7363 | |
7364 | ||
7365 | if test $pkg_failed = yes; then | |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7367 | $as_echo "no" >&6; } | |
7368 | ||
7369 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7370 | _pkg_short_errors_supported=yes | |
7371 | else | |
7372 | _pkg_short_errors_supported=no | |
93bd259b | 7373 | fi |
f11781c5 AK |
7374 | if test $_pkg_short_errors_supported = yes; then |
7375 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7376 | else | |
7377 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7378 | fi | |
7379 | # Put the nasty error message in config.log where it belongs | |
7380 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7381 | |
f11781c5 AK |
7382 | NOTFOUND=0 |
7383 | for ac_header in libcman.h | |
7384 | do : | |
7385 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7386 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7387 | cat >>confdefs.h <<_ACEOF | |
7388 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7389 | _ACEOF |
7390 | ||
f11781c5 AK |
7391 | else |
7392 | $bailout | |
93bd259b AK |
7393 | fi |
7394 | ||
f11781c5 | 7395 | done |
93bd259b | 7396 | |
f11781c5 AK |
7397 | check_lib_no_libs cman cman_init |
7398 | if test $NOTFOUND = 0; then | |
7399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7400 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7401 | CMAN_LIBS="-lcman" | |
7402 | HAVE_CMAN=yes | |
7403 | fi | |
7404 | elif test $pkg_failed = untried; then | |
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7406 | $as_echo "no" >&6; } | |
7407 | NOTFOUND=0 | |
7408 | for ac_header in libcman.h | |
7409 | do : | |
7410 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7411 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7412 | cat >>confdefs.h <<_ACEOF | |
7413 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7414 | _ACEOF |
93bd259b | 7415 | |
93bd259b | 7416 | else |
f11781c5 | 7417 | $bailout |
93bd259b AK |
7418 | fi |
7419 | ||
f11781c5 AK |
7420 | done |
7421 | ||
7422 | check_lib_no_libs cman cman_init | |
7423 | if test $NOTFOUND = 0; then | |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7425 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7426 | CMAN_LIBS="-lcman" | |
7427 | HAVE_CMAN=yes | |
7428 | fi | |
7429 | else | |
7430 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7431 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7433 | $as_echo "yes" >&6; } | |
7434 | HAVE_CMAN=yes | |
93bd259b | 7435 | fi |
f11781c5 AK |
7436 | CHECKCONFDB=yes |
7437 | CHECKDLM=yes | |
93bd259b AK |
7438 | fi |
7439 | ||
f11781c5 AK |
7440 | if test x$BUILDCOROSYNC = xyes || \ |
7441 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7442 | |
f11781c5 AK |
7443 | pkg_failed=no |
7444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7445 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7446 | |
f11781c5 AK |
7447 | if test -n "$COROSYNC_CFLAGS"; then |
7448 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7449 | elif test -n "$PKG_CONFIG"; then | |
7450 | if test -n "$PKG_CONFIG" && \ | |
7451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7452 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7453 | ac_status=$? | |
7454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7455 | test $ac_status = 0; }; then | |
7456 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7457 | else |
f11781c5 AK |
7458 | pkg_failed=yes |
7459 | fi | |
7460 | else | |
7461 | pkg_failed=untried | |
7462 | fi | |
7463 | if test -n "$COROSYNC_LIBS"; then | |
7464 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7465 | elif test -n "$PKG_CONFIG"; then | |
7466 | if test -n "$PKG_CONFIG" && \ | |
7467 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7468 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7469 | ac_status=$? |
f11781c5 AK |
7470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7471 | test $ac_status = 0; }; then | |
7472 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7473 | else |
f11781c5 | 7474 | pkg_failed=yes |
ad6254c5 | 7475 | fi |
f11781c5 AK |
7476 | else |
7477 | pkg_failed=untried | |
ad6254c5 | 7478 | fi |
ad6254c5 | 7479 | |
72b2cb61 | 7480 | |
72b2cb61 | 7481 | |
f11781c5 AK |
7482 | if test $pkg_failed = yes; then |
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7484 | $as_echo "no" >&6; } | |
19a2c6e0 | 7485 | |
f11781c5 AK |
7486 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7487 | _pkg_short_errors_supported=yes | |
7488 | else | |
7489 | _pkg_short_errors_supported=no | |
ad6254c5 | 7490 | fi |
f11781c5 AK |
7491 | if test $_pkg_short_errors_supported = yes; then |
7492 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7493 | else | |
7494 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7495 | fi | |
7496 | # Put the nasty error message in config.log where it belongs | |
7497 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7498 | |
f11781c5 AK |
7499 | $bailout |
7500 | elif test $pkg_failed = untried; then | |
7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7502 | $as_echo "no" >&6; } | |
7503 | $bailout | |
7504 | else | |
7505 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7506 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7508 | $as_echo "yes" >&6; } | |
7509 | HAVE_COROSYNC=yes | |
7510 | fi | |
7511 | CHECKCONFDB=yes | |
ad6254c5 AK |
7512 | fi |
7513 | ||
f11781c5 | 7514 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7515 | |
f11781c5 AK |
7516 | pkg_failed=no |
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7518 | $as_echo_n "checking for QUORUM... " >&6; } | |
7519 | ||
7520 | if test -n "$QUORUM_CFLAGS"; then | |
7521 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7522 | elif test -n "$PKG_CONFIG"; then | |
7523 | if test -n "$PKG_CONFIG" && \ | |
7524 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7525 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7526 | ac_status=$? |
f11781c5 AK |
7527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7528 | test $ac_status = 0; }; then | |
7529 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7530 | else |
f11781c5 | 7531 | pkg_failed=yes |
f30875db | 7532 | fi |
f11781c5 AK |
7533 | else |
7534 | pkg_failed=untried | |
f30875db | 7535 | fi |
f11781c5 AK |
7536 | if test -n "$QUORUM_LIBS"; then |
7537 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7538 | elif test -n "$PKG_CONFIG"; then | |
7539 | if test -n "$PKG_CONFIG" && \ | |
7540 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7541 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7542 | ac_status=$? | |
7543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7544 | test $ac_status = 0; }; then | |
7545 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7546 | else |
f11781c5 | 7547 | pkg_failed=yes |
f30875db | 7548 | fi |
f11781c5 AK |
7549 | else |
7550 | pkg_failed=untried | |
7551 | fi | |
7552 | ||
f30875db | 7553 | |
f11781c5 AK |
7554 | |
7555 | if test $pkg_failed = yes; then | |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7557 | $as_echo "no" >&6; } | |
7558 | ||
7559 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7560 | _pkg_short_errors_supported=yes | |
7561 | else | |
7562 | _pkg_short_errors_supported=no | |
f30875db | 7563 | fi |
f11781c5 AK |
7564 | if test $_pkg_short_errors_supported = yes; then |
7565 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7566 | else | |
7567 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7568 | fi | |
7569 | # Put the nasty error message in config.log where it belongs | |
7570 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7571 | |
f11781c5 AK |
7572 | $bailout |
7573 | elif test $pkg_failed = untried; then | |
7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7575 | $as_echo "no" >&6; } | |
7576 | $bailout | |
7577 | else | |
7578 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7579 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7581 | $as_echo "yes" >&6; } | |
7582 | HAVE_QUORUM=yes | |
7583 | fi | |
7584 | CHECKCPG=yes | |
7585 | CHECKDLM=yes | |
d0191583 JM |
7586 | fi |
7587 | ||
f11781c5 | 7588 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7589 | |
f11781c5 AK |
7590 | pkg_failed=no |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7592 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7593 | |
f11781c5 AK |
7594 | if test -n "$SALCK_CFLAGS"; then |
7595 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7596 | elif test -n "$PKG_CONFIG"; then | |
7597 | if test -n "$PKG_CONFIG" && \ | |
7598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7599 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7600 | ac_status=$? | |
7601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7602 | test $ac_status = 0; }; then | |
7603 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7604 | else | |
7605 | pkg_failed=yes | |
7606 | fi | |
7607 | else | |
7608 | pkg_failed=untried | |
7609 | fi | |
7610 | if test -n "$SALCK_LIBS"; then | |
7611 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7612 | elif test -n "$PKG_CONFIG"; then | |
7613 | if test -n "$PKG_CONFIG" && \ | |
7614 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7615 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7616 | ac_status=$? |
f11781c5 AK |
7617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7618 | test $ac_status = 0; }; then | |
7619 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7620 | else |
f11781c5 | 7621 | pkg_failed=yes |
8a2fc586 | 7622 | fi |
f11781c5 AK |
7623 | else |
7624 | pkg_failed=untried | |
8a2fc586 | 7625 | fi |
d0191583 | 7626 | |
d0191583 | 7627 | |
f8f6ec92 | 7628 | |
f11781c5 AK |
7629 | if test $pkg_failed = yes; then |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7631 | $as_echo "no" >&6; } | |
8a2fc586 | 7632 | |
f11781c5 AK |
7633 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7634 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7635 | else |
f11781c5 AK |
7636 | _pkg_short_errors_supported=no |
7637 | fi | |
7638 | if test $_pkg_short_errors_supported = yes; then | |
7639 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7640 | else | |
7641 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7642 | fi | |
7643 | # Put the nasty error message in config.log where it belongs | |
7644 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7645 | |
f11781c5 AK |
7646 | $bailout |
7647 | elif test $pkg_failed = untried; then | |
7648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7649 | $as_echo "no" >&6; } | |
7650 | $bailout | |
ad6254c5 | 7651 | else |
f11781c5 AK |
7652 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7653 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7655 | $as_echo "yes" >&6; } | |
7656 | HAVE_SALCK=yes | |
ad6254c5 | 7657 | fi |
f11781c5 | 7658 | CHECKCPG=yes |
ad6254c5 | 7659 | fi |
ad6254c5 | 7660 | |
72b2cb61 | 7661 | |
f8f6ec92 | 7662 | |
f11781c5 | 7663 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7664 | |
f11781c5 AK |
7665 | pkg_failed=no |
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7667 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7668 | |
f11781c5 AK |
7669 | if test -n "$CONFDB_CFLAGS"; then |
7670 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7671 | elif test -n "$PKG_CONFIG"; then | |
7672 | if test -n "$PKG_CONFIG" && \ | |
7673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7674 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7675 | ac_status=$? |
f11781c5 AK |
7676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7677 | test $ac_status = 0; }; then | |
7678 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7679 | else |
f11781c5 AK |
7680 | pkg_failed=yes |
7681 | fi | |
7682 | else | |
7683 | pkg_failed=untried | |
7684 | fi | |
7685 | if test -n "$CONFDB_LIBS"; then | |
7686 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7687 | elif test -n "$PKG_CONFIG"; then | |
7688 | if test -n "$PKG_CONFIG" && \ | |
7689 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7690 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7691 | ac_status=$? | |
7692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7693 | test $ac_status = 0; }; then | |
7694 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7695 | else | |
7696 | pkg_failed=yes | |
7697 | fi | |
7698 | else | |
7699 | pkg_failed=untried | |
f8f6ec92 ZK |
7700 | fi |
7701 | ||
f8f6ec92 | 7702 | |
66e941e8 | 7703 | |
f11781c5 AK |
7704 | if test $pkg_failed = yes; then |
7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7706 | $as_echo "no" >&6; } | |
7707 | ||
7708 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7709 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7710 | else |
f11781c5 | 7711 | _pkg_short_errors_supported=no |
66e941e8 | 7712 | fi |
f11781c5 AK |
7713 | if test $_pkg_short_errors_supported = yes; then |
7714 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7715 | else | |
7716 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7717 | fi | |
7718 | # Put the nasty error message in config.log where it belongs | |
7719 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7720 | |
f11781c5 AK |
7721 | HAVE_CONFDB=no |
7722 | elif test $pkg_failed = untried; then | |
7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7724 | $as_echo "no" >&6; } | |
7725 | HAVE_CONFDB=no | |
7726 | else | |
7727 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7728 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7730 | $as_echo "yes" >&6; } | |
7731 | HAVE_CONFDB=yes | |
66e941e8 | 7732 | fi |
f11781c5 AK |
7733 | |
7734 | for ac_header in corosync/confdb.h | |
7735 | do : | |
7736 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7737 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7738 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7739 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7740 | _ACEOF |
f11781c5 | 7741 | HAVE_CONFDB_H=yes |
66e941e8 | 7742 | else |
f11781c5 | 7743 | HAVE_CONFDB_H=no |
66e941e8 | 7744 | fi |
dd1f2c09 MB |
7745 | |
7746 | done | |
7747 | ||
7748 | ||
f11781c5 AK |
7749 | if test x$HAVE_CONFDB != xyes && \ |
7750 | test x$HAVE_CONFDB_H = xyes; then | |
7751 | check_lib_no_libs confdb confdb_initialize | |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7753 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7754 | CONFDB_LIBS="-lconfdb" | |
7755 | HAVE_CONFDB=yes | |
7756 | fi | |
7757 | ||
7758 | if test x$BUILDCOROSYNC = xyes && \ | |
7759 | test x$HAVE_CONFDB != xyes && | |
7760 | test x$CLVMD != xall; then | |
7761 | as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5 | |
7762 | fi | |
dd1f2c09 | 7763 | fi |
f11781c5 AK |
7764 | |
7765 | if test x$CHECKCPG = xyes; then | |
7766 | ||
7767 | pkg_failed=no | |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7769 | $as_echo_n "checking for CPG... " >&6; } | |
7770 | ||
7771 | if test -n "$CPG_CFLAGS"; then | |
7772 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7773 | elif test -n "$PKG_CONFIG"; then | |
7774 | if test -n "$PKG_CONFIG" && \ | |
7775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7776 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7777 | ac_status=$? | |
7778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7779 | test $ac_status = 0; }; then | |
7780 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7781 | else |
f11781c5 AK |
7782 | pkg_failed=yes |
7783 | fi | |
7784 | else | |
7785 | pkg_failed=untried | |
7786 | fi | |
7787 | if test -n "$CPG_LIBS"; then | |
7788 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
7789 | elif test -n "$PKG_CONFIG"; then | |
7790 | if test -n "$PKG_CONFIG" && \ | |
7791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7792 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 7793 | ac_status=$? |
f11781c5 AK |
7794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7795 | test $ac_status = 0; }; then | |
7796 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 7797 | else |
f11781c5 AK |
7798 | pkg_failed=yes |
7799 | fi | |
7800 | else | |
7801 | pkg_failed=untried | |
7802 | fi | |
7803 | ||
7804 | ||
7805 | ||
7806 | if test $pkg_failed = yes; then | |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7808 | $as_echo "no" >&6; } | |
7809 | ||
7810 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7811 | _pkg_short_errors_supported=yes | |
7812 | else | |
7813 | _pkg_short_errors_supported=no | |
7814 | fi | |
7815 | if test $_pkg_short_errors_supported = yes; then | |
7816 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
7817 | else | |
7818 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
7819 | fi | |
7820 | # Put the nasty error message in config.log where it belongs | |
7821 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 7822 | |
f11781c5 AK |
7823 | $bailout |
7824 | elif test $pkg_failed = untried; then | |
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7826 | $as_echo "no" >&6; } | |
7827 | $bailout | |
7828 | else | |
7829 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
7830 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7832 | $as_echo "yes" >&6; } | |
7833 | HAVE_CPG=yes | |
7834 | fi | |
dd1f2c09 MB |
7835 | fi |
7836 | ||
f11781c5 | 7837 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 7838 | |
f11781c5 AK |
7839 | pkg_failed=no |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
7841 | $as_echo_n "checking for DLM... " >&6; } | |
7842 | ||
7843 | if test -n "$DLM_CFLAGS"; then | |
7844 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
7845 | elif test -n "$PKG_CONFIG"; then | |
7846 | if test -n "$PKG_CONFIG" && \ | |
7847 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
7848 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 7849 | ac_status=$? |
f11781c5 AK |
7850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7851 | test $ac_status = 0; }; then | |
7852 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 7853 | else |
f11781c5 AK |
7854 | pkg_failed=yes |
7855 | fi | |
7856 | else | |
7857 | pkg_failed=untried | |
7858 | fi | |
7859 | if test -n "$DLM_LIBS"; then | |
7860 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
7861 | elif test -n "$PKG_CONFIG"; then | |
7862 | if test -n "$PKG_CONFIG" && \ | |
7863 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
7864 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
7865 | ac_status=$? | |
7866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7867 | test $ac_status = 0; }; then | |
7868 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
7869 | else | |
7870 | pkg_failed=yes | |
7871 | fi | |
7872 | else | |
7873 | pkg_failed=untried | |
dd1f2c09 MB |
7874 | fi |
7875 | ||
dd1f2c09 | 7876 | |
dd1f2c09 | 7877 | |
f11781c5 AK |
7878 | if test $pkg_failed = yes; then |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7880 | $as_echo "no" >&6; } | |
7881 | ||
7882 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7883 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 7884 | else |
f11781c5 | 7885 | _pkg_short_errors_supported=no |
dd1f2c09 | 7886 | fi |
f11781c5 AK |
7887 | if test $_pkg_short_errors_supported = yes; then |
7888 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
7889 | else | |
7890 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
7891 | fi | |
7892 | # Put the nasty error message in config.log where it belongs | |
7893 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 7894 | |
f11781c5 AK |
7895 | NOTFOUND=0 |
7896 | for ac_header in libdlm.h | |
7897 | do : | |
7898 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
7899 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 7900 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7901 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
7902 | _ACEOF |
7903 | ||
f11781c5 AK |
7904 | else |
7905 | $bailout | |
dd1f2c09 | 7906 | fi |
f8f6ec92 ZK |
7907 | |
7908 | done | |
7909 | ||
f11781c5 AK |
7910 | check_lib_no_libs dlm dlm_lock -lpthread |
7911 | if test $NOTFOUND = 0; then | |
7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
7913 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
7914 | DLM_LIBS="-ldlm -lpthread" | |
7915 | HAVE_DLM=yes | |
7916 | fi | |
7917 | elif test $pkg_failed = untried; then | |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7919 | $as_echo "no" >&6; } | |
7920 | NOTFOUND=0 | |
7921 | for ac_header in libdlm.h | |
7922 | do : | |
7923 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
7924 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
7925 | cat >>confdefs.h <<_ACEOF | |
7926 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
7927 | _ACEOF |
7928 | ||
f8f6ec92 | 7929 | else |
f11781c5 | 7930 | $bailout |
ad6254c5 AK |
7931 | fi |
7932 | ||
f11781c5 | 7933 | done |
8b1a3214 | 7934 | |
f11781c5 AK |
7935 | check_lib_no_libs dlm dlm_lock -lpthread |
7936 | if test $NOTFOUND = 0; then | |
7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
7938 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
7939 | DLM_LIBS="-ldlm -lpthread" | |
7940 | HAVE_DLM=yes | |
7941 | fi | |
8b1a3214 | 7942 | else |
f11781c5 AK |
7943 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
7944 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7946 | $as_echo "yes" >&6; } | |
7947 | HAVE_DLM=yes | |
8b1a3214 | 7948 | fi |
8b1a3214 AK |
7949 | fi |
7950 | ||
f11781c5 AK |
7951 | if test x$CLVMD = xall; then |
7952 | CLVMD=none | |
7953 | CLVMD_CMANAGERS="" | |
7954 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
7955 | if test x$HAVE_CMAN = xyes && \ |
7956 | test x$HAVE_DLM = xyes; then | |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
7958 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
7959 | CLVMD="$CLVMD,cman" | |
7960 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7961 | CLVMD_NEEDS_QDISKD=yes | |
7962 | fi | |
7963 | if test x$HAVE_COROSYNC = xyes && \ | |
7964 | test x$HAVE_QUORUM = xyes && \ | |
7965 | test x$HAVE_CPG = xyes && \ | |
7966 | test x$HAVE_DLM = xyes && \ | |
7967 | test x$HAVE_CONFDB = xyes; then | |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 | |
7969 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
7970 | CLVMD="$CLVMD,corosync" | |
7971 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7972 | fi | |
7973 | if test x$HAVE_COROSYNC = xyes && \ | |
7974 | test x$HAVE_CPG = xyes && \ | |
7975 | test x$HAVE_SALCK = xyes; then | |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
7977 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
7978 | CLVMD="$CLVMD,openais" | |
7979 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7980 | fi | |
7981 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7982 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
7983 | fi | |
7984 | if test x$CLVMD = xnone; then | |
7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
7986 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
7987 | fi |
7988 | fi | |
7989 | ||
ad6254c5 | 7990 | ################################################################################ |
f11781c5 | 7991 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 7992 | |
f11781c5 AK |
7993 | # Check whether --with-clvmd-pidfile was given. |
7994 | if test "${with_clvmd_pidfile+set}" = set; then : | |
7995 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 7996 | else |
f11781c5 | 7997 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 7998 | fi |
7a197a62 | 7999 | |
ad6254c5 | 8000 | |
f11781c5 AK |
8001 | cat >>confdefs.h <<_ACEOF |
8002 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8003 | _ACEOF |
ad6254c5 | 8004 | |
ad6254c5 | 8005 | fi |
7a197a62 | 8006 | |
f11781c5 AK |
8007 | ################################################################################ |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8009 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8010 | # Check whether --enable-cmirrord was given. | |
8011 | if test "${enable_cmirrord+set}" = set; then : | |
8012 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8013 | else | |
8014 | CMIRRORD=no | |
8015 | fi | |
8016 | ||
8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8018 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8019 | |
f11781c5 | 8020 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8021 | |
f11781c5 AK |
8022 | ################################################################################ |
8023 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8024 | ||
8025 | # Check whether --with-cmirrord-pidfile was given. | |
8026 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8027 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8028 | else |
f11781c5 | 8029 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8030 | fi |
ad6254c5 | 8031 | |
72b2cb61 | 8032 | |
f11781c5 AK |
8033 | cat >>confdefs.h <<_ACEOF |
8034 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8035 | _ACEOF |
8036 | ||
ad6254c5 AK |
8037 | fi |
8038 | ||
f11781c5 AK |
8039 | ################################################################################ |
8040 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8041 | if test x$PKGCONFIG_INIT != x1; then | |
8042 | pkg_config_init | |
8043 | fi | |
ad6254c5 | 8044 | |
f11781c5 AK |
8045 | pkg_failed=no |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8047 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8048 | |
f11781c5 AK |
8049 | if test -n "$SACKPT_CFLAGS"; then |
8050 | pkg_cv_SACKPT_CFLAGS="$SACKPT_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 \"libSaCkpt\""; } >&5 | |
8054 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 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_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8059 | else |
f11781c5 AK |
8060 | pkg_failed=yes |
8061 | fi | |
8062 | else | |
8063 | pkg_failed=untried | |
8064 | fi | |
8065 | if test -n "$SACKPT_LIBS"; then | |
8066 | pkg_cv_SACKPT_LIBS="$SACKPT_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 \"libSaCkpt\""; } >&5 | |
8070 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 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_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8075 | else |
f11781c5 AK |
8076 | pkg_failed=yes |
8077 | fi | |
8078 | else | |
8079 | pkg_failed=untried | |
8080 | fi | |
539f4a77 ZK |
8081 | |
8082 | ||
539f4a77 | 8083 | |
f11781c5 AK |
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 | |
539f4a77 | 8090 | else |
f11781c5 | 8091 | _pkg_short_errors_supported=no |
539f4a77 | 8092 | fi |
f11781c5 AK |
8093 | if test $_pkg_short_errors_supported = yes; then |
8094 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8095 | else | |
8096 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8097 | fi | |
8098 | # Put the nasty error message in config.log where it belongs | |
8099 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8100 | ||
8101 | as_fn_error $? "Package requirements (libSaCkpt) were not met: | |
8102 | ||
8103 | $SACKPT_PKG_ERRORS | |
8104 | ||
8105 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8106 | installed software in a non-standard prefix. | |
8107 | ||
8108 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8109 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8110 | See the pkg-config man page for more details." "$LINENO" 5 | |
8111 | ||
8112 | elif test $pkg_failed = untried; then | |
8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8114 | $as_echo "no" >&6; } | |
8115 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8116 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8117 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8118 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8119 | path to pkg-config. | |
8120 | ||
8121 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8122 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8123 | See the pkg-config man page for more details. | |
8124 | ||
8125 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8126 | See \`config.log' for more details" "$LINENO" 5; } | |
8127 | ||
539f4a77 | 8128 | else |
f11781c5 AK |
8129 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8130 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8132 | $as_echo "yes" >&6; } | |
539f4a77 | 8133 | |
539f4a77 | 8134 | fi |
f11781c5 | 8135 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8136 | |
f11781c5 AK |
8137 | pkg_failed=no |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8139 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8140 | |
f11781c5 AK |
8141 | if test -n "$CPG_CFLAGS"; then |
8142 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8143 | elif test -n "$PKG_CONFIG"; then | |
8144 | if test -n "$PKG_CONFIG" && \ | |
8145 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8146 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8147 | ac_status=$? |
f11781c5 AK |
8148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8149 | test $ac_status = 0; }; then | |
8150 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8151 | else |
f11781c5 AK |
8152 | pkg_failed=yes |
8153 | fi | |
8154 | else | |
8155 | pkg_failed=untried | |
8156 | fi | |
8157 | if test -n "$CPG_LIBS"; then | |
8158 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8159 | elif test -n "$PKG_CONFIG"; then | |
8160 | if test -n "$PKG_CONFIG" && \ | |
8161 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8162 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8163 | ac_status=$? | |
8164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8165 | test $ac_status = 0; }; then | |
8166 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8167 | else | |
8168 | pkg_failed=yes | |
8169 | fi | |
8170 | else | |
8171 | pkg_failed=untried | |
8172 | fi | |
8173 | ||
8174 | ||
8175 | ||
8176 | if test $pkg_failed = yes; then | |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8178 | $as_echo "no" >&6; } | |
ad6254c5 | 8179 | |
f11781c5 AK |
8180 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8181 | _pkg_short_errors_supported=yes | |
8182 | else | |
8183 | _pkg_short_errors_supported=no | |
ad6254c5 | 8184 | fi |
f11781c5 AK |
8185 | if test $_pkg_short_errors_supported = yes; then |
8186 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8187 | else | |
8188 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8189 | fi | |
8190 | # Put the nasty error message in config.log where it belongs | |
8191 | echo "$CPG_PKG_ERRORS" >&5 | |
8192 | ||
8193 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8194 | ||
8195 | $CPG_PKG_ERRORS | |
8196 | ||
8197 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8198 | installed software in a non-standard prefix. | |
8199 | ||
8200 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8201 | and CPG_LIBS to avoid the need to call pkg-config. | |
8202 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8203 | |
f11781c5 AK |
8204 | elif test $pkg_failed = untried; then |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8206 | $as_echo "no" >&6; } | |
8207 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8208 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8209 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8210 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8211 | path to pkg-config. | |
539f4a77 | 8212 | |
f11781c5 AK |
8213 | Alternatively, you may set the environment variables CPG_CFLAGS |
8214 | and CPG_LIBS to avoid the need to call pkg-config. | |
8215 | See the pkg-config man page for more details. | |
539f4a77 | 8216 | |
f11781c5 AK |
8217 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8218 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8219 | |
539f4a77 | 8220 | else |
f11781c5 AK |
8221 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8222 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8224 | $as_echo "yes" >&6; } | |
bc1024f8 | 8225 | |
f11781c5 AK |
8226 | fi |
8227 | fi | |
8228 | fi | |
8229 | ||
8230 | ################################################################################ | |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8232 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8233 | # Check whether --enable-debug was given. | |
8234 | if test "${enable_debug+set}" = set; then : | |
8235 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8236 | else |
f11781c5 AK |
8237 | DEBUG=no |
8238 | fi | |
8239 | ||
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8241 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8242 | |
f11781c5 AK |
8243 | if test x$DEBUG = xyes; then |
8244 | COPTIMISE_FLAG= | |
8245 | else | |
8246 | CSCOPE_CMD= | |
06e459df JM |
8247 | fi |
8248 | ||
f11781c5 AK |
8249 | ################################################################################ |
8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8251 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8252 | ||
8253 | # Check whether --with-optimisation was given. | |
8254 | if test "${with_optimisation+set}" = set; then : | |
8255 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8256 | fi |
539f4a77 | 8257 | |
f11781c5 AK |
8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8259 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8260 | |
f11781c5 AK |
8261 | ################################################################################ |
8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8263 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8264 | # Check whether --enable-profiling was given. | |
8265 | if test "${enable_profiling+set}" = set; then : | |
8266 | enableval=$enable_profiling; PROFILING=$enableval | |
8267 | else | |
8268 | PROFILING=no | |
539f4a77 ZK |
8269 | fi |
8270 | ||
f11781c5 AK |
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8272 | $as_echo "$PROFILING" >&6; } | |
8273 | ||
8274 | if test "x$PROFILING" = xyes; then | |
8275 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8276 | # Extract the first word of "lcov", so it can be a program name with args. | |
8277 | set dummy lcov; ac_word=$2 | |
8278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8279 | $as_echo_n "checking for $ac_word... " >&6; } | |
8280 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8281 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8282 | else |
f11781c5 AK |
8283 | case $LCOV in |
8284 | [\\/]* | ?:[\\/]*) | |
8285 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8286 | ;; | |
8287 | *) | |
8288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8289 | for as_dir in $PATH | |
8290 | do | |
8291 | IFS=$as_save_IFS | |
8292 | test -z "$as_dir" && as_dir=. | |
8293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8295 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8297 | break 2 | |
8298 | fi | |
8299 | done | |
8300 | done | |
8301 | IFS=$as_save_IFS | |
539f4a77 | 8302 | |
f11781c5 AK |
8303 | ;; |
8304 | esac | |
8305 | fi | |
8306 | LCOV=$ac_cv_path_LCOV | |
8307 | if test -n "$LCOV"; then | |
8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8309 | $as_echo "$LCOV" >&6; } | |
8310 | else | |
8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8312 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8313 | fi |
8314 | ||
bc1024f8 | 8315 | |
f11781c5 AK |
8316 | # Extract the first word of "genhtml", so it can be a program name with args. |
8317 | set dummy genhtml; ac_word=$2 | |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8319 | $as_echo_n "checking for $ac_word... " >&6; } | |
8320 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8321 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8322 | else |
f11781c5 AK |
8323 | case $GENHTML in |
8324 | [\\/]* | ?:[\\/]*) | |
8325 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8326 | ;; | |
8327 | *) | |
8328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8329 | for as_dir in $PATH | |
8330 | do | |
8331 | IFS=$as_save_IFS | |
8332 | test -z "$as_dir" && as_dir=. | |
8333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8335 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8337 | break 2 | |
8338 | fi | |
8339 | done | |
8340 | done | |
8341 | IFS=$as_save_IFS | |
8a2fc586 | 8342 | |
f11781c5 AK |
8343 | ;; |
8344 | esac | |
8345 | fi | |
8346 | GENHTML=$ac_cv_path_GENHTML | |
8347 | if test -n "$GENHTML"; then | |
8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8349 | $as_echo "$GENHTML" >&6; } | |
8350 | else | |
8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8352 | $as_echo "no" >&6; } | |
8353 | fi | |
8a2fc586 | 8354 | |
8a2fc586 | 8355 | |
f11781c5 AK |
8356 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8357 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8358 | fi | |
8359 | # Extract the first word of "genpng", so it can be a program name with args. | |
8360 | set dummy genpng; ac_word=$2 | |
8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8362 | $as_echo_n "checking for $ac_word... " >&6; } | |
8363 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8364 | $as_echo_n "(cached) " >&6 | |
8365 | else | |
8366 | case $GENPNG in | |
8367 | [\\/]* | ?:[\\/]*) | |
8368 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8369 | ;; | |
8370 | *) | |
8371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8372 | for as_dir in $PATH | |
8373 | do | |
8374 | IFS=$as_save_IFS | |
8375 | test -z "$as_dir" && as_dir=. | |
8376 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8378 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8380 | break 2 | |
8381 | fi | |
8382 | done | |
8383 | done | |
8384 | IFS=$as_save_IFS | |
ad6254c5 | 8385 | |
f11781c5 | 8386 | ;; |
7a197a62 | 8387 | esac |
f11781c5 AK |
8388 | fi |
8389 | GENPNG=$ac_cv_path_GENPNG | |
8390 | if test -n "$GENPNG"; then | |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8392 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8393 | else |
f11781c5 AK |
8394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8395 | $as_echo "no" >&6; } | |
8396 | fi | |
8397 | ||
8398 | ||
8399 | if test -n "$GENPNG"; then | |
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8401 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8402 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8404 | $as_echo "ok" >&6; } | |
8405 | GENHTML="$GENHTML --frames" | |
8406 | else | |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8408 | $as_echo "not supported" >&6; } | |
8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8410 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8411 | GENPNG= | |
8412 | fi | |
8413 | fi | |
8414 | fi | |
ad6254c5 | 8415 | |
f11781c5 AK |
8416 | ################################################################################ |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8418 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8419 | # Check whether --enable-testing was given. | |
8420 | if test "${enable_testing+set}" = set; then : | |
8421 | enableval=$enable_testing; TESTING=$enableval | |
8422 | else | |
8423 | TESTING=no | |
ad6254c5 | 8424 | fi |
7a197a62 | 8425 | |
f11781c5 AK |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8427 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8428 | |
f11781c5 AK |
8429 | if test "$TESTING" = yes; then |
8430 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
8431 | set dummy ruby1.9; ac_word=$2 | |
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8433 | $as_echo_n "checking for $ac_word... " >&6; } | |
8434 | if test "${ac_cv_path_RUBY19+set}" = set; then : | |
8435 | $as_echo_n "(cached) " >&6 | |
8436 | else | |
8437 | case $RUBY19 in | |
8438 | [\\/]* | ?:[\\/]*) | |
8439 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
8440 | ;; | |
8441 | *) | |
8442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8443 | for as_dir in $PATH | |
8444 | do | |
8445 | IFS=$as_save_IFS | |
8446 | test -z "$as_dir" && as_dir=. | |
8447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8448 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8449 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
8450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8451 | break 2 | |
8452 | fi | |
bc1024f8 | 8453 | done |
f11781c5 AK |
8454 | done |
8455 | IFS=$as_save_IFS | |
ad6254c5 | 8456 | |
f11781c5 AK |
8457 | ;; |
8458 | esac | |
ad6254c5 | 8459 | fi |
f11781c5 AK |
8460 | RUBY19=$ac_cv_path_RUBY19 |
8461 | if test -n "$RUBY19"; then | |
8462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5 | |
8463 | $as_echo "$RUBY19" >&6; } | |
ad6254c5 | 8464 | else |
f11781c5 AK |
8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8466 | $as_echo "no" >&6; } | |
7a197a62 AK |
8467 | fi |
8468 | ||
ad6254c5 | 8469 | |
f11781c5 AK |
8470 | # Extract the first word of "valgrind", so it can be a program name with args. |
8471 | set dummy valgrind; ac_word=$2 | |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ec6a6fbe | 8473 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 8474 | if test "${ac_cv_path_VALGRIND+set}" = set; then : |
ec6a6fbe | 8475 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8476 | else |
f11781c5 | 8477 | case $VALGRIND in |
ad6254c5 | 8478 | [\\/]* | ?:[\\/]*) |
f11781c5 | 8479 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. |
ad6254c5 AK |
8480 | ;; |
8481 | *) | |
8482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8483 | for as_dir in $PATH | |
8484 | do | |
8485 | IFS=$as_save_IFS | |
8486 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 8487 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 8488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
8489 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" |
8490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
ad6254c5 AK |
8491 | break 2 |
8492 | fi | |
8493 | done | |
f11781c5 | 8494 | done |
7a197a62 | 8495 | IFS=$as_save_IFS |
ad6254c5 AK |
8496 | |
8497 | ;; | |
8498 | esac | |
8499 | fi | |
f11781c5 AK |
8500 | VALGRIND=$ac_cv_path_VALGRIND |
8501 | if test -n "$VALGRIND"; then | |
8502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 | |
8503 | $as_echo "$VALGRIND" >&6; } | |
ad6254c5 | 8504 | else |
f11781c5 | 8505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 8506 | $as_echo "no" >&6; } |
ad6254c5 AK |
8507 | fi |
8508 | ||
7a197a62 | 8509 | |
f11781c5 AK |
8510 | if test -z "$RUBY19" -o -z "$VALGRIND"; then |
8511 | as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5 | |
8512 | fi | |
8513 | fi | |
ad6254c5 | 8514 | |
f11781c5 AK |
8515 | ################################################################################ |
8516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8517 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8518 | # Check whether --enable-valgrind_pool was given. | |
8519 | if test "${enable_valgrind_pool+set}" = set; then : | |
8520 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8521 | else | |
8522 | VALGRIND_POOL=no | |
8523 | fi | |
8524 | ||
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8526 | $as_echo "$VALGRIND_POOL" >&6; } | |
8527 | ||
8528 | if test "$VALGRIND_POOL" = yes; then | |
8529 | for ac_header in valgrind/memcheck.h | |
8530 | do : | |
8531 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8532 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8533 | cat >>confdefs.h <<_ACEOF | |
8534 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8535 | _ACEOF | |
ad6254c5 | 8536 | |
ad6254c5 | 8537 | else |
f11781c5 | 8538 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8539 | fi |
8540 | ||
f11781c5 AK |
8541 | done |
8542 | ||
8543 | ||
8544 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8545 | ||
ad6254c5 AK |
8546 | fi |
8547 | ||
8548 | ################################################################################ | |
f11781c5 AK |
8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8550 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8551 | # Check whether --enable-devmapper was given. | |
8552 | if test "${enable_devmapper+set}" = set; then : | |
8553 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8554 | fi |
8555 | ||
f11781c5 AK |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8557 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8558 | |
f11781c5 | 8559 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8560 | |
f11781c5 AK |
8561 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8562 | ||
8563 | fi | |
8564 | ||
cdd50823 ZK |
8565 | ################################################################################ |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5 | |
8567 | $as_echo_n "checking whether to build LVMetaD... " >&6; } | |
8568 | # Check whether --enable-lvmetad was given. | |
8569 | if test "${enable_lvmetad+set}" = set; then : | |
8570 | enableval=$enable_lvmetad; LVMETAD=$enableval | |
8571 | fi | |
8572 | ||
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5 | |
8574 | $as_echo "$LVMETAD" >&6; } | |
8575 | ||
8576 | BUILD_LVMETAD=$LVMETAD | |
8577 | ||
f11781c5 AK |
8578 | ################################################################################ |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8580 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8581 | # Check whether --enable-udev_sync was given. | |
8582 | if test "${enable_udev_sync+set}" = set; then : | |
8583 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8584 | else |
f11781c5 | 8585 | UDEV_SYNC=no |
7a197a62 | 8586 | fi |
ad6254c5 | 8587 | |
f11781c5 AK |
8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8589 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8590 | |
f11781c5 | 8591 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8592 | if test x$PKGCONFIG_INIT != x1; then |
8593 | pkg_config_init | |
8594 | fi | |
7a197a62 | 8595 | |
d93275eb PR |
8596 | pkg_failed=no |
8597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8598 | $as_echo_n "checking for UDEV... " >&6; } | |
8599 | ||
8600 | if test -n "$UDEV_CFLAGS"; then | |
8601 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8602 | elif test -n "$PKG_CONFIG"; then | |
8603 | if test -n "$PKG_CONFIG" && \ | |
8604 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8605 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8606 | ac_status=$? | |
8607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8608 | test $ac_status = 0; }; then | |
8609 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8610 | else |
d93275eb | 8611 | pkg_failed=yes |
f11781c5 | 8612 | fi |
d93275eb PR |
8613 | else |
8614 | pkg_failed=untried | |
f11781c5 | 8615 | fi |
d93275eb PR |
8616 | if test -n "$UDEV_LIBS"; then |
8617 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8618 | elif test -n "$PKG_CONFIG"; then | |
8619 | if test -n "$PKG_CONFIG" && \ | |
8620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8621 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8622 | ac_status=$? | |
8623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8624 | test $ac_status = 0; }; then | |
8625 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8626 | else |
d93275eb | 8627 | pkg_failed=yes |
68f2de6d | 8628 | fi |
d93275eb PR |
8629 | else |
8630 | pkg_failed=untried | |
8631 | fi | |
8632 | ||
8633 | ||
8634 | ||
8635 | if test $pkg_failed = yes; then | |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8637 | $as_echo "no" >&6; } | |
8638 | ||
8639 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8640 | _pkg_short_errors_supported=yes | |
8641 | else | |
8642 | _pkg_short_errors_supported=no | |
8643 | fi | |
8644 | if test $_pkg_short_errors_supported = yes; then | |
8645 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8646 | else | |
8647 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8648 | fi | |
8649 | # Put the nasty error message in config.log where it belongs | |
8650 | echo "$UDEV_PKG_ERRORS" >&5 | |
8651 | ||
8652 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8653 | ||
8654 | $UDEV_PKG_ERRORS | |
8655 | ||
8656 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8657 | installed software in a non-standard prefix. | |
8658 | ||
8659 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8660 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8661 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8662 | |
d93275eb PR |
8663 | elif test $pkg_failed = untried; then |
8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8665 | $as_echo "no" >&6; } | |
8666 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8667 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8668 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8669 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8670 | path to pkg-config. | |
8671 | ||
8672 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8673 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8674 | See the pkg-config man page for more details. | |
8675 | ||
8676 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8677 | See \`config.log' for more details" "$LINENO" 5; } | |
8678 | ||
8679 | else | |
8680 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8681 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8683 | $as_echo "yes" >&6; } | |
8684 | UDEV_PC="libudev" | |
8685 | fi | |
68f2de6d | 8686 | |
f11781c5 | 8687 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8688 | |
f11781c5 AK |
8689 | fi |
8690 | ||
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8692 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8693 | # Check whether --enable-udev_rules was given. | |
8694 | if test "${enable_udev_rules+set}" = set; then : | |
8695 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8696 | else |
f11781c5 | 8697 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8698 | fi |
8699 | ||
f11781c5 AK |
8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8701 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8702 | |
a5f46f6a | 8703 | ################################################################################ |
f11781c5 AK |
8704 | # Check whether --enable-compat was given. |
8705 | if test "${enable_compat+set}" = set; then : | |
8706 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8707 | else | |
8708 | DM_COMPAT=no | |
8709 | fi | |
a5f46f6a | 8710 | |
f11781c5 | 8711 | |
2061c0ec AK |
8712 | if test x$DM_COMPAT = xyes; then |
8713 | as_fn_error $? "--enable-compat is not currently supported. | |
8714 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
8715 | ioctl protocol is supported. | |
8716 | " "$LINENO" 5 | |
8717 | fi | |
8718 | ||
f11781c5 AK |
8719 | ################################################################################ |
8720 | # Check whether --enable-units-compat was given. | |
8721 | if test "${enable_units_compat+set}" = set; then : | |
8722 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8723 | else |
f11781c5 | 8724 | UNITS_COMPAT=no |
a5f46f6a AK |
8725 | fi |
8726 | ||
8727 | ||
f11781c5 | 8728 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8729 | |
f11781c5 AK |
8730 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8731 | ||
8732 | fi | |
8733 | ||
8734 | ################################################################################ | |
8735 | # Check whether --enable-ioctl was given. | |
8736 | if test "${enable_ioctl+set}" = set; then : | |
8737 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8738 | fi |
8739 | ||
a5f46f6a | 8740 | |
ad6254c5 | 8741 | ################################################################################ |
f11781c5 AK |
8742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8743 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8744 | # Check whether --enable-o_direct was given. | |
8745 | if test "${enable_o_direct+set}" = set; then : | |
8746 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8747 | fi | |
ad6254c5 | 8748 | |
f11781c5 AK |
8749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8750 | $as_echo "$ODIRECT" >&6; } | |
8751 | ||
8752 | if test x$ODIRECT = xyes; then | |
8753 | ||
8754 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8755 | |
ad6254c5 | 8756 | fi |
ad6254c5 | 8757 | |
f11781c5 AK |
8758 | ################################################################################ |
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8760 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8761 | # Check whether --enable-applib was given. | |
8762 | if test "${enable_applib+set}" = set; then : | |
8763 | enableval=$enable_applib; APPLIB=$enableval | |
8764 | else | |
8765 | APPLIB=no | |
ad6254c5 | 8766 | fi |
7a197a62 | 8767 | |
f11781c5 AK |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8769 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8770 | |
f11781c5 AK |
8771 | test x$APPLIB = xyes \ |
8772 | && LVM2APP_LIB=-llvm2app \ | |
8773 | || LVM2APP_LIB= | |
ad6254c5 | 8774 | |
f11781c5 AK |
8775 | ################################################################################ |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8777 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8778 | # Check whether --enable-cmdlib was given. | |
8779 | if test "${enable_cmdlib+set}" = set; then : | |
8780 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8781 | else | |
8782 | CMDLIB=no | |
ad6254c5 | 8783 | fi |
7a197a62 | 8784 | |
f11781c5 AK |
8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8786 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8787 | |
f11781c5 AK |
8788 | test x$CMDLIB = xyes \ |
8789 | && LVM2CMD_LIB=-llvm2cmd \ | |
8790 | || LVM2CMD_LIB= | |
8791 | ||
8792 | ################################################################################ | |
8793 | # Check whether --enable-pkgconfig was given. | |
8794 | if test "${enable_pkgconfig+set}" = set; then : | |
8795 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8796 | else |
f11781c5 | 8797 | PKGCONFIG=no |
ad6254c5 | 8798 | fi |
ad6254c5 | 8799 | |
ad6254c5 | 8800 | |
f11781c5 AK |
8801 | ################################################################################ |
8802 | # Check whether --enable-write_install was given. | |
8803 | if test "${enable_write_install+set}" = set; then : | |
8804 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 8805 | else |
f11781c5 | 8806 | WRITE_INSTALL=no |
ad6254c5 AK |
8807 | fi |
8808 | ||
ad6254c5 | 8809 | |
f11781c5 AK |
8810 | ################################################################################ |
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
8812 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
8813 | # Check whether --enable-fsadm was given. | |
8814 | if test "${enable_fsadm+set}" = set; then : | |
8815 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
8816 | fi |
8817 | ||
f11781c5 AK |
8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
8819 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8820 | |
f11781c5 AK |
8821 | ################################################################################ |
8822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
8823 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
8824 | # Check whether --enable-dmeventd was given. | |
8825 | if test "${enable_dmeventd+set}" = set; then : | |
8826 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8827 | fi | |
ad6254c5 | 8828 | |
f11781c5 AK |
8829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
8830 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 8831 | |
f11781c5 | 8832 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 8833 | |
f11781c5 AK |
8834 | if test x$DMEVENTD = xyes; then |
8835 | if test x$MIRRORS != xinternal; then | |
8836 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
8837 | " "$LINENO" 5 | |
8838 | fi | |
8839 | if test x$CMDLIB = xno; then | |
8840 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
8841 | " "$LINENO" 5 | |
8842 | fi | |
8843 | fi | |
ad6254c5 | 8844 | |
f11781c5 | 8845 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 8846 | |
f11781c5 | 8847 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 8848 | |
f11781c5 | 8849 | fi |
ad6254c5 | 8850 | |
f11781c5 | 8851 | ################################################################################ |
ad6254c5 | 8852 | |
f11781c5 AK |
8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
8854 | $as_echo_n "checking for getline in -lc... " >&6; } | |
8855 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 8856 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8857 | else |
f11781c5 AK |
8858 | ac_check_lib_save_LIBS=$LIBS |
8859 | LIBS="-lc $LIBS" | |
8860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8861 | /* end confdefs.h. */ |
f11781c5 AK |
8862 | |
8863 | /* Override any GCC internal prototype to avoid an error. | |
8864 | Use char because int might match the return type of a GCC | |
8865 | builtin and then its argument prototype would still apply. */ | |
8866 | #ifdef __cplusplus | |
8867 | extern "C" | |
8868 | #endif | |
8869 | char getline (); | |
8870 | int | |
8871 | main () | |
8872 | { | |
8873 | return getline (); | |
8874 | ; | |
8875 | return 0; | |
8876 | } | |
ad6254c5 | 8877 | _ACEOF |
f11781c5 AK |
8878 | if ac_fn_c_try_link "$LINENO"; then : |
8879 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 8880 | else |
f11781c5 AK |
8881 | ac_cv_lib_c_getline=no |
8882 | fi | |
8883 | rm -f core conftest.err conftest.$ac_objext \ | |
8884 | conftest$ac_exeext conftest.$ac_ext | |
8885 | LIBS=$ac_check_lib_save_LIBS | |
8886 | fi | |
8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
8888 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
8889 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
8890 | ||
8891 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 8892 | |
ad6254c5 | 8893 | fi |
7a197a62 | 8894 | |
ad6254c5 | 8895 | |
f11781c5 AK |
8896 | ################################################################################ |
8897 | ||
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
8899 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
8900 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
8901 | $as_echo_n "(cached) " >&6 | |
8902 | else | |
8903 | ac_check_lib_save_LIBS=$LIBS | |
8904 | LIBS="-lc $LIBS" | |
8905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8906 | /* end confdefs.h. */ |
f11781c5 AK |
8907 | |
8908 | /* Override any GCC internal prototype to avoid an error. | |
8909 | Use char because int might match the return type of a GCC | |
8910 | builtin and then its argument prototype would still apply. */ | |
8911 | #ifdef __cplusplus | |
8912 | extern "C" | |
8913 | #endif | |
8914 | char canonicalize_file_name (); | |
8915 | int | |
8916 | main () | |
8917 | { | |
8918 | return canonicalize_file_name (); | |
8919 | ; | |
8920 | return 0; | |
8921 | } | |
ad6254c5 | 8922 | _ACEOF |
f11781c5 AK |
8923 | if ac_fn_c_try_link "$LINENO"; then : |
8924 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 8925 | else |
f11781c5 AK |
8926 | ac_cv_lib_c_canonicalize_file_name=no |
8927 | fi | |
8928 | rm -f core conftest.err conftest.$ac_objext \ | |
8929 | conftest$ac_exeext conftest.$ac_ext | |
8930 | LIBS=$ac_check_lib_save_LIBS | |
8931 | fi | |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
8933 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
8934 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
8935 | ||
8936 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 8937 | |
ad6254c5 | 8938 | fi |
7a197a62 | 8939 | |
ad6254c5 | 8940 | |
f11781c5 AK |
8941 | ################################################################################ |
8942 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
8943 | then exec_prefix=""; | |
8944 | fi; | |
7a197a62 | 8945 | |
f11781c5 AK |
8946 | ################################################################################ |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8948 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8949 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 8950 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8951 | else |
f11781c5 AK |
8952 | ac_check_lib_save_LIBS=$LIBS |
8953 | LIBS="-ldl $LIBS" | |
8954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8955 | /* end confdefs.h. */ | |
ad6254c5 | 8956 | |
f11781c5 AK |
8957 | /* Override any GCC internal prototype to avoid an error. |
8958 | Use char because int might match the return type of a GCC | |
8959 | builtin and then its argument prototype would still apply. */ | |
8960 | #ifdef __cplusplus | |
8961 | extern "C" | |
8962 | #endif | |
8963 | char dlopen (); | |
8964 | int | |
8965 | main () | |
8966 | { | |
8967 | return dlopen (); | |
8968 | ; | |
8969 | return 0; | |
8970 | } | |
ad6254c5 | 8971 | _ACEOF |
f11781c5 AK |
8972 | if ac_fn_c_try_link "$LINENO"; then : |
8973 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 8974 | else |
f11781c5 | 8975 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 8976 | fi |
f11781c5 AK |
8977 | rm -f core conftest.err conftest.$ac_objext \ |
8978 | conftest$ac_exeext conftest.$ac_ext | |
8979 | LIBS=$ac_check_lib_save_LIBS | |
8980 | fi | |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8982 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8983 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 8984 | |
ad6254c5 | 8985 | |
f11781c5 | 8986 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 8987 | |
f11781c5 AK |
8988 | DL_LIBS="-ldl" |
8989 | HAVE_LIBDL=yes | |
8990 | else | |
795ca3e5 | 8991 | |
f11781c5 AK |
8992 | DL_LIBS= |
8993 | HAVE_LIBDL=no | |
8994 | fi | |
8106cdd5 | 8995 | |
ad6254c5 | 8996 | |
f11781c5 AK |
8997 | ################################################################################ |
8998 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
8999 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9000 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9001 | \) -a "x$STATIC_LINK" = xyes ]; |
9002 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9003 | " "$LINENO" 5 | |
9004 | fi | |
ad6254c5 | 9005 | |
f11781c5 AK |
9006 | ################################################################################ |
9007 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9009 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9010 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9011 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9012 | else |
f11781c5 AK |
9013 | ac_check_lib_save_LIBS=$LIBS |
9014 | LIBS="-lpthread $LIBS" | |
9015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9016 | /* end confdefs.h. */ |
8a2fc586 | 9017 | |
f11781c5 AK |
9018 | /* Override any GCC internal prototype to avoid an error. |
9019 | Use char because int might match the return type of a GCC | |
9020 | builtin and then its argument prototype would still apply. */ | |
9021 | #ifdef __cplusplus | |
9022 | extern "C" | |
ad6254c5 | 9023 | #endif |
f11781c5 AK |
9024 | char pthread_mutex_lock (); |
9025 | int | |
9026 | main () | |
9027 | { | |
9028 | return pthread_mutex_lock (); | |
9029 | ; | |
9030 | return 0; | |
9031 | } | |
9032 | _ACEOF | |
9033 | if ac_fn_c_try_link "$LINENO"; then : | |
9034 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9035 | else | |
9036 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9037 | fi | |
9038 | rm -f core conftest.err conftest.$ac_objext \ | |
9039 | conftest$ac_exeext conftest.$ac_ext | |
9040 | LIBS=$ac_check_lib_save_LIBS | |
9041 | fi | |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9043 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9044 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9045 | PTHREAD_LIBS="-lpthread" | |
9046 | else | |
9047 | hard_bailout | |
9048 | fi | |
9049 | ||
9050 | fi | |
9051 | ||
9052 | ################################################################################ | |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9054 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9055 | # Check whether --enable-selinux was given. | |
9056 | if test "${enable_selinux+set}" = set; then : | |
9057 | enableval=$enable_selinux; SELINUX=$enableval | |
9058 | fi | |
9059 | ||
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9061 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9062 | |
f11781c5 AK |
9063 | ################################################################################ |
9064 | if test x$SELINUX = xyes; then | |
9065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9066 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9067 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9068 | $as_echo_n "(cached) " >&6 | |
9069 | else | |
9070 | ac_check_lib_save_LIBS=$LIBS | |
9071 | LIBS="-lsepol $LIBS" | |
9072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9073 | /* end confdefs.h. */ | |
8a2fc586 | 9074 | |
7a197a62 AK |
9075 | /* Override any GCC internal prototype to avoid an error. |
9076 | Use char because int might match the return type of a GCC | |
9077 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9078 | #ifdef __cplusplus |
9079 | extern "C" | |
ad6254c5 | 9080 | #endif |
f11781c5 | 9081 | char sepol_check_context (); |
ad6254c5 AK |
9082 | int |
9083 | main () | |
9084 | { | |
f11781c5 | 9085 | return sepol_check_context (); |
ad6254c5 AK |
9086 | ; |
9087 | return 0; | |
9088 | } | |
9089 | _ACEOF | |
f11781c5 AK |
9090 | if ac_fn_c_try_link "$LINENO"; then : |
9091 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9092 | else |
f11781c5 AK |
9093 | ac_cv_lib_sepol_sepol_check_context=no |
9094 | fi | |
9095 | rm -f core conftest.err conftest.$ac_objext \ | |
9096 | conftest$ac_exeext conftest.$ac_ext | |
9097 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9098 | fi |
f11781c5 AK |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9100 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9101 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9102 | |
80992638 | 9103 | |
f11781c5 AK |
9104 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9105 | ||
9106 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9107 | fi |
795ca3e5 | 9108 | |
f11781c5 AK |
9109 | |
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9111 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9112 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9113 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9114 | else |
f11781c5 AK |
9115 | ac_check_lib_save_LIBS=$LIBS |
9116 | LIBS="-lselinux $LIBS" | |
9117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9118 | /* end confdefs.h. */ |
80992638 | 9119 | |
7a197a62 AK |
9120 | /* Override any GCC internal prototype to avoid an error. |
9121 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9122 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9123 | #ifdef __cplusplus |
9124 | extern "C" | |
9125 | #endif | |
f11781c5 | 9126 | char is_selinux_enabled (); |
ad6254c5 AK |
9127 | int |
9128 | main () | |
9129 | { | |
f11781c5 | 9130 | return is_selinux_enabled (); |
ad6254c5 AK |
9131 | ; |
9132 | return 0; | |
9133 | } | |
9134 | _ACEOF | |
f11781c5 AK |
9135 | if ac_fn_c_try_link "$LINENO"; then : |
9136 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9137 | else |
f11781c5 | 9138 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9139 | fi |
f11781c5 AK |
9140 | rm -f core conftest.err conftest.$ac_objext \ |
9141 | conftest$ac_exeext conftest.$ac_ext | |
9142 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9143 | fi |
f11781c5 AK |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9145 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9146 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9147 | |
f11781c5 AK |
9148 | for ac_header in selinux/selinux.h |
9149 | do : | |
9150 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9151 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9152 | cat >>confdefs.h <<_ACEOF | |
9153 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9154 | _ACEOF |
795ca3e5 | 9155 | |
25fbec5b | 9156 | else |
f11781c5 | 9157 | hard_bailout |
795ca3e5 | 9158 | fi |
795ca3e5 | 9159 | |
f11781c5 | 9160 | done |
795ca3e5 | 9161 | |
f11781c5 AK |
9162 | for ac_header in selinux/label.h |
9163 | do : | |
9164 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9165 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9166 | cat >>confdefs.h <<_ACEOF | |
9167 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9168 | _ACEOF |
ad6254c5 | 9169 | |
ad6254c5 | 9170 | fi |
7a197a62 | 9171 | |
f11781c5 | 9172 | done |
7a197a62 | 9173 | |
ad6254c5 | 9174 | |
f11781c5 | 9175 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9176 | |
f11781c5 AK |
9177 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9178 | SELINUX_PC="libselinux" | |
9179 | HAVE_SELINUX=yes | |
ad6254c5 | 9180 | else |
8106cdd5 | 9181 | |
f11781c5 AK |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9183 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9184 | SELINUX_LIBS= | |
9185 | SELINUX_PC= | |
9186 | HAVE_SELINUX=no | |
795ca3e5 | 9187 | fi |
ad6254c5 | 9188 | |
795ca3e5 AK |
9189 | fi |
9190 | ||
f11781c5 AK |
9191 | ################################################################################ |
9192 | if test x$REALTIME = xyes; then | |
9193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9194 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9195 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9196 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9197 | else |
f11781c5 AK |
9198 | ac_check_lib_save_LIBS=$LIBS |
9199 | LIBS="-lrt $LIBS" | |
9200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9201 | /* end confdefs.h. */ |
ad6254c5 | 9202 | |
f11781c5 AK |
9203 | /* Override any GCC internal prototype to avoid an error. |
9204 | Use char because int might match the return type of a GCC | |
9205 | builtin and then its argument prototype would still apply. */ | |
9206 | #ifdef __cplusplus | |
9207 | extern "C" | |
9208 | #endif | |
9209 | char clock_gettime (); | |
ad6254c5 AK |
9210 | int |
9211 | main () | |
9212 | { | |
f11781c5 | 9213 | return clock_gettime (); |
ad6254c5 AK |
9214 | ; |
9215 | return 0; | |
9216 | } | |
9217 | _ACEOF | |
f11781c5 AK |
9218 | if ac_fn_c_try_link "$LINENO"; then : |
9219 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9220 | else |
f11781c5 | 9221 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9222 | fi |
f11781c5 AK |
9223 | rm -f core conftest.err conftest.$ac_objext \ |
9224 | conftest$ac_exeext conftest.$ac_ext | |
9225 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9226 | fi |
f11781c5 AK |
9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9228 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9229 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9230 | HAVE_REALTIME=yes | |
9231 | else | |
9232 | HAVE_REALTIME=no | |
8106cdd5 | 9233 | fi |
ad6254c5 | 9234 | |
ad6254c5 | 9235 | |
f11781c5 | 9236 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9237 | |
f11781c5 | 9238 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9239 | |
f11781c5 AK |
9240 | LIBS="-lrt $LIBS" |
9241 | else | |
9242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9243 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9244 | fi | |
9245 | fi | |
9246 | ||
9247 | ################################################################################ | |
9248 | for ac_header in getopt.h | |
9249 | do : | |
9250 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9251 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9252 | cat >>confdefs.h <<_ACEOF | |
9253 | #define HAVE_GETOPT_H 1 | |
9254 | _ACEOF | |
9255 | ||
9256 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9257 | |
ad6254c5 | 9258 | fi |
7a197a62 | 9259 | |
f11781c5 | 9260 | done |
ad6254c5 | 9261 | |
7a197a62 | 9262 | |
f11781c5 AK |
9263 | ################################################################################ |
9264 | if test x$READLINE != xno; then | |
9265 | lvm_saved_libs=$LIBS | |
9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9267 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9268 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9269 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9270 | else |
f11781c5 AK |
9271 | ac_func_search_save_LIBS=$LIBS |
9272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9273 | /* end confdefs.h. */ | |
ad6254c5 | 9274 | |
f11781c5 AK |
9275 | /* Override any GCC internal prototype to avoid an error. |
9276 | Use char because int might match the return type of a GCC | |
9277 | builtin and then its argument prototype would still apply. */ | |
9278 | #ifdef __cplusplus | |
9279 | extern "C" | |
9280 | #endif | |
9281 | char tgetent (); | |
9282 | int | |
9283 | main () | |
9284 | { | |
9285 | return tgetent (); | |
9286 | ; | |
9287 | return 0; | |
9288 | } | |
ad6254c5 | 9289 | _ACEOF |
f11781c5 AK |
9290 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9291 | if test -z "$ac_lib"; then | |
9292 | ac_res="none required" | |
9293 | else | |
9294 | ac_res=-l$ac_lib | |
9295 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9296 | fi | |
9297 | if ac_fn_c_try_link "$LINENO"; then : | |
9298 | ac_cv_search_tgetent=$ac_res | |
9299 | fi | |
9300 | rm -f core conftest.err conftest.$ac_objext \ | |
9301 | conftest$ac_exeext | |
9302 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9303 | break | |
9304 | fi | |
9305 | done | |
9306 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9307 | |
80992638 | 9308 | else |
f11781c5 | 9309 | ac_cv_search_tgetent=no |
b896caa1 | 9310 | fi |
f11781c5 AK |
9311 | rm conftest.$ac_ext |
9312 | LIBS=$ac_func_search_save_LIBS | |
9313 | fi | |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9315 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9316 | ac_res=$ac_cv_search_tgetent | |
9317 | if test "$ac_res" != no; then : | |
9318 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9319 | READLINE_LIBS=$ac_cv_search_tgetent | |
9320 | else | |
ad6254c5 | 9321 | |
f11781c5 AK |
9322 | if test "$READLINE" = yes; then |
9323 | as_fn_error $? "termcap could not be found which is required for the | |
9324 | --enable-readline option (which is enabled by default). Either disable readline | |
9325 | support with --disable-readline or download and install termcap from: | |
9326 | ftp.gnu.org/gnu/termcap | |
9327 | Note: if you are using precompiled packages you will also need the development | |
9328 | package as well (which may be called termcap-devel or something similar). | |
9329 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9330 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9331 | fi | |
9332 | fi | |
b896caa1 | 9333 | |
f11781c5 AK |
9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9335 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9336 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9337 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9338 | else |
f11781c5 AK |
9339 | ac_check_lib_save_LIBS=$LIBS |
9340 | LIBS="-lreadline $LIBS" | |
9341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9342 | /* end confdefs.h. */ |
8a2fc586 | 9343 | |
f11781c5 AK |
9344 | /* Override any GCC internal prototype to avoid an error. |
9345 | Use char because int might match the return type of a GCC | |
9346 | builtin and then its argument prototype would still apply. */ | |
9347 | #ifdef __cplusplus | |
9348 | extern "C" | |
ad6254c5 | 9349 | #endif |
f11781c5 AK |
9350 | char readline (); |
9351 | int | |
9352 | main () | |
9353 | { | |
9354 | return readline (); | |
9355 | ; | |
9356 | return 0; | |
9357 | } | |
9358 | _ACEOF | |
9359 | if ac_fn_c_try_link "$LINENO"; then : | |
9360 | ac_cv_lib_readline_readline=yes | |
9361 | else | |
9362 | ac_cv_lib_readline_readline=no | |
9363 | fi | |
9364 | rm -f core conftest.err conftest.$ac_objext \ | |
9365 | conftest$ac_exeext conftest.$ac_ext | |
9366 | LIBS=$ac_check_lib_save_LIBS | |
9367 | fi | |
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9369 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9370 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9371 | ||
8a2fc586 | 9372 | |
f11781c5 AK |
9373 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9374 | ||
9375 | LIBS=$lvm_saved_libs | |
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9377 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9378 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9379 | $as_echo_n "(cached) " >&6 | |
9380 | else | |
9381 | ac_check_lib_save_LIBS=$LIBS | |
9382 | LIBS="-lreadline $LIBS" | |
9383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9384 | /* end confdefs.h. */ | |
8a2fc586 | 9385 | |
7a197a62 AK |
9386 | /* Override any GCC internal prototype to avoid an error. |
9387 | Use char because int might match the return type of a GCC | |
9388 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9389 | #ifdef __cplusplus |
9390 | extern "C" | |
ad6254c5 | 9391 | #endif |
f11781c5 | 9392 | char rl_line_buffer (); |
ad6254c5 AK |
9393 | int |
9394 | main () | |
9395 | { | |
f11781c5 | 9396 | return rl_line_buffer (); |
ad6254c5 AK |
9397 | ; |
9398 | return 0; | |
9399 | } | |
9400 | _ACEOF | |
f11781c5 AK |
9401 | if ac_fn_c_try_link "$LINENO"; then : |
9402 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9403 | else |
f11781c5 AK |
9404 | ac_cv_lib_readline_rl_line_buffer=no |
9405 | fi | |
9406 | rm -f core conftest.err conftest.$ac_objext \ | |
9407 | conftest$ac_exeext conftest.$ac_ext | |
9408 | LIBS=$ac_check_lib_save_LIBS | |
9409 | fi | |
9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9411 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9412 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9413 | READLINE_LIBS="-lreadline" | |
9414 | else | |
9415 | ||
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9417 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9418 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9419 | |
ad6254c5 | 9420 | fi |
7a197a62 | 9421 | |
f11781c5 AK |
9422 | else |
9423 | ||
9424 | READLINE_LIBS= | |
9425 | if test "$READLINE" = yes; then | |
9426 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9427 | --enable-readline option (which is enabled by default). Either disable readline | |
9428 | support with --disable-readline or download and install readline from: | |
9429 | ftp.gnu.org/gnu/readline | |
9430 | Note: if you are using precompiled packages you will also need the development | |
9431 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9432 | fi | |
ad6254c5 | 9433 | fi |
f11781c5 AK |
9434 | |
9435 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9436 | for ac_func in rl_completion_matches | |
9437 | do : | |
9438 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9439 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9440 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9441 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9442 | _ACEOF |
9443 | ||
ad6254c5 AK |
9444 | fi |
9445 | done | |
9446 | ||
f11781c5 | 9447 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9448 | fi |
9449 | ||
f11781c5 AK |
9450 | ################################################################################ |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9452 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9453 | # Check whether --enable-nls was given. | |
9454 | if test "${enable_nls+set}" = set; then : | |
9455 | enableval=$enable_nls; INTL=$enableval | |
9456 | else | |
9457 | INTL=no | |
9458 | fi | |
d911ec67 | 9459 | |
f11781c5 AK |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9461 | $as_echo "$INTL" >&6; } | |
9462 | ||
9463 | if test x$INTL = xyes; then | |
9464 | # FIXME - Move this - can be device-mapper too | |
9465 | INTL_PACKAGE="lvm2" | |
9466 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9467 | set dummy msgfmt; ac_word=$2 | |
9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9469 | $as_echo_n "checking for $ac_word... " >&6; } | |
9470 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9471 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9472 | else |
f11781c5 AK |
9473 | case $MSGFMT in |
9474 | [\\/]* | ?:[\\/]*) | |
9475 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9476 | ;; | |
9477 | *) | |
9478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9479 | for as_dir in $PATH | |
9480 | do | |
9481 | IFS=$as_save_IFS | |
9482 | test -z "$as_dir" && as_dir=. | |
9483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9485 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9487 | break 2 | |
9488 | fi | |
9489 | done | |
9490 | done | |
9491 | IFS=$as_save_IFS | |
9492 | ||
9493 | ;; | |
d911ec67 | 9494 | esac |
f11781c5 AK |
9495 | fi |
9496 | MSGFMT=$ac_cv_path_MSGFMT | |
9497 | if test -n "$MSGFMT"; then | |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9499 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9500 | else |
f11781c5 AK |
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9502 | $as_echo "no" >&6; } | |
9503 | fi | |
d911ec67 | 9504 | |
f11781c5 AK |
9505 | |
9506 | if [ "x$MSGFMT" == x ]; | |
9507 | then as_fn_error $? "msgfmt not found in path $PATH | |
9508 | " "$LINENO" 5 | |
9509 | fi; | |
9510 | ||
9511 | ||
9512 | # Check whether --with-localedir was given. | |
9513 | if test "${with_localedir+set}" = set; then : | |
9514 | withval=$with_localedir; LOCALEDIR=$withval | |
9515 | else | |
9516 | LOCALEDIR='${prefix}/share/locale' | |
9517 | fi | |
9518 | ||
9519 | fi | |
9520 | ||
9521 | ################################################################################ | |
9522 | ||
9523 | # Check whether --with-confdir was given. | |
9524 | if test "${with_confdir+set}" = set; then : | |
9525 | withval=$with_confdir; CONFDIR=$withval | |
9526 | else | |
9527 | CONFDIR="/etc" | |
9528 | fi | |
9529 | ||
9530 | ||
9531 | ||
9532 | # Check whether --with-staticdir was given. | |
9533 | if test "${with_staticdir+set}" = set; then : | |
9534 | withval=$with_staticdir; STATICDIR=$withval | |
9535 | else | |
9536 | STATICDIR='${exec_prefix}/sbin' | |
9537 | fi | |
9538 | ||
9539 | ||
9540 | ||
9541 | # Check whether --with-usrlibdir was given. | |
9542 | if test "${with_usrlibdir+set}" = set; then : | |
9543 | withval=$with_usrlibdir; usrlibdir=$withval | |
9544 | else | |
9545 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9546 | fi |
9547 | ||
d911ec67 | 9548 | |
d911ec67 | 9549 | |
f11781c5 AK |
9550 | # Check whether --with-usrsbindir was given. |
9551 | if test "${with_usrsbindir+set}" = set; then : | |
9552 | withval=$with_usrsbindir; usrsbindir=$withval | |
9553 | else | |
9554 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9555 | fi |
9556 | ||
d911ec67 | 9557 | |
f11781c5 | 9558 | ################################################################################ |
d911ec67 | 9559 | |
f11781c5 AK |
9560 | # Check whether --with-udev_prefix was given. |
9561 | if test "${with_udev_prefix+set}" = set; then : | |
9562 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9563 | else |
f11781c5 | 9564 | udev_prefix='${exec_prefix}' |
d911ec67 | 9565 | fi |
d911ec67 | 9566 | |
f11781c5 AK |
9567 | |
9568 | ||
9569 | # Check whether --with-udevdir was given. | |
9570 | if test "${with_udevdir+set}" = set; then : | |
9571 | withval=$with_udevdir; udevdir=$withval | |
9572 | else | |
9573 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9574 | fi |
f11781c5 AK |
9575 | |
9576 | ||
9577 | ################################################################################ | |
9578 | if test x$READLINE = xyes; then | |
9579 | for ac_header in readline/readline.h readline/history.h | |
9580 | do : | |
9581 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9582 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9583 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9584 | cat >>confdefs.h <<_ACEOF |
9585 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9586 | _ACEOF | |
9587 | ||
9588 | else | |
f11781c5 | 9589 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9590 | fi |
9591 | ||
9592 | done | |
9593 | ||
9594 | fi | |
9595 | ||
f11781c5 AK |
9596 | if test x$CLVMD != xnone; then |
9597 | 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 | |
9598 | do : | |
9599 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9600 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9601 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9602 | cat >>confdefs.h <<_ACEOF | |
9603 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9604 | _ACEOF |
ad6254c5 | 9605 | |
f11781c5 AK |
9606 | else |
9607 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9608 | fi |
7a197a62 | 9609 | |
f11781c5 | 9610 | done |
ad6254c5 | 9611 | |
f11781c5 AK |
9612 | for ac_func in dup2 getmntent memmove select socket |
9613 | do : | |
9614 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9615 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9616 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9617 | cat >>confdefs.h <<_ACEOF | |
9618 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9619 | _ACEOF |
ad6254c5 | 9620 | |
f11781c5 AK |
9621 | else |
9622 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9623 | fi |
f11781c5 | 9624 | done |
7a197a62 | 9625 | |
f11781c5 AK |
9626 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9627 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9629 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9630 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9631 | $as_echo_n "(cached) " >&6 | |
9632 | else | |
9633 | ac_func_search_save_LIBS=$LIBS | |
9634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9635 | /* end confdefs.h. */ | |
ad6254c5 | 9636 | |
f11781c5 AK |
9637 | /* Override any GCC internal prototype to avoid an error. |
9638 | Use char because int might match the return type of a GCC | |
9639 | builtin and then its argument prototype would still apply. */ | |
9640 | #ifdef __cplusplus | |
9641 | extern "C" | |
9642 | #endif | |
9643 | char getmntent (); | |
9644 | int | |
9645 | main () | |
9646 | { | |
9647 | return getmntent (); | |
9648 | ; | |
9649 | return 0; | |
9650 | } | |
9651 | _ACEOF | |
9652 | for ac_lib in '' sun seq gen; do | |
9653 | if test -z "$ac_lib"; then | |
9654 | ac_res="none required" | |
9655 | else | |
9656 | ac_res=-l$ac_lib | |
9657 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9658 | fi | |
9659 | if ac_fn_c_try_link "$LINENO"; then : | |
9660 | ac_cv_search_getmntent=$ac_res | |
9661 | fi | |
9662 | rm -f core conftest.err conftest.$ac_objext \ | |
9663 | conftest$ac_exeext | |
9664 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9665 | break | |
9666 | fi | |
9667 | done | |
9668 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9669 | |
ad6254c5 | 9670 | else |
f11781c5 | 9671 | ac_cv_search_getmntent=no |
795ca3e5 | 9672 | fi |
f11781c5 AK |
9673 | rm conftest.$ac_ext |
9674 | LIBS=$ac_func_search_save_LIBS | |
9675 | fi | |
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9677 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9678 | ac_res=$ac_cv_search_getmntent | |
9679 | if test "$ac_res" != no; then : | |
9680 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9681 | ac_cv_func_getmntent=yes | |
9682 | ||
9683 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9684 | |
f11781c5 AK |
9685 | else |
9686 | ac_cv_func_getmntent=no | |
8106cdd5 | 9687 | fi |
f11781c5 AK |
9688 | |
9689 | ||
9690 | for ac_header in sys/select.h sys/socket.h | |
9691 | do : | |
9692 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9693 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9694 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9695 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9696 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9697 | _ACEOF |
795ca3e5 | 9698 | |
795ca3e5 AK |
9699 | fi |
9700 | ||
ad6254c5 | 9701 | done |
80992638 | 9702 | |
f11781c5 AK |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9704 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9705 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9706 | $as_echo_n "(cached) " >&6 |
83912faa | 9707 | else |
f11781c5 AK |
9708 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9709 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9710 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9712 | /* end confdefs.h. */ |
9713 | $ac_includes_default | |
f11781c5 AK |
9714 | #ifdef HAVE_SYS_SELECT_H |
9715 | # include <sys/select.h> | |
9716 | #endif | |
9717 | #ifdef HAVE_SYS_SOCKET_H | |
9718 | # include <sys/socket.h> | |
9719 | #endif | |
9720 | ||
9721 | int | |
9722 | main () | |
9723 | { | |
9724 | extern int select ($ac_arg1, | |
9725 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9726 | $ac_arg5); | |
9727 | ; | |
9728 | return 0; | |
9729 | } | |
ad6254c5 | 9730 | _ACEOF |
f11781c5 AK |
9731 | if ac_fn_c_try_compile "$LINENO"; then : |
9732 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9733 | fi | |
9734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9735 | done | |
9736 | done | |
9737 | done | |
9738 | # Provide a safe default value. | |
9739 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9740 | |
ad6254c5 | 9741 | fi |
f11781c5 AK |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9743 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9744 | ac_save_IFS=$IFS; IFS=',' | |
9745 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9746 | IFS=$ac_save_IFS | |
9747 | shift | |
7a197a62 | 9748 | |
f11781c5 AK |
9749 | cat >>confdefs.h <<_ACEOF |
9750 | #define SELECT_TYPE_ARG1 $1 | |
9751 | _ACEOF | |
ad6254c5 | 9752 | |
f11781c5 AK |
9753 | |
9754 | cat >>confdefs.h <<_ACEOF | |
9755 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9756 | _ACEOF |
f11781c5 AK |
9757 | |
9758 | ||
9759 | cat >>confdefs.h <<_ACEOF | |
9760 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9761 | _ACEOF |
ad6254c5 | 9762 | |
f11781c5 AK |
9763 | rm -f conftest* |
9764 | ||
ad6254c5 | 9765 | fi |
7a197a62 | 9766 | |
f11781c5 AK |
9767 | if test x$CLUSTER != xnone; then |
9768 | for ac_header in sys/socket.h sys/un.h | |
9769 | do : | |
9770 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9771 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9772 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9773 | cat >>confdefs.h <<_ACEOF | |
9774 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9775 | _ACEOF | |
ad6254c5 | 9776 | |
f11781c5 AK |
9777 | else |
9778 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9779 | fi | |
9780 | ||
9781 | done | |
9782 | ||
9783 | for ac_func in socket | |
9784 | do : | |
9785 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9786 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9787 | cat >>confdefs.h <<_ACEOF | |
9788 | #define HAVE_SOCKET 1 | |
9789 | _ACEOF | |
7a197a62 | 9790 | |
80992638 | 9791 | else |
f11781c5 | 9792 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9793 | fi |
f11781c5 | 9794 | done |
83912faa | 9795 | |
69792976 | 9796 | fi |
f11781c5 AK |
9797 | |
9798 | if test x$DMEVENTD = xyes; then | |
9799 | for ac_header in arpa/inet.h | |
9800 | do : | |
9801 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
9802 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 9803 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9804 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 9805 | _ACEOF |
69792976 | 9806 | |
69792976 | 9807 | else |
f11781c5 | 9808 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
9809 | fi |
9810 | ||
ad6254c5 | 9811 | done |
69792976 | 9812 | |
ad6254c5 AK |
9813 | fi |
9814 | ||
f11781c5 AK |
9815 | if test x$HAVE_LIBDL = xyes; then |
9816 | for ac_header in dlfcn.h | |
9817 | do : | |
9818 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
9819 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
9820 | cat >>confdefs.h <<_ACEOF | |
9821 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 9822 | _ACEOF |
a5f46f6a | 9823 | |
f11781c5 AK |
9824 | else |
9825 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
9826 | fi |
9827 | ||
f11781c5 | 9828 | done |
a5f46f6a | 9829 | |
a5f46f6a AK |
9830 | fi |
9831 | ||
f11781c5 AK |
9832 | if test x$INTL = xyes; then |
9833 | for ac_header in libintl.h | |
9834 | do : | |
9835 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
9836 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
9837 | cat >>confdefs.h <<_ACEOF | |
9838 | #define HAVE_LIBINTL_H 1 | |
9839 | _ACEOF | |
a5f46f6a | 9840 | |
a5f46f6a | 9841 | else |
f11781c5 | 9842 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 9843 | fi |
f11781c5 AK |
9844 | |
9845 | done | |
a5f46f6a AK |
9846 | |
9847 | fi | |
f11781c5 AK |
9848 | |
9849 | if test x$UDEV_SYNC = xyes; then | |
9850 | for ac_header in sys/ipc.h sys/sem.h | |
9851 | do : | |
9852 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9853 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9854 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
9855 | cat >>confdefs.h <<_ACEOF |
9856 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9857 | _ACEOF | |
9858 | ||
9859 | else | |
f11781c5 | 9860 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
9861 | fi |
9862 | ||
9863 | done | |
9864 | ||
9865 | fi | |
9866 | ||
a653923f AK |
9867 | ################################################################################ |
9868 | # Extract the first word of "modprobe", so it can be a program name with args. | |
9869 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 9871 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 9872 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 9873 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
9874 | else |
9875 | case $MODPROBE_CMD in | |
9876 | [\\/]* | ?:[\\/]*) | |
9877 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
9878 | ;; | |
9879 | *) | |
9880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9881 | for as_dir in $PATH | |
9882 | do | |
9883 | IFS=$as_save_IFS | |
9884 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 9885 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 9886 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 9887 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 9888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
9889 | break 2 |
9890 | fi | |
9891 | done | |
f11781c5 | 9892 | done |
7a197a62 | 9893 | IFS=$as_save_IFS |
72b2cb61 AK |
9894 | |
9895 | ;; | |
9896 | esac | |
9897 | fi | |
9898 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 9899 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 9901 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 9902 | else |
f11781c5 | 9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 9904 | $as_echo "no" >&6; } |
72b2cb61 AK |
9905 | fi |
9906 | ||
a653923f | 9907 | |
7a197a62 | 9908 | |
a653923f | 9909 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
9910 | |
9911 | cat >>confdefs.h <<_ACEOF | |
9912 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
9913 | _ACEOF | |
9914 | ||
a653923f AK |
9915 | fi |
9916 | ||
b5c2529b | 9917 | |
a9b601e2 ZK |
9918 | lvm_exec_prefix=$exec_prefix |
9919 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
9920 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 | 9921 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
a9b601e2 | 9922 | |
b5c2529b | 9923 | cat >>confdefs.h <<_ACEOF |
d2c11605 | 9924 | #define LVM_PATH "$LVM_PATH" |
b5c2529b ZK |
9925 | _ACEOF |
9926 | ||
9927 | ||
9928 | if test "$CLVMD" != none; then | |
9929 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 9930 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b ZK |
9931 | test "$prefix" != NONE && clvmd_prefix=$prefix |
9932 | ||
9933 | cat >>confdefs.h <<_ACEOF | |
d2c11605 | 9934 | #define CLVMD_PATH "$CLVMD_PATH" |
b5c2529b ZK |
9935 | _ACEOF |
9936 | ||
9937 | fi | |
9938 | ||
80992638 | 9939 | ################################################################################ |
93bd259b AK |
9940 | if test "$BUILD_DMEVENTD" = yes; then |
9941 | ||
9942 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 9943 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 9944 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 9945 | else |
71082be4 | 9946 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
9947 | fi |
9948 | ||
93bd259b | 9949 | |
71082be4 ZK |
9950 | cat >>confdefs.h <<_ACEOF |
9951 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
9952 | _ACEOF | |
93bd259b | 9953 | |
71082be4 | 9954 | fi |
93bd259b AK |
9955 | |
9956 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
9957 | |
9958 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 9959 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 9960 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 9961 | else |
71082be4 | 9962 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
9963 | fi |
9964 | ||
93bd259b | 9965 | |
71082be4 ZK |
9966 | cat >>confdefs.h <<_ACEOF |
9967 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
9968 | _ACEOF | |
3399ae32 | 9969 | |
71082be4 | 9970 | fi |
3399ae32 | 9971 | |
8bae0a1e AK |
9972 | |
9973 | ||
8bae0a1e | 9974 | # Check whether --with-default-run-dir was given. |
f11781c5 | 9975 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
9976 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
9977 | else | |
9978 | DEFAULT_RUN_DIR="/var/run/lvm" | |
9979 | fi | |
9980 | ||
9981 | cat >>confdefs.h <<_ACEOF | |
9982 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
9983 | _ACEOF | |
9984 | ||
9985 | ||
71082be4 | 9986 | ################################################################################ |
3399ae32 AK |
9987 | |
9988 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 9989 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 9990 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 9991 | else |
71082be4 | 9992 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
9993 | fi |
9994 | ||
71082be4 | 9995 | |
3399ae32 AK |
9996 | cat >>confdefs.h <<_ACEOF |
9997 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
9998 | _ACEOF | |
9999 | ||
10000 | ||
10001 | ||
3399ae32 | 10002 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10003 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10004 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10005 | else |
71082be4 | 10006 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10007 | fi |
10008 | ||
71082be4 | 10009 | |
3399ae32 AK |
10010 | cat >>confdefs.h <<_ACEOF |
10011 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10012 | _ACEOF | |
10013 | ||
10014 | ||
10015 | ||
3399ae32 | 10016 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10017 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10018 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10019 | else |
71082be4 | 10020 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10021 | fi |
10022 | ||
71082be4 | 10023 | |
3399ae32 AK |
10024 | cat >>confdefs.h <<_ACEOF |
10025 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10026 | _ACEOF | |
10027 | ||
10028 | ||
10029 | ||
3399ae32 | 10030 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10031 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10032 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10033 | else |
71082be4 | 10034 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10035 | fi |
10036 | ||
71082be4 | 10037 | |
3399ae32 AK |
10038 | cat >>confdefs.h <<_ACEOF |
10039 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10040 | _ACEOF | |
10041 | ||
10042 | ||
10043 | ||
3399ae32 | 10044 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10045 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10046 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10047 | else |
71082be4 | 10048 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10049 | fi |
10050 | ||
71082be4 | 10051 | |
3399ae32 AK |
10052 | cat >>confdefs.h <<_ACEOF |
10053 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10054 | _ACEOF | |
10055 | ||
10056 | ||
fea55602 DW |
10057 | ################################################################################ |
10058 | ||
10059 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10060 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10061 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10062 | else | |
10063 | DEFAULT_DATA_ALIGNMENT=1 | |
10064 | fi | |
10065 | ||
10066 | ||
10067 | cat >>confdefs.h <<_ACEOF | |
10068 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10069 | _ACEOF | |
10070 | ||
10071 | ||
93bd259b | 10072 | ################################################################################ |
f11781c5 | 10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10074 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10075 | |
10076 | # Check whether --with-interface was given. | |
f11781c5 | 10077 | if test "${with_interface+set}" = set; then : |
71082be4 | 10078 | withval=$with_interface; interface=$withval |
93bd259b | 10079 | else |
71082be4 | 10080 | interface=ioctl |
93bd259b AK |
10081 | fi |
10082 | ||
10083 | if [ "x$interface" != xioctl ]; | |
10084 | then | |
f11781c5 | 10085 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10086 | fi |
f11781c5 | 10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10088 | $as_echo "$interface" >&6; } |
93bd259b AK |
10089 | |
10090 | ################################################################################ | |
db8b5af9 | 10091 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10092 | |
10093 | cat >>confdefs.h <<_ACEOF | |
10094 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10095 | _ACEOF | |
10096 | ||
10097 | ||
db8b5af9 | 10098 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10099 | |
db8b5af9 | 10100 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10101 | |
db8b5af9 | 10102 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10103 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10104 | VER=`echo "$VER" | $AWK '{print $1}'` |
10105 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10106 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10107 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10108 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10109 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10110 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10111 | |
80992638 | 10112 | ################################################################################ |
fae0c576 | 10113 | |
83912faa | 10114 | |
795ca3e5 AK |
10115 | |
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
5a52dca9 | 10121 | |
8ef2b021 | 10122 | |
199e490e | 10123 | |
69792976 AK |
10124 | |
10125 | ||
10126 | ||
d0191583 | 10127 | |
69792976 | 10128 | |
8106cdd5 AK |
10129 | |
10130 | ||
10131 | ||
10132 | ||
10133 | ||
d68a82ec | 10134 | |
036f273a | 10135 | |
7d1552c9 | 10136 | |
8106cdd5 | 10137 | |
0a62c911 | 10138 | |
8106cdd5 | 10139 | |
4a7f3eb2 | 10140 | |
4922197a AK |
10141 | |
10142 | ||
d8ac0fbc | 10143 | |
1a9ea74d | 10144 | |
8a2fc586 AK |
10145 | |
10146 | ||
d0191583 | 10147 | |
93bd259b AK |
10148 | |
10149 | ||
10150 | ||
10151 | ||
10152 | ||
d0191583 JM |
10153 | |
10154 | ||
10155 | ||
10156 | ||
10157 | ||
8a2fc586 | 10158 | |
19a2c6e0 | 10159 | |
f7f0854e ZK |
10160 | |
10161 | ||
3ceb7608 | 10162 | |
8ce0cbda | 10163 | |
8b1a3214 | 10164 | |
ec6a6fbe AK |
10165 | |
10166 | ||
10167 | ||
10168 | ||
e2997b73 AK |
10169 | |
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
a946372e AK |
10175 | |
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
ec6a6fbe | 10186 | |
cac52ca4 | 10187 | |
d3c8211f | 10188 | |
7e3fe830 | 10189 | |
a5f46f6a AK |
10190 | |
10191 | ||
10192 | ||
572fefeb | 10193 | |
90c80887 | 10194 | |
3399ae32 AK |
10195 | |
10196 | ||
10197 | ||
10198 | ||
10199 | ||
90c80887 | 10200 | |
bf456146 | 10201 | |
e1b8a236 | 10202 | |
0878503f | 10203 | |
8fea97b7 | 10204 | |
54b362f9 | 10205 | |
b1f08e51 | 10206 | |
d1e8046f | 10207 | |
fea55602 | 10208 | |
c89bc357 | 10209 | |
6e5c1f75 | 10210 | |
3ba4a195 | 10211 | |
d2c11605 ZK |
10212 | |
10213 | ||
cdd50823 | 10214 | |
bf09a320 | 10215 | |
68f2de6d AK |
10216 | |
10217 | ||
80992638 | 10218 | ################################################################################ |
13dd3138 | 10219 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/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/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 libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10220 | |
ad6254c5 | 10221 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10222 | # This file is a shell script that caches the results of configure |
10223 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10224 | # scripts and configure runs, see configure's option --config-cache. |
10225 | # It is not useful on other systems. If it contains results you don't | |
10226 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10227 | # |
ad6254c5 AK |
10228 | # config.status only pays attention to the cache file if you give it |
10229 | # the --recheck option to rerun configure. | |
795ca3e5 | 10230 | # |
ad6254c5 AK |
10231 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10232 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10233 | # following values. | |
10234 | ||
10235 | _ACEOF | |
10236 | ||
795ca3e5 AK |
10237 | # The following way of writing the cache mishandles newlines in values, |
10238 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10239 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10240 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10241 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10242 | ( |
10243 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10244 | eval ac_val=\$$ac_var | |
10245 | case $ac_val in #( | |
10246 | *${as_nl}*) | |
10247 | case $ac_var in #( | |
f11781c5 | 10248 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10249 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10250 | esac |
10251 | case $ac_var in #( | |
10252 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10253 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10254 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10255 | esac ;; |
10256 | esac | |
10257 | done | |
10258 | ||
ad6254c5 | 10259 | (set) 2>&1 | |
7a197a62 AK |
10260 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10261 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10262 | # `set' does not quote correctly, so add quotes: double-quote |
10263 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10264 | sed -n \ |
8a2fc586 AK |
10265 | "s/'/'\\\\''/g; |
10266 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10267 | ;; #( |
ad6254c5 AK |
10268 | *) |
10269 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10270 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10271 | ;; |
7a197a62 AK |
10272 | esac | |
10273 | sort | |
10274 | ) | | |
ad6254c5 | 10275 | sed ' |
7a197a62 | 10276 | /^ac_cv_env_/b end |
ad6254c5 | 10277 | t clear |
7a197a62 | 10278 | :clear |
ad6254c5 AK |
10279 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10280 | t end | |
7a197a62 AK |
10281 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10282 | :end' >>confcache | |
10283 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10284 | if test -w "$cache_file"; then | |
10285 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10287 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10288 | cat confcache >$cache_file |
795ca3e5 | 10289 | else |
f11781c5 | 10290 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10291 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10292 | fi |
10293 | fi | |
10294 | rm -f confcache | |
10295 | ||
795ca3e5 AK |
10296 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10297 | # Let make expand exec_prefix. | |
10298 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10299 | ||
72b2cb61 | 10300 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10301 | |
10302 | ac_libobjs= | |
10303 | ac_ltlibobjs= | |
f11781c5 | 10304 | U= |
ad6254c5 AK |
10305 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10306 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10307 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10308 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10309 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10310 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10311 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10312 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10313 | done |
10314 | LIBOBJS=$ac_libobjs | |
80992638 | 10315 | |
ad6254c5 AK |
10316 | LTLIBOBJS=$ac_ltlibobjs |
10317 | ||
10318 | ||
10319 | ||
10320 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10321 | ac_write_fail=0 |
ad6254c5 AK |
10322 | ac_clean_files_save=$ac_clean_files |
10323 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10325 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10326 | as_write_fail=0 |
10327 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10328 | #! $SHELL |
10329 | # Generated by $as_me. | |
795ca3e5 | 10330 | # Run this file to recreate the current configuration. |
795ca3e5 | 10331 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10332 | # configure, is in config.log if it exists. |
10333 | ||
10334 | debug=false | |
10335 | ac_cs_recheck=false | |
10336 | ac_cs_silent=false | |
ad6254c5 | 10337 | |
f11781c5 AK |
10338 | SHELL=\${CONFIG_SHELL-$SHELL} |
10339 | export SHELL | |
10340 | _ASEOF | |
10341 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10342 | ## -------------------- ## | |
10343 | ## M4sh Initialization. ## | |
10344 | ## -------------------- ## | |
ad6254c5 | 10345 | |
25fbec5b AK |
10346 | # Be more Bourne compatible |
10347 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10348 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10349 | emulate sh |
10350 | NULLCMD=: | |
ec6a6fbe | 10351 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10352 | # is contrary to our usage. Disable this feature. |
10353 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10354 | setopt NO_GLOB_SUBST |
10355 | else | |
f11781c5 AK |
10356 | case `(set -o) 2>/dev/null` in #( |
10357 | *posix*) : | |
10358 | set -o posix ;; #( | |
10359 | *) : | |
10360 | ;; | |
25fbec5b | 10361 | esac |
7a197a62 | 10362 | fi |
25fbec5b AK |
10363 | |
10364 | ||
ec6a6fbe AK |
10365 | as_nl=' |
10366 | ' | |
10367 | export as_nl | |
10368 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10369 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10370 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10371 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10372 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10373 | # but without wasting forks for bash or zsh. | |
10374 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10375 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10376 | as_echo='print -r --' | |
10377 | as_echo_n='print -rn --' | |
10378 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10379 | as_echo='printf %s\n' |
10380 | as_echo_n='printf %s' | |
10381 | else | |
10382 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10383 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10384 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10385 | else |
ec6a6fbe AK |
10386 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10387 | as_echo_n_body='eval | |
10388 | arg=$1; | |
f11781c5 | 10389 | case $arg in #( |
ec6a6fbe AK |
10390 | *"$as_nl"*) |
10391 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10392 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10393 | esac; | |
10394 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10395 | ' | |
10396 | export as_echo_n_body | |
10397 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10398 | fi |
ec6a6fbe AK |
10399 | export as_echo_body |
10400 | as_echo='sh -c $as_echo_body as_echo' | |
10401 | fi | |
10402 | ||
10403 | # The user is always right. | |
10404 | if test "${PATH_SEPARATOR+set}" != set; then | |
10405 | PATH_SEPARATOR=: | |
10406 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10407 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10408 | PATH_SEPARATOR=';' | |
10409 | } | |
ad6254c5 AK |
10410 | fi |
10411 | ||
ad6254c5 | 10412 | |
7a197a62 AK |
10413 | # IFS |
10414 | # We need space, tab and new line, in precisely that order. Quoting is | |
10415 | # there to prevent editors from complaining about space-tab. | |
10416 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10417 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10418 | IFS=" "" $as_nl" |
10419 | ||
10420 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10421 | case $0 in #(( |
7a197a62 AK |
10422 | *[\\/]* ) as_myself=$0 ;; |
10423 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10424 | for as_dir in $PATH | |
10425 | do | |
10426 | IFS=$as_save_IFS | |
10427 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10428 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10429 | done | |
7a197a62 AK |
10430 | IFS=$as_save_IFS |
10431 | ||
10432 | ;; | |
10433 | esac | |
10434 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10435 | # in which case we are not to be found in the path. | |
10436 | if test "x$as_myself" = x; then | |
10437 | as_myself=$0 | |
10438 | fi | |
10439 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10440 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10441 | exit 1 |
7a197a62 AK |
10442 | fi |
10443 | ||
f11781c5 AK |
10444 | # Unset variables that we do not need and which cause bugs (e.g. in |
10445 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10446 | # suppresses any "Segmentation fault" message there. '((' could | |
10447 | # trigger a bug in pdksh 5.2.14. | |
10448 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10449 | do eval test x\${$as_var+set} = xset \ | |
10450 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10451 | done |
ad6254c5 AK |
10452 | PS1='$ ' |
10453 | PS2='> ' | |
10454 | PS4='+ ' | |
10455 | ||
10456 | # NLS nuisances. | |
ec6a6fbe AK |
10457 | LC_ALL=C |
10458 | export LC_ALL | |
10459 | LANGUAGE=C | |
10460 | export LANGUAGE | |
8106cdd5 | 10461 | |
f11781c5 AK |
10462 | # CDPATH. |
10463 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10464 | ||
10465 | ||
10466 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10467 | # ---------------------------------------- | |
10468 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10469 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10470 | # script with STATUS, using 1 if that was 0. | |
10471 | as_fn_error () | |
10472 | { | |
10473 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10474 | if test "$4"; then | |
10475 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10476 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10477 | fi | |
10478 | $as_echo "$as_me: error: $2" >&2 | |
10479 | as_fn_exit $as_status | |
10480 | } # as_fn_error | |
10481 | ||
10482 | ||
10483 | # as_fn_set_status STATUS | |
10484 | # ----------------------- | |
10485 | # Set $? to STATUS, without forking. | |
10486 | as_fn_set_status () | |
10487 | { | |
10488 | return $1 | |
10489 | } # as_fn_set_status | |
10490 | ||
10491 | # as_fn_exit STATUS | |
10492 | # ----------------- | |
10493 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10494 | as_fn_exit () | |
10495 | { | |
10496 | set +e | |
10497 | as_fn_set_status $1 | |
10498 | exit $1 | |
10499 | } # as_fn_exit | |
10500 | ||
10501 | # as_fn_unset VAR | |
10502 | # --------------- | |
10503 | # Portably unset VAR. | |
10504 | as_fn_unset () | |
10505 | { | |
10506 | { eval $1=; unset $1;} | |
10507 | } | |
10508 | as_unset=as_fn_unset | |
10509 | # as_fn_append VAR VALUE | |
10510 | # ---------------------- | |
10511 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10512 | # advantage of any shell optimizations that allow amortized linear growth over | |
10513 | # repeated appends, instead of the typical quadratic growth present in naive | |
10514 | # implementations. | |
10515 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10516 | eval 'as_fn_append () | |
10517 | { | |
10518 | eval $1+=\$2 | |
10519 | }' | |
10520 | else | |
10521 | as_fn_append () | |
10522 | { | |
10523 | eval $1=\$$1\$2 | |
10524 | } | |
10525 | fi # as_fn_append | |
10526 | ||
10527 | # as_fn_arith ARG... | |
10528 | # ------------------ | |
10529 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10530 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10531 | # must be portable across $(()) and expr. | |
10532 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10533 | eval 'as_fn_arith () | |
10534 | { | |
10535 | as_val=$(( $* )) | |
10536 | }' | |
10537 | else | |
10538 | as_fn_arith () | |
10539 | { | |
10540 | as_val=`expr "$@" || test $? -eq 1` | |
10541 | } | |
10542 | fi # as_fn_arith | |
10543 | ||
10544 | ||
7a197a62 AK |
10545 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10546 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10547 | as_expr=expr |
10548 | else | |
10549 | as_expr=false | |
10550 | fi | |
8106cdd5 | 10551 | |
7a197a62 | 10552 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10553 | as_basename=basename |
10554 | else | |
10555 | as_basename=false | |
10556 | fi | |
10557 | ||
f11781c5 AK |
10558 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10559 | as_dirname=dirname | |
10560 | else | |
10561 | as_dirname=false | |
10562 | fi | |
ad6254c5 | 10563 | |
7a197a62 | 10564 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10565 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10566 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10567 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10568 | $as_echo X/"$0" | |
7a197a62 AK |
10569 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10570 | s//\1/ | |
10571 | q | |
10572 | } | |
10573 | /^X\/\(\/\/\)$/{ | |
10574 | s//\1/ | |
10575 | q | |
10576 | } | |
10577 | /^X\/\(\/\).*/{ | |
10578 | s//\1/ | |
10579 | q | |
10580 | } | |
10581 | s/.*/./; q'` | |
ad6254c5 | 10582 | |
f11781c5 AK |
10583 | # Avoid depending upon Character Ranges. |
10584 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10585 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10586 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10587 | as_cr_digits='0123456789' | |
10588 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10589 | |
10590 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10591 | case `echo -n x` in #((((( |
7a197a62 | 10592 | -n*) |
f11781c5 | 10593 | case `echo 'xy\c'` in |
7a197a62 | 10594 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10595 | xy) ECHO_C='\c';; |
10596 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10597 | ECHO_T=' ';; | |
7a197a62 AK |
10598 | esac;; |
10599 | *) | |
10600 | ECHO_N='-n';; | |
ad6254c5 | 10601 | esac |
80992638 | 10602 | |
ad6254c5 | 10603 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10604 | if test -d conf$$.dir; then |
10605 | rm -f conf$$.dir/conf$$.file | |
10606 | else | |
10607 | rm -f conf$$.dir | |
ec6a6fbe AK |
10608 | mkdir conf$$.dir 2>/dev/null |
10609 | fi | |
10610 | if (echo >conf$$.file) 2>/dev/null; then | |
10611 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10612 | as_ln_s='ln -s' | |
10613 | # ... but there are two gotchas: | |
10614 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10615 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10616 | # In both cases, we have to default to `cp -p'. | |
10617 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10618 | as_ln_s='cp -p' | |
10619 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10620 | as_ln_s=ln | |
10621 | else | |
ad6254c5 | 10622 | as_ln_s='cp -p' |
ec6a6fbe | 10623 | fi |
ad6254c5 AK |
10624 | else |
10625 | as_ln_s='cp -p' | |
10626 | fi | |
7a197a62 AK |
10627 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10628 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10629 | |
f11781c5 AK |
10630 | |
10631 | # as_fn_mkdir_p | |
10632 | # ------------- | |
10633 | # Create "$as_dir" as a directory, including parents if necessary. | |
10634 | as_fn_mkdir_p () | |
10635 | { | |
10636 | ||
10637 | case $as_dir in #( | |
10638 | -*) as_dir=./$as_dir;; | |
10639 | esac | |
10640 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10641 | as_dirs= | |
10642 | while :; do | |
10643 | case $as_dir in #( | |
10644 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10645 | *) as_qdir=$as_dir;; | |
10646 | esac | |
10647 | as_dirs="'$as_qdir' $as_dirs" | |
10648 | as_dir=`$as_dirname -- "$as_dir" || | |
10649 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10650 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10651 | X"$as_dir" : 'X\(//\)$' \| \ | |
10652 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10653 | $as_echo X"$as_dir" | | |
10654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10655 | s//\1/ | |
10656 | q | |
10657 | } | |
10658 | /^X\(\/\/\)[^/].*/{ | |
10659 | s//\1/ | |
10660 | q | |
10661 | } | |
10662 | /^X\(\/\/\)$/{ | |
10663 | s//\1/ | |
10664 | q | |
10665 | } | |
10666 | /^X\(\/\).*/{ | |
10667 | s//\1/ | |
10668 | q | |
10669 | } | |
10670 | s/.*/./; q'` | |
10671 | test -d "$as_dir" && break | |
10672 | done | |
10673 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10674 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10675 | ||
10676 | ||
10677 | } # as_fn_mkdir_p | |
ad6254c5 | 10678 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10679 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10680 | else |
8a2fc586 | 10681 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10682 | as_mkdir_p=false |
10683 | fi | |
10684 | ||
25fbec5b AK |
10685 | if test -x / >/dev/null 2>&1; then |
10686 | as_test_x='test -x' | |
7a197a62 | 10687 | else |
25fbec5b AK |
10688 | if ls -dL / >/dev/null 2>&1; then |
10689 | as_ls_L_option=L | |
10690 | else | |
10691 | as_ls_L_option= | |
10692 | fi | |
10693 | as_test_x=' | |
10694 | eval sh -c '\'' | |
10695 | if test -d "$1"; then | |
ec6a6fbe | 10696 | test -d "$1/."; |
25fbec5b | 10697 | else |
f11781c5 | 10698 | case $1 in #( |
ec6a6fbe | 10699 | -*)set "./$1";; |
25fbec5b | 10700 | esac; |
f11781c5 | 10701 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10702 | ???[sx]*):;;*)false;;esac;fi |
10703 | '\'' sh | |
10704 | ' | |
7a197a62 | 10705 | fi |
25fbec5b | 10706 | as_executable_p=$as_test_x |
ad6254c5 AK |
10707 | |
10708 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10709 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10710 | |
10711 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10712 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10713 | |
10714 | ||
ad6254c5 | 10715 | exec 6>&1 |
f11781c5 AK |
10716 | ## ----------------------------------- ## |
10717 | ## Main body of $CONFIG_STATUS script. ## | |
10718 | ## ----------------------------------- ## | |
10719 | _ASEOF | |
10720 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10721 | |
f11781c5 AK |
10722 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10723 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10724 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10725 | # values after options handling. |
10726 | ac_log=" | |
ad6254c5 | 10727 | This file was extended by $as_me, which was |
f11781c5 | 10728 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10729 | |
10730 | CONFIG_FILES = $CONFIG_FILES | |
10731 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10732 | CONFIG_LINKS = $CONFIG_LINKS | |
10733 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10734 | $ $0 $@ | |
10735 | ||
7a197a62 AK |
10736 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10737 | " | |
10738 | ||
ad6254c5 AK |
10739 | _ACEOF |
10740 | ||
ec6a6fbe AK |
10741 | case $ac_config_files in *" |
10742 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10743 | esac | |
10744 | ||
10745 | case $ac_config_headers in *" | |
10746 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10747 | esac | |
10748 | ||
10749 | ||
10750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10751 | # Files that config.status was made for. |
68f2de6d AK |
10752 | config_files="$ac_config_files" |
10753 | config_headers="$ac_config_headers" | |
ad6254c5 | 10754 | |
7a197a62 | 10755 | _ACEOF |
ad6254c5 | 10756 | |
ec6a6fbe | 10757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10758 | ac_cs_usage="\ |
f11781c5 AK |
10759 | \`$as_me' instantiates files and other configuration actions |
10760 | from templates according to the current configuration. Unless the files | |
10761 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10762 | |
f11781c5 | 10763 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10764 | |
10765 | -h, --help print this help, then exit | |
25fbec5b | 10766 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10767 | --config print configuration, then exit |
ec6a6fbe AK |
10768 | -q, --quiet, --silent |
10769 | do not print progress messages | |
ad6254c5 AK |
10770 | -d, --debug don't remove temporary files |
10771 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10772 | --file=FILE[:TEMPLATE] |
10773 | instantiate the configuration file FILE | |
10774 | --header=FILE[:TEMPLATE] | |
10775 | instantiate the configuration header FILE | |
ad6254c5 AK |
10776 | |
10777 | Configuration files: | |
10778 | $config_files | |
10779 | ||
72b2cb61 AK |
10780 | Configuration headers: |
10781 | $config_headers | |
10782 | ||
f11781c5 | 10783 | Report bugs to the package provider." |
ad6254c5 | 10784 | |
7a197a62 | 10785 | _ACEOF |
ec6a6fbe | 10786 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10787 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10788 | ac_cs_version="\\ |
10789 | config.status | |
f11781c5 AK |
10790 | configured by $0, generated by GNU Autoconf 2.66, |
10791 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10792 | |
f11781c5 | 10793 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
10794 | This config.status script is free software; the Free Software Foundation |
10795 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
10796 | |
10797 | ac_pwd='$ac_pwd' | |
10798 | srcdir='$srcdir' | |
10799 | INSTALL='$INSTALL' | |
fddafd51 | 10800 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
10801 | AWK='$AWK' |
10802 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
10803 | _ACEOF |
10804 | ||
ec6a6fbe AK |
10805 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10806 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
10807 | ac_need_defaults=: |
10808 | while test $# != 0 | |
10809 | do | |
10810 | case $1 in | |
10811 | --*=*) | |
7a197a62 AK |
10812 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10813 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
10814 | ac_shift=: |
10815 | ;; | |
7a197a62 | 10816 | *) |
ad6254c5 AK |
10817 | ac_option=$1 |
10818 | ac_optarg=$2 | |
10819 | ac_shift=shift | |
10820 | ;; | |
ad6254c5 AK |
10821 | esac |
10822 | ||
10823 | case $ac_option in | |
10824 | # Handling of the options. | |
ad6254c5 AK |
10825 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10826 | ac_cs_recheck=: ;; | |
7a197a62 | 10827 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 10828 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
10829 | --config | --confi | --conf | --con | --co | --c ) |
10830 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 10831 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
10832 | debug=: ;; |
10833 | --file | --fil | --fi | --f ) | |
10834 | $ac_shift | |
ec6a6fbe AK |
10835 | case $ac_optarg in |
10836 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10837 | esac | |
f11781c5 | 10838 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
10839 | ac_need_defaults=false;; |
10840 | --header | --heade | --head | --hea ) | |
10841 | $ac_shift | |
ec6a6fbe AK |
10842 | case $ac_optarg in |
10843 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10844 | esac | |
f11781c5 | 10845 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 10846 | ac_need_defaults=false;; |
7a197a62 AK |
10847 | --he | --h) |
10848 | # Conflict between --help and --header | |
f11781c5 AK |
10849 | as_fn_error $? "ambiguous option: \`$1' |
10850 | Try \`$0 --help' for more information.";; | |
7a197a62 | 10851 | --help | --hel | -h ) |
ec6a6fbe | 10852 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
10853 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10854 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10855 | ac_cs_silent=: ;; | |
10856 | ||
10857 | # This is an error. | |
f11781c5 AK |
10858 | -*) as_fn_error $? "unrecognized option: \`$1' |
10859 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 10860 | |
f11781c5 | 10861 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 10862 | ac_need_defaults=false ;; |
ad6254c5 AK |
10863 | |
10864 | esac | |
10865 | shift | |
10866 | done | |
10867 | ||
10868 | ac_configure_extra_args= | |
10869 | ||
10870 | if $ac_cs_silent; then | |
10871 | exec 6>/dev/null | |
10872 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10873 | fi | |
10874 | ||
10875 | _ACEOF | |
ec6a6fbe | 10876 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 10877 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
10878 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10879 | shift | |
10880 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10881 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 10882 | export CONFIG_SHELL |
ec6a6fbe | 10883 | exec "\$@" |
ad6254c5 AK |
10884 | fi |
10885 | ||
10886 | _ACEOF | |
ec6a6fbe | 10887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10888 | exec 5>>config.log |
10889 | { | |
10890 | echo | |
10891 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10892 | ## Running $as_me. ## | |
10893 | _ASBOX | |
ec6a6fbe | 10894 | $as_echo "$ac_log" |
7a197a62 | 10895 | } >&5 |
ad6254c5 | 10896 | |
7a197a62 | 10897 | _ACEOF |
ec6a6fbe | 10898 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 10899 | _ACEOF |
ad6254c5 | 10900 | |
ec6a6fbe | 10901 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10902 | |
10903 | # Handling of arguments. | |
ad6254c5 AK |
10904 | for ac_config_target in $ac_config_targets |
10905 | do | |
7a197a62 AK |
10906 | case $ac_config_target in |
10907 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
10908 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10909 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
10910 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
10911 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 10912 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
13dd3138 | 10913 | "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;; |
93bd259b AK |
10914 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
10915 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 10916 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 10917 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 10918 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
10919 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
10920 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
cdd50823 | 10921 | "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;; |
7a197a62 | 10922 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 10923 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 10924 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
10925 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
10926 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
10927 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
10928 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
10929 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
10930 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 10931 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 10932 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
40dbaac8 | 10933 | "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;; |
7a197a62 | 10934 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
3ba4a195 | 10935 | "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;; |
93bd259b AK |
10936 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
10937 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 10938 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 10939 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
10940 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
10941 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 10942 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 10943 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 10944 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
10945 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
10946 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
7a197a62 | 10947 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 10948 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 10949 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 10950 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 10951 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
10952 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
10953 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 10954 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 10955 | |
f11781c5 | 10956 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 10957 | esac |
ad6254c5 AK |
10958 | done |
10959 | ||
7a197a62 | 10960 | |
ad6254c5 AK |
10961 | # If the user did not use the arguments to specify the items to instantiate, |
10962 | # then the envvar interface is used. Set only those that are not. | |
10963 | # We use the long form for the default assignment because of an extremely | |
10964 | # bizarre bug on SunOS 4.1.3. | |
10965 | if $ac_need_defaults; then | |
10966 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 10967 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
10968 | fi |
10969 | ||
10970 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 10971 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 10972 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
10973 | # Hook for its removal unless debugging. |
10974 | # Note that there is a small window in which the directory will not be cleaned: | |
10975 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
10976 | $debug || |
10977 | { | |
7a197a62 AK |
10978 | tmp= |
10979 | trap 'exit_status=$? | |
10980 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
10981 | ' 0 | |
f11781c5 | 10982 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 10983 | } |
ad6254c5 AK |
10984 | # Create a (secure) tmp directory for tmp files. |
10985 | ||
10986 | { | |
7a197a62 | 10987 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
10988 | test -n "$tmp" && test -d "$tmp" |
10989 | } || | |
10990 | { | |
7a197a62 AK |
10991 | tmp=./conf$$-$RANDOM |
10992 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 10993 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 10994 | |
ec6a6fbe AK |
10995 | # Set up the scripts for CONFIG_FILES section. |
10996 | # No need to generate them if there are no CONFIG_FILES. | |
10997 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 10998 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 10999 | |
68f2de6d | 11000 | |
f11781c5 AK |
11001 | ac_cr=`echo X | tr X '\015'` |
11002 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11003 | # But we know of no other shell where ac_cr would be empty at this | |
11004 | # point, so we can use a bashism as a fallback. | |
11005 | if test "x$ac_cr" = x; then | |
11006 | eval ac_cr=\$\'\\r\' | |
11007 | fi | |
ec6a6fbe AK |
11008 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11009 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11010 | ac_cs_awk_cr='\\r' | |
11011 | else | |
11012 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11013 | fi |
7a197a62 | 11014 | |
ec6a6fbe | 11015 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11016 | _ACEOF |
7a197a62 | 11017 | |
8106cdd5 | 11018 | |
ec6a6fbe AK |
11019 | { |
11020 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11021 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11022 | echo "_ACEOF" | |
11023 | } >conf$$subs.sh || | |
f11781c5 AK |
11024 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11025 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11026 | ac_delim='%!_!# ' |
11027 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11028 | . ./conf$$subs.sh || |
f11781c5 | 11029 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11030 | |
11031 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11032 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11033 | break |
11034 | elif $ac_last_try; then | |
f11781c5 | 11035 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11036 | else |
11037 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11038 | fi | |
11039 | done | |
ec6a6fbe AK |
11040 | rm -f conf$$subs.sh |
11041 | ||
11042 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11043 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11044 | _ACEOF | |
11045 | sed -n ' | |
11046 | h | |
11047 | s/^/S["/; s/!.*/"]=/ | |
11048 | p | |
11049 | g | |
11050 | s/^[^!]*!// | |
11051 | :repl | |
11052 | t repl | |
11053 | s/'"$ac_delim"'$// | |
11054 | t delim | |
11055 | :nl | |
11056 | h | |
f11781c5 | 11057 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11058 | t more1 |
11059 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11060 | p | |
11061 | n | |
11062 | b repl | |
11063 | :more1 | |
11064 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11065 | p | |
11066 | g | |
11067 | s/.\{148\}// | |
11068 | t nl | |
11069 | :delim | |
11070 | h | |
f11781c5 | 11071 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11072 | t more2 |
11073 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11074 | p | |
11075 | b | |
11076 | :more2 | |
11077 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11078 | p | |
11079 | g | |
11080 | s/.\{148\}// | |
11081 | t delim | |
11082 | ' <conf$$subs.awk | sed ' | |
11083 | /^[^""]/{ | |
11084 | N | |
11085 | s/\n// | |
11086 | } | |
11087 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11088 | rm -f conf$$subs.awk | |
11089 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11090 | _ACAWK | |
11091 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11092 | for (key in S) S_is_set[key] = 1 | |
11093 | FS = "\a" | |
7a197a62 | 11094 | |
ec6a6fbe AK |
11095 | } |
11096 | { | |
11097 | line = $ 0 | |
11098 | nfields = split(line, field, "@") | |
11099 | substed = 0 | |
11100 | len = length(field[1]) | |
11101 | for (i = 2; i < nfields; i++) { | |
11102 | key = field[i] | |
11103 | keylen = length(key) | |
11104 | if (S_is_set[key]) { | |
11105 | value = S[key] | |
11106 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11107 | len += length(value) + length(field[++i]) | |
11108 | substed = 1 | |
11109 | } else | |
11110 | len += 1 + keylen | |
11111 | } | |
11112 | ||
11113 | print line | |
11114 | } | |
fddafd51 | 11115 | |
ec6a6fbe | 11116 | _ACAWK |
1995c9ff | 11117 | _ACEOF |
ec6a6fbe AK |
11118 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11119 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11120 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11121 | else | |
11122 | cat | |
11123 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11124 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11125 | _ACEOF |
11126 | ||
f11781c5 AK |
11127 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11128 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11129 | # trailing colons and then remove the whole line if VPATH becomes empty |
11130 | # (actually we leave an empty line to preserve line numbers). | |
11131 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11132 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11133 | h | |
11134 | s/// | |
11135 | s/^/:/ | |
11136 | s/[ ]*$/:/ | |
11137 | s/:\$(srcdir):/:/g | |
11138 | s/:\${srcdir}:/:/g | |
11139 | s/:@srcdir@:/:/g | |
11140 | s/^:*// | |
7a197a62 | 11141 | s/:*$// |
f11781c5 AK |
11142 | x |
11143 | s/\(=[ ]*\).*/\1/ | |
11144 | G | |
11145 | s/\n// | |
7a197a62 AK |
11146 | s/^[^=]*=[ ]*$// |
11147 | }' | |
11148 | fi | |
11149 | ||
ec6a6fbe | 11150 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11151 | fi # test -n "$CONFIG_FILES" |
11152 | ||
ec6a6fbe AK |
11153 | # Set up the scripts for CONFIG_HEADERS section. |
11154 | # No need to generate them if there are no CONFIG_HEADERS. | |
11155 | # This happens for instance with `./config.status Makefile'. | |
11156 | if test -n "$CONFIG_HEADERS"; then | |
11157 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11158 | BEGIN { | |
11159 | _ACEOF | |
11160 | ||
11161 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11162 | # here-document in config.status, that substitutes the proper values into | |
11163 | # config.h.in to produce config.h. | |
11164 | ||
11165 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11166 | # handling of long lines. | |
11167 | ac_delim='%!_!# ' | |
11168 | for ac_last_try in false false :; do | |
11169 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11170 | if test -z "$ac_t"; then | |
11171 | break | |
11172 | elif $ac_last_try; then | |
f11781c5 | 11173 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11174 | else |
11175 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11176 | fi | |
11177 | done | |
11178 | ||
11179 | # For the awk script, D is an array of macro values keyed by name, | |
11180 | # likewise P contains macro parameters if any. Preserve backslash | |
11181 | # newline sequences. | |
11182 | ||
11183 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11184 | sed -n ' | |
11185 | s/.\{148\}/&'"$ac_delim"'/g | |
11186 | t rset | |
11187 | :rset | |
11188 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11189 | t def | |
11190 | d | |
11191 | :def | |
11192 | s/\\$// | |
11193 | t bsnl | |
11194 | s/["\\]/\\&/g | |
11195 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11196 | D["\1"]=" \3"/p | |
11197 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11198 | d | |
11199 | :bsnl | |
11200 | s/["\\]/\\&/g | |
11201 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11202 | D["\1"]=" \3\\\\\\n"\\/p | |
11203 | t cont | |
11204 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11205 | t cont | |
11206 | d | |
11207 | :cont | |
11208 | n | |
11209 | s/.\{148\}/&'"$ac_delim"'/g | |
11210 | t clear | |
11211 | :clear | |
11212 | s/\\$// | |
11213 | t bsnlc | |
11214 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11215 | d | |
11216 | :bsnlc | |
11217 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11218 | b cont | |
11219 | ' <confdefs.h | sed ' | |
11220 | s/'"$ac_delim"'/"\\\ | |
11221 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11222 | ||
11223 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11224 | for (key in D) D_is_set[key] = 1 | |
11225 | FS = "\a" | |
11226 | } | |
11227 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11228 | line = \$ 0 | |
11229 | split(line, arg, " ") | |
11230 | if (arg[1] == "#") { | |
11231 | defundef = arg[2] | |
11232 | mac1 = arg[3] | |
11233 | } else { | |
11234 | defundef = substr(arg[1], 2) | |
11235 | mac1 = arg[2] | |
11236 | } | |
11237 | split(mac1, mac2, "(") #) | |
11238 | macro = mac2[1] | |
11239 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11240 | if (D_is_set[macro]) { | |
11241 | # Preserve the white space surrounding the "#". | |
11242 | print prefix "define", macro P[macro] D[macro] | |
11243 | next | |
11244 | } else { | |
11245 | # Replace #undef with comments. This is necessary, for example, | |
11246 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11247 | # on some systems where configure will not decide to define it. | |
11248 | if (defundef == "undef") { | |
11249 | print "/*", prefix defundef, macro, "*/" | |
11250 | next | |
11251 | } | |
11252 | } | |
11253 | } | |
11254 | { print } | |
11255 | _ACAWK | |
11256 | _ACEOF | |
11257 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11258 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11259 | fi # test -n "$CONFIG_HEADERS" |
11260 | ||
7a197a62 | 11261 | |
ec6a6fbe AK |
11262 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11263 | shift | |
11264 | for ac_tag | |
7a197a62 AK |
11265 | do |
11266 | case $ac_tag in | |
11267 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11268 | esac | |
11269 | case $ac_mode$ac_tag in | |
11270 | :[FHL]*:*);; | |
f11781c5 | 11271 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11272 | :[FH]-) ac_tag=-:-;; |
11273 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11274 | esac | |
11275 | ac_save_IFS=$IFS | |
11276 | IFS=: | |
11277 | set x $ac_tag | |
11278 | IFS=$ac_save_IFS | |
11279 | shift | |
11280 | ac_file=$1 | |
11281 | shift | |
11282 | ||
11283 | case $ac_mode in | |
11284 | :L) ac_source=$1;; | |
11285 | :[FH]) | |
11286 | ac_file_inputs= | |
11287 | for ac_f | |
11288 | do | |
11289 | case $ac_f in | |
11290 | -) ac_f="$tmp/stdin";; | |
11291 | *) # Look for the file first in the build tree, then in the source tree | |
11292 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11293 | # because $ac_f cannot contain `:'. | |
11294 | test -f "$ac_f" || | |
11295 | case $ac_f in | |
11296 | [\\/$]*) false;; | |
11297 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11298 | esac || | |
f11781c5 | 11299 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11300 | esac |
ec6a6fbe | 11301 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11302 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11303 | done |
11304 | ||
11305 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11306 | # use $as_me), people would be surprised to read: | |
11307 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11308 | configure_input='Generated from '` |
11309 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11310 | `' by configure.' | |
7a197a62 AK |
11311 | if test x"$ac_file" != x-; then |
11312 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11313 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11314 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11315 | fi |
ec6a6fbe AK |
11316 | # Neutralize special characters interpreted by sed in replacement strings. |
11317 | case $configure_input in #( | |
11318 | *\&* | *\|* | *\\* ) | |
11319 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11320 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11321 | *) ac_sed_conf_input=$configure_input;; | |
11322 | esac | |
7a197a62 AK |
11323 | |
11324 | case $ac_tag in | |
ec6a6fbe | 11325 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11326 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11327 | esac |
11328 | ;; | |
80992638 | 11329 | esac |
8106cdd5 | 11330 | |
7a197a62 | 11331 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11332 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11333 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11334 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11335 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11336 | $as_echo X"$ac_file" | |
7a197a62 AK |
11337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11338 | s//\1/ | |
11339 | q | |
11340 | } | |
11341 | /^X\(\/\/\)[^/].*/{ | |
11342 | s//\1/ | |
11343 | q | |
11344 | } | |
11345 | /^X\(\/\/\)$/{ | |
11346 | s//\1/ | |
11347 | q | |
11348 | } | |
11349 | /^X\(\/\).*/{ | |
11350 | s//\1/ | |
11351 | q | |
11352 | } | |
11353 | s/.*/./; q'` | |
f11781c5 | 11354 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11355 | ac_builddir=. |
11356 | ||
7a197a62 AK |
11357 | case "$ac_dir" in |
11358 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11359 | *) | |
ec6a6fbe | 11360 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11361 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11362 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11363 | case $ac_top_builddir_sub in |
11364 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11365 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11366 | esac ;; | |
11367 | esac | |
11368 | ac_abs_top_builddir=$ac_pwd | |
11369 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11370 | # for backward compatibility: | |
11371 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11372 | |
11373 | case $srcdir in | |
7a197a62 | 11374 | .) # We are building in place. |
ad6254c5 | 11375 | ac_srcdir=. |
7a197a62 AK |
11376 | ac_top_srcdir=$ac_top_builddir_sub |
11377 | ac_abs_top_srcdir=$ac_pwd ;; | |
11378 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11379 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11380 | ac_top_srcdir=$srcdir |
11381 | ac_abs_top_srcdir=$srcdir ;; | |
11382 | *) # Relative name. | |
11383 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11384 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11385 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11386 | esac |
7a197a62 | 11387 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11388 | |
ad6254c5 | 11389 | |
7a197a62 AK |
11390 | case $ac_mode in |
11391 | :F) | |
11392 | # | |
11393 | # CONFIG_FILE | |
11394 | # | |
ad6254c5 AK |
11395 | |
11396 | case $INSTALL in | |
11397 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11398 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11399 | esac |
fddafd51 ZK |
11400 | ac_MKDIR_P=$MKDIR_P |
11401 | case $MKDIR_P in | |
11402 | [\\/$]* | ?:[\\/]* ) ;; | |
11403 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11404 | esac | |
7a197a62 | 11405 | _ACEOF |
795ca3e5 | 11406 | |
ec6a6fbe | 11407 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11408 | # If the template does not know about datarootdir, expand it. |
11409 | # FIXME: This hack should be removed a few years after 2.60. | |
11410 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11411 | ac_sed_dataroot=' |
11412 | /datarootdir/ { | |
7a197a62 AK |
11413 | p |
11414 | q | |
11415 | } | |
11416 | /@datadir@/p | |
11417 | /@docdir@/p | |
11418 | /@infodir@/p | |
11419 | /@localedir@/p | |
f11781c5 | 11420 | /@mandir@/p' |
ec6a6fbe | 11421 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11422 | *datarootdir*) ac_datarootdir_seen=yes;; |
11423 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11425 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11426 | _ACEOF |
ec6a6fbe | 11427 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11428 | ac_datarootdir_hack=' |
11429 | s&@datadir@&$datadir&g | |
11430 | s&@docdir@&$docdir&g | |
11431 | s&@infodir@&$infodir&g | |
11432 | s&@localedir@&$localedir&g | |
11433 | s&@mandir@&$mandir&g | |
f11781c5 | 11434 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11435 | esac |
11436 | _ACEOF | |
11437 | ||
11438 | # Neutralize VPATH when `$srcdir' = `.'. | |
11439 | # Shell code in configure.ac might set extrasub. | |
11440 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11441 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11442 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11443 | $extrasub |
11444 | _ACEOF | |
ec6a6fbe | 11445 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11446 | :t |
11447 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11448 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11449 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11450 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11451 | s&@srcdir@&$ac_srcdir&;t t |
11452 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11453 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11454 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11455 | s&@builddir@&$ac_builddir&;t t | |
11456 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11457 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11458 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11459 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11460 | $ac_datarootdir_hack |
ec6a6fbe AK |
11461 | " |
11462 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11463 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11464 | |
11465 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11466 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11467 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11469 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11470 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11471 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11472 | |
11473 | rm -f "$tmp/stdin" | |
72b2cb61 | 11474 | case $ac_file in |
ec6a6fbe AK |
11475 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11476 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11477 | esac \ | |
f11781c5 | 11478 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11479 | ;; |
11480 | :H) | |
11481 | # | |
11482 | # CONFIG_HEADER | |
11483 | # | |
72b2cb61 | 11484 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11485 | { |
11486 | $as_echo "/* $configure_input */" \ | |
11487 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11488 | } >"$tmp/config.h" \ | |
f11781c5 | 11489 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11490 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11492 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11493 | else |
ec6a6fbe AK |
11494 | rm -f "$ac_file" |
11495 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11496 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11497 | fi |
11498 | else | |
ec6a6fbe AK |
11499 | $as_echo "/* $configure_input */" \ |
11500 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11501 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11502 | fi |
7a197a62 AK |
11503 | ;; |
11504 | ||
11505 | ||
11506 | esac | |
11507 | ||
11508 | done # for ac_tag | |
795ca3e5 | 11509 | |
795ca3e5 | 11510 | |
f11781c5 | 11511 | as_fn_exit 0 |
ad6254c5 | 11512 | _ACEOF |
ad6254c5 AK |
11513 | ac_clean_files=$ac_clean_files_save |
11514 | ||
ec6a6fbe | 11515 | test $ac_write_fail = 0 || |
f11781c5 | 11516 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11517 | |
ad6254c5 AK |
11518 | |
11519 | # configure is writing to config.log, and then calls config.status. | |
11520 | # config.status does its own redirection, appending to config.log. | |
11521 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11522 | # by configure, so config.status won't be able to write to it; its | |
11523 | # output is simply discarded. So we exec the FD to /dev/null, | |
11524 | # effectively closing config.log, so it can be properly (re)opened and | |
11525 | # appended to by config.status. When coming back to configure, we | |
11526 | # need to make the FD available again. | |
11527 | if test "$no_create" != yes; then | |
11528 | ac_cs_success=: | |
11529 | ac_config_status_args= | |
11530 | test "$silent" = yes && | |
11531 | ac_config_status_args="$ac_config_status_args --quiet" | |
11532 | exec 5>/dev/null | |
11533 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11534 | exec 5>>config.log | |
11535 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11536 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11537 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11538 | fi |
ec6a6fbe | 11539 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11541 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11542 | fi | |
795ca3e5 | 11543 | |
2dc95e1c AK |
11544 | |
11545 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11547 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11548 | fi |