]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f11781c5 AK |
3 | # Generated by GNU Autoconf 2.66. |
4 | # | |
795ca3e5 | 5 | # |
7a197a62 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
f11781c5 AK |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
795ca3e5 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
ad6254c5 | 16 | |
25fbec5b AK |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
20 | emulate sh |
21 | NULLCMD=: | |
ec6a6fbe | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
25 | setopt NO_GLOB_SUBST |
26 | else | |
f11781c5 AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
25fbec5b | 32 | esac |
7a197a62 | 33 | fi |
25fbec5b AK |
34 | |
35 | ||
ec6a6fbe AK |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 56 | else |
ec6a6fbe AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
f11781c5 | 60 | case $arg in #( |
ec6a6fbe AK |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 69 | fi |
ec6a6fbe AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
ad6254c5 AK |
81 | fi |
82 | ||
ad6254c5 | 83 | |
7a197a62 AK |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 92 | case $0 in #(( |
7a197a62 AK |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7a197a62 AK |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 112 | exit 1 |
7a197a62 AK |
113 | fi |
114 | ||
f11781c5 AK |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 122 | done |
ad6254c5 AK |
123 | PS1='$ ' |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
ec6a6fbe AK |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
ad6254c5 | 132 | |
f11781c5 AK |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 | $0: including any error possibly output before this | |
233 | $0: message. Then install a modern shell, or manually run | |
234 | $0: the script under such a shell if you do have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 | # ---------------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with STATUS, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 | if test "$4"; then | |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 | fi | |
371 | $as_echo "$as_me: error: $2" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
7a197a62 AK |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
377 | as_expr=expr |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
7a197a62 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
383 | as_basename=basename |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
f11781c5 AK |
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
ad6254c5 | 393 | |
7a197a62 | 394 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 398 | $as_echo X/"$0" | |
7a197a62 AK |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
ad6254c5 | 412 | |
f11781c5 AK |
413 | # Avoid depending upon Character Ranges. |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 419 | |
ad6254c5 | 420 | |
f11781c5 AK |
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ad6254c5 | 443 | |
f11781c5 AK |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
7a197a62 | 450 | } |
ad6254c5 | 451 | |
f11781c5 AK |
452 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
ad6254c5 | 464 | |
f11781c5 AK |
465 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 471 | fi |
f11781c5 AK |
472 | if (echo >conf$$.file) 2>/dev/null; then |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
7a197a62 | 486 | else |
f11781c5 | 487 | as_ln_s='cp -p' |
7a197a62 | 488 | fi |
f11781c5 AK |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 491 | |
f11781c5 AK |
492 | if mkdir -p . 2>/dev/null; then |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
7a197a62 AK |
497 | fi |
498 | ||
f11781c5 AK |
499 | if test -x / >/dev/null 2>&1; then |
500 | as_test_x='test -x' | |
7a197a62 | 501 | else |
f11781c5 AK |
502 | if ls -dL / >/dev/null 2>&1; then |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
7a197a62 | 519 | fi |
f11781c5 | 520 | as_executable_p=$as_test_x |
7a197a62 | 521 | |
f11781c5 AK |
522 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 | 524 | |
f11781c5 AK |
525 | # Sed expression to map a string onto a valid variable name. |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 AK |
527 | |
528 | ||
f11781c5 AK |
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
530 | exec 6>&1 | |
ad6254c5 AK |
531 | |
532 | # Name of the host. | |
f11781c5 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
534 | # so uname gets run too. |
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
536 | ||
ad6254c5 AK |
537 | # |
538 | # Initializations. | |
539 | # | |
795ca3e5 | 540 | ac_default_prefix=/usr/local |
7a197a62 | 541 | ac_clean_files= |
ad6254c5 | 542 | ac_config_libobj_dir=. |
7a197a62 | 543 | LIBOBJS= |
ad6254c5 AK |
544 | cross_compiling=no |
545 | subdirs= | |
546 | MFLAGS= | |
547 | MAKEFLAGS= | |
ad6254c5 | 548 | |
ad6254c5 AK |
549 | # Identity of this package. |
550 | PACKAGE_NAME= | |
551 | PACKAGE_TARNAME= | |
552 | PACKAGE_VERSION= | |
553 | PACKAGE_STRING= | |
554 | PACKAGE_BUGREPORT= | |
f11781c5 | 555 | PACKAGE_URL= |
ad6254c5 AK |
556 | |
557 | ac_unique_file="lib/device/dev-cache.h" | |
558 | # Factoring default headers for most tests. | |
559 | ac_includes_default="\ | |
560 | #include <stdio.h> | |
25fbec5b | 561 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
562 | # include <sys/types.h> |
563 | #endif | |
25fbec5b | 564 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
565 | # include <sys/stat.h> |
566 | #endif | |
25fbec5b | 567 | #ifdef STDC_HEADERS |
ad6254c5 AK |
568 | # include <stdlib.h> |
569 | # include <stddef.h> | |
570 | #else | |
25fbec5b | 571 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
572 | # include <stdlib.h> |
573 | # endif | |
574 | #endif | |
25fbec5b AK |
575 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
577 | # include <memory.h> |
578 | # endif | |
579 | # include <string.h> | |
580 | #endif | |
25fbec5b | 581 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
582 | # include <strings.h> |
583 | #endif | |
25fbec5b | 584 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 585 | # include <inttypes.h> |
ad6254c5 | 586 | #endif |
25fbec5b | 587 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
588 | # include <stdint.h> |
589 | #endif | |
25fbec5b | 590 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
591 | # include <unistd.h> |
592 | #endif" | |
593 | ||
f11781c5 | 594 | ac_header_list= |
795ca3e5 | 595 | ac_default_prefix=/usr |
ec6a6fbe | 596 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 597 | usrsbindir |
ec6a6fbe | 598 | usrlibdir |
4417a8bd | 599 | tmpfilesdir |
e587cb6a | 600 | systemdsystemunitdir |
a5f46f6a AK |
601 | udevdir |
602 | udev_prefix | |
ec6a6fbe AK |
603 | tmpdir |
604 | kernelvsn | |
605 | missingkernel | |
606 | kerneldir | |
607 | interface | |
6e5c1f75 | 608 | DMEVENTD_PIDFILE |
23b059e7 | 609 | WRITE_INSTALL |
b559a1e6 | 610 | UDEV_HAS_BUILTIN_BLKID |
0878503f | 611 | UDEV_SYNC |
a5f46f6a | 612 | UDEV_RULES |
f7f0854e | 613 | UDEV_PC |
3ba4a195 | 614 | THIN |
54b362f9 | 615 | TESTING |
ec6a6fbe AK |
616 | STATIC_LINK |
617 | STATICDIR | |
618 | SNAPSHOTS | |
f7f0854e | 619 | SELINUX_PC |
e1b8a236 | 620 | SELINUX_LIBS |
cac52ca4 | 621 | REPLICATORS |
539f4a77 | 622 | READLINE_LIBS |
cac52ca4 | 623 | RAID |
f30875db | 624 | PTHREAD_LIBS |
ec6a6fbe AK |
625 | POOL |
626 | PKGCONFIG | |
606d0858 | 627 | OCFDIR |
37ddf259 | 628 | OCF |
ec6a6fbe AK |
629 | MIRRORS |
630 | LVM_RELEASE_DATE | |
631 | LVM_RELEASE | |
d2c11605 | 632 | LVM_PATH |
ec6a6fbe AK |
633 | LVM_PATCHLEVEL |
634 | LVM_MINOR | |
635 | LVM_MAJOR | |
bf456146 | 636 | LVM_LIBAPI |
ec6a6fbe | 637 | LVM_VERSION |
ec6a6fbe AK |
638 | LVM1_FALLBACK |
639 | LVM1 | |
640 | LOCALEDIR | |
641 | LIB_SUFFIX | |
642 | LDDEPS | |
643 | JOBS | |
644 | INTL_PACKAGE | |
645 | INTL | |
ec6a6fbe AK |
646 | HAVE_REALTIME |
647 | HAVE_LIBDL | |
ec6a6fbe | 648 | FSADM |
bf09a320 | 649 | ELDFLAGS |
ec6a6fbe AK |
650 | DM_LIB_PATCHLEVEL |
651 | DM_LIB_VERSION | |
652 | DM_IOCTLS | |
653 | DM_DEVICE_UID | |
654 | DM_DEVICE_MODE | |
655 | DM_DEVICE_GID | |
656 | DM_COMPAT | |
d1e8046f | 657 | DMEVENTD_PATH |
ec6a6fbe | 658 | DMEVENTD |
19a2c6e0 | 659 | DL_LIBS |
ec6a6fbe | 660 | DEVMAPPER |
b1f08e51 | 661 | DEFAULT_RUN_DIR |
3399ae32 | 662 | DEFAULT_LOCK_DIR |
fea55602 | 663 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
664 | DEFAULT_CACHE_SUBDIR |
665 | DEFAULT_BACKUP_SUBDIR | |
666 | DEFAULT_ARCHIVE_SUBDIR | |
667 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
668 | DEBUG |
669 | COPTIMISE_FLAG | |
e2997b73 | 670 | CONFDIR |
ec6a6fbe | 671 | CMDLIB |
d2c11605 | 672 | CLVMD_PATH |
c89bc357 | 673 | CLVMD_CMANAGERS |
ec6a6fbe AK |
674 | CLVMD |
675 | CLUSTER | |
676 | CLDWHOLEARCHIVE | |
677 | CLDNOWHOLEARCHIVE | |
678 | CLDFLAGS | |
cdd50823 | 679 | BUILD_LVMETAD |
ec6a6fbe | 680 | BUILD_DMEVENTD |
66fd4529 | 681 | BUILD_CMIRRORD |
572fefeb | 682 | APPLIB |
ec6a6fbe AK |
683 | MODPROBE_CMD |
684 | MSGFMT | |
685 | LVM2CMD_LIB | |
572fefeb | 686 | LVM2APP_LIB |
d93275eb PR |
687 | UDEV_LIBS |
688 | UDEV_CFLAGS | |
426fc742 PR |
689 | CUNIT_LIBS |
690 | CUNIT_CFLAGS | |
fd4728e1 | 691 | GENPNG |
ec6a6fbe AK |
692 | GENHTML |
693 | LCOV | |
90c80887 AK |
694 | SACKPT_LIBS |
695 | SACKPT_CFLAGS | |
a946372e AK |
696 | DLM_LIBS |
697 | DLM_CFLAGS | |
e2997b73 AK |
698 | CPG_LIBS |
699 | CPG_CFLAGS | |
b6d7a484 AK |
700 | CMAP_LIBS |
701 | CMAP_CFLAGS | |
e2997b73 AK |
702 | CONFDB_LIBS |
703 | CONFDB_CFLAGS | |
a946372e AK |
704 | SALCK_LIBS |
705 | SALCK_CFLAGS | |
e2997b73 AK |
706 | QUORUM_LIBS |
707 | QUORUM_CFLAGS | |
a946372e AK |
708 | COROSYNC_LIBS |
709 | COROSYNC_CFLAGS | |
710 | CMAN_LIBS | |
711 | CMAN_CFLAGS | |
a946372e AK |
712 | PKGCONFIGINIT_LIBS |
713 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
714 | PKG_CONFIG_LIBDIR |
715 | PKG_CONFIG_PATH | |
e2997b73 | 716 | PKG_CONFIG |
f61cacad | 717 | THIN_CHECK_CMD |
ec6a6fbe AK |
718 | POW_LIB |
719 | LIBOBJS | |
720 | ALLOCA | |
721 | CSCOPE_CMD | |
722 | CFLOW_CMD | |
723 | RANLIB | |
724 | MKDIR_P | |
725 | SET_MAKE | |
726 | LN_S | |
727 | INSTALL_DATA | |
728 | INSTALL_SCRIPT | |
729 | INSTALL_PROGRAM | |
730 | EGREP | |
731 | GREP | |
732 | CPP | |
733 | OBJEXT | |
734 | EXEEXT | |
735 | ac_ct_CC | |
736 | CPPFLAGS | |
737 | LDFLAGS | |
738 | CFLAGS | |
739 | CC | |
740 | AWK | |
741 | SED | |
742 | target_os | |
743 | target_vendor | |
744 | target_cpu | |
745 | target | |
746 | host_os | |
747 | host_vendor | |
748 | host_cpu | |
749 | host | |
750 | build_os | |
751 | build_vendor | |
752 | build_cpu | |
753 | build | |
754 | target_alias | |
755 | host_alias | |
756 | build_alias | |
757 | LIBS | |
758 | ECHO_T | |
759 | ECHO_N | |
760 | ECHO_C | |
761 | DEFS | |
762 | mandir | |
763 | localedir | |
764 | libdir | |
765 | psdir | |
766 | pdfdir | |
767 | dvidir | |
768 | htmldir | |
769 | infodir | |
770 | docdir | |
771 | oldincludedir | |
772 | includedir | |
773 | localstatedir | |
774 | sharedstatedir | |
775 | sysconfdir | |
776 | datadir | |
777 | datarootdir | |
778 | libexecdir | |
779 | sbindir | |
780 | bindir | |
781 | program_transform_name | |
782 | prefix | |
783 | exec_prefix | |
f11781c5 | 784 | PACKAGE_URL |
ec6a6fbe AK |
785 | PACKAGE_BUGREPORT |
786 | PACKAGE_STRING | |
787 | PACKAGE_VERSION | |
788 | PACKAGE_TARNAME | |
789 | PACKAGE_NAME | |
790 | PATH_SEPARATOR | |
791 | SHELL' | |
ad6254c5 | 792 | ac_subst_files='' |
ec6a6fbe AK |
793 | ac_user_opts=' |
794 | enable_option_checking | |
795 | enable_static_link | |
796 | with_user | |
797 | with_group | |
798 | with_device_uid | |
799 | with_device_gid | |
800 | with_device_mode | |
d0df875d | 801 | with_device_nodes_on |
c64d7cd3 | 802 | with_default_name_mangling |
ec6a6fbe AK |
803 | enable_lvm1_fallback |
804 | with_lvm1 | |
805 | with_pool | |
806 | with_cluster | |
807 | with_snapshots | |
808 | with_mirrors | |
cac52ca4 | 809 | with_raid |
8fea97b7 | 810 | with_replicators |
3ba4a195 | 811 | with_thin |
f61cacad | 812 | with_thin_check |
ec6a6fbe AK |
813 | enable_readline |
814 | enable_realtime | |
37ddf259 | 815 | enable_ocf |
606d0858 | 816 | with_ocfdir |
ec6a6fbe | 817 | with_clvmd |
8c4e8a18 | 818 | with_clvmd_pidfile |
66fd4529 AK |
819 | enable_cmirrord |
820 | with_cmirrord_pidfile | |
ec6a6fbe AK |
821 | enable_debug |
822 | with_optimisation | |
823 | enable_profiling | |
54b362f9 | 824 | enable_testing |
d1e8046f | 825 | enable_valgrind_pool |
ec6a6fbe | 826 | enable_devmapper |
cdd50823 | 827 | enable_lvmetad |
a5f46f6a AK |
828 | enable_udev_sync |
829 | enable_udev_rules | |
ec6a6fbe | 830 | enable_compat |
95eaa683 | 831 | enable_units_compat |
ec6a6fbe AK |
832 | enable_ioctl |
833 | enable_o_direct | |
572fefeb | 834 | enable_applib |
ec6a6fbe AK |
835 | enable_cmdlib |
836 | enable_pkgconfig | |
23b059e7 | 837 | enable_write_install |
ec6a6fbe AK |
838 | enable_fsadm |
839 | enable_dmeventd | |
840 | enable_selinux | |
841 | enable_nls | |
842 | with_localedir | |
843 | with_confdir | |
844 | with_staticdir | |
845 | with_usrlibdir | |
846 | with_usrsbindir | |
a5f46f6a | 847 | with_udev_prefix |
78ce7acc | 848 | with_udevdir |
e587cb6a | 849 | with_systemdsystemunitdir |
4417a8bd | 850 | with_tmpfilesdir |
ec6a6fbe AK |
851 | with_dmeventd_pidfile |
852 | with_dmeventd_path | |
8bae0a1e | 853 | with_default_run_dir |
3399ae32 AK |
854 | with_default_system_dir |
855 | with_default_archive_subdir | |
856 | with_default_backup_subdir | |
857 | with_default_cache_subdir | |
858 | with_default_locking_dir | |
fea55602 | 859 | with_default_data_alignment |
ec6a6fbe AK |
860 | with_interface |
861 | ' | |
7a197a62 AK |
862 | ac_precious_vars='build_alias |
863 | host_alias | |
864 | target_alias | |
865 | CC | |
866 | CFLAGS | |
867 | LDFLAGS | |
25fbec5b | 868 | LIBS |
7a197a62 | 869 | CPPFLAGS |
e2997b73 AK |
870 | CPP |
871 | PKG_CONFIG | |
f11781c5 AK |
872 | PKG_CONFIG_PATH |
873 | PKG_CONFIG_LIBDIR | |
a946372e AK |
874 | PKGCONFIGINIT_CFLAGS |
875 | PKGCONFIGINIT_LIBS | |
a946372e AK |
876 | CMAN_CFLAGS |
877 | CMAN_LIBS | |
878 | COROSYNC_CFLAGS | |
879 | COROSYNC_LIBS | |
e2997b73 AK |
880 | QUORUM_CFLAGS |
881 | QUORUM_LIBS | |
a946372e AK |
882 | SALCK_CFLAGS |
883 | SALCK_LIBS | |
e2997b73 AK |
884 | CONFDB_CFLAGS |
885 | CONFDB_LIBS | |
b6d7a484 AK |
886 | CMAP_CFLAGS |
887 | CMAP_LIBS | |
e2997b73 | 888 | CPG_CFLAGS |
a946372e AK |
889 | CPG_LIBS |
890 | DLM_CFLAGS | |
90c80887 AK |
891 | DLM_LIBS |
892 | SACKPT_CFLAGS | |
d93275eb | 893 | SACKPT_LIBS |
426fc742 PR |
894 | CUNIT_CFLAGS |
895 | CUNIT_LIBS | |
d93275eb | 896 | UDEV_CFLAGS |
05fb5158 | 897 | UDEV_LIBS' |
7a197a62 | 898 | |
795ca3e5 AK |
899 | |
900 | # Initialize some variables set by options. | |
ad6254c5 AK |
901 | ac_init_help= |
902 | ac_init_version=false | |
ec6a6fbe AK |
903 | ac_unrecognized_opts= |
904 | ac_unrecognized_sep= | |
795ca3e5 AK |
905 | # The variables have the same names as the options, with |
906 | # dashes changed to underlines. | |
ad6254c5 | 907 | cache_file=/dev/null |
795ca3e5 | 908 | exec_prefix=NONE |
795ca3e5 | 909 | no_create= |
795ca3e5 AK |
910 | no_recursion= |
911 | prefix=NONE | |
912 | program_prefix=NONE | |
913 | program_suffix=NONE | |
914 | program_transform_name=s,x,x, | |
915 | silent= | |
916 | site= | |
917 | srcdir= | |
795ca3e5 AK |
918 | verbose= |
919 | x_includes=NONE | |
920 | x_libraries=NONE | |
ad6254c5 AK |
921 | |
922 | # Installation directory options. | |
923 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
924 | # and all the variables that are supposed to be based on exec_prefix | |
925 | # by default will actually change. | |
926 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 927 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
928 | bindir='${exec_prefix}/bin' |
929 | sbindir='${exec_prefix}/sbin' | |
930 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
931 | datarootdir='${prefix}/share' |
932 | datadir='${datarootdir}' | |
795ca3e5 AK |
933 | sysconfdir='${prefix}/etc' |
934 | sharedstatedir='${prefix}/com' | |
935 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
936 | includedir='${prefix}/include' |
937 | oldincludedir='/usr/include' | |
7a197a62 AK |
938 | docdir='${datarootdir}/doc/${PACKAGE}' |
939 | infodir='${datarootdir}/info' | |
940 | htmldir='${docdir}' | |
941 | dvidir='${docdir}' | |
942 | pdfdir='${docdir}' | |
943 | psdir='${docdir}' | |
944 | libdir='${exec_prefix}/lib' | |
945 | localedir='${datarootdir}/locale' | |
946 | mandir='${datarootdir}/man' | |
795ca3e5 | 947 | |
795ca3e5 | 948 | ac_prev= |
7a197a62 | 949 | ac_dashdash= |
795ca3e5 AK |
950 | for ac_option |
951 | do | |
795ca3e5 AK |
952 | # If the previous option needs an argument, assign it. |
953 | if test -n "$ac_prev"; then | |
7a197a62 | 954 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
955 | ac_prev= |
956 | continue | |
957 | fi | |
958 | ||
7a197a62 AK |
959 | case $ac_option in |
960 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
961 | *) ac_optarg=yes ;; | |
962 | esac | |
795ca3e5 AK |
963 | |
964 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
965 | ||
7a197a62 AK |
966 | case $ac_dashdash$ac_option in |
967 | --) | |
968 | ac_dashdash=yes ;; | |
795ca3e5 AK |
969 | |
970 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
971 | ac_prev=bindir ;; | |
972 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 973 | bindir=$ac_optarg ;; |
795ca3e5 AK |
974 | |
975 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 976 | ac_prev=build_alias ;; |
795ca3e5 | 977 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 978 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
979 | |
980 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
981 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
982 | ac_prev=cache_file ;; | |
983 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
984 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
985 | cache_file=$ac_optarg ;; |
986 | ||
987 | --config-cache | -C) | |
988 | cache_file=config.cache ;; | |
795ca3e5 | 989 | |
7a197a62 | 990 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 991 | ac_prev=datadir ;; |
7a197a62 | 992 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 993 | datadir=$ac_optarg ;; |
795ca3e5 | 994 | |
7a197a62 AK |
995 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
996 | | --dataroo | --dataro | --datar) | |
997 | ac_prev=datarootdir ;; | |
998 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
999 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1000 | datarootdir=$ac_optarg ;; | |
1001 | ||
795ca3e5 | 1002 | -disable-* | --disable-*) |
ec6a6fbe | 1003 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1004 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1005 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1006 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1007 | ac_useropt_orig=$ac_useropt |
1008 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1009 | case $ac_user_opts in | |
1010 | *" | |
1011 | "enable_$ac_useropt" | |
1012 | "*) ;; | |
1013 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1014 | ac_unrecognized_sep=', ';; | |
1015 | esac | |
1016 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1017 | |
1018 | -docdir | --docdir | --docdi | --doc | --do) | |
1019 | ac_prev=docdir ;; | |
1020 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1021 | docdir=$ac_optarg ;; | |
1022 | ||
1023 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1024 | ac_prev=dvidir ;; | |
1025 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1026 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1027 | |
1028 | -enable-* | --enable-*) | |
ec6a6fbe | 1029 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1030 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1031 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1032 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1033 | ac_useropt_orig=$ac_useropt |
1034 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1035 | case $ac_user_opts in | |
1036 | *" | |
1037 | "enable_$ac_useropt" | |
1038 | "*) ;; | |
1039 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1040 | ac_unrecognized_sep=', ';; | |
1041 | esac | |
1042 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1043 | |
1044 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1045 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1046 | | --exec | --exe | --ex) | |
1047 | ac_prev=exec_prefix ;; | |
1048 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1049 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1050 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1051 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1052 | |
1053 | -gas | --gas | --ga | --g) | |
1054 | # Obsolete; use --with-gas. | |
1055 | with_gas=yes ;; | |
1056 | ||
ad6254c5 AK |
1057 | -help | --help | --hel | --he | -h) |
1058 | ac_init_help=long ;; | |
1059 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1060 | ac_init_help=recursive ;; | |
1061 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1062 | ac_init_help=short ;; | |
795ca3e5 AK |
1063 | |
1064 | -host | --host | --hos | --ho) | |
ad6254c5 | 1065 | ac_prev=host_alias ;; |
795ca3e5 | 1066 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1067 | host_alias=$ac_optarg ;; |
795ca3e5 | 1068 | |
7a197a62 AK |
1069 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1070 | ac_prev=htmldir ;; | |
1071 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1072 | | --ht=*) | |
1073 | htmldir=$ac_optarg ;; | |
1074 | ||
795ca3e5 AK |
1075 | -includedir | --includedir | --includedi | --included | --include \ |
1076 | | --includ | --inclu | --incl | --inc) | |
1077 | ac_prev=includedir ;; | |
1078 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1079 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1080 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1081 | |
1082 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1083 | ac_prev=infodir ;; | |
1084 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1085 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1086 | |
1087 | -libdir | --libdir | --libdi | --libd) | |
1088 | ac_prev=libdir ;; | |
1089 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1090 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1091 | |
1092 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1093 | | --libexe | --libex | --libe) | |
1094 | ac_prev=libexecdir ;; | |
1095 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1096 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1097 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1098 | |
7a197a62 AK |
1099 | -localedir | --localedir | --localedi | --localed | --locale) |
1100 | ac_prev=localedir ;; | |
1101 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1102 | localedir=$ac_optarg ;; | |
1103 | ||
795ca3e5 | 1104 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1105 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1106 | ac_prev=localstatedir ;; |
1107 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1108 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1109 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1110 | |
1111 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1112 | ac_prev=mandir ;; | |
1113 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1114 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1115 | |
1116 | -nfp | --nfp | --nf) | |
1117 | # Obsolete; use --without-fp. | |
1118 | with_fp=no ;; | |
1119 | ||
1120 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1121 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1122 | no_create=yes ;; |
1123 | ||
1124 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1125 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1126 | no_recursion=yes ;; | |
1127 | ||
1128 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1129 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1130 | | --oldin | --oldi | --old | --ol | --o) | |
1131 | ac_prev=oldincludedir ;; | |
1132 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1133 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1134 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1135 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1136 | |
1137 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1138 | ac_prev=prefix ;; | |
1139 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1140 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1141 | |
1142 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1143 | | --program-pre | --program-pr | --program-p) | |
1144 | ac_prev=program_prefix ;; | |
1145 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1146 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1147 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1148 | |
1149 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1150 | | --program-suf | --program-su | --program-s) | |
1151 | ac_prev=program_suffix ;; | |
1152 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1153 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1154 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1155 | |
1156 | -program-transform-name | --program-transform-name \ | |
1157 | | --program-transform-nam | --program-transform-na \ | |
1158 | | --program-transform-n | --program-transform- \ | |
1159 | | --program-transform | --program-transfor \ | |
1160 | | --program-transfo | --program-transf \ | |
1161 | | --program-trans | --program-tran \ | |
1162 | | --progr-tra | --program-tr | --program-t) | |
1163 | ac_prev=program_transform_name ;; | |
1164 | -program-transform-name=* | --program-transform-name=* \ | |
1165 | | --program-transform-nam=* | --program-transform-na=* \ | |
1166 | | --program-transform-n=* | --program-transform-=* \ | |
1167 | | --program-transform=* | --program-transfor=* \ | |
1168 | | --program-transfo=* | --program-transf=* \ | |
1169 | | --program-trans=* | --program-tran=* \ | |
1170 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1171 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1172 | |
7a197a62 AK |
1173 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1174 | ac_prev=pdfdir ;; | |
1175 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1176 | pdfdir=$ac_optarg ;; | |
1177 | ||
1178 | -psdir | --psdir | --psdi | --psd | --ps) | |
1179 | ac_prev=psdir ;; | |
1180 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1181 | psdir=$ac_optarg ;; | |
1182 | ||
795ca3e5 AK |
1183 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1184 | | -silent | --silent | --silen | --sile | --sil) | |
1185 | silent=yes ;; | |
1186 | ||
1187 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1188 | ac_prev=sbindir ;; | |
1189 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1190 | | --sbi=* | --sb=*) | |
ad6254c5 | 1191 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1192 | |
1193 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1194 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1195 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1196 | | --sha | --sh) | |
1197 | ac_prev=sharedstatedir ;; | |
1198 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1199 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1200 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1201 | | --sha=* | --sh=*) | |
ad6254c5 | 1202 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1203 | |
1204 | -site | --site | --sit) | |
1205 | ac_prev=site ;; | |
1206 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1207 | site=$ac_optarg ;; |
795ca3e5 AK |
1208 | |
1209 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1210 | ac_prev=srcdir ;; | |
1211 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1212 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1213 | |
1214 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1215 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1216 | ac_prev=sysconfdir ;; | |
1217 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1218 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1219 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1220 | |
1221 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1222 | ac_prev=target_alias ;; |
795ca3e5 | 1223 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1224 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1225 | |
1226 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1227 | verbose=yes ;; | |
1228 | ||
ad6254c5 AK |
1229 | -version | --version | --versio | --versi | --vers | -V) |
1230 | ac_init_version=: ;; | |
795ca3e5 AK |
1231 | |
1232 | -with-* | --with-*) | |
ec6a6fbe | 1233 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1234 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1235 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1236 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1237 | ac_useropt_orig=$ac_useropt |
1238 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1239 | case $ac_user_opts in | |
1240 | *" | |
1241 | "with_$ac_useropt" | |
1242 | "*) ;; | |
1243 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1244 | ac_unrecognized_sep=', ';; | |
1245 | esac | |
1246 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1247 | |
1248 | -without-* | --without-*) | |
ec6a6fbe | 1249 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1250 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1251 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1252 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1253 | ac_useropt_orig=$ac_useropt |
1254 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1255 | case $ac_user_opts in | |
1256 | *" | |
1257 | "with_$ac_useropt" | |
1258 | "*) ;; | |
1259 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1260 | ac_unrecognized_sep=', ';; | |
1261 | esac | |
1262 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1263 | |
1264 | --x) | |
1265 | # Obsolete; use --with-x. | |
1266 | with_x=yes ;; | |
1267 | ||
1268 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1269 | | --x-incl | --x-inc | --x-in | --x-i) | |
1270 | ac_prev=x_includes ;; | |
1271 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1272 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1273 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1274 | |
1275 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1276 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1277 | ac_prev=x_libraries ;; | |
1278 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1279 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1280 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1281 | |
f11781c5 AK |
1282 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1283 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1284 | ;; |
1285 | ||
ad6254c5 AK |
1286 | *=*) |
1287 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1288 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1289 | case $ac_envvar in #( |
1290 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1291 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1292 | esac | |
7a197a62 | 1293 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1294 | export $ac_envvar ;; |
1295 | ||
795ca3e5 | 1296 | *) |
ad6254c5 | 1297 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1298 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1299 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1300 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1301 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1302 | ;; |
1303 | ||
1304 | esac | |
1305 | done | |
1306 | ||
1307 | if test -n "$ac_prev"; then | |
ad6254c5 | 1308 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1309 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1310 | fi |
795ca3e5 | 1311 | |
ec6a6fbe AK |
1312 | if test -n "$ac_unrecognized_opts"; then |
1313 | case $enable_option_checking in | |
1314 | no) ;; | |
f11781c5 | 1315 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1316 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1317 | esac | |
1318 | fi | |
1319 | ||
1320 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1321 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1322 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1323 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1324 | libdir localedir mandir | |
795ca3e5 | 1325 | do |
7a197a62 | 1326 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1327 | # Remove trailing slashes. |
1328 | case $ac_val in | |
1329 | */ ) | |
1330 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1331 | eval $ac_var=\$ac_val;; | |
1332 | esac | |
1333 | # Be sure to have absolute directory names. | |
ad6254c5 | 1334 | case $ac_val in |
7a197a62 AK |
1335 | [\\/$]* | ?:[\\/]* ) continue;; |
1336 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1337 | esac |
f11781c5 | 1338 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1339 | done |
1340 | ||
ad6254c5 AK |
1341 | # There might be people who depend on the old broken behavior: `$host' |
1342 | # used to hold the argument of --host etc. | |
1343 | # FIXME: To remove some day. | |
1344 | build=$build_alias | |
1345 | host=$host_alias | |
1346 | target=$target_alias | |
1347 | ||
1348 | # FIXME: To remove some day. | |
1349 | if test "x$host_alias" != x; then | |
1350 | if test "x$build_alias" = x; then | |
1351 | cross_compiling=maybe | |
f11781c5 AK |
1352 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1353 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1354 | elif test "x$build_alias" != "x$host_alias"; then |
1355 | cross_compiling=yes | |
1356 | fi | |
1357 | fi | |
8106cdd5 | 1358 | |
ad6254c5 AK |
1359 | ac_tool_prefix= |
1360 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1361 | ||
1362 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1363 | |
795ca3e5 | 1364 | |
7a197a62 AK |
1365 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1366 | ac_ls_di=`ls -di .` && | |
1367 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1368 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1369 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1370 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1371 | |
1372 | ||
795ca3e5 AK |
1373 | # Find the source files, if location was not specified. |
1374 | if test -z "$srcdir"; then | |
1375 | ac_srcdir_defaulted=yes | |
7a197a62 | 1376 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1377 | ac_confdir=`$as_dirname -- "$as_myself" || |
1378 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1379 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1380 | X"$as_myself" : 'X\(//\)$' \| \ | |
1381 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1382 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | /^X\(\/\/\)[^/].*/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\/\)$/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | /^X\(\/\).*/{ | |
1396 | s//\1/ | |
1397 | q | |
1398 | } | |
1399 | s/.*/./; q'` | |
795ca3e5 | 1400 | srcdir=$ac_confdir |
7a197a62 | 1401 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1402 | srcdir=.. |
1403 | fi | |
1404 | else | |
1405 | ac_srcdir_defaulted=no | |
1406 | fi | |
7a197a62 AK |
1407 | if test ! -r "$srcdir/$ac_unique_file"; then |
1408 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1409 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1410 | fi |
7a197a62 AK |
1411 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1412 | ac_abs_confdir=`( | |
f11781c5 | 1413 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1414 | pwd)` |
1415 | # When building in place, set srcdir=. | |
1416 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1417 | srcdir=. | |
1418 | fi | |
1419 | # Remove unnecessary trailing slashes from srcdir. | |
1420 | # Double slashes in file names in object file debugging info | |
1421 | # mess up M-x gdb in Emacs. | |
1422 | case $srcdir in | |
1423 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1424 | esac | |
1425 | for ac_var in $ac_precious_vars; do | |
1426 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1428 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1429 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1430 | done | |
ad6254c5 AK |
1431 | |
1432 | # | |
1433 | # Report the --help message. | |
1434 | # | |
1435 | if test "$ac_init_help" = "long"; then | |
1436 | # Omit some internal or obsolete options to make the list less imposing. | |
1437 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1438 | cat <<_ACEOF | |
1439 | \`configure' configures this package to adapt to many kinds of systems. | |
1440 | ||
1441 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1442 | ||
1443 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1444 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1445 | ||
1446 | Defaults for the options are specified in brackets. | |
1447 | ||
1448 | Configuration: | |
1449 | -h, --help display this help and exit | |
1450 | --help=short display options specific to this package | |
1451 | --help=recursive display the short help of all the included packages | |
1452 | -V, --version display version information and exit | |
f11781c5 | 1453 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1454 | --cache-file=FILE cache test results in FILE [disabled] |
1455 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1456 | -n, --no-create do not create output files | |
1457 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1458 | ||
ad6254c5 AK |
1459 | Installation directories: |
1460 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1461 | [$ac_default_prefix] |
ad6254c5 | 1462 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1463 | [PREFIX] |
ad6254c5 AK |
1464 | |
1465 | By default, \`make install' will install all the files in | |
1466 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1467 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1468 | for instance \`--prefix=\$HOME'. | |
1469 | ||
1470 | For better control, use the options below. | |
1471 | ||
1472 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1473 | --bindir=DIR user executables [EPREFIX/bin] |
1474 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1475 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1476 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1477 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1478 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1479 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1480 | --includedir=DIR C header files [PREFIX/include] | |
1481 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1482 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1483 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1484 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1485 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1486 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1487 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1488 | --htmldir=DIR html documentation [DOCDIR] | |
1489 | --dvidir=DIR dvi documentation [DOCDIR] | |
1490 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1491 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1492 | _ACEOF |
1493 | ||
1494 | cat <<\_ACEOF | |
1495 | ||
1496 | System types: | |
1497 | --build=BUILD configure for building on BUILD [guessed] | |
1498 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1499 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1500 | _ACEOF | |
1501 | fi | |
1502 | ||
1503 | if test -n "$ac_init_help"; then | |
1504 | ||
1505 | cat <<\_ACEOF | |
1506 | ||
1507 | Optional Features: | |
ec6a6fbe | 1508 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1509 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1510 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1511 | --enable-static_link use this to link the tools to their libraries |
1512 | statically (default is dynamic linking | |
1513 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1514 | device-mapper is missing from the kernel |
71082be4 ZK |
1515 | --disable-readline disable readline support |
1516 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1517 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1518 | resource agents | |
71082be4 ZK |
1519 | --enable-cmirrord enable the cluster mirror log daemon |
1520 | --enable-debug enable debugging | |
1521 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1522 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1523 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1524 | --disable-devmapper disable LVM2 device-mapper interaction |
d38de32b | 1525 | --enable-lvmetad enable the LVM Metadata Daemon |
71082be4 ZK |
1526 | --enable-udev_sync enable synchronisation with udev processing |
1527 | --enable-udev_rules install rule files needed for udev synchronisation | |
1528 | --enable-compat enable support for old device-mapper versions | |
1529 | --enable-units-compat enable output compatibility with old versions that | |
1530 | that do not use KiB-style unit suffixes | |
1531 | --disable-driver disable calls to device-mapper in the kernel | |
1532 | --disable-o_direct disable O_DIRECT | |
1533 | --enable-applib build application library | |
1534 | --enable-cmdlib build shared command library | |
1535 | --enable-pkgconfig install pkgconfig support | |
1536 | --enable-write_install install user writable files | |
1537 | --disable-fsadm disable fsadm | |
1538 | --enable-dmeventd enable the device-mapper event daemon | |
1539 | --disable-selinux disable selinux support | |
1540 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1541 | |
1542 | Optional Packages: | |
1543 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1544 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1545 | --with-user=USER set the owner of installed files [[USER=]] |
1546 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1547 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1548 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1549 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1550 | --with-device-nodes-on=ON |
1551 | create nodes on resume or create [[ON=resume]] | |
c64d7cd3 PR |
1552 | --with-default-name-mangling=MANGLING |
1553 | default name mangling: auto/none/hex | |
1554 | [[MANGLING=auto]] | |
ad6254c5 | 1555 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1556 | [[TYPE=internal]] |
ad6254c5 | 1557 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1558 | [[TYPE=internal]] |
71082be4 | 1559 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1560 | [[TYPE=internal]] |
71082be4 | 1561 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1562 | [[TYPE=internal]] |
71082be4 | 1563 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1564 | [[TYPE=internal]] |
cac52ca4 JEB |
1565 | --with-raid=TYPE mirror support: internal/shared/none |
1566 | [[TYPE=internal]] | |
71082be4 | 1567 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1568 | [[TYPE=none]] |
3ba4a195 ZK |
1569 | --with-thin=TYPE thin provisioning support: internal/shared/none |
1570 | [[TYPE=none]] | |
f61cacad | 1571 | --with-thin-check=PATH thin_check tool: [[autodetect]] |
606d0858 AK |
1572 | --with-ocfdir=DIR install OCF files in DIR |
1573 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1574 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1575 | The following cluster manager combinations are valid: |
a946372e AK |
1576 | * cman (RHEL5 or equivalent) |
1577 | * cman,corosync,openais (or selection of them) | |
1091650a | 1578 | * singlenode (localhost only) |
a946372e AK |
1579 | * all (autodetect) |
1580 | * none (disable build) | |
71082be4 | 1581 | [TYPE=none] |
8c4e8a18 | 1582 | --with-clvmd-pidfile=PATH |
f11781c5 | 1583 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1584 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1585 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1586 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1587 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1588 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1589 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1590 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1591 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1592 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1593 | install udev rule files in UPREFIX [[EPREFIX]] |
1594 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
e587cb6a PR |
1595 | --with-systemdsystemunitdir=DIR |
1596 | systemd service files in DIR | |
4417a8bd PR |
1597 | --with-tmpfilesdir=DIR install configuration files for management of |
1598 | volatile files and directories in DIR | |
1599 | [[SYSCONFDIR/tmpfiles.d]] | |
71082be4 | 1600 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1601 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1602 | --with-dmeventd-path=PATH |
f11781c5 | 1603 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1604 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1605 | --with-default-system-dir=DIR |
f11781c5 | 1606 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1607 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1608 | default metadata archive subdir [[archive]] |
71082be4 | 1609 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1610 | default metadata backup subdir [[backup]] |
71082be4 | 1611 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1612 | default metadata cache subdir [[cache]] |
71082be4 | 1613 | --with-default-locking-dir=DIR |
f11781c5 | 1614 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1615 | --with-default-data-alignment=NUM |
f11781c5 AK |
1616 | set the default data alignment in MiB [[1]] |
1617 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1618 | |
1619 | Some influential environment variables: | |
1620 | CC C compiler command | |
1621 | CFLAGS C compiler flags | |
1622 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1623 | nonstandard directory <lib dir> | |
25fbec5b | 1624 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1625 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1626 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1627 | CPP C preprocessor |
e2997b73 | 1628 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1629 | PKG_CONFIG_PATH |
1630 | directories to add to pkg-config's search path | |
1631 | PKG_CONFIG_LIBDIR | |
1632 | path overriding pkg-config's built-in search path | |
a946372e AK |
1633 | PKGCONFIGINIT_CFLAGS |
1634 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1635 | PKGCONFIGINIT_LIBS | |
1636 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1637 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1638 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1639 | COROSYNC_CFLAGS | |
1640 | C compiler flags for COROSYNC, overriding pkg-config | |
1641 | COROSYNC_LIBS | |
1642 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1643 | QUORUM_CFLAGS |
1644 | C compiler flags for QUORUM, overriding pkg-config | |
1645 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1646 | SALCK_CFLAGS |
1647 | C compiler flags for SALCK, overriding pkg-config | |
1648 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1649 | CONFDB_CFLAGS |
1650 | C compiler flags for CONFDB, overriding pkg-config | |
1651 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
b6d7a484 AK |
1652 | CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config |
1653 | CMAP_LIBS linker flags for CMAP, overriding pkg-config | |
e2997b73 AK |
1654 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config |
1655 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1656 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1657 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1658 | SACKPT_CFLAGS |
1659 | C compiler flags for SACKPT, overriding pkg-config | |
1660 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
426fc742 PR |
1661 | CUNIT_CFLAGS |
1662 | C compiler flags for CUNIT, overriding pkg-config | |
1663 | CUNIT_LIBS linker flags for CUNIT, overriding pkg-config | |
d93275eb PR |
1664 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1665 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1666 | |
1667 | Use these variables to override the choices made by `configure' or to help | |
1668 | it to find libraries and programs with nonstandard names/locations. | |
1669 | ||
f11781c5 | 1670 | Report bugs to the package provider. |
ad6254c5 | 1671 | _ACEOF |
7a197a62 | 1672 | ac_status=$? |
ad6254c5 AK |
1673 | fi |
1674 | ||
1675 | if test "$ac_init_help" = "recursive"; then | |
1676 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1677 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1678 | test -d "$ac_dir" || |
1679 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1680 | continue | |
ad6254c5 AK |
1681 | ac_builddir=. |
1682 | ||
7a197a62 AK |
1683 | case "$ac_dir" in |
1684 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1685 | *) | |
ec6a6fbe | 1686 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1687 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1688 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1689 | case $ac_top_builddir_sub in |
1690 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1691 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1692 | esac ;; | |
1693 | esac | |
1694 | ac_abs_top_builddir=$ac_pwd | |
1695 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1696 | # for backward compatibility: | |
1697 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1698 | |
1699 | case $srcdir in | |
7a197a62 | 1700 | .) # We are building in place. |
ad6254c5 | 1701 | ac_srcdir=. |
7a197a62 AK |
1702 | ac_top_srcdir=$ac_top_builddir_sub |
1703 | ac_abs_top_srcdir=$ac_pwd ;; | |
1704 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1705 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1706 | ac_top_srcdir=$srcdir |
1707 | ac_abs_top_srcdir=$srcdir ;; | |
1708 | *) # Relative name. | |
1709 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1710 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1711 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1712 | esac |
7a197a62 AK |
1713 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1714 | ||
1715 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1716 | # Check for guested configure. | |
1717 | if test -f "$ac_srcdir/configure.gnu"; then | |
1718 | echo && | |
1719 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1720 | elif test -f "$ac_srcdir/configure"; then | |
1721 | echo && | |
1722 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1723 | else |
ec6a6fbe | 1724 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1725 | fi || ac_status=$? |
1726 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1727 | done |
1728 | fi | |
1729 | ||
7a197a62 | 1730 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1731 | if $ac_init_version; then |
1732 | cat <<\_ACEOF | |
7a197a62 | 1733 | configure |
f11781c5 | 1734 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1735 | |
f11781c5 | 1736 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1737 | This configure script is free software; the Free Software Foundation |
1738 | gives unlimited permission to copy, distribute and modify it. | |
1739 | _ACEOF | |
7a197a62 | 1740 | exit |
ad6254c5 | 1741 | fi |
ad6254c5 | 1742 | |
f11781c5 AK |
1743 | ## ------------------------ ## |
1744 | ## Autoconf initialization. ## | |
1745 | ## ------------------------ ## | |
ad6254c5 | 1746 | |
f11781c5 AK |
1747 | # ac_fn_c_try_compile LINENO |
1748 | # -------------------------- | |
1749 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1750 | ac_fn_c_try_compile () | |
ad6254c5 | 1751 | { |
f11781c5 AK |
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1753 | rm -f conftest.$ac_objext | |
1754 | if { { ac_try="$ac_compile" | |
1755 | case "(($ac_try" in | |
1756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1757 | *) ac_try_echo=$ac_try;; | |
1758 | esac | |
1759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1760 | $as_echo "$ac_try_echo"; } >&5 | |
1761 | (eval "$ac_compile") 2>conftest.err | |
1762 | ac_status=$? | |
1763 | if test -s conftest.err; then | |
1764 | grep -v '^ *+' conftest.err >conftest.er1 | |
1765 | cat conftest.er1 >&5 | |
1766 | mv -f conftest.er1 conftest.err | |
1767 | fi | |
1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1769 | test $ac_status = 0; } && { | |
1770 | test -z "$ac_c_werror_flag" || | |
1771 | test ! -s conftest.err | |
1772 | } && test -s conftest.$ac_objext; then : | |
1773 | ac_retval=0 | |
1774 | else | |
1775 | $as_echo "$as_me: failed program was:" >&5 | |
1776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1777 | |
f11781c5 AK |
1778 | ac_retval=1 |
1779 | fi | |
1780 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1781 | as_fn_set_status $ac_retval | |
ad6254c5 | 1782 | |
f11781c5 | 1783 | } # ac_fn_c_try_compile |
ad6254c5 | 1784 | |
f11781c5 AK |
1785 | # ac_fn_c_try_cpp LINENO |
1786 | # ---------------------- | |
1787 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1788 | ac_fn_c_try_cpp () | |
1789 | { | |
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1791 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1792 | case "(($ac_try" in | |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1799 | ac_status=$? | |
1800 | if test -s conftest.err; then | |
1801 | grep -v '^ *+' conftest.err >conftest.er1 | |
1802 | cat conftest.er1 >&5 | |
1803 | mv -f conftest.er1 conftest.err | |
1804 | fi | |
1805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1806 | test $ac_status = 0; } >/dev/null && { | |
1807 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1808 | test ! -s conftest.err | |
1809 | }; then : | |
1810 | ac_retval=0 | |
1811 | else | |
1812 | $as_echo "$as_me: failed program was:" >&5 | |
1813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1814 | |
f11781c5 AK |
1815 | ac_retval=1 |
1816 | fi | |
1817 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1818 | as_fn_set_status $ac_retval | |
ad6254c5 | 1819 | |
f11781c5 | 1820 | } # ac_fn_c_try_cpp |
d911ec67 | 1821 | |
f11781c5 AK |
1822 | # ac_fn_c_try_link LINENO |
1823 | # ----------------------- | |
1824 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1825 | ac_fn_c_try_link () | |
d911ec67 | 1826 | { |
f11781c5 AK |
1827 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1829 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1830 | case "(($ac_try" in |
1831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1832 | *) ac_try_echo=$ac_try;; | |
1833 | esac | |
f11781c5 AK |
1834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1835 | $as_echo "$ac_try_echo"; } >&5 | |
1836 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1837 | ac_status=$? |
f11781c5 AK |
1838 | if test -s conftest.err; then |
1839 | grep -v '^ *+' conftest.err >conftest.er1 | |
1840 | cat conftest.er1 >&5 | |
1841 | mv -f conftest.er1 conftest.err | |
1842 | fi | |
1843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1844 | test $ac_status = 0; } && { | |
1845 | test -z "$ac_c_werror_flag" || | |
1846 | test ! -s conftest.err | |
1847 | } && test -s conftest$ac_exeext && { | |
1848 | test "$cross_compiling" = yes || | |
1849 | $as_test_x conftest$ac_exeext | |
1850 | }; then : | |
1851 | ac_retval=0 | |
d911ec67 | 1852 | else |
f11781c5 | 1853 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1854 | sed 's/^/| /' conftest.$ac_ext >&5 |
1855 | ||
f11781c5 | 1856 | ac_retval=1 |
d911ec67 | 1857 | fi |
f11781c5 AK |
1858 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1859 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1860 | # interfere with the next link command; also delete a directory that is | |
1861 | # left behind by Apple's compiler. We do this before executing the actions. | |
1862 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1863 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1864 | as_fn_set_status $ac_retval | |
d911ec67 | 1865 | |
f11781c5 | 1866 | } # ac_fn_c_try_link |
d911ec67 | 1867 | |
f11781c5 AK |
1868 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1869 | # ------------------------------------------------------- | |
1870 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1871 | # the include files in INCLUDES and setting the cache variable VAR | |
1872 | # accordingly. | |
1873 | ac_fn_c_check_header_mongrel () | |
1874 | { | |
1875 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1876 | if eval "test \"\${$3+set}\"" = set; then : | |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1878 | $as_echo_n "checking for $2... " >&6; } | |
1879 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1880 | $as_echo_n "(cached) " >&6 |
1881 | fi | |
f11781c5 AK |
1882 | eval ac_res=\$$3 |
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1884 | $as_echo "$ac_res" >&6; } |
1885 | else | |
1886 | # Is the header compilable? | |
f11781c5 AK |
1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1888 | $as_echo_n "checking $2 usability... " >&6; } | |
1889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1890 | /* end confdefs.h. */ |
f11781c5 AK |
1891 | $4 |
1892 | #include <$2> | |
d911ec67 | 1893 | _ACEOF |
f11781c5 | 1894 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1895 | ac_header_compiler=yes |
1896 | else | |
f11781c5 | 1897 | ac_header_compiler=no |
d911ec67 | 1898 | fi |
d911ec67 | 1899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1901 | $as_echo "$ac_header_compiler" >&6; } |
1902 | ||
1903 | # Is the header present? | |
f11781c5 AK |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1905 | $as_echo_n "checking $2 presence... " >&6; } | |
1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1907 | /* end confdefs.h. */ |
f11781c5 | 1908 | #include <$2> |
d911ec67 | 1909 | _ACEOF |
f11781c5 | 1910 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1911 | ac_header_preproc=yes |
1912 | else | |
d911ec67 AK |
1913 | ac_header_preproc=no |
1914 | fi | |
d911ec67 | 1915 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1917 | $as_echo "$ac_header_preproc" >&6; } |
1918 | ||
1919 | # So? What about this header? | |
f11781c5 | 1920 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1921 | yes:no: ) |
f11781c5 AK |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1923 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1925 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1926 | ;; |
1927 | no:yes:* ) | |
f11781c5 AK |
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1929 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1931 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1933 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1935 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1937 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1938 | ;; |
1939 | esac | |
f11781c5 AK |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1941 | $as_echo_n "checking for $2... " >&6; } | |
1942 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1943 | $as_echo_n "(cached) " >&6 |
1944 | else | |
f11781c5 | 1945 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1946 | fi |
f11781c5 AK |
1947 | eval ac_res=\$$3 |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1949 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1950 | fi |
f11781c5 | 1951 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1952 | |
f11781c5 | 1953 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1954 | |
f11781c5 AK |
1955 | # ac_fn_c_try_run LINENO |
1956 | # ---------------------- | |
1957 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1958 | # that executables *can* be run. | |
1959 | ac_fn_c_try_run () | |
ad6254c5 | 1960 | { |
f11781c5 AK |
1961 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1962 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1963 | case "(($ac_try" in |
1964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1965 | *) ac_try_echo=$ac_try;; | |
1966 | esac | |
f11781c5 AK |
1967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1968 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1969 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1970 | ac_status=$? |
f11781c5 AK |
1971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1972 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1973 | { { case "(($ac_try" in | |
7a197a62 AK |
1974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1975 | *) ac_try_echo=$ac_try;; | |
1976 | esac | |
f11781c5 AK |
1977 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1978 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1979 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1980 | ac_status=$? |
f11781c5 AK |
1981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1982 | test $ac_status = 0; }; }; then : | |
1983 | ac_retval=0 | |
ad6254c5 | 1984 | else |
ec6a6fbe | 1985 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1986 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1987 | sed 's/^/| /' conftest.$ac_ext >&5 |
1988 | ||
f11781c5 | 1989 | ac_retval=$ac_status |
ad6254c5 | 1990 | fi |
f11781c5 AK |
1991 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1992 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1993 | as_fn_set_status $ac_retval | |
ad6254c5 | 1994 | |
f11781c5 | 1995 | } # ac_fn_c_try_run |
ad6254c5 | 1996 | |
f11781c5 AK |
1997 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1998 | # ------------------------------------------------------- | |
1999 | # Tests whether HEADER exists and can be compiled using the include files in | |
2000 | # INCLUDES, setting the cache variable VAR accordingly. | |
2001 | ac_fn_c_check_header_compile () | |
2002 | { | |
2003 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2005 | $as_echo_n "checking for $2... " >&6; } | |
2006 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2007 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2008 | else |
f11781c5 | 2009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 2010 | /* end confdefs.h. */ |
f11781c5 AK |
2011 | $4 |
2012 | #include <$2> | |
ad6254c5 | 2013 | _ACEOF |
f11781c5 AK |
2014 | if ac_fn_c_try_compile "$LINENO"; then : |
2015 | eval "$3=yes" | |
ad6254c5 | 2016 | else |
f11781c5 | 2017 | eval "$3=no" |
ad6254c5 | 2018 | fi |
7a197a62 | 2019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2020 | fi |
f11781c5 AK |
2021 | eval ac_res=\$$3 |
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2023 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2024 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2025 | |
f11781c5 | 2026 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2027 | |
f11781c5 AK |
2028 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2029 | # ---------------------------------------------------- | |
2030 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2031 | # INCLUDES, setting cache variable VAR accordingly. | |
2032 | ac_fn_c_check_member () | |
2033 | { | |
2034 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2036 | $as_echo_n "checking for $2.$3... " >&6; } | |
2037 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2038 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2039 | else |
f11781c5 AK |
2040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2041 | /* end confdefs.h. */ | |
2042 | $5 | |
2043 | int | |
2044 | main () | |
2045 | { | |
2046 | static $2 ac_aggr; | |
2047 | if (ac_aggr.$3) | |
2048 | return 0; | |
2049 | ; | |
2050 | return 0; | |
2051 | } | |
ad6254c5 | 2052 | _ACEOF |
f11781c5 AK |
2053 | if ac_fn_c_try_compile "$LINENO"; then : |
2054 | eval "$4=yes" | |
2055 | else | |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2057 | /* end confdefs.h. */ |
f11781c5 AK |
2058 | $5 |
2059 | int | |
2060 | main () | |
2061 | { | |
2062 | static $2 ac_aggr; | |
2063 | if (sizeof ac_aggr.$3) | |
2064 | return 0; | |
2065 | ; | |
2066 | return 0; | |
2067 | } | |
2068 | _ACEOF | |
2069 | if ac_fn_c_try_compile "$LINENO"; then : | |
2070 | eval "$4=yes" | |
2071 | else | |
2072 | eval "$4=no" | |
2073 | fi | |
2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2075 | fi | |
2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2077 | fi | |
2078 | eval ac_res=\$$4 | |
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2080 | $as_echo "$ac_res" >&6; } | |
2081 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2082 | ||
2083 | } # ac_fn_c_check_member | |
795ca3e5 | 2084 | |
f11781c5 AK |
2085 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2086 | # ------------------------------------------- | |
2087 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2088 | # variable VAR accordingly. | |
2089 | ac_fn_c_check_type () | |
2090 | { | |
2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2093 | $as_echo_n "checking for $2... " >&6; } | |
2094 | if eval "test \"\${$3+set}\"" = set; then : | |
2095 | $as_echo_n "(cached) " >&6 | |
2096 | else | |
2097 | eval "$3=no" | |
2098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2099 | /* end confdefs.h. */ | |
2100 | $4 | |
ad6254c5 AK |
2101 | int |
2102 | main () | |
2103 | { | |
f11781c5 AK |
2104 | if (sizeof ($2)) |
2105 | return 0; | |
ad6254c5 AK |
2106 | ; |
2107 | return 0; | |
2108 | } | |
2109 | _ACEOF | |
f11781c5 AK |
2110 | if ac_fn_c_try_compile "$LINENO"; then : |
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2112 | /* end confdefs.h. */ | |
2113 | $4 | |
2114 | int | |
2115 | main () | |
2116 | { | |
2117 | if (sizeof (($2))) | |
2118 | return 0; | |
2119 | ; | |
2120 | return 0; | |
2121 | } | |
2122 | _ACEOF | |
2123 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2124 | |
f11781c5 AK |
2125 | else |
2126 | eval "$3=yes" | |
795ca3e5 | 2127 | fi |
f11781c5 AK |
2128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2129 | fi | |
2130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2131 | fi |
f11781c5 AK |
2132 | eval ac_res=\$$3 |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2134 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2135 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2136 | |
f11781c5 | 2137 | } # ac_fn_c_check_type |
ad6254c5 | 2138 | |
f11781c5 AK |
2139 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2140 | # ----------------------------------- | |
2141 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2142 | # accordingly. | |
2143 | ac_fn_c_find_intX_t () | |
2144 | { | |
2145 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2147 | $as_echo_n "checking for int$2_t... " >&6; } | |
2148 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2149 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2150 | else |
f11781c5 AK |
2151 | eval "$3=no" |
2152 | # Order is important - never check a type that is potentially smaller | |
2153 | # than half of the expected target width. | |
2154 | for ac_type in int$2_t 'int' 'long int' \ | |
2155 | 'long long int' 'short int' 'signed char'; do | |
2156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2157 | /* end confdefs.h. */ |
2158 | $ac_includes_default | |
f11781c5 | 2159 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2160 | int |
2161 | main () | |
2162 | { | |
f11781c5 AK |
2163 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2164 | test_array [0] = 0 | |
7a197a62 | 2165 | |
f11781c5 AK |
2166 | ; |
2167 | return 0; | |
2168 | } | |
2169 | _ACEOF | |
2170 | if ac_fn_c_try_compile "$LINENO"; then : | |
2171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2172 | /* end confdefs.h. */ | |
2173 | $ac_includes_default | |
2174 | enum { N = $2 / 2 - 1 }; | |
2175 | int | |
2176 | main () | |
2177 | { | |
2178 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2179 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2180 | test_array [0] = 0 | |
7a197a62 AK |
2181 | |
2182 | ; | |
2183 | return 0; | |
2184 | } | |
ad6254c5 | 2185 | _ACEOF |
f11781c5 | 2186 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2187 | |
f11781c5 AK |
2188 | else |
2189 | case $ac_type in #( | |
2190 | int$2_t) : | |
2191 | eval "$3=yes" ;; #( | |
2192 | *) : | |
2193 | eval "$3=\$ac_type" ;; | |
2194 | esac | |
ad6254c5 | 2195 | fi |
f11781c5 | 2196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2197 | fi |
f11781c5 AK |
2198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2199 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2200 | |
2201 | else | |
f11781c5 | 2202 | break |
ad6254c5 | 2203 | fi |
f11781c5 | 2204 | done |
ad6254c5 | 2205 | fi |
f11781c5 AK |
2206 | eval ac_res=\$$3 |
2207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2208 | $as_echo "$ac_res" >&6; } | |
2209 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2210 | ||
2211 | } # ac_fn_c_find_intX_t | |
2212 | ||
2213 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2214 | # ------------------------------------ | |
2215 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2216 | # accordingly. | |
2217 | ac_fn_c_find_uintX_t () | |
2218 | { | |
2219 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2221 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2222 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2223 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2224 | else |
f11781c5 AK |
2225 | eval "$3=no" |
2226 | # Order is important - never check a type that is potentially smaller | |
2227 | # than half of the expected target width. | |
2228 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2229 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2231 | /* end confdefs.h. */ |
7a197a62 | 2232 | $ac_includes_default |
ad6254c5 AK |
2233 | int |
2234 | main () | |
2235 | { | |
f11781c5 AK |
2236 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2237 | test_array [0] = 0 | |
ad6254c5 | 2238 | |
f11781c5 AK |
2239 | ; |
2240 | return 0; | |
ad6254c5 AK |
2241 | } |
2242 | _ACEOF | |
f11781c5 AK |
2243 | if ac_fn_c_try_compile "$LINENO"; then : |
2244 | case $ac_type in #( | |
2245 | uint$2_t) : | |
2246 | eval "$3=yes" ;; #( | |
2247 | *) : | |
2248 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2249 | esac |
ad6254c5 | 2250 | fi |
f11781c5 AK |
2251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2252 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2253 | |
f11781c5 AK |
2254 | else |
2255 | break | |
ad6254c5 | 2256 | fi |
f11781c5 | 2257 | done |
ad6254c5 | 2258 | fi |
f11781c5 AK |
2259 | eval ac_res=\$$3 |
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2261 | $as_echo "$ac_res" >&6; } | |
2262 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2263 | |
f11781c5 | 2264 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2265 | |
f11781c5 AK |
2266 | # ac_fn_c_check_func LINENO FUNC VAR |
2267 | # ---------------------------------- | |
2268 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2269 | ac_fn_c_check_func () | |
2270 | { | |
2271 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2273 | $as_echo_n "checking for $2... " >&6; } | |
2274 | if eval "test \"\${$3+set}\"" = set; then : | |
2275 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2276 | else |
f11781c5 AK |
2277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2278 | /* end confdefs.h. */ | |
2279 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2281 | #define $2 innocuous_$2 | |
ad6254c5 | 2282 | |
f11781c5 AK |
2283 | /* System header to define __stub macros and hopefully few prototypes, |
2284 | which can conflict with char $2 (); below. | |
2285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2286 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2287 | |
f11781c5 AK |
2288 | #ifdef __STDC__ |
2289 | # include <limits.h> | |
2290 | #else | |
2291 | # include <assert.h> | |
2292 | #endif | |
ad6254c5 | 2293 | |
f11781c5 AK |
2294 | #undef $2 |
2295 | ||
2296 | /* Override any GCC internal prototype to avoid an error. | |
2297 | Use char because int might match the return type of a GCC | |
2298 | builtin and then its argument prototype would still apply. */ | |
2299 | #ifdef __cplusplus | |
2300 | extern "C" | |
2301 | #endif | |
2302 | char $2 (); | |
2303 | /* The GNU C library defines this for functions which it implements | |
2304 | to always fail with ENOSYS. Some functions are actually named | |
2305 | something starting with __ and the normal name is an alias. */ | |
2306 | #if defined __stub_$2 || defined __stub___$2 | |
2307 | choke me | |
2308 | #endif | |
ad6254c5 | 2309 | |
ad6254c5 AK |
2310 | int |
2311 | main () | |
2312 | { | |
f11781c5 | 2313 | return $2 (); |
ad6254c5 AK |
2314 | ; |
2315 | return 0; | |
2316 | } | |
2317 | _ACEOF | |
f11781c5 AK |
2318 | if ac_fn_c_try_link "$LINENO"; then : |
2319 | eval "$3=yes" | |
ad6254c5 | 2320 | else |
f11781c5 | 2321 | eval "$3=no" |
ad6254c5 | 2322 | fi |
f11781c5 AK |
2323 | rm -f core conftest.err conftest.$ac_objext \ |
2324 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2325 | fi |
f11781c5 AK |
2326 | eval ac_res=\$$3 |
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2328 | $as_echo "$ac_res" >&6; } | |
2329 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2330 | |
f11781c5 AK |
2331 | } # ac_fn_c_check_func |
2332 | cat >config.log <<_ACEOF | |
2333 | This file contains any messages produced by compilers while | |
2334 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2335 | |
f11781c5 AK |
2336 | It was created by $as_me, which was |
2337 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2338 | |
f11781c5 | 2339 | $ $0 $@ |
ad6254c5 | 2340 | |
ad6254c5 | 2341 | _ACEOF |
f11781c5 AK |
2342 | exec 5>>config.log |
2343 | { | |
2344 | cat <<_ASUNAME | |
2345 | ## --------- ## | |
2346 | ## Platform. ## | |
2347 | ## --------- ## | |
ad6254c5 | 2348 | |
f11781c5 AK |
2349 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2350 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2351 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2352 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2353 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2354 | |
f11781c5 AK |
2355 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2356 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2357 | |
f11781c5 AK |
2358 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2359 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2360 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2361 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2362 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2363 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2364 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2365 | ||
2366 | _ASUNAME | |
2367 | ||
2368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2369 | for as_dir in $PATH | |
2370 | do | |
2371 | IFS=$as_save_IFS | |
2372 | test -z "$as_dir" && as_dir=. | |
2373 | $as_echo "PATH: $as_dir" | |
2374 | done | |
2375 | IFS=$as_save_IFS | |
2376 | ||
2377 | } >&5 | |
2378 | ||
2379 | cat >&5 <<_ACEOF | |
2380 | ||
2381 | ||
2382 | ## ----------- ## | |
2383 | ## Core tests. ## | |
2384 | ## ----------- ## | |
ad6254c5 | 2385 | |
ad6254c5 | 2386 | _ACEOF |
ad6254c5 | 2387 | |
7a197a62 | 2388 | |
f11781c5 AK |
2389 | # Keep a trace of the command line. |
2390 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2391 | # Strip out --silent because we don't want to record it for future runs. | |
2392 | # Also quote any args containing shell meta-characters. | |
2393 | # Make two passes to allow for proper duplicate-argument suppression. | |
2394 | ac_configure_args= | |
2395 | ac_configure_args0= | |
2396 | ac_configure_args1= | |
2397 | ac_must_keep_next=false | |
2398 | for ac_pass in 1 2 | |
2399 | do | |
2400 | for ac_arg | |
2401 | do | |
2402 | case $ac_arg in | |
2403 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2404 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2405 | | -silent | --silent | --silen | --sile | --sil) | |
2406 | continue ;; | |
2407 | *\'*) | |
2408 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2409 | esac | |
2410 | case $ac_pass in | |
2411 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2412 | 2) | |
2413 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2414 | if test $ac_must_keep_next = true; then | |
2415 | ac_must_keep_next=false # Got value, back to normal. | |
2416 | else | |
2417 | case $ac_arg in | |
2418 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2419 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2420 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2421 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2422 | case "$ac_configure_args0 " in | |
2423 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2424 | esac | |
2425 | ;; | |
2426 | -* ) ac_must_keep_next=true ;; | |
2427 | esac | |
2428 | fi | |
2429 | as_fn_append ac_configure_args " '$ac_arg'" | |
2430 | ;; | |
2431 | esac | |
2432 | done | |
2433 | done | |
2434 | { ac_configure_args0=; unset ac_configure_args0;} | |
2435 | { ac_configure_args1=; unset ac_configure_args1;} | |
2436 | ||
2437 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2438 | # config.log. We remove comments because anyway the quotes in there | |
2439 | # would cause problems or look ugly. | |
2440 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2441 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2442 | trap 'exit_status=$? | |
2443 | # Save into config.log some information that might help in debugging. | |
2444 | { | |
2445 | echo | |
2446 | ||
2447 | $as_echo "## ---------------- ## | |
2448 | ## Cache variables. ## | |
2449 | ## ---------------- ##" | |
2450 | echo | |
2451 | # The following way of writing the cache mishandles newlines in values, | |
2452 | ( | |
2453 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2454 | eval ac_val=\$$ac_var | |
2455 | case $ac_val in #( | |
2456 | *${as_nl}*) | |
2457 | case $ac_var in #( | |
2458 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2459 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2460 | esac | |
2461 | case $ac_var in #( | |
2462 | _ | IFS | as_nl) ;; #( | |
2463 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2464 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2465 | esac ;; | |
2466 | esac | |
2467 | done | |
2468 | (set) 2>&1 | | |
2469 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2470 | *${as_nl}ac_space=\ *) | |
2471 | sed -n \ | |
2472 | "s/'\''/'\''\\\\'\'''\''/g; | |
2473 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2474 | ;; #( | |
2475 | *) | |
2476 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2477 | ;; | |
2478 | esac | | |
2479 | sort | |
2480 | ) | |
2481 | echo | |
2482 | ||
2483 | $as_echo "## ----------------- ## | |
2484 | ## Output variables. ## | |
2485 | ## ----------------- ##" | |
2486 | echo | |
2487 | for ac_var in $ac_subst_vars | |
2488 | do | |
2489 | eval ac_val=\$$ac_var | |
2490 | case $ac_val in | |
2491 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2492 | esac | |
2493 | $as_echo "$ac_var='\''$ac_val'\''" | |
2494 | done | sort | |
2495 | echo | |
2496 | ||
2497 | if test -n "$ac_subst_files"; then | |
2498 | $as_echo "## ------------------- ## | |
2499 | ## File substitutions. ## | |
2500 | ## ------------------- ##" | |
2501 | echo | |
2502 | for ac_var in $ac_subst_files | |
2503 | do | |
2504 | eval ac_val=\$$ac_var | |
2505 | case $ac_val in | |
2506 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2507 | esac | |
2508 | $as_echo "$ac_var='\''$ac_val'\''" | |
2509 | done | sort | |
2510 | echo | |
2511 | fi | |
2512 | ||
2513 | if test -s confdefs.h; then | |
2514 | $as_echo "## ----------- ## | |
2515 | ## confdefs.h. ## | |
2516 | ## ----------- ##" | |
2517 | echo | |
2518 | cat confdefs.h | |
2519 | echo | |
2520 | fi | |
2521 | test "$ac_signal" != 0 && | |
2522 | $as_echo "$as_me: caught signal $ac_signal" | |
2523 | $as_echo "$as_me: exit $exit_status" | |
2524 | } >&5 | |
2525 | rm -f core *.core core.conftest.* && | |
2526 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2527 | exit $exit_status | |
2528 | ' 0 | |
2529 | for ac_signal in 1 2 13 15; do | |
2530 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2531 | done | |
2532 | ac_signal=0 | |
2533 | ||
2534 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2535 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2536 | |
f11781c5 | 2537 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2538 | |
f11781c5 | 2539 | # Predefined preprocessor variables. |
ad6254c5 AK |
2540 | |
2541 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2542 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2543 | _ACEOF |
2544 | ||
f11781c5 AK |
2545 | cat >>confdefs.h <<_ACEOF |
2546 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2547 | _ACEOF |
ad6254c5 | 2548 | |
f11781c5 AK |
2549 | cat >>confdefs.h <<_ACEOF |
2550 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2551 | _ACEOF |
f11781c5 AK |
2552 | |
2553 | cat >>confdefs.h <<_ACEOF | |
2554 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2555 | _ACEOF |
ad6254c5 | 2556 | |
f11781c5 AK |
2557 | cat >>confdefs.h <<_ACEOF |
2558 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2559 | _ACEOF | |
7a197a62 | 2560 | |
f11781c5 AK |
2561 | cat >>confdefs.h <<_ACEOF |
2562 | #define PACKAGE_URL "$PACKAGE_URL" | |
2563 | _ACEOF | |
ad6254c5 | 2564 | |
7a197a62 | 2565 | |
f11781c5 AK |
2566 | # Let the site file select an alternate cache file if it wants to. |
2567 | # Prefer an explicitly selected file to automatically selected ones. | |
2568 | ac_site_file1=NONE | |
2569 | ac_site_file2=NONE | |
2570 | if test -n "$CONFIG_SITE"; then | |
2571 | # We do not want a PATH search for config.site. | |
2572 | case $CONFIG_SITE in #(( | |
2573 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2574 | */*) ac_site_file1=$CONFIG_SITE;; | |
2575 | *) ac_site_file1=./$CONFIG_SITE;; | |
2576 | esac | |
2577 | elif test "x$prefix" != xNONE; then | |
2578 | ac_site_file1=$prefix/share/config.site | |
2579 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2580 | else |
f11781c5 AK |
2581 | ac_site_file1=$ac_default_prefix/share/config.site |
2582 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2583 | fi |
f11781c5 AK |
2584 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2585 | do | |
2586 | test "x$ac_site_file" = xNONE && continue | |
2587 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2589 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2590 | sed 's/^/| /' "$ac_site_file" >&5 | |
2591 | . "$ac_site_file" \ | |
2592 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2593 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2594 | as_fn_error $? "failed to load site script $ac_site_file | |
2595 | See \`config.log' for more details" "$LINENO" 5; } | |
2596 | fi | |
2597 | done | |
ad6254c5 | 2598 | |
f11781c5 AK |
2599 | if test -r "$cache_file"; then |
2600 | # Some versions of bash will fail to source /dev/null (special files | |
2601 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2602 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2604 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2605 | case $cache_file in | |
2606 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2607 | *) . "./$cache_file";; | |
2608 | esac | |
2609 | fi | |
2610 | else | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2612 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2613 | >$cache_file | |
ad6254c5 | 2614 | fi |
ad6254c5 | 2615 | |
f11781c5 AK |
2616 | as_fn_append ac_header_list " stdlib.h" |
2617 | as_fn_append ac_header_list " unistd.h" | |
2618 | as_fn_append ac_header_list " sys/param.h" | |
2619 | # Check that the precious variables saved in the cache have kept the same | |
2620 | # value. | |
2621 | ac_cache_corrupted=false | |
2622 | for ac_var in $ac_precious_vars; do | |
2623 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2624 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2625 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2626 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2627 | case $ac_old_set,$ac_new_set in | |
2628 | set,) | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2630 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2631 | ac_cache_corrupted=: ;; | |
2632 | ,set) | |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2634 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2635 | ac_cache_corrupted=: ;; | |
2636 | ,);; | |
2637 | *) | |
2638 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2639 | # differences in whitespace do not lead to failure. | |
2640 | ac_old_val_w=`echo x $ac_old_val` | |
2641 | ac_new_val_w=`echo x $ac_new_val` | |
2642 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2644 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2645 | ac_cache_corrupted=: | |
2646 | else | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2648 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2649 | eval $ac_var=\$ac_old_val | |
2650 | fi | |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2652 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2654 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2655 | fi;; | |
2656 | esac | |
2657 | # Pass precious variables to config.status. | |
2658 | if test "$ac_new_set" = set; then | |
2659 | case $ac_new_val in | |
2660 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2661 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2662 | esac | |
2663 | case " $ac_configure_args " in | |
2664 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2665 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2666 | esac | |
2667 | fi | |
2668 | done | |
2669 | if $ac_cache_corrupted; then | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2673 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2674 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2675 | fi |
f11781c5 AK |
2676 | ## -------------------- ## |
2677 | ## Main body of script. ## | |
2678 | ## -------------------- ## | |
ad6254c5 | 2679 | |
f11781c5 AK |
2680 | ac_ext=c |
2681 | ac_cpp='$CPP $CPPFLAGS' | |
2682 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2683 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2684 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2685 | |
ad6254c5 | 2686 | |
ad6254c5 | 2687 | |
f11781c5 | 2688 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2689 | |
2690 | ||
f11781c5 AK |
2691 | ################################################################################ |
2692 | ac_aux_dir= | |
2693 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2694 | if test -f "$ac_dir/install-sh"; then | |
2695 | ac_aux_dir=$ac_dir | |
2696 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2697 | break | |
2698 | elif test -f "$ac_dir/install.sh"; then | |
2699 | ac_aux_dir=$ac_dir | |
2700 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2701 | break | |
2702 | elif test -f "$ac_dir/shtool"; then | |
2703 | ac_aux_dir=$ac_dir | |
2704 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2705 | break | |
2706 | fi | |
2707 | done | |
2708 | if test -z "$ac_aux_dir"; then | |
2709 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2710 | fi |
ad6254c5 | 2711 | |
f11781c5 AK |
2712 | # These three variables are undocumented and unsupported, |
2713 | # and are intended to be withdrawn in a future Autoconf release. | |
2714 | # They can cause serious problems if a builder's source tree is in a directory | |
2715 | # whose full name contains unusual characters. | |
2716 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2717 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2718 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2719 | |
ad6254c5 | 2720 | |
8a2fc586 | 2721 | |
f11781c5 AK |
2722 | ################################################################################ |
2723 | # Make sure we can run config.sub. | |
2724 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2725 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2726 | |
f11781c5 AK |
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2728 | $as_echo_n "checking build system type... " >&6; } | |
2729 | if test "${ac_cv_build+set}" = set; then : | |
2730 | $as_echo_n "(cached) " >&6 | |
2731 | else | |
2732 | ac_build_alias=$build_alias | |
2733 | test "x$ac_build_alias" = x && | |
2734 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2735 | test "x$ac_build_alias" = x && | |
2736 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2737 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2738 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2739 | |
2740 | fi | |
f11781c5 AK |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2742 | $as_echo "$ac_cv_build" >&6; } | |
2743 | case $ac_cv_build in | |
2744 | *-*-*) ;; | |
2745 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2746 | esac | |
2747 | build=$ac_cv_build | |
2748 | ac_save_IFS=$IFS; IFS='-' | |
2749 | set x $ac_cv_build | |
2750 | shift | |
2751 | build_cpu=$1 | |
2752 | build_vendor=$2 | |
2753 | shift; shift | |
2754 | # Remember, the first character of IFS is used to create $*, | |
2755 | # except with old shells: | |
2756 | build_os=$* | |
2757 | IFS=$ac_save_IFS | |
2758 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2759 | |
2760 | ||
f11781c5 AK |
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2762 | $as_echo_n "checking host system type... " >&6; } | |
2763 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2764 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2765 | else |
f11781c5 AK |
2766 | if test "x$host_alias" = x; then |
2767 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2768 | else |
f11781c5 AK |
2769 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2770 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2771 | fi | |
ad6254c5 | 2772 | |
f11781c5 AK |
2773 | fi |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2775 | $as_echo "$ac_cv_host" >&6; } | |
2776 | case $ac_cv_host in | |
2777 | *-*-*) ;; | |
2778 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2779 | esac | |
2780 | host=$ac_cv_host | |
2781 | ac_save_IFS=$IFS; IFS='-' | |
2782 | set x $ac_cv_host | |
2783 | shift | |
2784 | host_cpu=$1 | |
2785 | host_vendor=$2 | |
2786 | shift; shift | |
2787 | # Remember, the first character of IFS is used to create $*, | |
2788 | # except with old shells: | |
2789 | host_os=$* | |
2790 | IFS=$ac_save_IFS | |
2791 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2792 | |
ad6254c5 | 2793 | |
f11781c5 AK |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2795 | $as_echo_n "checking target system type... " >&6; } | |
2796 | if test "${ac_cv_target+set}" = set; then : | |
2797 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2798 | else |
f11781c5 AK |
2799 | if test "x$target_alias" = x; then |
2800 | ac_cv_target=$ac_cv_host | |
2801 | else | |
2802 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2803 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2804 | fi |
7a197a62 | 2805 | |
ad6254c5 | 2806 | fi |
f11781c5 AK |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2808 | $as_echo "$ac_cv_target" >&6; } | |
2809 | case $ac_cv_target in | |
2810 | *-*-*) ;; | |
2811 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2812 | esac |
f11781c5 AK |
2813 | target=$ac_cv_target |
2814 | ac_save_IFS=$IFS; IFS='-' | |
2815 | set x $ac_cv_target | |
2816 | shift | |
2817 | target_cpu=$1 | |
2818 | target_vendor=$2 | |
2819 | shift; shift | |
2820 | # Remember, the first character of IFS is used to create $*, | |
2821 | # except with old shells: | |
2822 | target_os=$* | |
2823 | IFS=$ac_save_IFS | |
2824 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2825 | |
ad6254c5 | 2826 | |
f11781c5 AK |
2827 | # The aliases save the names the user supplied, while $host etc. |
2828 | # will get canonicalized. | |
2829 | test -n "$target_alias" && | |
2830 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2831 | NONENONEs,x,x, && | |
2832 | program_prefix=${target_alias}- | |
ad6254c5 | 2833 | |
f11781c5 AK |
2834 | case "$host_os" in |
2835 | linux*) | |
2836 | CFLAGS="$CFLAGS" | |
2837 | COPTIMISE_FLAG="-O2" | |
2838 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
bf09a320 AK |
2839 | ELDFLAGS="-Wl,--export-dynamic" |
2840 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
f11781c5 AK |
2841 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
2842 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2843 | LDDEPS="$LDDEPS .export.sym" | |
f11781c5 AK |
2844 | LIB_SUFFIX=so |
2845 | DEVMAPPER=yes | |
cdd50823 | 2846 | LVMETAD=no |
f11781c5 AK |
2847 | ODIRECT=yes |
2848 | DM_IOCTLS=yes | |
2849 | SELINUX=yes | |
2850 | CLUSTER=internal | |
2851 | FSADM=yes | |
2852 | ;; | |
2853 | darwin*) | |
2854 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2855 | COPTIMISE_FLAG="-O2" | |
2856 | CLDFLAGS="$CLDFLAGS" | |
bf09a320 | 2857 | ELDFLAGS= |
f11781c5 AK |
2858 | CLDWHOLEARCHIVE="-all_load" |
2859 | CLDNOWHOLEARCHIVE= | |
2860 | LIB_SUFFIX=dylib | |
2861 | DEVMAPPER=yes | |
2862 | ODIRECT=no | |
2863 | DM_IOCTLS=no | |
2864 | SELINUX=no | |
2865 | CLUSTER=none | |
2866 | FSADM=no | |
2867 | ;; | |
2868 | esac | |
ad6254c5 | 2869 | |
f11781c5 AK |
2870 | ################################################################################ |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2872 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2873 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2874 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2875 | else |
f11781c5 AK |
2876 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2877 | for ac_i in 1 2 3 4 5 6 7; do | |
2878 | ac_script="$ac_script$as_nl$ac_script" | |
2879 | done | |
2880 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2881 | { ac_script=; unset ac_script;} | |
2882 | if test -z "$SED"; then | |
2883 | ac_path_SED_found=false | |
2884 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2886 | for as_dir in $PATH | |
2887 | do | |
2888 | IFS=$as_save_IFS | |
2889 | test -z "$as_dir" && as_dir=. | |
2890 | for ac_prog in sed gsed; do | |
2891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2892 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2893 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2894 | # Check for GNU ac_path_SED and select it if it is found. | |
2895 | # Check for GNU $ac_path_SED | |
2896 | case `"$ac_path_SED" --version 2>&1` in | |
2897 | *GNU*) | |
2898 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2899 | *) | |
2900 | ac_count=0 | |
2901 | $as_echo_n 0123456789 >"conftest.in" | |
2902 | while : | |
2903 | do | |
2904 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2905 | mv "conftest.tmp" "conftest.in" | |
2906 | cp "conftest.in" "conftest.nl" | |
2907 | $as_echo '' >> "conftest.nl" | |
2908 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2909 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2910 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2911 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2912 | # Best one so far, save it but keep looking for a better one | |
2913 | ac_cv_path_SED="$ac_path_SED" | |
2914 | ac_path_SED_max=$ac_count | |
2915 | fi | |
2916 | # 10*(2^10) chars as input seems more than enough | |
2917 | test $ac_count -gt 10 && break | |
2918 | done | |
2919 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2920 | esac |
ad6254c5 | 2921 | |
f11781c5 AK |
2922 | $ac_path_SED_found && break 3 |
2923 | done | |
2924 | done | |
2925 | done | |
2926 | IFS=$as_save_IFS | |
2927 | if test -z "$ac_cv_path_SED"; then | |
2928 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2929 | fi | |
2930 | else | |
2931 | ac_cv_path_SED=$SED | |
ad6254c5 | 2932 | fi |
7a197a62 | 2933 | |
f11781c5 AK |
2934 | fi |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2936 | $as_echo "$ac_cv_path_SED" >&6; } | |
2937 | SED="$ac_cv_path_SED" | |
2938 | rm -f conftest.sed | |
ad6254c5 | 2939 | |
f11781c5 AK |
2940 | for ac_prog in gawk mawk nawk awk |
2941 | do | |
2942 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2943 | set dummy $ac_prog; ac_word=$2 | |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2945 | $as_echo_n "checking for $ac_word... " >&6; } | |
2946 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2947 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2948 | else |
f11781c5 AK |
2949 | if test -n "$AWK"; then |
2950 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2951 | else | |
2952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2953 | for as_dir in $PATH | |
2954 | do | |
2955 | IFS=$as_save_IFS | |
2956 | test -z "$as_dir" && as_dir=. | |
2957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2959 | ac_cv_prog_AWK="$ac_prog" | |
2960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2961 | break 2 | |
2962 | fi | |
2963 | done | |
2964 | done | |
2965 | IFS=$as_save_IFS | |
ad6254c5 | 2966 | |
ad6254c5 | 2967 | fi |
ad6254c5 | 2968 | fi |
f11781c5 AK |
2969 | AWK=$ac_cv_prog_AWK |
2970 | if test -n "$AWK"; then | |
2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2972 | $as_echo "$AWK" >&6; } | |
2973 | else | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2975 | $as_echo "no" >&6; } | |
ad6254c5 | 2976 | fi |
ad6254c5 | 2977 | |
ad6254c5 | 2978 | |
f11781c5 | 2979 | test -n "$AWK" && break |
ad6254c5 AK |
2980 | done |
2981 | ||
f11781c5 AK |
2982 | ac_ext=c |
2983 | ac_cpp='$CPP $CPPFLAGS' | |
2984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2987 | if test -n "$ac_tool_prefix"; then | |
2988 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2989 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2991 | $as_echo_n "checking for $ac_word... " >&6; } | |
2992 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2993 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2994 | else |
f11781c5 AK |
2995 | if test -n "$CC"; then |
2996 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2997 | else |
f11781c5 AK |
2998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2999 | for as_dir in $PATH | |
3000 | do | |
3001 | IFS=$as_save_IFS | |
3002 | test -z "$as_dir" && as_dir=. | |
3003 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3004 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3005 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3007 | break 2 | |
3008 | fi | |
3009 | done | |
3010 | done | |
3011 | IFS=$as_save_IFS | |
ad6254c5 | 3012 | |
ad6254c5 | 3013 | fi |
ad6254c5 | 3014 | fi |
f11781c5 AK |
3015 | CC=$ac_cv_prog_CC |
3016 | if test -n "$CC"; then | |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3018 | $as_echo "$CC" >&6; } | |
3019 | else | |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3021 | $as_echo "no" >&6; } | |
ad6254c5 | 3022 | fi |
ad6254c5 | 3023 | |
f11781c5 AK |
3024 | |
3025 | fi | |
3026 | if test -z "$ac_cv_prog_CC"; then | |
3027 | ac_ct_CC=$CC | |
3028 | # Extract the first word of "gcc", so it can be a program name with args. | |
3029 | set dummy gcc; ac_word=$2 | |
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3031 | $as_echo_n "checking for $ac_word... " >&6; } | |
3032 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3033 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3034 | else |
f11781c5 AK |
3035 | if test -n "$ac_ct_CC"; then |
3036 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3037 | else |
f11781c5 AK |
3038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3039 | for as_dir in $PATH | |
3040 | do | |
3041 | IFS=$as_save_IFS | |
3042 | test -z "$as_dir" && as_dir=. | |
3043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3045 | ac_cv_prog_ac_ct_CC="gcc" | |
3046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3047 | break 2 | |
3048 | fi | |
3049 | done | |
3050 | done | |
3051 | IFS=$as_save_IFS | |
d911ec67 | 3052 | |
d911ec67 | 3053 | fi |
d911ec67 | 3054 | fi |
f11781c5 AK |
3055 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3056 | if test -n "$ac_ct_CC"; then | |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3058 | $as_echo "$ac_ct_CC" >&6; } | |
3059 | else | |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3061 | $as_echo "no" >&6; } | |
d911ec67 | 3062 | fi |
d911ec67 | 3063 | |
f11781c5 AK |
3064 | if test "x$ac_ct_CC" = x; then |
3065 | CC="" | |
3066 | else | |
3067 | case $cross_compiling:$ac_tool_warned in | |
3068 | yes:) | |
3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3070 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3071 | ac_tool_warned=yes ;; | |
3072 | esac | |
3073 | CC=$ac_ct_CC | |
3074 | fi | |
3075 | else | |
3076 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3077 | fi |
d911ec67 | 3078 | |
f11781c5 AK |
3079 | if test -z "$CC"; then |
3080 | if test -n "$ac_tool_prefix"; then | |
3081 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3082 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3084 | $as_echo_n "checking for $ac_word... " >&6; } | |
3085 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3086 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3087 | else |
f11781c5 AK |
3088 | if test -n "$CC"; then |
3089 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3090 | else |
f11781c5 AK |
3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3092 | for as_dir in $PATH | |
3093 | do | |
3094 | IFS=$as_save_IFS | |
3095 | test -z "$as_dir" && as_dir=. | |
3096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3098 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3100 | break 2 | |
3101 | fi | |
3102 | done | |
3103 | done | |
3104 | IFS=$as_save_IFS | |
d911ec67 | 3105 | |
f11781c5 AK |
3106 | fi |
3107 | fi | |
3108 | CC=$ac_cv_prog_CC | |
3109 | if test -n "$CC"; then | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3111 | $as_echo "$CC" >&6; } | |
3112 | else | |
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3114 | $as_echo "no" >&6; } | |
d911ec67 AK |
3115 | fi |
3116 | ||
d911ec67 | 3117 | |
f11781c5 AK |
3118 | fi |
3119 | fi | |
3120 | if test -z "$CC"; then | |
3121 | # Extract the first word of "cc", so it can be a program name with args. | |
3122 | set dummy cc; ac_word=$2 | |
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3124 | $as_echo_n "checking for $ac_word... " >&6; } | |
3125 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3126 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3127 | else |
f11781c5 AK |
3128 | if test -n "$CC"; then |
3129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3130 | else | |
3131 | ac_prog_rejected=no | |
3132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3133 | for as_dir in $PATH | |
3134 | do | |
3135 | IFS=$as_save_IFS | |
3136 | test -z "$as_dir" && as_dir=. | |
3137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3139 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3140 | ac_prog_rejected=yes | |
3141 | continue | |
3142 | fi | |
3143 | ac_cv_prog_CC="cc" | |
3144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3145 | break 2 | |
3146 | fi | |
3147 | done | |
3148 | done | |
3149 | IFS=$as_save_IFS | |
d911ec67 | 3150 | |
f11781c5 AK |
3151 | if test $ac_prog_rejected = yes; then |
3152 | # We found a bogon in the path, so make sure we never use it. | |
3153 | set dummy $ac_cv_prog_CC | |
3154 | shift | |
3155 | if test $# != 0; then | |
3156 | # We chose a different compiler from the bogus one. | |
3157 | # However, it has the same basename, so the bogon will be chosen | |
3158 | # first if we set CC to just the basename; use the full file name. | |
3159 | shift | |
3160 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3161 | fi | |
3162 | fi | |
3163 | fi | |
3164 | fi | |
3165 | CC=$ac_cv_prog_CC | |
3166 | if test -n "$CC"; then | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3168 | $as_echo "$CC" >&6; } | |
3169 | else | |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3171 | $as_echo "no" >&6; } | |
d911ec67 AK |
3172 | fi |
3173 | ||
d911ec67 | 3174 | |
f11781c5 AK |
3175 | fi |
3176 | if test -z "$CC"; then | |
3177 | if test -n "$ac_tool_prefix"; then | |
3178 | for ac_prog in cl.exe | |
3179 | do | |
3180 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3181 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3183 | $as_echo_n "checking for $ac_word... " >&6; } | |
3184 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3185 | $as_echo_n "(cached) " >&6 |
3186 | else | |
f11781c5 AK |
3187 | if test -n "$CC"; then |
3188 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3189 | else | |
3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3191 | for as_dir in $PATH | |
3192 | do | |
3193 | IFS=$as_save_IFS | |
3194 | test -z "$as_dir" && as_dir=. | |
3195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3196 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3197 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3199 | break 2 | |
3200 | fi | |
3201 | done | |
3202 | done | |
3203 | IFS=$as_save_IFS | |
d911ec67 AK |
3204 | |
3205 | fi | |
f11781c5 AK |
3206 | fi |
3207 | CC=$ac_cv_prog_CC | |
3208 | if test -n "$CC"; then | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3210 | $as_echo "$CC" >&6; } | |
3211 | else | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3213 | $as_echo "no" >&6; } | |
d911ec67 AK |
3214 | fi |
3215 | ||
d911ec67 | 3216 | |
f11781c5 AK |
3217 | test -n "$CC" && break |
3218 | done | |
3219 | fi | |
3220 | if test -z "$CC"; then | |
3221 | ac_ct_CC=$CC | |
3222 | for ac_prog in cl.exe | |
3223 | do | |
3224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3225 | set dummy $ac_prog; ac_word=$2 | |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3227 | $as_echo_n "checking for $ac_word... " >&6; } | |
3228 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3229 | $as_echo_n "(cached) " >&6 |
3230 | else | |
f11781c5 AK |
3231 | if test -n "$ac_ct_CC"; then |
3232 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3233 | else |
f11781c5 AK |
3234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3235 | for as_dir in $PATH | |
3236 | do | |
3237 | IFS=$as_save_IFS | |
3238 | test -z "$as_dir" && as_dir=. | |
3239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3241 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3243 | break 2 | |
3244 | fi | |
3245 | done | |
3246 | done | |
3247 | IFS=$as_save_IFS | |
ad6254c5 | 3248 | |
ad6254c5 | 3249 | fi |
ad6254c5 | 3250 | fi |
f11781c5 AK |
3251 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3252 | if test -n "$ac_ct_CC"; then | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3254 | $as_echo "$ac_ct_CC" >&6; } | |
3255 | else | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3257 | $as_echo "no" >&6; } | |
ad6254c5 | 3258 | fi |
ad6254c5 | 3259 | |
d911ec67 | 3260 | |
f11781c5 AK |
3261 | test -n "$ac_ct_CC" && break |
3262 | done | |
d911ec67 | 3263 | |
f11781c5 AK |
3264 | if test "x$ac_ct_CC" = x; then |
3265 | CC="" | |
3266 | else | |
3267 | case $cross_compiling:$ac_tool_warned in | |
3268 | yes:) | |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3270 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3271 | ac_tool_warned=yes ;; | |
d911ec67 | 3272 | esac |
f11781c5 AK |
3273 | CC=$ac_ct_CC |
3274 | fi | |
3275 | fi | |
ad6254c5 AK |
3276 | |
3277 | fi | |
d911ec67 AK |
3278 | |
3279 | ||
f11781c5 AK |
3280 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3282 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3283 | See \`config.log' for more details" "$LINENO" 5; } | |
3284 | ||
3285 | # Provide some information about the compiler. | |
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3287 | set X $ac_compile | |
3288 | ac_compiler=$2 | |
3289 | for ac_option in --version -v -V -qversion; do | |
3290 | { { ac_try="$ac_compiler $ac_option >&5" | |
3291 | case "(($ac_try" in | |
3292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3293 | *) ac_try_echo=$ac_try;; | |
3294 | esac | |
3295 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3296 | $as_echo "$ac_try_echo"; } >&5 | |
3297 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3298 | ac_status=$? | |
3299 | if test -s conftest.err; then | |
3300 | sed '10a\ | |
3301 | ... rest of stderr output deleted ... | |
3302 | 10q' conftest.err >conftest.er1 | |
3303 | cat conftest.er1 >&5 | |
3304 | fi | |
3305 | rm -f conftest.er1 conftest.err | |
3306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3307 | test $ac_status = 0; } | |
3308 | done | |
ad6254c5 | 3309 | |
f11781c5 | 3310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3311 | /* end confdefs.h. */ |
f11781c5 | 3312 | |
ad6254c5 AK |
3313 | int |
3314 | main () | |
3315 | { | |
f11781c5 | 3316 | |
ad6254c5 AK |
3317 | ; |
3318 | return 0; | |
3319 | } | |
3320 | _ACEOF | |
f11781c5 AK |
3321 | ac_clean_files_save=$ac_clean_files |
3322 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3323 | # Try to create an executable without -o first, disregard a.out. | |
3324 | # It will help us diagnose broken compilers, and finding out an intuition | |
3325 | # of exeext. | |
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3327 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3328 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3329 | ||
3330 | # The possible output files: | |
3331 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3332 | ||
3333 | ac_rmfiles= | |
3334 | for ac_file in $ac_files | |
3335 | do | |
3336 | case $ac_file in | |
3337 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3338 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3339 | esac | |
3340 | done | |
3341 | rm -f $ac_rmfiles | |
3342 | ||
3343 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3344 | case "(($ac_try" in |
3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3346 | *) ac_try_echo=$ac_try;; | |
3347 | esac | |
f11781c5 AK |
3348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3349 | $as_echo "$ac_try_echo"; } >&5 | |
3350 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3351 | ac_status=$? |
f11781c5 AK |
3352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3353 | test $ac_status = 0; }; then : | |
3354 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3355 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3356 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3357 | # so that the user can short-circuit this test for compilers unknown to | |
3358 | # Autoconf. | |
3359 | for ac_file in $ac_files '' | |
3360 | do | |
3361 | test -f "$ac_file" || continue | |
3362 | case $ac_file in | |
3363 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3364 | ;; | |
3365 | [ab].out ) | |
3366 | # We found the default executable, but exeext='' is most | |
3367 | # certainly right. | |
3368 | break;; | |
3369 | *.* ) | |
3370 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3371 | then :; else | |
3372 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3373 | fi | |
3374 | # We set ac_cv_exeext here because the later test for it is not | |
3375 | # safe: cross compilers may not add the suffix if given an `-o' | |
3376 | # argument, so we may need to know it at that point already. | |
3377 | # Even if this section looks crufty: it has the advantage of | |
3378 | # actually working. | |
3379 | break;; | |
3380 | * ) | |
3381 | break;; | |
3382 | esac | |
3383 | done | |
3384 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3385 | ||
ad6254c5 | 3386 | else |
f11781c5 AK |
3387 | ac_file='' |
3388 | fi | |
3389 | if test -z "$ac_file"; then : | |
3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3391 | $as_echo "no" >&6; } | |
ec6a6fbe | 3392 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3393 | sed 's/^/| /' conftest.$ac_ext >&5 |
3394 | ||
f11781c5 AK |
3395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3397 | as_fn_error 77 "C compiler cannot create executables | |
3398 | See \`config.log' for more details" "$LINENO" 5; } | |
3399 | else | |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3401 | $as_echo "yes" >&6; } | |
ad6254c5 | 3402 | fi |
f11781c5 AK |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3404 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3406 | $as_echo "$ac_file" >&6; } | |
3407 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3408 | |
f11781c5 AK |
3409 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3410 | ac_clean_files=$ac_clean_files_save | |
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3412 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3413 | if { { ac_try="$ac_link" | |
3414 | case "(($ac_try" in | |
3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3416 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3417 | esac |
f11781c5 AK |
3418 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3419 | $as_echo "$ac_try_echo"; } >&5 | |
3420 | (eval "$ac_link") 2>&5 | |
3421 | ac_status=$? | |
3422 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3423 | test $ac_status = 0; }; then : | |
3424 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3425 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3426 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3427 | # `rm'. | |
3428 | for ac_file in conftest.exe conftest conftest.*; do | |
3429 | test -f "$ac_file" || continue | |
3430 | case $ac_file in | |
3431 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3432 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3433 | break;; | |
3434 | * ) break;; | |
3435 | esac | |
3436 | done | |
3437 | else | |
3438 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3440 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3441 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3442 | fi |
f11781c5 AK |
3443 | rm -f conftest conftest$ac_cv_exeext |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3445 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3446 | |
f11781c5 AK |
3447 | rm -f conftest.$ac_ext |
3448 | EXEEXT=$ac_cv_exeext | |
3449 | ac_exeext=$EXEEXT | |
3450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3451 | /* end confdefs.h. */ |
f11781c5 | 3452 | #include <stdio.h> |
ad6254c5 | 3453 | int |
f11781c5 | 3454 | main () |
ad6254c5 | 3455 | { |
f11781c5 AK |
3456 | FILE *f = fopen ("conftest.out", "w"); |
3457 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3458 | |
f11781c5 | 3459 | ; |
7a197a62 | 3460 | return 0; |
ad6254c5 | 3461 | } |
ad6254c5 | 3462 | _ACEOF |
f11781c5 AK |
3463 | ac_clean_files="$ac_clean_files conftest.out" |
3464 | # Check that the compiler produces executables we can run. If not, either | |
3465 | # the compiler is broken, or we cross compile. | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3467 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3468 | if test "$cross_compiling" != yes; then | |
3469 | { { ac_try="$ac_link" | |
7a197a62 AK |
3470 | case "(($ac_try" in |
3471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3472 | *) ac_try_echo=$ac_try;; | |
3473 | esac | |
f11781c5 AK |
3474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3475 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3476 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3477 | ac_status=$? |
f11781c5 AK |
3478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3479 | test $ac_status = 0; } | |
3480 | if { ac_try='./conftest$ac_cv_exeext' | |
3481 | { { case "(($ac_try" in | |
7a197a62 AK |
3482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3483 | *) ac_try_echo=$ac_try;; | |
3484 | esac | |
f11781c5 AK |
3485 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3486 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3487 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3488 | ac_status=$? |
f11781c5 AK |
3489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3490 | test $ac_status = 0; }; }; then | |
3491 | cross_compiling=no | |
3492 | else | |
3493 | if test "$cross_compiling" = maybe; then | |
3494 | cross_compiling=yes | |
3495 | else | |
3496 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3498 | as_fn_error $? "cannot run C compiled programs. | |
3499 | If you meant to cross compile, use \`--host'. | |
3500 | See \`config.log' for more details" "$LINENO" 5; } | |
3501 | fi | |
3502 | fi | |
3503 | fi | |
3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3505 | $as_echo "$cross_compiling" >&6; } | |
3506 | ||
3507 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3508 | ac_clean_files=$ac_clean_files_save | |
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3510 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3511 | if test "${ac_cv_objext+set}" = set; then : | |
3512 | $as_echo_n "(cached) " >&6 | |
3513 | else | |
3514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3515 | /* end confdefs.h. */ | |
ad6254c5 AK |
3516 | |
3517 | int | |
3518 | main () | |
3519 | { | |
f11781c5 | 3520 | |
ad6254c5 AK |
3521 | ; |
3522 | return 0; | |
3523 | } | |
3524 | _ACEOF | |
f11781c5 AK |
3525 | rm -f conftest.o conftest.obj |
3526 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3527 | case "(($ac_try" in |
3528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3529 | *) ac_try_echo=$ac_try;; | |
3530 | esac | |
f11781c5 AK |
3531 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3532 | $as_echo "$ac_try_echo"; } >&5 | |
3533 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3534 | ac_status=$? |
f11781c5 AK |
3535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3536 | test $ac_status = 0; }; then : | |
3537 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3538 | test -f "$ac_file" || continue; | |
3539 | case $ac_file in | |
3540 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3541 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3542 | break;; | |
3543 | esac | |
3544 | done | |
ad6254c5 | 3545 | else |
ec6a6fbe | 3546 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3547 | sed 's/^/| /' conftest.$ac_ext >&5 |
3548 | ||
f11781c5 AK |
3549 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3550 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3551 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3552 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3553 | fi |
f11781c5 | 3554 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3555 | fi |
f11781c5 AK |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3557 | $as_echo "$ac_cv_objext" >&6; } | |
3558 | OBJEXT=$ac_cv_objext | |
3559 | ac_objext=$OBJEXT | |
3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3561 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3562 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3563 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3564 | else |
f11781c5 | 3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3566 | /* end confdefs.h. */ |
3567 | ||
ad6254c5 AK |
3568 | int |
3569 | main () | |
3570 | { | |
f11781c5 AK |
3571 | #ifndef __GNUC__ |
3572 | choke me | |
3573 | #endif | |
3574 | ||
ad6254c5 AK |
3575 | ; |
3576 | return 0; | |
3577 | } | |
3578 | _ACEOF | |
f11781c5 AK |
3579 | if ac_fn_c_try_compile "$LINENO"; then : |
3580 | ac_compiler_gnu=yes | |
ad6254c5 | 3581 | else |
f11781c5 | 3582 | ac_compiler_gnu=no |
ad6254c5 | 3583 | fi |
f11781c5 AK |
3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3585 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3586 | |
d0191583 | 3587 | fi |
f11781c5 AK |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3589 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3590 | if test $ac_compiler_gnu = yes; then | |
3591 | GCC=yes | |
d0191583 | 3592 | else |
f11781c5 | 3593 | GCC= |
d0191583 | 3594 | fi |
f11781c5 AK |
3595 | ac_test_CFLAGS=${CFLAGS+set} |
3596 | ac_save_CFLAGS=$CFLAGS | |
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3598 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3599 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3600 | $as_echo_n "(cached) " >&6 | |
3601 | else | |
3602 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3603 | ac_c_werror_flag=yes | |
3604 | ac_cv_prog_cc_g=no | |
3605 | CFLAGS="-g" | |
3606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3607 | /* end confdefs.h. */ | |
72b2cb61 | 3608 | |
f11781c5 AK |
3609 | int |
3610 | main () | |
3611 | { | |
72b2cb61 | 3612 | |
f11781c5 AK |
3613 | ; |
3614 | return 0; | |
3615 | } | |
3616 | _ACEOF | |
3617 | if ac_fn_c_try_compile "$LINENO"; then : | |
3618 | ac_cv_prog_cc_g=yes | |
3619 | else | |
3620 | CFLAGS="" | |
3621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3622 | /* end confdefs.h. */ | |
ad6254c5 | 3623 | |
f11781c5 AK |
3624 | int |
3625 | main () | |
3626 | { | |
ad6254c5 | 3627 | |
f11781c5 AK |
3628 | ; |
3629 | return 0; | |
3630 | } | |
d0191583 | 3631 | _ACEOF |
f11781c5 AK |
3632 | if ac_fn_c_try_compile "$LINENO"; then : |
3633 | ||
3634 | else | |
3635 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3636 | CFLAGS="-g" | |
3637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3638 | /* end confdefs.h. */ |
7a197a62 | 3639 | |
f11781c5 AK |
3640 | int |
3641 | main () | |
3642 | { | |
ad6254c5 | 3643 | |
f11781c5 AK |
3644 | ; |
3645 | return 0; | |
3646 | } | |
3647 | _ACEOF | |
3648 | if ac_fn_c_try_compile "$LINENO"; then : | |
3649 | ac_cv_prog_cc_g=yes | |
3650 | fi | |
3651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3652 | fi | |
3653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3654 | fi | |
3655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3656 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3657 | fi | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3659 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3660 | if test "$ac_test_CFLAGS" = set; then | |
3661 | CFLAGS=$ac_save_CFLAGS | |
3662 | elif test $ac_cv_prog_cc_g = yes; then | |
3663 | if test "$GCC" = yes; then | |
3664 | CFLAGS="-g -O2" | |
3665 | else | |
3666 | CFLAGS="-g" | |
3667 | fi | |
3668 | else | |
3669 | if test "$GCC" = yes; then | |
3670 | CFLAGS="-O2" | |
3671 | else | |
3672 | CFLAGS= | |
3673 | fi | |
3674 | fi | |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3676 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3677 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3678 | $as_echo_n "(cached) " >&6 | |
3679 | else | |
3680 | ac_cv_prog_cc_c89=no | |
3681 | ac_save_CC=$CC | |
3682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3683 | /* end confdefs.h. */ | |
3684 | #include <stdarg.h> | |
3685 | #include <stdio.h> | |
3686 | #include <sys/types.h> | |
3687 | #include <sys/stat.h> | |
3688 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3689 | struct buf { int x; }; | |
3690 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3691 | static char *e (p, i) | |
3692 | char **p; | |
3693 | int i; | |
3694 | { | |
3695 | return p[i]; | |
3696 | } | |
3697 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3698 | { | |
3699 | char *s; | |
3700 | va_list v; | |
3701 | va_start (v,p); | |
3702 | s = g (p, va_arg (v,int)); | |
3703 | va_end (v); | |
3704 | return s; | |
3705 | } | |
ad6254c5 | 3706 | |
f11781c5 AK |
3707 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3708 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3709 | These don't provoke an error unfortunately, instead are silently treated | |
3710 | as 'x'. The following induces an error, until -std is added to get | |
3711 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3712 | array size at least. It's necessary to write '\x00'==0 to get something | |
3713 | that's true only with -std. */ | |
3714 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3715 | |
f11781c5 AK |
3716 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3717 | inside strings and character constants. */ | |
3718 | #define FOO(x) 'x' | |
3719 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3720 | |
f11781c5 AK |
3721 | int test (int i, double x); |
3722 | struct s1 {int (*f) (int a);}; | |
3723 | struct s2 {int (*f) (double a);}; | |
3724 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3725 | int argc; | |
3726 | char **argv; | |
d0191583 JM |
3727 | int |
3728 | main () | |
3729 | { | |
f11781c5 | 3730 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3731 | ; |
3732 | return 0; | |
3733 | } | |
72b2cb61 | 3734 | _ACEOF |
f11781c5 AK |
3735 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3736 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3737 | do | |
3738 | CC="$ac_save_CC $ac_arg" | |
3739 | if ac_fn_c_try_compile "$LINENO"; then : | |
3740 | ac_cv_prog_cc_c89=$ac_arg | |
3741 | fi | |
3742 | rm -f core conftest.err conftest.$ac_objext | |
3743 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3744 | done | |
3745 | rm -f conftest.$ac_ext | |
3746 | CC=$ac_save_CC | |
3747 | ||
3748 | fi | |
3749 | # AC_CACHE_VAL | |
3750 | case "x$ac_cv_prog_cc_c89" in | |
3751 | x) | |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3753 | $as_echo "none needed" >&6; } ;; | |
3754 | xno) | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3756 | $as_echo "unsupported" >&6; } ;; | |
3757 | *) | |
3758 | CC="$CC $ac_cv_prog_cc_c89" | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3760 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3761 | esac |
f11781c5 AK |
3762 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3763 | ||
3764 | fi | |
3765 | ||
3766 | ac_ext=c | |
3767 | ac_cpp='$CPP $CPPFLAGS' | |
3768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3771 | |
ad6254c5 | 3772 | |
7a197a62 | 3773 | |
f11781c5 AK |
3774 | ac_ext=c |
3775 | ac_cpp='$CPP $CPPFLAGS' | |
3776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3780 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3781 | # On Suns, sometimes $CPP names a directory. | |
3782 | if test -n "$CPP" && test -d "$CPP"; then | |
3783 | CPP= | |
3784 | fi | |
3785 | if test -z "$CPP"; then | |
3786 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3787 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3788 | else |
f11781c5 AK |
3789 | # Double quotes because CPP needs to be expanded |
3790 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3791 | do | |
3792 | ac_preproc_ok=false | |
3793 | for ac_c_preproc_warn_flag in '' yes | |
3794 | do | |
3795 | # Use a header file that comes with gcc, so configuring glibc | |
3796 | # with a fresh cross-compiler works. | |
3797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3798 | # <limits.h> exists even on freestanding compilers. | |
3799 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3800 | # not just through cpp. "Syntax error" is here to catch this case. | |
3801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3802 | /* end confdefs.h. */ |
d0191583 JM |
3803 | #ifdef __STDC__ |
3804 | # include <limits.h> | |
3805 | #else | |
3806 | # include <assert.h> | |
3807 | #endif | |
f11781c5 AK |
3808 | Syntax error |
3809 | _ACEOF | |
3810 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3811 | |
f11781c5 AK |
3812 | else |
3813 | # Broken: fails on valid input. | |
3814 | continue | |
3815 | fi | |
3816 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3817 | |
f11781c5 AK |
3818 | # OK, works on sane cases. Now check whether nonexistent headers |
3819 | # can be detected and how. | |
3820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3821 | /* end confdefs.h. */ | |
3822 | #include <ac_nonexistent.h> | |
72b2cb61 | 3823 | _ACEOF |
f11781c5 AK |
3824 | if ac_fn_c_try_cpp "$LINENO"; then : |
3825 | # Broken: success on invalid input. | |
3826 | continue | |
d0191583 | 3827 | else |
f11781c5 AK |
3828 | # Passes both tests. |
3829 | ac_preproc_ok=: | |
3830 | break | |
ad6254c5 | 3831 | fi |
f11781c5 | 3832 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3833 | |
f11781c5 AK |
3834 | done |
3835 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3836 | rm -f conftest.err conftest.$ac_ext | |
3837 | if $ac_preproc_ok; then : | |
3838 | break | |
7a197a62 AK |
3839 | fi |
3840 | ||
f11781c5 AK |
3841 | done |
3842 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3843 | |
7a197a62 | 3844 | fi |
f11781c5 AK |
3845 | CPP=$ac_cv_prog_CPP |
3846 | else | |
3847 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3848 | fi |
f11781c5 AK |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3850 | $as_echo "$CPP" >&6; } | |
3851 | ac_preproc_ok=false | |
3852 | for ac_c_preproc_warn_flag in '' yes | |
3853 | do | |
3854 | # Use a header file that comes with gcc, so configuring glibc | |
3855 | # with a fresh cross-compiler works. | |
3856 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3857 | # <limits.h> exists even on freestanding compilers. | |
3858 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3859 | # not just through cpp. "Syntax error" is here to catch this case. | |
3860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3861 | /* end confdefs.h. */ | |
3862 | #ifdef __STDC__ | |
3863 | # include <limits.h> | |
3864 | #else | |
3865 | # include <assert.h> | |
3866 | #endif | |
3867 | Syntax error | |
3868 | _ACEOF | |
3869 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3870 | |
9c961554 | 3871 | else |
f11781c5 AK |
3872 | # Broken: fails on valid input. |
3873 | continue | |
9c961554 | 3874 | fi |
f11781c5 | 3875 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3876 | |
f11781c5 AK |
3877 | # OK, works on sane cases. Now check whether nonexistent headers |
3878 | # can be detected and how. | |
3879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3880 | /* end confdefs.h. */ | |
3881 | #include <ac_nonexistent.h> | |
3882 | _ACEOF | |
3883 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3884 | # Broken: success on invalid input. | |
3885 | continue | |
3886 | else | |
3887 | # Passes both tests. | |
3888 | ac_preproc_ok=: | |
3889 | break | |
3890 | fi | |
3891 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3892 | |
f11781c5 AK |
3893 | done |
3894 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3895 | rm -f conftest.err conftest.$ac_ext | |
3896 | if $ac_preproc_ok; then : | |
d0191583 | 3897 | |
f11781c5 AK |
3898 | else |
3899 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3900 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3901 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3902 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3903 | fi |
3904 | ||
f11781c5 AK |
3905 | ac_ext=c |
3906 | ac_cpp='$CPP $CPPFLAGS' | |
3907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3910 | |
ad6254c5 | 3911 | |
f11781c5 AK |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3913 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3914 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3915 | $as_echo_n "(cached) " >&6 | |
3916 | else | |
3917 | if test -z "$GREP"; then | |
3918 | ac_path_GREP_found=false | |
3919 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3921 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3922 | do | |
3923 | IFS=$as_save_IFS | |
3924 | test -z "$as_dir" && as_dir=. | |
3925 | for ac_prog in grep ggrep; do | |
3926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3927 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3928 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3929 | # Check for GNU ac_path_GREP and select it if it is found. | |
3930 | # Check for GNU $ac_path_GREP | |
3931 | case `"$ac_path_GREP" --version 2>&1` in | |
3932 | *GNU*) | |
3933 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3934 | *) | |
3935 | ac_count=0 | |
3936 | $as_echo_n 0123456789 >"conftest.in" | |
3937 | while : | |
3938 | do | |
3939 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3940 | mv "conftest.tmp" "conftest.in" | |
3941 | cp "conftest.in" "conftest.nl" | |
3942 | $as_echo 'GREP' >> "conftest.nl" | |
3943 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3944 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3945 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3946 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3947 | # Best one so far, save it but keep looking for a better one | |
3948 | ac_cv_path_GREP="$ac_path_GREP" | |
3949 | ac_path_GREP_max=$ac_count | |
3950 | fi | |
3951 | # 10*(2^10) chars as input seems more than enough | |
3952 | test $ac_count -gt 10 && break | |
3953 | done | |
3954 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3955 | esac | |
ad6254c5 | 3956 | |
f11781c5 AK |
3957 | $ac_path_GREP_found && break 3 |
3958 | done | |
3959 | done | |
3960 | done | |
3961 | IFS=$as_save_IFS | |
3962 | if test -z "$ac_cv_path_GREP"; then | |
3963 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3964 | fi | |
3965 | else | |
3966 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3967 | fi |
3968 | ||
d0191583 | 3969 | fi |
f11781c5 AK |
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3971 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3972 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3973 | |
24bbc4d7 | 3974 | |
f11781c5 AK |
3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3976 | $as_echo_n "checking for egrep... " >&6; } | |
3977 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3978 | $as_echo_n "(cached) " >&6 | |
3979 | else | |
3980 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3981 | then ac_cv_path_EGREP="$GREP -E" | |
3982 | else | |
3983 | if test -z "$EGREP"; then | |
3984 | ac_path_EGREP_found=false | |
3985 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3987 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3988 | do | |
3989 | IFS=$as_save_IFS | |
3990 | test -z "$as_dir" && as_dir=. | |
3991 | for ac_prog in egrep; do | |
3992 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3993 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3994 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3995 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3996 | # Check for GNU $ac_path_EGREP | |
3997 | case `"$ac_path_EGREP" --version 2>&1` in | |
3998 | *GNU*) | |
3999 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4000 | *) | |
4001 | ac_count=0 | |
4002 | $as_echo_n 0123456789 >"conftest.in" | |
4003 | while : | |
4004 | do | |
4005 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4006 | mv "conftest.tmp" "conftest.in" | |
4007 | cp "conftest.in" "conftest.nl" | |
4008 | $as_echo 'EGREP' >> "conftest.nl" | |
4009 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4010 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4011 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4012 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4013 | # Best one so far, save it but keep looking for a better one | |
4014 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4015 | ac_path_EGREP_max=$ac_count | |
4016 | fi | |
4017 | # 10*(2^10) chars as input seems more than enough | |
4018 | test $ac_count -gt 10 && break | |
4019 | done | |
4020 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4021 | esac | |
24bbc4d7 | 4022 | |
f11781c5 AK |
4023 | $ac_path_EGREP_found && break 3 |
4024 | done | |
4025 | done | |
4026 | done | |
4027 | IFS=$as_save_IFS | |
4028 | if test -z "$ac_cv_path_EGREP"; then | |
4029 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4030 | fi | |
24bbc4d7 | 4031 | else |
f11781c5 | 4032 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4033 | fi |
4034 | ||
f11781c5 | 4035 | fi |
24bbc4d7 | 4036 | fi |
f11781c5 AK |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4038 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4039 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4040 | |
4041 | ||
f11781c5 AK |
4042 | if test $ac_cv_c_compiler_gnu = yes; then |
4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4044 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4045 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4046 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4047 | else |
f11781c5 AK |
4048 | ac_pattern="Autoconf.*'x'" |
4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4050 | /* end confdefs.h. */ | |
4051 | #include <sgtty.h> | |
4052 | Autoconf TIOCGETP | |
4053 | _ACEOF | |
4054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4055 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4056 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4057 | else |
f11781c5 | 4058 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4059 | fi |
f11781c5 | 4060 | rm -f conftest* |
7a197a62 | 4061 | |
72b2cb61 | 4062 | |
f11781c5 AK |
4063 | if test $ac_cv_prog_gcc_traditional = no; then |
4064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4065 | /* end confdefs.h. */ | |
4066 | #include <termio.h> | |
4067 | Autoconf TCGETA | |
72b2cb61 | 4068 | _ACEOF |
f11781c5 AK |
4069 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4070 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4071 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4072 | fi |
f11781c5 | 4073 | rm -f conftest* |
ad6254c5 | 4074 | |
f11781c5 | 4075 | fi |
7a197a62 | 4076 | fi |
f11781c5 AK |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4078 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4079 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4080 | CC="$CC -traditional" | |
4081 | fi | |
ad6254c5 AK |
4082 | fi |
4083 | ||
f11781c5 AK |
4084 | # Find a good install program. We prefer a C program (faster), |
4085 | # so one script is as good as another. But avoid the broken or | |
4086 | # incompatible versions: | |
4087 | # SysV /etc/install, /usr/sbin/install | |
4088 | # SunOS /usr/etc/install | |
4089 | # IRIX /sbin/install | |
4090 | # AIX /bin/install | |
4091 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4092 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4093 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4094 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4095 | # OS/2's system install, which has a completely different semantic | |
4096 | # ./install, which can be erroneously created by make from ./install.sh. | |
4097 | # Reject install programs that cannot install multiple files. | |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4099 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4100 | if test -z "$INSTALL"; then | |
4101 | if test "${ac_cv_path_install+set}" = set; then : | |
4102 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4103 | else |
f11781c5 AK |
4104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4105 | for as_dir in $PATH | |
4106 | do | |
4107 | IFS=$as_save_IFS | |
4108 | test -z "$as_dir" && as_dir=. | |
4109 | # Account for people who put trailing slashes in PATH elements. | |
4110 | case $as_dir/ in #(( | |
4111 | ./ | .// | /[cC]/* | \ | |
4112 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4113 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4114 | /usr/ucb/* ) ;; | |
4115 | *) | |
4116 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4117 | # Don't use installbsd from OSF since it installs stuff as root | |
4118 | # by default. | |
4119 | for ac_prog in ginstall scoinst install; do | |
4120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4121 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4122 | if test $ac_prog = install && | |
4123 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4124 | # AIX install. It has an incompatible calling convention. | |
4125 | : | |
4126 | elif test $ac_prog = install && | |
4127 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4128 | # program-specific install script used by HP pwplus--don't use. | |
4129 | : | |
4130 | else | |
4131 | rm -rf conftest.one conftest.two conftest.dir | |
4132 | echo one > conftest.one | |
4133 | echo two > conftest.two | |
4134 | mkdir conftest.dir | |
4135 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4136 | test -s conftest.one && test -s conftest.two && | |
4137 | test -s conftest.dir/conftest.one && | |
4138 | test -s conftest.dir/conftest.two | |
4139 | then | |
4140 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4141 | break 3 | |
4142 | fi | |
4143 | fi | |
4144 | fi | |
4145 | done | |
4146 | done | |
4147 | ;; | |
4148 | esac | |
7a197a62 | 4149 | |
f11781c5 AK |
4150 | done |
4151 | IFS=$as_save_IFS | |
d0191583 | 4152 | |
f11781c5 | 4153 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4154 | |
4155 | fi | |
f11781c5 AK |
4156 | if test "${ac_cv_path_install+set}" = set; then |
4157 | INSTALL=$ac_cv_path_install | |
4158 | else | |
4159 | # As a last resort, use the slow shell script. Don't cache a | |
4160 | # value for INSTALL within a source directory, because that will | |
4161 | # break other packages using the cache if that directory is | |
4162 | # removed, or if the value is a relative name. | |
4163 | INSTALL=$ac_install_sh | |
4164 | fi | |
7a197a62 | 4165 | fi |
f11781c5 AK |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4167 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4168 | |
f11781c5 AK |
4169 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4170 | # It thinks the first close brace ends the variable substitution. | |
4171 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4172 | |
f11781c5 | 4173 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4174 | |
f11781c5 | 4175 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4176 | |
f11781c5 AK |
4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4178 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4179 | LN_S=$as_ln_s | |
4180 | if test "$LN_S" = "ln -s"; then | |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4182 | $as_echo "yes" >&6; } | |
4183 | else | |
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4185 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4186 | fi |
ad6254c5 | 4187 | |
f11781c5 AK |
4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4189 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4190 | set x ${MAKE-make} | |
4191 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4192 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4193 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4194 | else |
f11781c5 AK |
4195 | cat >conftest.make <<\_ACEOF |
4196 | SHELL = /bin/sh | |
4197 | all: | |
4198 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4199 | _ACEOF | |
4200 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4201 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4202 | *@@@%%%=?*=@@@%%%*) | |
4203 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4204 | *) | |
4205 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4206 | esac | |
4207 | rm -f conftest.make | |
4208 | fi | |
4209 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4211 | $as_echo "yes" >&6; } | |
4212 | SET_MAKE= | |
4213 | else | |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4215 | $as_echo "no" >&6; } | |
4216 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4217 | fi |
4218 | ||
f11781c5 AK |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4220 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4221 | if test -z "$MKDIR_P"; then | |
4222 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4223 | $as_echo_n "(cached) " >&6 | |
4224 | else | |
4225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4226 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4227 | do | |
4228 | IFS=$as_save_IFS | |
4229 | test -z "$as_dir" && as_dir=. | |
4230 | for ac_prog in mkdir gmkdir; do | |
4231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4232 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4233 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4234 | 'mkdir (GNU coreutils) '* | \ | |
4235 | 'mkdir (coreutils) '* | \ | |
4236 | 'mkdir (fileutils) '4.1*) | |
4237 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4238 | break 3;; | |
4239 | esac | |
4240 | done | |
4241 | done | |
4242 | done | |
4243 | IFS=$as_save_IFS | |
d0191583 | 4244 | |
f11781c5 | 4245 | fi |
ad6254c5 | 4246 | |
f11781c5 AK |
4247 | test -d ./--version && rmdir ./--version |
4248 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4249 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4250 | else | |
4251 | # As a last resort, use the slow shell script. Don't cache a | |
4252 | # value for MKDIR_P within a source directory, because that will | |
4253 | # break other packages using the cache if that directory is | |
4254 | # removed, or if the value is a relative name. | |
4255 | MKDIR_P="$ac_install_sh -d" | |
4256 | fi | |
ad6254c5 | 4257 | fi |
f11781c5 AK |
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4259 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4260 | |
f11781c5 AK |
4261 | if test -n "$ac_tool_prefix"; then |
4262 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4263 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4265 | $as_echo_n "checking for $ac_word... " >&6; } | |
4266 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4267 | $as_echo_n "(cached) " >&6 | |
4268 | else | |
4269 | if test -n "$RANLIB"; then | |
4270 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4271 | else | |
4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4273 | for as_dir in $PATH | |
4274 | do | |
4275 | IFS=$as_save_IFS | |
4276 | test -z "$as_dir" && as_dir=. | |
4277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4279 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4281 | break 2 | |
4282 | fi | |
4283 | done | |
4284 | done | |
4285 | IFS=$as_save_IFS | |
d0191583 | 4286 | |
f11781c5 AK |
4287 | fi |
4288 | fi | |
4289 | RANLIB=$ac_cv_prog_RANLIB | |
4290 | if test -n "$RANLIB"; then | |
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4292 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4293 | else |
f11781c5 AK |
4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4295 | $as_echo "no" >&6; } | |
ad6254c5 | 4296 | fi |
ad6254c5 | 4297 | |
8a2fc586 | 4298 | |
d0191583 | 4299 | fi |
f11781c5 AK |
4300 | if test -z "$ac_cv_prog_RANLIB"; then |
4301 | ac_ct_RANLIB=$RANLIB | |
4302 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4303 | set dummy ranlib; ac_word=$2 | |
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4305 | $as_echo_n "checking for $ac_word... " >&6; } | |
4306 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4307 | $as_echo_n "(cached) " >&6 | |
4308 | else | |
4309 | if test -n "$ac_ct_RANLIB"; then | |
4310 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4311 | else | |
4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4313 | for as_dir in $PATH | |
4314 | do | |
4315 | IFS=$as_save_IFS | |
4316 | test -z "$as_dir" && as_dir=. | |
4317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4318 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4319 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4321 | break 2 | |
4322 | fi | |
4323 | done | |
4324 | done | |
4325 | IFS=$as_save_IFS | |
8a2fc586 | 4326 | |
f11781c5 AK |
4327 | fi |
4328 | fi | |
4329 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4330 | if test -n "$ac_ct_RANLIB"; then | |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4332 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4333 | else |
f11781c5 AK |
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4335 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4336 | fi |
4337 | ||
f11781c5 AK |
4338 | if test "x$ac_ct_RANLIB" = x; then |
4339 | RANLIB=":" | |
4340 | else | |
4341 | case $cross_compiling:$ac_tool_warned in | |
4342 | yes:) | |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4344 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4345 | ac_tool_warned=yes ;; | |
8fea97b7 | 4346 | esac |
f11781c5 AK |
4347 | RANLIB=$ac_ct_RANLIB |
4348 | fi | |
d0191583 | 4349 | else |
f11781c5 | 4350 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4351 | fi |
8a2fc586 | 4352 | |
f11781c5 AK |
4353 | # Extract the first word of "cflow", so it can be a program name with args. |
4354 | set dummy cflow; ac_word=$2 | |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4356 | $as_echo_n "checking for $ac_word... " >&6; } | |
4357 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4358 | $as_echo_n "(cached) " >&6 | |
4359 | else | |
4360 | case $CFLOW_CMD in | |
4361 | [\\/]* | ?:[\\/]*) | |
4362 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4363 | ;; | |
4364 | *) | |
4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4366 | for as_dir in $PATH | |
4367 | do | |
4368 | IFS=$as_save_IFS | |
4369 | test -z "$as_dir" && as_dir=. | |
4370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4372 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4374 | break 2 | |
4375 | fi | |
4376 | done | |
4377 | done | |
4378 | IFS=$as_save_IFS | |
8a2fc586 | 4379 | |
f11781c5 AK |
4380 | ;; |
4381 | esac | |
ad6254c5 | 4382 | fi |
f11781c5 AK |
4383 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4384 | if test -n "$CFLOW_CMD"; then | |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4386 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4387 | else |
f11781c5 AK |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4389 | $as_echo "no" >&6; } | |
37ddf259 AK |
4390 | fi |
4391 | ||
e2997b73 | 4392 | |
f11781c5 AK |
4393 | # Extract the first word of "cscope", so it can be a program name with args. |
4394 | set dummy cscope; ac_word=$2 | |
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4396 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4397 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4398 | $as_echo_n "(cached) " >&6 |
4399 | else | |
f11781c5 | 4400 | case $CSCOPE_CMD in |
e2997b73 | 4401 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4402 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4403 | ;; |
4404 | *) | |
4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4406 | for as_dir in $PATH | |
4407 | do | |
4408 | IFS=$as_save_IFS | |
4409 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4410 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4412 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4414 | break 2 |
4415 | fi | |
4416 | done | |
f11781c5 | 4417 | done |
e2997b73 AK |
4418 | IFS=$as_save_IFS |
4419 | ||
4420 | ;; | |
4421 | esac | |
4422 | fi | |
f11781c5 AK |
4423 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4424 | if test -n "$CSCOPE_CMD"; then | |
4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4426 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4427 | else |
f11781c5 | 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4429 | $as_echo "no" >&6; } |
4430 | fi | |
f11781c5 AK |
4431 | |
4432 | ||
4433 | ||
4434 | ################################################################################ | |
4435 | ac_header_dirent=no | |
4436 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4437 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4439 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4440 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4441 | $as_echo_n "(cached) " >&6 | |
4442 | else | |
4443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4444 | /* end confdefs.h. */ | |
4445 | #include <sys/types.h> | |
4446 | #include <$ac_hdr> | |
4447 | ||
4448 | int | |
4449 | main () | |
4450 | { | |
4451 | if ((DIR *) 0) | |
4452 | return 0; | |
4453 | ; | |
4454 | return 0; | |
4455 | } | |
4456 | _ACEOF | |
4457 | if ac_fn_c_try_compile "$LINENO"; then : | |
4458 | eval "$as_ac_Header=yes" | |
4459 | else | |
4460 | eval "$as_ac_Header=no" | |
4461 | fi | |
4462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4463 | fi | |
4464 | eval ac_res=\$$as_ac_Header | |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4466 | $as_echo "$ac_res" >&6; } | |
4467 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4468 | cat >>confdefs.h <<_ACEOF | |
4469 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4470 | _ACEOF | |
4471 | ||
4472 | ac_header_dirent=$ac_hdr; break | |
4473 | fi | |
4474 | ||
4475 | done | |
4476 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4477 | if test $ac_header_dirent = dirent.h; then | |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4479 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4480 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4481 | $as_echo_n "(cached) " >&6 | |
4482 | else | |
4483 | ac_func_search_save_LIBS=$LIBS | |
4484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4485 | /* end confdefs.h. */ | |
4486 | ||
4487 | /* Override any GCC internal prototype to avoid an error. | |
4488 | Use char because int might match the return type of a GCC | |
4489 | builtin and then its argument prototype would still apply. */ | |
4490 | #ifdef __cplusplus | |
4491 | extern "C" | |
4492 | #endif | |
4493 | char opendir (); | |
4494 | int | |
4495 | main () | |
4496 | { | |
4497 | return opendir (); | |
4498 | ; | |
4499 | return 0; | |
4500 | } | |
4501 | _ACEOF | |
4502 | for ac_lib in '' dir; do | |
4503 | if test -z "$ac_lib"; then | |
4504 | ac_res="none required" | |
4505 | else | |
4506 | ac_res=-l$ac_lib | |
4507 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4508 | fi | |
4509 | if ac_fn_c_try_link "$LINENO"; then : | |
4510 | ac_cv_search_opendir=$ac_res | |
4511 | fi | |
4512 | rm -f core conftest.err conftest.$ac_objext \ | |
4513 | conftest$ac_exeext | |
4514 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4515 | break | |
4516 | fi | |
4517 | done | |
4518 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4519 | ||
4520 | else | |
4521 | ac_cv_search_opendir=no | |
4522 | fi | |
4523 | rm conftest.$ac_ext | |
4524 | LIBS=$ac_func_search_save_LIBS | |
4525 | fi | |
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4527 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4528 | ac_res=$ac_cv_search_opendir | |
4529 | if test "$ac_res" != no; then : | |
4530 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4531 | |
4532 | fi | |
f11781c5 AK |
4533 | |
4534 | else | |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4536 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4537 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4538 | $as_echo_n "(cached) " >&6 |
4539 | else | |
f11781c5 AK |
4540 | ac_func_search_save_LIBS=$LIBS |
4541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4542 | /* end confdefs.h. */ | |
e2997b73 | 4543 | |
f11781c5 AK |
4544 | /* Override any GCC internal prototype to avoid an error. |
4545 | Use char because int might match the return type of a GCC | |
4546 | builtin and then its argument prototype would still apply. */ | |
4547 | #ifdef __cplusplus | |
4548 | extern "C" | |
4549 | #endif | |
4550 | char opendir (); | |
4551 | int | |
4552 | main () | |
4553 | { | |
4554 | return opendir (); | |
4555 | ; | |
4556 | return 0; | |
4557 | } | |
4558 | _ACEOF | |
4559 | for ac_lib in '' x; do | |
4560 | if test -z "$ac_lib"; then | |
4561 | ac_res="none required" | |
4562 | else | |
4563 | ac_res=-l$ac_lib | |
4564 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4565 | fi | |
4566 | if ac_fn_c_try_link "$LINENO"; then : | |
4567 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4568 | fi |
f11781c5 AK |
4569 | rm -f core conftest.err conftest.$ac_objext \ |
4570 | conftest$ac_exeext | |
4571 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4572 | break | |
e2997b73 | 4573 | fi |
f11781c5 AK |
4574 | done |
4575 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4576 | |
e2997b73 | 4577 | else |
f11781c5 AK |
4578 | ac_cv_search_opendir=no |
4579 | fi | |
4580 | rm conftest.$ac_ext | |
4581 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4582 | fi |
f11781c5 AK |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4584 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4585 | ac_res=$ac_cv_search_opendir | |
4586 | if test "$ac_res" != no; then : | |
4587 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4588 | |
4589 | fi | |
8c4e8a18 | 4590 | |
e2997b73 AK |
4591 | fi |
4592 | ||
f11781c5 AK |
4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4594 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4595 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4596 | $as_echo_n "(cached) " >&6 | |
4597 | else | |
4598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4599 | /* end confdefs.h. */ | |
4600 | #include <stdlib.h> | |
4601 | #include <stdarg.h> | |
4602 | #include <string.h> | |
4603 | #include <float.h> | |
e2997b73 | 4604 | |
f11781c5 AK |
4605 | int |
4606 | main () | |
4607 | { | |
4608 | ||
4609 | ; | |
4610 | return 0; | |
4611 | } | |
4612 | _ACEOF | |
4613 | if ac_fn_c_try_compile "$LINENO"; then : | |
4614 | ac_cv_header_stdc=yes | |
e2997b73 | 4615 | else |
f11781c5 | 4616 | ac_cv_header_stdc=no |
e2997b73 | 4617 | fi |
f11781c5 AK |
4618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4619 | ||
4620 | if test $ac_cv_header_stdc = yes; then | |
4621 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4623 | /* end confdefs.h. */ | |
4624 | #include <string.h> | |
4625 | ||
4626 | _ACEOF | |
4627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4628 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4629 | ||
e2997b73 | 4630 | else |
f11781c5 | 4631 | ac_cv_header_stdc=no |
e2997b73 | 4632 | fi |
f11781c5 | 4633 | rm -f conftest* |
e2997b73 | 4634 | |
f11781c5 | 4635 | fi |
e2997b73 | 4636 | |
f11781c5 AK |
4637 | if test $ac_cv_header_stdc = yes; then |
4638 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4640 | /* end confdefs.h. */ | |
4641 | #include <stdlib.h> | |
e2997b73 | 4642 | |
f11781c5 AK |
4643 | _ACEOF |
4644 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4645 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4646 | |
e2997b73 | 4647 | else |
f11781c5 | 4648 | ac_cv_header_stdc=no |
e2997b73 | 4649 | fi |
f11781c5 | 4650 | rm -f conftest* |
e2997b73 | 4651 | |
e2997b73 | 4652 | fi |
90c80887 | 4653 | |
f11781c5 AK |
4654 | if test $ac_cv_header_stdc = yes; then |
4655 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4656 | if test "$cross_compiling" = yes; then : | |
4657 | : | |
4658 | else | |
4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4660 | /* end confdefs.h. */ | |
4661 | #include <ctype.h> | |
4662 | #include <stdlib.h> | |
4663 | #if ((' ' & 0x0FF) == 0x020) | |
4664 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4665 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4666 | #else | |
4667 | # define ISLOWER(c) \ | |
4668 | (('a' <= (c) && (c) <= 'i') \ | |
4669 | || ('j' <= (c) && (c) <= 'r') \ | |
4670 | || ('s' <= (c) && (c) <= 'z')) | |
4671 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4672 | #endif | |
4673 | ||
4674 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4675 | int | |
4676 | main () | |
4677 | { | |
4678 | int i; | |
4679 | for (i = 0; i < 256; i++) | |
4680 | if (XOR (islower (i), ISLOWER (i)) | |
4681 | || toupper (i) != TOUPPER (i)) | |
4682 | return 2; | |
4683 | return 0; | |
4684 | } | |
4685 | _ACEOF | |
4686 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4687 | |
90c80887 | 4688 | else |
f11781c5 | 4689 | ac_cv_header_stdc=no |
90c80887 | 4690 | fi |
f11781c5 AK |
4691 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4692 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4693 | fi |
90c80887 | 4694 | |
90c80887 | 4695 | fi |
90c80887 | 4696 | fi |
f11781c5 AK |
4697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4698 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4699 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4700 | |
f11781c5 | 4701 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4702 | |
90c80887 | 4703 | fi |
f11781c5 AK |
4704 | |
4705 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4706 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4707 | inttypes.h stdint.h unistd.h | |
4708 | do : | |
4709 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4710 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4711 | " | |
4712 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4713 | cat >>confdefs.h <<_ACEOF | |
4714 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4715 | _ACEOF | |
4716 | ||
90c80887 | 4717 | fi |
f11781c5 AK |
4718 | |
4719 | done | |
4720 | ||
4721 | ||
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4723 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4724 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4725 | $as_echo_n "(cached) " >&6 | |
4726 | else | |
4727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4728 | /* end confdefs.h. */ | |
4729 | #include <sys/types.h> | |
4730 | int | |
4731 | main () | |
4732 | { | |
4733 | return makedev(0, 0); | |
4734 | ; | |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
4738 | if ac_fn_c_try_link "$LINENO"; then : | |
4739 | ac_cv_header_sys_types_h_makedev=yes | |
4740 | else | |
4741 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4742 | fi |
f11781c5 AK |
4743 | rm -f core conftest.err conftest.$ac_objext \ |
4744 | conftest$ac_exeext conftest.$ac_ext | |
4745 | ||
90c80887 | 4746 | fi |
f11781c5 AK |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4748 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4749 | ||
4750 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4751 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4752 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4753 | ||
4754 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4755 | |
a946372e | 4756 | fi |
e2997b73 | 4757 | |
e2997b73 | 4758 | |
a946372e | 4759 | |
f11781c5 AK |
4760 | if test $ac_cv_header_sys_mkdev_h = no; then |
4761 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4762 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4763 | ||
4764 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4765 | ||
e2997b73 | 4766 | fi |
a946372e | 4767 | |
a946372e | 4768 | |
f11781c5 AK |
4769 | fi |
4770 | fi | |
4771 | ||
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4773 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4774 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4775 | $as_echo_n "(cached) " >&6 |
4776 | else | |
f11781c5 | 4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4778 | /* end confdefs.h. */ |
f11781c5 AK |
4779 | #include <stdlib.h> |
4780 | #include <stdarg.h> | |
4781 | #include <string.h> | |
4782 | #include <float.h> | |
a946372e | 4783 | |
a946372e AK |
4784 | int |
4785 | main () | |
4786 | { | |
f11781c5 | 4787 | |
a946372e AK |
4788 | ; |
4789 | return 0; | |
4790 | } | |
4791 | _ACEOF | |
f11781c5 AK |
4792 | if ac_fn_c_try_compile "$LINENO"; then : |
4793 | ac_cv_header_stdc=yes | |
e2997b73 | 4794 | else |
f11781c5 AK |
4795 | ac_cv_header_stdc=no |
4796 | fi | |
4797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4798 | ||
4799 | if test $ac_cv_header_stdc = yes; then | |
4800 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4802 | /* end confdefs.h. */ | |
4803 | #include <string.h> | |
4804 | ||
4805 | _ACEOF | |
4806 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4807 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4808 | |
f11781c5 AK |
4809 | else |
4810 | ac_cv_header_stdc=no | |
a946372e | 4811 | fi |
f11781c5 | 4812 | rm -f conftest* |
e2997b73 | 4813 | |
a946372e | 4814 | fi |
e2997b73 | 4815 | |
f11781c5 AK |
4816 | if test $ac_cv_header_stdc = yes; then |
4817 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4819 | /* end confdefs.h. */ | |
4820 | #include <stdlib.h> | |
4821 | ||
4822 | _ACEOF | |
4823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4824 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4825 | |
e2997b73 | 4826 | else |
f11781c5 | 4827 | ac_cv_header_stdc=no |
e2997b73 | 4828 | fi |
f11781c5 | 4829 | rm -f conftest* |
e2997b73 | 4830 | |
f11781c5 | 4831 | fi |
a946372e | 4832 | |
f11781c5 AK |
4833 | if test $ac_cv_header_stdc = yes; then |
4834 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4835 | if test "$cross_compiling" = yes; then : | |
4836 | : | |
4837 | else | |
4838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4839 | /* end confdefs.h. */ | |
4840 | #include <ctype.h> | |
4841 | #include <stdlib.h> | |
4842 | #if ((' ' & 0x0FF) == 0x020) | |
4843 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4844 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4845 | #else | |
4846 | # define ISLOWER(c) \ | |
4847 | (('a' <= (c) && (c) <= 'i') \ | |
4848 | || ('j' <= (c) && (c) <= 'r') \ | |
4849 | || ('s' <= (c) && (c) <= 'z')) | |
4850 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4851 | #endif | |
e2997b73 | 4852 | |
f11781c5 AK |
4853 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4854 | int | |
4855 | main () | |
4856 | { | |
4857 | int i; | |
4858 | for (i = 0; i < 256; i++) | |
4859 | if (XOR (islower (i), ISLOWER (i)) | |
4860 | || toupper (i) != TOUPPER (i)) | |
4861 | return 2; | |
4862 | return 0; | |
4863 | } | |
4864 | _ACEOF | |
4865 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4866 | |
e2997b73 | 4867 | else |
f11781c5 | 4868 | ac_cv_header_stdc=no |
e2997b73 | 4869 | fi |
f11781c5 AK |
4870 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4871 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4872 | fi |
f11781c5 | 4873 | |
e2997b73 | 4874 | fi |
e2997b73 | 4875 | fi |
f11781c5 AK |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4877 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4878 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4879 | |
f11781c5 | 4880 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4881 | |
f11781c5 | 4882 | fi |
e2997b73 | 4883 | |
f11781c5 AK |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4885 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4886 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4887 | $as_echo_n "(cached) " >&6 | |
4888 | else | |
4889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4890 | /* end confdefs.h. */ | |
4891 | #include <sys/types.h> | |
4892 | #include <sys/wait.h> | |
4893 | #ifndef WEXITSTATUS | |
4894 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4895 | #endif | |
4896 | #ifndef WIFEXITED | |
4897 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4898 | #endif | |
e2997b73 | 4899 | |
f11781c5 AK |
4900 | int |
4901 | main () | |
4902 | { | |
4903 | int s; | |
4904 | wait (&s); | |
4905 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4906 | ; | |
4907 | return 0; | |
4908 | } | |
4909 | _ACEOF | |
4910 | if ac_fn_c_try_compile "$LINENO"; then : | |
4911 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4912 | else |
f11781c5 | 4913 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4914 | fi |
f11781c5 AK |
4915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4916 | fi | |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4918 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4919 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4920 | |
f11781c5 | 4921 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4922 | |
d0191583 | 4923 | fi |
f11781c5 AK |
4924 | |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4926 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4927 | if test "${ac_cv_header_time+set}" = set; then : | |
4928 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4929 | else |
f11781c5 | 4930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4931 | /* end confdefs.h. */ |
f11781c5 AK |
4932 | #include <sys/types.h> |
4933 | #include <sys/time.h> | |
4934 | #include <time.h> | |
4935 | ||
4936 | int | |
4937 | main () | |
4938 | { | |
4939 | if ((struct tm *) 0) | |
4940 | return 0; | |
4941 | ; | |
4942 | return 0; | |
4943 | } | |
a946372e | 4944 | _ACEOF |
f11781c5 AK |
4945 | if ac_fn_c_try_compile "$LINENO"; then : |
4946 | ac_cv_header_time=yes | |
a946372e | 4947 | else |
f11781c5 AK |
4948 | ac_cv_header_time=no |
4949 | fi | |
4950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4951 | fi | |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4953 | $as_echo "$ac_cv_header_time" >&6; } | |
4954 | if test $ac_cv_header_time = yes; then | |
4955 | ||
4956 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4957 | ||
4958 | fi | |
4959 | ||
4960 | ||
4961 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4962 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4963 | sys/wait.h time.h | |
4964 | do : | |
4965 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4966 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4967 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4968 | cat >>confdefs.h <<_ACEOF | |
4969 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4970 | _ACEOF | |
d0191583 | 4971 | |
f11781c5 AK |
4972 | else |
4973 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4974 | fi |
4975 | ||
f11781c5 | 4976 | done |
fddafd51 | 4977 | |
f11781c5 AK |
4978 | |
4979 | case "$host_os" in | |
4980 | linux*) | |
4981 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4982 | do : | |
4983 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4984 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4985 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4986 | cat >>confdefs.h <<_ACEOF | |
4987 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4988 | _ACEOF |
a946372e | 4989 | |
f11781c5 AK |
4990 | else |
4991 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4992 | fi |
4993 | ||
f11781c5 AK |
4994 | done |
4995 | ;; | |
4996 | darwin*) | |
4997 | for ac_header in machine/endian.h sys/disk.h | |
4998 | do : | |
4999 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5000 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5001 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5002 | cat >>confdefs.h <<_ACEOF | |
5003 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5004 | _ACEOF | |
a946372e | 5005 | |
f11781c5 AK |
5006 | else |
5007 | as_fn_error $? "bailing out" "$LINENO" 5 | |
5008 | fi | |
a946372e | 5009 | |
f11781c5 AK |
5010 | done |
5011 | ;; | |
a946372e | 5012 | esac |
f11781c5 AK |
5013 | |
5014 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5015 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5016 | sys/types.h unistd.h | |
5017 | do : | |
5018 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5019 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5020 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5021 | cat >>confdefs.h <<_ACEOF | |
5022 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5023 | _ACEOF | |
5024 | ||
a946372e | 5025 | else |
f11781c5 | 5026 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5027 | fi |
a946372e | 5028 | |
f11781c5 AK |
5029 | done |
5030 | ||
5031 | for ac_header in termios.h sys/statvfs.h | |
5032 | do : | |
5033 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5034 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5035 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5036 | cat >>confdefs.h <<_ACEOF |
5037 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5038 | _ACEOF | |
5039 | ||
a946372e AK |
5040 | fi |
5041 | ||
5042 | done | |
5043 | ||
a946372e | 5044 | |
f11781c5 AK |
5045 | ################################################################################ |
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5047 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5048 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5049 | $as_echo_n "(cached) " >&6 |
a946372e | 5050 | else |
f11781c5 | 5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5052 | /* end confdefs.h. */ |
a946372e | 5053 | |
f11781c5 AK |
5054 | int |
5055 | main () | |
5056 | { | |
5057 | /* FIXME: Include the comments suggested by Paul. */ | |
5058 | #ifndef __cplusplus | |
5059 | /* Ultrix mips cc rejects this. */ | |
5060 | typedef int charset[2]; | |
5061 | const charset cs; | |
5062 | /* SunOS 4.1.1 cc rejects this. */ | |
5063 | char const *const *pcpcc; | |
5064 | char **ppc; | |
5065 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5066 | struct point {int x, y;}; | |
5067 | static struct point const zero = {0,0}; | |
5068 | /* AIX XL C 1.02.0.0 rejects this. | |
5069 | It does not let you subtract one const X* pointer from another in | |
5070 | an arm of an if-expression whose if-part is not a constant | |
5071 | expression */ | |
5072 | const char *g = "string"; | |
5073 | pcpcc = &g + (g ? g-g : 0); | |
5074 | /* HPUX 7.0 cc rejects these. */ | |
5075 | ++pcpcc; | |
5076 | ppc = (char**) pcpcc; | |
5077 | pcpcc = (char const *const *) ppc; | |
5078 | { /* SCO 3.2v4 cc rejects this. */ | |
5079 | char *t; | |
5080 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5081 | |
f11781c5 AK |
5082 | *t++ = 0; |
5083 | if (s) return 0; | |
5084 | } | |
5085 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5086 | int x[] = {25, 17}; | |
5087 | const int *foo = &x[0]; | |
5088 | ++foo; | |
5089 | } | |
5090 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5091 | typedef const int *iptr; | |
5092 | iptr p = 0; | |
5093 | ++p; | |
5094 | } | |
5095 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5096 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5097 | struct s { int j; const int *ap[3]; }; | |
5098 | struct s *b; b->j = 5; | |
5099 | } | |
5100 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5101 | const int foo = 10; | |
5102 | if (!foo) return 0; | |
5103 | } | |
5104 | return !cs[0] && !zero.x; | |
5105 | #endif | |
a946372e | 5106 | |
f11781c5 AK |
5107 | ; |
5108 | return 0; | |
5109 | } | |
a946372e | 5110 | _ACEOF |
f11781c5 AK |
5111 | if ac_fn_c_try_compile "$LINENO"; then : |
5112 | ac_cv_c_const=yes | |
a946372e | 5113 | else |
f11781c5 AK |
5114 | ac_cv_c_const=no |
5115 | fi | |
5116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5117 | fi |
f11781c5 AK |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5119 | $as_echo "$ac_cv_c_const" >&6; } | |
5120 | if test $ac_cv_c_const = no; then | |
a946372e | 5121 | |
f11781c5 | 5122 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5123 | |
f11781c5 | 5124 | fi |
a946372e | 5125 | |
f11781c5 AK |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5127 | $as_echo_n "checking for inline... " >&6; } | |
5128 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5129 | $as_echo_n "(cached) " >&6 |
5130 | else | |
f11781c5 AK |
5131 | ac_cv_c_inline=no |
5132 | for ac_kw in inline __inline__ __inline; do | |
5133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5134 | /* end confdefs.h. */ | |
5135 | #ifndef __cplusplus | |
5136 | typedef int foo_t; | |
5137 | static $ac_kw foo_t static_foo () {return 0; } | |
5138 | $ac_kw foo_t foo () {return 0; } | |
5139 | #endif | |
5140 | ||
5141 | _ACEOF | |
5142 | if ac_fn_c_try_compile "$LINENO"; then : | |
5143 | ac_cv_c_inline=$ac_kw | |
a946372e | 5144 | fi |
f11781c5 AK |
5145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5146 | test "$ac_cv_c_inline" != no && break | |
5147 | done | |
a946372e AK |
5148 | |
5149 | fi | |
f11781c5 AK |
5150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5151 | $as_echo "$ac_cv_c_inline" >&6; } | |
5152 | ||
5153 | case $ac_cv_c_inline in | |
5154 | inline | yes) ;; | |
5155 | *) | |
5156 | case $ac_cv_c_inline in | |
5157 | no) ac_val=;; | |
5158 | *) ac_val=$ac_cv_c_inline;; | |
5159 | esac | |
5160 | cat >>confdefs.h <<_ACEOF | |
5161 | #ifndef __cplusplus | |
5162 | #define inline $ac_val | |
5163 | #endif | |
5164 | _ACEOF | |
5165 | ;; | |
5166 | esac | |
5167 | ||
5168 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5169 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5170 | ||
5171 | cat >>confdefs.h <<_ACEOF | |
5172 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5173 | _ACEOF |
5174 | ||
f11781c5 | 5175 | |
a946372e AK |
5176 | fi |
5177 | ||
f11781c5 AK |
5178 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5179 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5180 | |
a946372e | 5181 | else |
f11781c5 AK |
5182 | |
5183 | cat >>confdefs.h <<_ACEOF | |
5184 | #define off_t long int | |
5185 | _ACEOF | |
5186 | ||
a946372e AK |
5187 | fi |
5188 | ||
f11781c5 AK |
5189 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5190 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5191 | |
a946372e | 5192 | else |
f11781c5 AK |
5193 | |
5194 | cat >>confdefs.h <<_ACEOF | |
5195 | #define pid_t int | |
5196 | _ACEOF | |
5197 | ||
5198 | fi | |
5199 | ||
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5201 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5202 | if test "${ac_cv_type_signal+set}" = set; then : | |
5203 | $as_echo_n "(cached) " >&6 | |
a946372e | 5204 | else |
f11781c5 AK |
5205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5206 | /* end confdefs.h. */ | |
5207 | #include <sys/types.h> | |
5208 | #include <signal.h> | |
5209 | ||
5210 | int | |
5211 | main () | |
5212 | { | |
5213 | return *(signal (0, 0)) (0) == 1; | |
5214 | ; | |
5215 | return 0; | |
5216 | } | |
5217 | _ACEOF | |
5218 | if ac_fn_c_try_compile "$LINENO"; then : | |
5219 | ac_cv_type_signal=int | |
5220 | else | |
5221 | ac_cv_type_signal=void | |
a946372e | 5222 | fi |
f11781c5 | 5223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5224 | fi |
f11781c5 AK |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5226 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5227 | |
f11781c5 AK |
5228 | cat >>confdefs.h <<_ACEOF |
5229 | #define RETSIGTYPE $ac_cv_type_signal | |
5230 | _ACEOF | |
a946372e AK |
5231 | |
5232 | ||
f11781c5 AK |
5233 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5234 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5235 | |
a946372e | 5236 | else |
a946372e | 5237 | |
f11781c5 AK |
5238 | cat >>confdefs.h <<_ACEOF |
5239 | #define size_t unsigned int | |
5240 | _ACEOF | |
a946372e | 5241 | |
a946372e | 5242 | fi |
f11781c5 AK |
5243 | |
5244 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5245 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5246 | ||
a946372e | 5247 | else |
f11781c5 AK |
5248 | |
5249 | cat >>confdefs.h <<_ACEOF | |
5250 | #define mode_t int | |
a946372e | 5251 | _ACEOF |
a946372e | 5252 | |
a946372e AK |
5253 | fi |
5254 | ||
f11781c5 AK |
5255 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5256 | case $ac_cv_c_int8_t in #( | |
5257 | no|yes) ;; #( | |
5258 | *) | |
a946372e | 5259 | |
f11781c5 AK |
5260 | cat >>confdefs.h <<_ACEOF |
5261 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5262 | _ACEOF |
f11781c5 | 5263 | ;; |
a946372e | 5264 | esac |
a946372e | 5265 | |
f11781c5 AK |
5266 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5267 | case $ac_cv_c_int16_t in #( | |
5268 | no|yes) ;; #( | |
5269 | *) | |
a946372e | 5270 | |
f11781c5 AK |
5271 | cat >>confdefs.h <<_ACEOF |
5272 | #define int16_t $ac_cv_c_int16_t | |
5273 | _ACEOF | |
5274 | ;; | |
5275 | esac | |
a946372e | 5276 | |
f11781c5 AK |
5277 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5278 | case $ac_cv_c_int32_t in #( | |
5279 | no|yes) ;; #( | |
5280 | *) | |
a946372e | 5281 | |
f11781c5 AK |
5282 | cat >>confdefs.h <<_ACEOF |
5283 | #define int32_t $ac_cv_c_int32_t | |
5284 | _ACEOF | |
5285 | ;; | |
a946372e | 5286 | esac |
a946372e | 5287 | |
f11781c5 AK |
5288 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5289 | case $ac_cv_c_int64_t in #( | |
5290 | no|yes) ;; #( | |
5291 | *) | |
5292 | ||
5293 | cat >>confdefs.h <<_ACEOF | |
5294 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5295 | _ACEOF |
f11781c5 AK |
5296 | ;; |
5297 | esac | |
5298 | ||
5299 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5300 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5301 | |
5302 | else | |
a946372e | 5303 | |
f11781c5 AK |
5304 | cat >>confdefs.h <<_ACEOF |
5305 | #define ssize_t int | |
5306 | _ACEOF | |
a946372e | 5307 | |
f11781c5 | 5308 | fi |
a946372e | 5309 | |
f11781c5 AK |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5311 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5312 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5313 | $as_echo_n "(cached) " >&6 |
a946372e | 5314 | else |
f11781c5 | 5315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5316 | /* end confdefs.h. */ |
f11781c5 AK |
5317 | #include <sys/types.h> |
5318 | ||
a946372e | 5319 | _ACEOF |
f11781c5 AK |
5320 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5321 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5322 | ac_cv_type_uid_t=yes | |
a946372e | 5323 | else |
f11781c5 AK |
5324 | ac_cv_type_uid_t=no |
5325 | fi | |
5326 | rm -f conftest* | |
a946372e | 5327 | |
a946372e | 5328 | fi |
f11781c5 AK |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5330 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5331 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5332 | |
f11781c5 | 5333 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5334 | |
f11781c5 AK |
5335 | |
5336 | $as_echo "#define gid_t int" >>confdefs.h | |
5337 | ||
5338 | fi | |
5339 | ||
5340 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5341 | case $ac_cv_c_uint8_t in #( | |
5342 | no|yes) ;; #( | |
5343 | *) | |
5344 | ||
5345 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5346 | ||
5347 | ||
5348 | cat >>confdefs.h <<_ACEOF | |
5349 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5350 | _ACEOF |
f11781c5 AK |
5351 | ;; |
5352 | esac | |
5353 | ||
5354 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5355 | case $ac_cv_c_uint16_t in #( | |
5356 | no|yes) ;; #( | |
5357 | *) | |
5358 | ||
5359 | ||
5360 | cat >>confdefs.h <<_ACEOF | |
5361 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5362 | _ACEOF |
f11781c5 AK |
5363 | ;; |
5364 | esac | |
a946372e | 5365 | |
f11781c5 AK |
5366 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5367 | case $ac_cv_c_uint32_t in #( | |
5368 | no|yes) ;; #( | |
5369 | *) | |
a946372e | 5370 | |
f11781c5 | 5371 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5372 | |
a946372e | 5373 | |
f11781c5 AK |
5374 | cat >>confdefs.h <<_ACEOF |
5375 | #define uint32_t $ac_cv_c_uint32_t | |
5376 | _ACEOF | |
5377 | ;; | |
5378 | esac | |
5379 | ||
5380 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5381 | case $ac_cv_c_uint64_t in #( | |
5382 | no|yes) ;; #( | |
5383 | *) | |
5384 | ||
5385 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5386 | ||
5387 | ||
5388 | cat >>confdefs.h <<_ACEOF | |
5389 | #define uint64_t $ac_cv_c_uint64_t | |
5390 | _ACEOF | |
5391 | ;; | |
5392 | esac | |
5393 | ||
5394 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5395 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5396 | ||
5397 | cat >>confdefs.h <<_ACEOF | |
5398 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5399 | _ACEOF | |
5400 | ||
5401 | ||
5402 | fi | |
5403 | ||
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5405 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5406 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5407 | $as_echo_n "(cached) " >&6 |
5408 | else | |
f11781c5 AK |
5409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5410 | /* end confdefs.h. */ | |
5411 | #include <sys/types.h> | |
5412 | #include <time.h> | |
5413 | ||
5414 | int | |
5415 | main () | |
5416 | { | |
5417 | struct tm tm; | |
5418 | int *p = &tm.tm_sec; | |
5419 | return !p; | |
5420 | ; | |
5421 | return 0; | |
5422 | } | |
5423 | _ACEOF | |
5424 | if ac_fn_c_try_compile "$LINENO"; then : | |
5425 | ac_cv_struct_tm=time.h | |
5426 | else | |
5427 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5428 | fi |
f11781c5 AK |
5429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5430 | fi | |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5432 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5433 | if test $ac_cv_struct_tm = sys/time.h; then | |
5434 | ||
5435 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5436 | |
5437 | fi | |
f11781c5 AK |
5438 | |
5439 | ||
5440 | ################################################################################ | |
5441 | for ac_func in ftruncate gethostname getpagesize \ | |
5442 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5443 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5444 | strstr strtol strtoul uname | |
5445 | do : | |
5446 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5447 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5448 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5449 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5450 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5451 | _ACEOF |
5452 | ||
5453 | else | |
f11781c5 | 5454 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5455 | fi |
a946372e AK |
5456 | done |
5457 | ||
f11781c5 AK |
5458 | for ac_func in siginterrupt |
5459 | do : | |
5460 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5461 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5462 | cat >>confdefs.h <<_ACEOF | |
5463 | #define HAVE_SIGINTERRUPT 1 | |
5464 | _ACEOF | |
a946372e | 5465 | |
f11781c5 AK |
5466 | fi |
5467 | done | |
a946372e | 5468 | |
f11781c5 AK |
5469 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5470 | # for constant arguments. Useless! | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5472 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5473 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5474 | $as_echo_n "(cached) " >&6 | |
a946372e | 5475 | else |
f11781c5 AK |
5476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5477 | /* end confdefs.h. */ | |
5478 | #include <alloca.h> | |
5479 | int | |
5480 | main () | |
5481 | { | |
5482 | char *p = (char *) alloca (2 * sizeof (int)); | |
5483 | if (p) return 0; | |
5484 | ; | |
5485 | return 0; | |
5486 | } | |
5487 | _ACEOF | |
5488 | if ac_fn_c_try_link "$LINENO"; then : | |
5489 | ac_cv_working_alloca_h=yes | |
a946372e | 5490 | else |
f11781c5 | 5491 | ac_cv_working_alloca_h=no |
a946372e | 5492 | fi |
f11781c5 AK |
5493 | rm -f core conftest.err conftest.$ac_objext \ |
5494 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5495 | fi |
f11781c5 AK |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5497 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5498 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5499 | |
f11781c5 | 5500 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5501 | |
a946372e | 5502 | fi |
a946372e | 5503 | |
f11781c5 AK |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5505 | $as_echo_n "checking for alloca... " >&6; } | |
5506 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5507 | $as_echo_n "(cached) " >&6 |
a946372e | 5508 | else |
f11781c5 | 5509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5510 | /* end confdefs.h. */ |
f11781c5 AK |
5511 | #ifdef __GNUC__ |
5512 | # define alloca __builtin_alloca | |
5513 | #else | |
5514 | # ifdef _MSC_VER | |
5515 | # include <malloc.h> | |
5516 | # define alloca _alloca | |
5517 | # else | |
5518 | # ifdef HAVE_ALLOCA_H | |
5519 | # include <alloca.h> | |
5520 | # else | |
5521 | # ifdef _AIX | |
5522 | #pragma alloca | |
5523 | # else | |
5524 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5525 | char *alloca (); | |
5526 | # endif | |
5527 | # endif | |
5528 | # endif | |
5529 | # endif | |
5530 | #endif | |
a946372e | 5531 | |
f11781c5 AK |
5532 | int |
5533 | main () | |
5534 | { | |
5535 | char *p = (char *) alloca (1); | |
5536 | if (p) return 0; | |
5537 | ; | |
5538 | return 0; | |
5539 | } | |
a946372e | 5540 | _ACEOF |
f11781c5 AK |
5541 | if ac_fn_c_try_link "$LINENO"; then : |
5542 | ac_cv_func_alloca_works=yes | |
a946372e | 5543 | else |
f11781c5 | 5544 | ac_cv_func_alloca_works=no |
a946372e | 5545 | fi |
f11781c5 AK |
5546 | rm -f core conftest.err conftest.$ac_objext \ |
5547 | conftest$ac_exeext conftest.$ac_ext | |
5548 | fi | |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5550 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5551 | |
f11781c5 | 5552 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5553 | |
f11781c5 | 5554 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5555 | |
a946372e | 5556 | else |
f11781c5 AK |
5557 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5558 | # that cause trouble. Some versions do not even contain alloca or | |
5559 | # contain a buggy version. If you still want to use their alloca, | |
5560 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5561 | |
f11781c5 | 5562 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5563 | |
f11781c5 | 5564 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5565 | |
a946372e | 5566 | |
f11781c5 AK |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5568 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5569 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5570 | $as_echo_n "(cached) " >&6 |
a946372e | 5571 | else |
f11781c5 | 5572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5573 | /* end confdefs.h. */ |
f11781c5 AK |
5574 | #if defined CRAY && ! defined CRAY2 |
5575 | webecray | |
5576 | #else | |
5577 | wenotbecray | |
5578 | #endif | |
5579 | ||
a946372e | 5580 | _ACEOF |
f11781c5 AK |
5581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5582 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5583 | ac_cv_os_cray=yes | |
a946372e | 5584 | else |
f11781c5 | 5585 | ac_cv_os_cray=no |
a946372e | 5586 | fi |
f11781c5 | 5587 | rm -f conftest* |
a946372e | 5588 | |
f11781c5 AK |
5589 | fi |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5591 | $as_echo "$ac_cv_os_cray" >&6; } | |
5592 | if test $ac_cv_os_cray = yes; then | |
5593 | for ac_func in _getb67 GETB67 getb67; do | |
5594 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5595 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5596 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5597 | |
f11781c5 AK |
5598 | cat >>confdefs.h <<_ACEOF |
5599 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5600 | _ACEOF |
a946372e | 5601 | |
f11781c5 | 5602 | break |
a946372e AK |
5603 | fi |
5604 | ||
f11781c5 AK |
5605 | done |
5606 | fi | |
a946372e | 5607 | |
f11781c5 AK |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5609 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5610 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5611 | $as_echo_n "(cached) " >&6 |
5612 | else | |
f11781c5 AK |
5613 | if test "$cross_compiling" = yes; then : |
5614 | ac_cv_c_stack_direction=0 | |
5615 | else | |
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5617 | /* end confdefs.h. */ | |
5618 | $ac_includes_default | |
5619 | int | |
5620 | find_stack_direction () | |
5621 | { | |
5622 | static char *addr = 0; | |
5623 | auto char dummy; | |
5624 | if (addr == 0) | |
5625 | { | |
5626 | addr = &dummy; | |
5627 | return find_stack_direction (); | |
5628 | } | |
5629 | else | |
5630 | return (&dummy > addr) ? 1 : -1; | |
5631 | } | |
5632 | ||
5633 | int | |
5634 | main () | |
5635 | { | |
5636 | return find_stack_direction () < 0; | |
5637 | } | |
5638 | _ACEOF | |
5639 | if ac_fn_c_try_run "$LINENO"; then : | |
5640 | ac_cv_c_stack_direction=1 | |
5641 | else | |
5642 | ac_cv_c_stack_direction=-1 | |
5643 | fi | |
5644 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5645 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5646 | fi |
a946372e AK |
5647 | |
5648 | fi | |
f11781c5 AK |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5650 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5651 | cat >>confdefs.h <<_ACEOF | |
5652 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5653 | _ACEOF |
5654 | ||
f11781c5 | 5655 | |
a946372e AK |
5656 | fi |
5657 | ||
f11781c5 AK |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5659 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5660 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5661 | $as_echo_n "(cached) " >&6 | |
5662 | else | |
5663 | if test "$cross_compiling" = yes; then : | |
5664 | ac_cv_func_closedir_void=yes | |
5665 | else | |
5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5667 | /* end confdefs.h. */ | |
5668 | $ac_includes_default | |
5669 | #include <$ac_header_dirent> | |
5670 | #ifndef __cplusplus | |
5671 | int closedir (); | |
5672 | #endif | |
a946372e | 5673 | |
f11781c5 AK |
5674 | int |
5675 | main () | |
5676 | { | |
5677 | return closedir (opendir (".")) != 0; | |
5678 | ; | |
5679 | return 0; | |
5680 | } | |
5681 | _ACEOF | |
5682 | if ac_fn_c_try_run "$LINENO"; then : | |
5683 | ac_cv_func_closedir_void=no | |
a946372e | 5684 | else |
f11781c5 | 5685 | ac_cv_func_closedir_void=yes |
a946372e | 5686 | fi |
f11781c5 AK |
5687 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5688 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5689 | fi |
5690 | ||
f11781c5 AK |
5691 | fi |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5693 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5694 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5695 | |
f11781c5 | 5696 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5697 | |
a946372e AK |
5698 | fi |
5699 | ||
f11781c5 AK |
5700 | for ac_header in unistd.h |
5701 | do : | |
5702 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5703 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5704 | cat >>confdefs.h <<_ACEOF | |
5705 | #define HAVE_UNISTD_H 1 | |
5706 | _ACEOF | |
a946372e | 5707 | |
f11781c5 | 5708 | fi |
a946372e | 5709 | |
f11781c5 | 5710 | done |
a946372e | 5711 | |
f11781c5 AK |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5713 | $as_echo_n "checking for working chown... " >&6; } | |
5714 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5715 | $as_echo_n "(cached) " >&6 | |
a946372e | 5716 | else |
f11781c5 AK |
5717 | if test "$cross_compiling" = yes; then : |
5718 | ac_cv_func_chown_works=no | |
a946372e | 5719 | else |
f11781c5 AK |
5720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5721 | /* end confdefs.h. */ | |
5722 | $ac_includes_default | |
5723 | #include <fcntl.h> | |
a946372e | 5724 | |
f11781c5 AK |
5725 | int |
5726 | main () | |
5727 | { | |
5728 | char *f = "conftest.chown"; | |
5729 | struct stat before, after; | |
a946372e | 5730 | |
f11781c5 AK |
5731 | if (creat (f, 0600) < 0) |
5732 | return 1; | |
5733 | if (stat (f, &before) < 0) | |
5734 | return 1; | |
5735 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5736 | return 1; | |
5737 | if (stat (f, &after) < 0) | |
5738 | return 1; | |
5739 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5740 | |
f11781c5 AK |
5741 | ; |
5742 | return 0; | |
5743 | } | |
5744 | _ACEOF | |
5745 | if ac_fn_c_try_run "$LINENO"; then : | |
5746 | ac_cv_func_chown_works=yes | |
a946372e | 5747 | else |
f11781c5 | 5748 | ac_cv_func_chown_works=no |
a946372e | 5749 | fi |
f11781c5 AK |
5750 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5751 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5752 | fi |
5753 | ||
f11781c5 | 5754 | rm -f conftest.chown |
a946372e | 5755 | |
f11781c5 AK |
5756 | fi |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5758 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5759 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5760 | |
f11781c5 | 5761 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5762 | |
a946372e | 5763 | fi |
a946372e | 5764 | |
f11781c5 AK |
5765 | for ac_header in vfork.h |
5766 | do : | |
5767 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5768 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5769 | cat >>confdefs.h <<_ACEOF | |
5770 | #define HAVE_VFORK_H 1 | |
5771 | _ACEOF | |
a946372e | 5772 | |
f11781c5 | 5773 | fi |
a946372e | 5774 | |
f11781c5 | 5775 | done |
a946372e | 5776 | |
f11781c5 AK |
5777 | for ac_func in fork vfork |
5778 | do : | |
5779 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5780 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5781 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5782 | cat >>confdefs.h <<_ACEOF | |
5783 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5784 | _ACEOF | |
a946372e | 5785 | |
f11781c5 AK |
5786 | fi |
5787 | done | |
a946372e | 5788 | |
f11781c5 AK |
5789 | if test "x$ac_cv_func_fork" = xyes; then |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5791 | $as_echo_n "checking for working fork... " >&6; } | |
5792 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5793 | $as_echo_n "(cached) " >&6 | |
5794 | else | |
5795 | if test "$cross_compiling" = yes; then : | |
5796 | ac_cv_func_fork_works=cross | |
5797 | else | |
5798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5799 | /* end confdefs.h. */ | |
5800 | $ac_includes_default | |
5801 | int | |
5802 | main () | |
5803 | { | |
a946372e | 5804 | |
f11781c5 AK |
5805 | /* By Ruediger Kuhlmann. */ |
5806 | return fork () < 0; | |
a946372e | 5807 | |
f11781c5 AK |
5808 | ; |
5809 | return 0; | |
5810 | } | |
5811 | _ACEOF | |
5812 | if ac_fn_c_try_run "$LINENO"; then : | |
5813 | ac_cv_func_fork_works=yes | |
a946372e | 5814 | else |
f11781c5 AK |
5815 | ac_cv_func_fork_works=no |
5816 | fi | |
5817 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5818 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5819 | fi |
a946372e | 5820 | |
f11781c5 AK |
5821 | fi |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5823 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5824 | ||
a946372e | 5825 | else |
f11781c5 | 5826 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5827 | fi |
f11781c5 AK |
5828 | if test "x$ac_cv_func_fork_works" = xcross; then |
5829 | case $host in | |
5830 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5831 | # Override, as these systems have only a dummy fork() stub | |
5832 | ac_cv_func_fork_works=no | |
5833 | ;; | |
5834 | *) | |
5835 | ac_cv_func_fork_works=yes | |
5836 | ;; | |
5837 | esac | |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5839 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5840 | fi |
f11781c5 AK |
5841 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5842 | if test "x$ac_cv_func_vfork" = xyes; then | |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5844 | $as_echo_n "checking for working vfork... " >&6; } | |
5845 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5846 | $as_echo_n "(cached) " >&6 | |
5847 | else | |
5848 | if test "$cross_compiling" = yes; then : | |
5849 | ac_cv_func_vfork_works=cross | |
5850 | else | |
5851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5852 | /* end confdefs.h. */ | |
5853 | /* Thanks to Paul Eggert for this test. */ | |
5854 | $ac_includes_default | |
5855 | #include <sys/wait.h> | |
5856 | #ifdef HAVE_VFORK_H | |
5857 | # include <vfork.h> | |
5858 | #endif | |
5859 | /* On some sparc systems, changes by the child to local and incoming | |
5860 | argument registers are propagated back to the parent. The compiler | |
5861 | is told about this with #include <vfork.h>, but some compilers | |
5862 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5863 | static variable whose address is put into a register that is | |
5864 | clobbered by the vfork. */ | |
5865 | static void | |
5866 | #ifdef __cplusplus | |
5867 | sparc_address_test (int arg) | |
5868 | # else | |
5869 | sparc_address_test (arg) int arg; | |
5870 | #endif | |
5871 | { | |
5872 | static pid_t child; | |
5873 | if (!child) { | |
5874 | child = vfork (); | |
5875 | if (child < 0) { | |
5876 | perror ("vfork"); | |
5877 | _exit(2); | |
5878 | } | |
5879 | if (!child) { | |
5880 | arg = getpid(); | |
5881 | write(-1, "", 0); | |
5882 | _exit (arg); | |
5883 | } | |
5884 | } | |
5885 | } | |
a946372e | 5886 | |
f11781c5 AK |
5887 | int |
5888 | main () | |
5889 | { | |
5890 | pid_t parent = getpid (); | |
5891 | pid_t child; | |
a946372e | 5892 | |
f11781c5 | 5893 | sparc_address_test (0); |
a946372e | 5894 | |
f11781c5 | 5895 | child = vfork (); |
a946372e | 5896 | |
f11781c5 AK |
5897 | if (child == 0) { |
5898 | /* Here is another test for sparc vfork register problems. This | |
5899 | test uses lots of local variables, at least as many local | |
5900 | variables as main has allocated so far including compiler | |
5901 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5902 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5903 | reuse the register of parent for one of the local variables, | |
5904 | since it will think that parent can't possibly be used any more | |
5905 | in this routine. Assigning to the local variable will thus | |
5906 | munge parent in the parent process. */ | |
5907 | pid_t | |
5908 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5909 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5910 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5911 | use the same hardware register for all 8 local variables. */ | |
5912 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5913 | || p != p5 || p != p6 || p != p7) | |
5914 | _exit(1); | |
a946372e | 5915 | |
f11781c5 AK |
5916 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5917 | from child file descriptors. If the child closes a descriptor | |
5918 | before it execs or exits, this munges the parent's descriptor | |
5919 | as well. Test for this by closing stdout in the child. */ | |
5920 | _exit(close(fileno(stdout)) != 0); | |
5921 | } else { | |
5922 | int status; | |
5923 | struct stat st; | |
5924 | ||
5925 | while (wait(&status) != child) | |
5926 | ; | |
5927 | return ( | |
5928 | /* Was there some problem with vforking? */ | |
5929 | child < 0 | |
5930 | ||
5931 | /* Did the child fail? (This shouldn't happen.) */ | |
5932 | || status | |
5933 | ||
5934 | /* Did the vfork/compiler bug occur? */ | |
5935 | || parent != getpid() | |
5936 | ||
5937 | /* Did the file descriptor bug occur? */ | |
5938 | || fstat(fileno(stdout), &st) != 0 | |
5939 | ); | |
5940 | } | |
5941 | } | |
5942 | _ACEOF | |
5943 | if ac_fn_c_try_run "$LINENO"; then : | |
5944 | ac_cv_func_vfork_works=yes | |
a946372e | 5945 | else |
f11781c5 | 5946 | ac_cv_func_vfork_works=no |
a946372e | 5947 | fi |
f11781c5 AK |
5948 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5949 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5950 | fi |
f11781c5 | 5951 | |
a946372e | 5952 | fi |
f11781c5 AK |
5953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5954 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5955 | |
f11781c5 AK |
5956 | fi; |
5957 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5958 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5960 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5961 | fi | |
a946372e | 5962 | |
f11781c5 | 5963 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5964 | |
f11781c5 | 5965 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5966 | |
a946372e | 5967 | else |
a946372e | 5968 | |
f11781c5 AK |
5969 | $as_echo "#define vfork fork" >>confdefs.h |
5970 | ||
a946372e | 5971 | fi |
f11781c5 | 5972 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5973 | |
f11781c5 | 5974 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5975 | |
a946372e | 5976 | fi |
f11781c5 AK |
5977 | |
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5979 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5980 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5981 | $as_echo_n "(cached) " >&6 | |
a946372e | 5982 | else |
f11781c5 AK |
5983 | rm -f conftest.sym conftest.file |
5984 | echo >conftest.file | |
5985 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5986 | if test "$cross_compiling" = yes; then : | |
5987 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5988 | else |
f11781c5 | 5989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5990 | /* end confdefs.h. */ |
f11781c5 AK |
5991 | $ac_includes_default |
5992 | int | |
5993 | main () | |
5994 | { | |
5995 | struct stat sbuf; | |
5996 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5997 | That is better in the sense that it means we will not | |
5998 | have to compile and use the lstat wrapper. */ | |
5999 | return lstat ("conftest.sym/", &sbuf) == 0; | |
6000 | ; | |
6001 | return 0; | |
6002 | } | |
a946372e | 6003 | _ACEOF |
f11781c5 AK |
6004 | if ac_fn_c_try_run "$LINENO"; then : |
6005 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 6006 | else |
f11781c5 | 6007 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 6008 | fi |
f11781c5 AK |
6009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6010 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6011 | fi |
a946372e | 6012 | |
a946372e | 6013 | else |
f11781c5 AK |
6014 | # If the `ln -s' command failed, then we probably don't even |
6015 | # have an lstat function. | |
6016 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6017 | fi |
f11781c5 | 6018 | rm -f conftest.sym conftest.file |
a946372e | 6019 | |
f11781c5 AK |
6020 | fi |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6022 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 6023 | |
f11781c5 | 6024 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 6025 | |
f11781c5 AK |
6026 | cat >>confdefs.h <<_ACEOF |
6027 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6028 | _ACEOF | |
a946372e | 6029 | |
a946372e | 6030 | |
f11781c5 AK |
6031 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6032 | case " $LIBOBJS " in | |
6033 | *" lstat.$ac_objext "* ) ;; | |
6034 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6035 | ;; | |
6036 | esac | |
a946372e | 6037 | |
f11781c5 | 6038 | fi |
a946372e | 6039 | |
f11781c5 AK |
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6041 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6042 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6043 | $as_echo_n "(cached) " >&6 | |
a946372e | 6044 | else |
f11781c5 AK |
6045 | if test "$cross_compiling" = yes; then : |
6046 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6047 | else |
f11781c5 AK |
6048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6049 | /* end confdefs.h. */ | |
6050 | $ac_includes_default | |
6051 | int | |
6052 | main () | |
6053 | { | |
6054 | struct stat sbuf; | |
6055 | return lstat ("", &sbuf) == 0; | |
6056 | ; | |
6057 | return 0; | |
6058 | } | |
6059 | _ACEOF | |
6060 | if ac_fn_c_try_run "$LINENO"; then : | |
6061 | ac_cv_func_lstat_empty_string_bug=no | |
6062 | else | |
6063 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6064 | fi |
f11781c5 AK |
6065 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6066 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6067 | fi |
6068 | ||
f11781c5 AK |
6069 | fi |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6071 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6072 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6073 | case " $LIBOBJS " in | |
6074 | *" lstat.$ac_objext "* ) ;; | |
6075 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6076 | ;; | |
6077 | esac | |
a946372e AK |
6078 | |
6079 | ||
f11781c5 AK |
6080 | cat >>confdefs.h <<_ACEOF |
6081 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6082 | _ACEOF | |
a946372e | 6083 | |
a946372e | 6084 | fi |
a946372e | 6085 | |
f11781c5 AK |
6086 | for ac_header in stdlib.h |
6087 | do : | |
6088 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6089 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6090 | cat >>confdefs.h <<_ACEOF | |
6091 | #define HAVE_STDLIB_H 1 | |
6092 | _ACEOF | |
6093 | ||
a946372e AK |
6094 | fi |
6095 | ||
f11781c5 | 6096 | done |
a946372e | 6097 | |
f11781c5 AK |
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6099 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6100 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6101 | $as_echo_n "(cached) " >&6 | |
6102 | else | |
6103 | if test "$cross_compiling" = yes; then : | |
6104 | ac_cv_func_malloc_0_nonnull=no | |
6105 | else | |
6106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6107 | /* end confdefs.h. */ | |
6108 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6109 | # include <stdlib.h> | |
6110 | #else | |
6111 | char *malloc (); | |
6112 | #endif | |
a946372e | 6113 | |
f11781c5 AK |
6114 | int |
6115 | main () | |
6116 | { | |
6117 | return ! malloc (0); | |
6118 | ; | |
6119 | return 0; | |
6120 | } | |
6121 | _ACEOF | |
6122 | if ac_fn_c_try_run "$LINENO"; then : | |
6123 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6124 | else |
f11781c5 | 6125 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6126 | fi |
f11781c5 AK |
6127 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6128 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6129 | fi |
f11781c5 | 6130 | |
a946372e | 6131 | fi |
f11781c5 AK |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6133 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6134 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6135 | |
f11781c5 | 6136 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6137 | |
f11781c5 AK |
6138 | else |
6139 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6140 | |
f11781c5 AK |
6141 | case " $LIBOBJS " in |
6142 | *" malloc.$ac_objext "* ) ;; | |
6143 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6144 | ;; | |
6145 | esac | |
6146 | ||
6147 | ||
6148 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6149 | |
a946372e | 6150 | fi |
a946372e | 6151 | |
a946372e | 6152 | |
f11781c5 AK |
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6154 | $as_echo_n "checking for working memcmp... " >&6; } | |
6155 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6156 | $as_echo_n "(cached) " >&6 |
a946372e | 6157 | else |
f11781c5 AK |
6158 | if test "$cross_compiling" = yes; then : |
6159 | ac_cv_func_memcmp_working=no | |
6160 | else | |
6161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6162 | /* end confdefs.h. */ |
6163 | $ac_includes_default | |
f11781c5 AK |
6164 | int |
6165 | main () | |
6166 | { | |
a946372e | 6167 | |
f11781c5 AK |
6168 | /* Some versions of memcmp are not 8-bit clean. */ |
6169 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6170 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6171 | return 1; | |
a946372e | 6172 | |
f11781c5 AK |
6173 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6174 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6175 | William Lewis provided this test program. */ | |
6176 | { | |
6177 | char foo[21]; | |
6178 | char bar[21]; | |
6179 | int i; | |
6180 | for (i = 0; i < 4; i++) | |
6181 | { | |
6182 | char *a = foo + i; | |
6183 | char *b = bar + i; | |
6184 | strcpy (a, "--------01111111"); | |
6185 | strcpy (b, "--------10000000"); | |
6186 | if (memcmp (a, b, 16) >= 0) | |
6187 | return 1; | |
6188 | } | |
6189 | return 0; | |
6190 | } | |
a946372e | 6191 | |
f11781c5 AK |
6192 | ; |
6193 | return 0; | |
6194 | } | |
a946372e | 6195 | _ACEOF |
f11781c5 AK |
6196 | if ac_fn_c_try_run "$LINENO"; then : |
6197 | ac_cv_func_memcmp_working=yes | |
a946372e | 6198 | else |
f11781c5 AK |
6199 | ac_cv_func_memcmp_working=no |
6200 | fi | |
6201 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6202 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6203 | fi | |
a946372e | 6204 | |
a946372e | 6205 | fi |
f11781c5 AK |
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6207 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6208 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6209 | *" memcmp.$ac_objext "* ) ;; | |
6210 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6211 | ;; | |
6212 | esac | |
a946372e | 6213 | |
a946372e | 6214 | |
a946372e | 6215 | |
a946372e | 6216 | |
f11781c5 AK |
6217 | |
6218 | for ac_header in $ac_header_list | |
6219 | do : | |
6220 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6221 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6222 | " | |
6223 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6224 | cat >>confdefs.h <<_ACEOF |
6225 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6226 | _ACEOF | |
6227 | ||
a946372e AK |
6228 | fi |
6229 | ||
6230 | done | |
6231 | ||
a946372e | 6232 | |
f11781c5 AK |
6233 | |
6234 | ||
6235 | ||
6236 | ||
6237 | ||
6238 | ||
6239 | for ac_func in getpagesize | |
6240 | do : | |
6241 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6242 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6243 | cat >>confdefs.h <<_ACEOF | |
6244 | #define HAVE_GETPAGESIZE 1 | |
6245 | _ACEOF | |
6246 | ||
a946372e | 6247 | fi |
f11781c5 AK |
6248 | done |
6249 | ||
6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6251 | $as_echo_n "checking for working mmap... " >&6; } | |
6252 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6253 | $as_echo_n "(cached) " >&6 | |
a946372e | 6254 | else |
f11781c5 AK |
6255 | if test "$cross_compiling" = yes; then : |
6256 | ac_cv_func_mmap_fixed_mapped=no | |
6257 | else | |
6258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6259 | /* end confdefs.h. */ |
6260 | $ac_includes_default | |
f11781c5 AK |
6261 | /* malloc might have been renamed as rpl_malloc. */ |
6262 | #undef malloc | |
6263 | ||
6264 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6265 | Here is a matrix of mmap possibilities: | |
6266 | mmap private not fixed | |
6267 | mmap private fixed at somewhere currently unmapped | |
6268 | mmap private fixed at somewhere already mapped | |
6269 | mmap shared not fixed | |
6270 | mmap shared fixed at somewhere currently unmapped | |
6271 | mmap shared fixed at somewhere already mapped | |
6272 | For private mappings, we should verify that changes cannot be read() | |
6273 | back from the file, nor mmap's back from the file at a different | |
6274 | address. (There have been systems where private was not correctly | |
6275 | implemented like the infamous i386 svr4.0, and systems where the | |
6276 | VM page cache was not coherent with the file system buffer cache | |
6277 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6278 | For shared mappings, we should conversely verify that changes get | |
6279 | propagated back to all the places they're supposed to be. | |
6280 | ||
6281 | Grep wants private fixed already mapped. | |
6282 | The main things grep needs to know about mmap are: | |
6283 | * does it exist and is it safe to write into the mmap'd area | |
6284 | * how to use it (BSD variants) */ | |
6285 | ||
6286 | #include <fcntl.h> | |
6287 | #include <sys/mman.h> | |
6288 | ||
6289 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6290 | char *malloc (); | |
6291 | #endif | |
6292 | ||
6293 | /* This mess was copied from the GNU getpagesize.h. */ | |
6294 | #ifndef HAVE_GETPAGESIZE | |
6295 | # ifdef _SC_PAGESIZE | |
6296 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6297 | # else /* no _SC_PAGESIZE */ | |
6298 | # ifdef HAVE_SYS_PARAM_H | |
6299 | # include <sys/param.h> | |
6300 | # ifdef EXEC_PAGESIZE | |
6301 | # define getpagesize() EXEC_PAGESIZE | |
6302 | # else /* no EXEC_PAGESIZE */ | |
6303 | # ifdef NBPG | |
6304 | # define getpagesize() NBPG * CLSIZE | |
6305 | # ifndef CLSIZE | |
6306 | # define CLSIZE 1 | |
6307 | # endif /* no CLSIZE */ | |
6308 | # else /* no NBPG */ | |
6309 | # ifdef NBPC | |
6310 | # define getpagesize() NBPC | |
6311 | # else /* no NBPC */ | |
6312 | # ifdef PAGESIZE | |
6313 | # define getpagesize() PAGESIZE | |
6314 | # endif /* PAGESIZE */ | |
6315 | # endif /* no NBPC */ | |
6316 | # endif /* no NBPG */ | |
6317 | # endif /* no EXEC_PAGESIZE */ | |
6318 | # else /* no HAVE_SYS_PARAM_H */ | |
6319 | # define getpagesize() 8192 /* punt totally */ | |
6320 | # endif /* no HAVE_SYS_PARAM_H */ | |
6321 | # endif /* no _SC_PAGESIZE */ | |
6322 | ||
6323 | #endif /* no HAVE_GETPAGESIZE */ | |
6324 | ||
6325 | int | |
6326 | main () | |
6327 | { | |
6328 | char *data, *data2, *data3; | |
6329 | const char *cdata2; | |
6330 | int i, pagesize; | |
6331 | int fd, fd2; | |
6332 | ||
6333 | pagesize = getpagesize (); | |
6334 | ||
6335 | /* First, make a file with some known garbage in it. */ | |
6336 | data = (char *) malloc (pagesize); | |
6337 | if (!data) | |
6338 | return 1; | |
6339 | for (i = 0; i < pagesize; ++i) | |
6340 | *(data + i) = rand (); | |
6341 | umask (0); | |
6342 | fd = creat ("conftest.mmap", 0600); | |
6343 | if (fd < 0) | |
6344 | return 2; | |
6345 | if (write (fd, data, pagesize) != pagesize) | |
6346 | return 3; | |
6347 | close (fd); | |
6348 | ||
6349 | /* Next, check that the tail of a page is zero-filled. File must have | |
6350 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6351 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6352 | if (fd2 < 0) | |
6353 | return 4; | |
6354 | cdata2 = ""; | |
6355 | if (write (fd2, cdata2, 1) != 1) | |
6356 | return 5; | |
6357 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6358 | if (data2 == MAP_FAILED) | |
6359 | return 6; | |
6360 | for (i = 0; i < pagesize; ++i) | |
6361 | if (*(data2 + i)) | |
6362 | return 7; | |
6363 | close (fd2); | |
6364 | if (munmap (data2, pagesize)) | |
6365 | return 8; | |
6366 | ||
6367 | /* Next, try to mmap the file at a fixed address which already has | |
6368 | something else allocated at it. If we can, also make sure that | |
6369 | we see the same garbage. */ | |
6370 | fd = open ("conftest.mmap", O_RDWR); | |
6371 | if (fd < 0) | |
6372 | return 9; | |
6373 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6374 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6375 | return 10; | |
6376 | for (i = 0; i < pagesize; ++i) | |
6377 | if (*(data + i) != *(data2 + i)) | |
6378 | return 11; | |
6379 | ||
6380 | /* Finally, make sure that changes to the mapped area do not | |
6381 | percolate back to the file as seen by read(). (This is a bug on | |
6382 | some variants of i386 svr4.0.) */ | |
6383 | for (i = 0; i < pagesize; ++i) | |
6384 | *(data2 + i) = *(data2 + i) + 1; | |
6385 | data3 = (char *) malloc (pagesize); | |
6386 | if (!data3) | |
6387 | return 12; | |
6388 | if (read (fd, data3, pagesize) != pagesize) | |
6389 | return 13; | |
6390 | for (i = 0; i < pagesize; ++i) | |
6391 | if (*(data + i) != *(data3 + i)) | |
6392 | return 14; | |
6393 | close (fd); | |
6394 | return 0; | |
6395 | } | |
a946372e | 6396 | _ACEOF |
f11781c5 AK |
6397 | if ac_fn_c_try_run "$LINENO"; then : |
6398 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6399 | else |
f11781c5 AK |
6400 | ac_cv_func_mmap_fixed_mapped=no |
6401 | fi | |
6402 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6403 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6404 | fi | |
a946372e | 6405 | |
a946372e | 6406 | fi |
f11781c5 AK |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6408 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6409 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6410 | |
f11781c5 | 6411 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6412 | |
f11781c5 AK |
6413 | fi |
6414 | rm -f conftest.mmap conftest.txt | |
6415 | ||
6416 | for ac_header in stdlib.h | |
6417 | do : | |
6418 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6419 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6420 | cat >>confdefs.h <<_ACEOF | |
6421 | #define HAVE_STDLIB_H 1 | |
a946372e | 6422 | _ACEOF |
f11781c5 AK |
6423 | |
6424 | fi | |
6425 | ||
6426 | done | |
6427 | ||
6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6429 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6430 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6431 | $as_echo_n "(cached) " >&6 | |
6432 | else | |
6433 | if test "$cross_compiling" = yes; then : | |
6434 | ac_cv_func_realloc_0_nonnull=no | |
6435 | else | |
6436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6437 | /* end confdefs.h. */ |
f11781c5 AK |
6438 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6439 | # include <stdlib.h> | |
6440 | #else | |
6441 | char *realloc (); | |
6442 | #endif | |
6443 | ||
6444 | int | |
6445 | main () | |
6446 | { | |
6447 | return ! realloc (0, 0); | |
6448 | ; | |
6449 | return 0; | |
6450 | } | |
a946372e | 6451 | _ACEOF |
f11781c5 AK |
6452 | if ac_fn_c_try_run "$LINENO"; then : |
6453 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6454 | else |
f11781c5 AK |
6455 | ac_cv_func_realloc_0_nonnull=no |
6456 | fi | |
6457 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6458 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6459 | fi |
6460 | ||
f11781c5 AK |
6461 | fi |
6462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6463 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6464 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6465 | |
f11781c5 | 6466 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6467 | |
a946372e | 6468 | else |
f11781c5 AK |
6469 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6470 | ||
6471 | case " $LIBOBJS " in | |
6472 | *" realloc.$ac_objext "* ) ;; | |
6473 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6474 | ;; | |
6475 | esac | |
a946372e | 6476 | |
a946372e | 6477 | |
f11781c5 AK |
6478 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6479 | ||
a946372e AK |
6480 | fi |
6481 | ||
a946372e | 6482 | |
f11781c5 AK |
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6484 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6485 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6486 | $as_echo_n "(cached) " >&6 | |
a946372e | 6487 | else |
f11781c5 AK |
6488 | if test "$cross_compiling" = yes; then : |
6489 | ac_cv_func_stat_empty_string_bug=yes | |
6490 | else | |
6491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6492 | /* end confdefs.h. */ | |
6493 | $ac_includes_default | |
6494 | int | |
6495 | main () | |
6496 | { | |
6497 | struct stat sbuf; | |
6498 | return stat ("", &sbuf) == 0; | |
6499 | ; | |
6500 | return 0; | |
6501 | } | |
6502 | _ACEOF | |
6503 | if ac_fn_c_try_run "$LINENO"; then : | |
6504 | ac_cv_func_stat_empty_string_bug=no | |
6505 | else | |
6506 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6507 | fi |
f11781c5 AK |
6508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6509 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6510 | fi |
6511 | ||
8c4e8a18 | 6512 | fi |
f11781c5 AK |
6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6514 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6515 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6516 | case " $LIBOBJS " in | |
6517 | *" stat.$ac_objext "* ) ;; | |
6518 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6519 | ;; | |
6520 | esac | |
8c4e8a18 FDN |
6521 | |
6522 | ||
6523 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6524 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6525 | _ACEOF |
6526 | ||
6527 | fi | |
6528 | ||
f11781c5 AK |
6529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6530 | $as_echo_n "checking for working strtod... " >&6; } | |
6531 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6532 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6533 | else |
f11781c5 AK |
6534 | if test "$cross_compiling" = yes; then : |
6535 | ac_cv_func_strtod=no | |
6536 | else | |
6537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6538 | /* end confdefs.h. */ | |
66fd4529 | 6539 | |
f11781c5 AK |
6540 | $ac_includes_default |
6541 | #ifndef strtod | |
6542 | double strtod (); | |
6543 | #endif | |
6544 | int | |
6545 | main() | |
6546 | { | |
6547 | { | |
6548 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6549 | char *string = " +69"; | |
6550 | char *term; | |
6551 | double value; | |
6552 | value = strtod (string, &term); | |
6553 | if (value != 69 || term != (string + 4)) | |
6554 | return 1; | |
6555 | } | |
66fd4529 | 6556 | |
f11781c5 AK |
6557 | { |
6558 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6559 | terminating character under some conditions. */ | |
6560 | char *string = "NaN"; | |
6561 | char *term; | |
6562 | strtod (string, &term); | |
6563 | if (term != string && *(term - 1) == 0) | |
6564 | return 1; | |
6565 | } | |
6566 | return 0; | |
6567 | } | |
66fd4529 | 6568 | |
f11781c5 AK |
6569 | _ACEOF |
6570 | if ac_fn_c_try_run "$LINENO"; then : | |
6571 | ac_cv_func_strtod=yes | |
66fd4529 | 6572 | else |
f11781c5 AK |
6573 | ac_cv_func_strtod=no |
6574 | fi | |
6575 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6576 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6577 | fi |
6578 | ||
f11781c5 AK |
6579 | fi |
6580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6581 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6582 | if test $ac_cv_func_strtod = no; then | |
6583 | case " $LIBOBJS " in | |
6584 | *" strtod.$ac_objext "* ) ;; | |
6585 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6586 | ;; | |
6587 | esac | |
71082be4 | 6588 | |
f11781c5 AK |
6589 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6590 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6591 | |
66fd4529 | 6592 | fi |
a946372e | 6593 | |
f11781c5 AK |
6594 | if test $ac_cv_func_pow = no; then |
6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6596 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6597 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6598 | $as_echo_n "(cached) " >&6 | |
6599 | else | |
6600 | ac_check_lib_save_LIBS=$LIBS | |
6601 | LIBS="-lm $LIBS" | |
6602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6603 | /* end confdefs.h. */ | |
90c80887 | 6604 | |
f11781c5 AK |
6605 | /* Override any GCC internal prototype to avoid an error. |
6606 | Use char because int might match the return type of a GCC | |
6607 | builtin and then its argument prototype would still apply. */ | |
6608 | #ifdef __cplusplus | |
6609 | extern "C" | |
6610 | #endif | |
6611 | char pow (); | |
6612 | int | |
6613 | main () | |
6614 | { | |
6615 | return pow (); | |
6616 | ; | |
6617 | return 0; | |
6618 | } | |
6619 | _ACEOF | |
6620 | if ac_fn_c_try_link "$LINENO"; then : | |
6621 | ac_cv_lib_m_pow=yes | |
90c80887 | 6622 | else |
f11781c5 | 6623 | ac_cv_lib_m_pow=no |
90c80887 | 6624 | fi |
f11781c5 AK |
6625 | rm -f core conftest.err conftest.$ac_objext \ |
6626 | conftest$ac_exeext conftest.$ac_ext | |
6627 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6628 | fi |
f11781c5 AK |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6630 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6631 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6632 | POW_LIB=-lm | |
90c80887 | 6633 | else |
f11781c5 AK |
6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6635 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6636 | fi |
f11781c5 | 6637 | |
90c80887 AK |
6638 | fi |
6639 | ||
f11781c5 AK |
6640 | fi |
6641 | ||
6642 | for ac_func in vprintf | |
6643 | do : | |
6644 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6645 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6646 | cat >>confdefs.h <<_ACEOF | |
6647 | #define HAVE_VPRINTF 1 | |
6648 | _ACEOF | |
90c80887 | 6649 | |
f11781c5 AK |
6650 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6651 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6652 | |
f11781c5 | 6653 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6654 | |
90c80887 | 6655 | fi |
90c80887 | 6656 | |
f11781c5 AK |
6657 | fi |
6658 | done | |
90c80887 | 6659 | |
90c80887 | 6660 | |
90c80887 | 6661 | |
f11781c5 AK |
6662 | ################################################################################ |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6664 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6665 | # Check whether --enable-static_link was given. | |
6666 | if test "${enable_static_link+set}" = set; then : | |
6667 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6668 | else | |
6669 | STATIC_LINK=no | |
6670 | fi | |
90c80887 | 6671 | |
f11781c5 AK |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6673 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6674 | |
f11781c5 | 6675 | ################################################################################ |
90c80887 | 6676 | |
90c80887 | 6677 | |
f11781c5 AK |
6678 | ################################################################################ |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6680 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6681 | |
f11781c5 AK |
6682 | # Check whether --with-user was given. |
6683 | if test "${with_user+set}" = set; then : | |
6684 | withval=$with_user; OWNER=$withval | |
6685 | fi | |
90c80887 | 6686 | |
f11781c5 AK |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6688 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6689 | |
f11781c5 AK |
6690 | if test x$OWNER != x; then |
6691 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6692 | fi |
a946372e | 6693 | |
f11781c5 AK |
6694 | ################################################################################ |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6696 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6697 | |
f11781c5 AK |
6698 | # Check whether --with-group was given. |
6699 | if test "${with_group+set}" = set; then : | |
6700 | withval=$with_group; GROUP=$withval | |
a946372e | 6701 | fi |
f11781c5 AK |
6702 | |
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6704 | $as_echo "$GROUP" >&6; } | |
6705 | ||
6706 | if test x$GROUP != x; then | |
6707 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6708 | fi |
f11781c5 AK |
6709 | |
6710 | ################################################################################ | |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6712 | $as_echo_n "checking device node uid... " >&6; } | |
6713 | ||
6714 | ||
6715 | # Check whether --with-device-uid was given. | |
6716 | if test "${with_device_uid+set}" = set; then : | |
6717 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6718 | else |
f11781c5 | 6719 | DM_DEVICE_UID=0 |
a946372e AK |
6720 | fi |
6721 | ||
f11781c5 AK |
6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6723 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6724 | |
f11781c5 AK |
6725 | ################################################################################ |
6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6727 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6728 | |
a946372e | 6729 | |
f11781c5 AK |
6730 | # Check whether --with-device-gid was given. |
6731 | if test "${with_device_gid+set}" = set; then : | |
6732 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6733 | else |
f11781c5 | 6734 | DM_DEVICE_GID=0 |
a946372e | 6735 | fi |
a946372e | 6736 | |
f11781c5 AK |
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6738 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6739 | |
f11781c5 AK |
6740 | ################################################################################ |
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6742 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6743 | |
90c80887 | 6744 | |
f11781c5 AK |
6745 | # Check whether --with-device-mode was given. |
6746 | if test "${with_device_mode+set}" = set; then : | |
6747 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6748 | else | |
6749 | DM_DEVICE_MODE=0600 | |
6750 | fi | |
90c80887 | 6751 | |
f11781c5 AK |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6753 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6754 | |
d0df875d ZK |
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6756 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6757 | ||
6758 | # Check whether --with-device-nodes-on was given. | |
6759 | if test "${with_device_nodes_on+set}" = set; then : | |
6760 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6761 | else | |
6762 | ADD_NODE=resume | |
6763 | fi | |
6764 | ||
6765 | case "$ADD_NODE" in | |
6766 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6767 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6768 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6769 | esac | |
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6771 | $as_echo "on $ADD_NODE" >&6; } | |
6772 | ||
6773 | cat >>confdefs.h <<_ACEOF | |
6774 | #define DEFAULT_DM_ADD_NODE $add_on | |
6775 | _ACEOF | |
6776 | ||
6777 | ||
c64d7cd3 PR |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 |
6779 | $as_echo_n "checking default name mangling... " >&6; } | |
6780 | ||
6781 | # Check whether --with-default-name-mangling was given. | |
6782 | if test "${with_default_name_mangling+set}" = set; then : | |
6783 | withval=$with_default_name_mangling; MANGLING=$withval | |
6784 | else | |
6785 | MANGLING=auto | |
6786 | fi | |
6787 | ||
6788 | case "$MANGLING" in | |
6789 | auto) mangling=DM_STRING_MANGLING_AUTO;; | |
6790 | disabled) mangling=DM_STRING_MANGLING_NONE;; | |
6791 | hex) mangling=DM_STRING_MANGLING_HEX;; | |
6792 | *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;; | |
6793 | esac | |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 | |
6795 | $as_echo "$MANGLING" >&6; } | |
6796 | ||
6797 | cat >>confdefs.h <<_ACEOF | |
6798 | #define DEFAULT_DM_NAME_MANGLING $mangling | |
6799 | _ACEOF | |
6800 | ||
6801 | ||
f11781c5 AK |
6802 | ################################################################################ |
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6804 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6805 | # Check whether --enable-lvm1_fallback was given. | |
6806 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6807 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6808 | else | |
6809 | LVM1_FALLBACK=no | |
6810 | fi | |
90c80887 | 6811 | |
f11781c5 AK |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6813 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6814 | |
f11781c5 | 6815 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6816 | |
f11781c5 | 6817 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6818 | |
f11781c5 | 6819 | fi |
90c80887 | 6820 | |
f11781c5 AK |
6821 | ################################################################################ |
6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6823 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6824 | ||
6825 | # Check whether --with-lvm1 was given. | |
6826 | if test "${with_lvm1+set}" = set; then : | |
6827 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6828 | else |
f11781c5 | 6829 | LVM1=internal |
a946372e | 6830 | fi |
f11781c5 AK |
6831 | |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6833 | $as_echo "$LVM1" >&6; } | |
6834 | ||
6835 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6836 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6837 | " "$LINENO" 5 | |
6838 | fi; | |
6839 | ||
6840 | if test x$LVM1 = xinternal; then | |
6841 | ||
6842 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6843 | ||
a946372e AK |
6844 | fi |
6845 | ||
6846 | ################################################################################ | |
f11781c5 AK |
6847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6848 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6849 | ||
6850 | # Check whether --with-pool was given. | |
6851 | if test "${with_pool+set}" = set; then : | |
6852 | withval=$with_pool; POOL=$withval | |
a946372e | 6853 | else |
f11781c5 | 6854 | POOL=internal |
a946372e AK |
6855 | fi |
6856 | ||
f11781c5 AK |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6858 | $as_echo "$POOL" >&6; } | |
6859 | ||
6860 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6861 | then as_fn_error $? "--with-pool parameter invalid | |
6862 | " "$LINENO" 5 | |
6863 | fi; | |
6864 | ||
6865 | if test x$POOL = xinternal; then | |
6866 | ||
6867 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6868 | |
a946372e AK |
6869 | fi |
6870 | ||
6871 | ################################################################################ | |
f11781c5 AK |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6873 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6874 | |
f11781c5 AK |
6875 | # Check whether --with-cluster was given. |
6876 | if test "${with_cluster+set}" = set; then : | |
6877 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6878 | fi |
6879 | ||
f11781c5 AK |
6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6881 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6882 | |
f11781c5 AK |
6883 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6884 | then as_fn_error $? "--with-cluster parameter invalid | |
6885 | " "$LINENO" 5 | |
6886 | fi; | |
fddafd51 | 6887 | |
f11781c5 | 6888 | if test x$CLUSTER = xinternal; then |
5556819a | 6889 | |
f11781c5 | 6890 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6891 | |
fddafd51 | 6892 | fi |
f11781c5 AK |
6893 | |
6894 | ################################################################################ | |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6896 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6897 | ||
6898 | # Check whether --with-snapshots was given. | |
6899 | if test "${with_snapshots+set}" = set; then : | |
6900 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6901 | else |
f11781c5 | 6902 | SNAPSHOTS=internal |
fddafd51 ZK |
6903 | fi |
6904 | ||
f11781c5 AK |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6906 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6907 | |
f11781c5 AK |
6908 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6909 | then as_fn_error $? "--with-snapshots parameter invalid | |
6910 | " "$LINENO" 5 | |
6911 | fi; | |
fddafd51 | 6912 | |
f11781c5 AK |
6913 | if test x$SNAPSHOTS = xinternal; then |
6914 | ||
6915 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6916 | ||
6917 | fi | |
6918 | ||
6919 | ################################################################################ | |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6921 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6922 | ||
6923 | # Check whether --with-mirrors was given. | |
6924 | if test "${with_mirrors+set}" = set; then : | |
6925 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6926 | else |
f11781c5 | 6927 | MIRRORS=internal |
fddafd51 ZK |
6928 | fi |
6929 | ||
f11781c5 AK |
6930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6931 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6932 | |
f11781c5 AK |
6933 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6934 | then as_fn_error $? "--with-mirrors parameter invalid | |
6935 | " "$LINENO" 5 | |
6936 | fi; | |
6937 | ||
6938 | if test x$MIRRORS = xinternal; then | |
6939 | ||
6940 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6941 | ||
6942 | fi | |
6943 | ||
cac52ca4 JEB |
6944 | ################################################################################ |
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6946 | $as_echo_n "checking whether to include raid... " >&6; } | |
6947 | ||
6948 | # Check whether --with-raid was given. | |
6949 | if test "${with_raid+set}" = set; then : | |
6950 | withval=$with_raid; RAID=$withval | |
6951 | else | |
6952 | RAID=internal | |
6953 | fi | |
6954 | ||
6955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6956 | $as_echo "$RAID" >&6; } | |
6957 | ||
6958 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6959 | then as_fn_error $? "--with-raid parameter invalid | |
6960 | " "$LINENO" 5 | |
6961 | fi; | |
6962 | ||
6963 | if test x$RAID = xinternal; then | |
6964 | ||
6965 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6966 | ||
6967 | fi | |
6968 | ||
f11781c5 AK |
6969 | ################################################################################ |
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6971 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6972 | ||
6973 | # Check whether --with-replicators was given. | |
6974 | if test "${with_replicators+set}" = set; then : | |
6975 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6976 | else |
f11781c5 AK |
6977 | REPLICATORS=none |
6978 | fi | |
fd4728e1 | 6979 | |
f11781c5 AK |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6981 | $as_echo "$REPLICATORS" >&6; } | |
6982 | ||
6983 | case "$REPLICATORS" in | |
6984 | none|shared) ;; | |
6985 | internal) | |
6986 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6987 | ;; | |
6988 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6989 | esac |
f11781c5 | 6990 | |
3ba4a195 ZK |
6991 | ################################################################################ |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
6993 | $as_echo_n "checking whether to include thin provisioning... " >&6; } | |
6994 | ||
6995 | # Check whether --with-thin was given. | |
6996 | if test "${with_thin+set}" = set; then : | |
6997 | withval=$with_thin; THIN=$withval | |
6998 | else | |
6999 | THIN=none | |
7000 | fi | |
7001 | ||
7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
7003 | $as_echo "$THIN" >&6; } | |
7004 | ||
7005 | case "$THIN" in | |
7006 | none|shared) ;; | |
7007 | internal) | |
7008 | $as_echo "#define THIN_INTERNAL 1" >>confdefs.h | |
7009 | ;; | |
7010 | *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
7011 | esac | |
7012 | ||
f61cacad ZK |
7013 | case "$THIN" in |
7014 | internal|shared) | |
7015 | ||
7016 | # Check whether --with-thin-check was given. | |
7017 | if test "${with_thin_check+set}" = set; then : | |
7018 | withval=$with_thin_check; THIN_CHECK_CMD=$withval | |
7019 | else | |
7020 | THIN_CHECK_CMD="autodetect" | |
7021 | fi | |
7022 | ||
7023 | # Empty means a config way to ignore thin checking | |
7024 | if test "$THIN_CHECK_CMD" = "autodetect"; then | |
7025 | # Extract the first word of "thin_check", so it can be a program name with args. | |
7026 | set dummy thin_check; ac_word=$2 | |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7028 | $as_echo_n "checking for $ac_word... " >&6; } | |
7029 | if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then : | |
7030 | $as_echo_n "(cached) " >&6 | |
7031 | else | |
7032 | case $THIN_CHECK_CMD in | |
7033 | [\\/]* | ?:[\\/]*) | |
7034 | ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path. | |
7035 | ;; | |
7036 | *) | |
7037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7038 | for as_dir in $PATH | |
7039 | do | |
7040 | IFS=$as_save_IFS | |
7041 | test -z "$as_dir" && as_dir=. | |
7042 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7044 | ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext" | |
7045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7046 | break 2 | |
7047 | fi | |
7048 | done | |
7049 | done | |
7050 | IFS=$as_save_IFS | |
7051 | ||
7052 | ;; | |
7053 | esac | |
7054 | fi | |
7055 | THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD | |
7056 | if test -n "$THIN_CHECK_CMD"; then | |
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5 | |
7058 | $as_echo "$THIN_CHECK_CMD" >&6; } | |
7059 | else | |
7060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7061 | $as_echo "no" >&6; } | |
7062 | fi | |
7063 | ||
7064 | ||
7065 | test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5 | |
7066 | fi | |
909887be ZK |
7067 | ;; |
7068 | esac | |
f61cacad ZK |
7069 | |
7070 | ||
7071 | cat >>confdefs.h <<_ACEOF | |
7072 | #define THIN_CHECK_CMD "$THIN_CHECK_CMD" | |
7073 | _ACEOF | |
7074 | ||
f61cacad ZK |
7075 | |
7076 | ||
f11781c5 AK |
7077 | ################################################################################ |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
7079 | $as_echo_n "checking whether to enable readline... " >&6; } | |
7080 | # Check whether --enable-readline was given. | |
7081 | if test "${enable_readline+set}" = set; then : | |
7082 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 7083 | else |
f11781c5 | 7084 | READLINE=maybe |
fd4728e1 ZK |
7085 | fi |
7086 | ||
f11781c5 AK |
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
7088 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 7089 | |
f11781c5 AK |
7090 | ################################################################################ |
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
7092 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
7093 | # Check whether --enable-realtime was given. | |
7094 | if test "${enable_realtime+set}" = set; then : | |
7095 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 7096 | fi |
d0191583 | 7097 | |
f11781c5 AK |
7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
7099 | $as_echo "$REALTIME" >&6; } | |
7100 | ||
54b362f9 | 7101 | ################################################################################ |
f11781c5 AK |
7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
7103 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
7104 | # Check whether --enable-ocf was given. | |
7105 | if test "${enable_ocf+set}" = set; then : | |
7106 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 7107 | else |
f11781c5 | 7108 | OCF=no |
54b362f9 AK |
7109 | fi |
7110 | ||
f11781c5 AK |
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
7112 | $as_echo "$OCF" >&6; } | |
54b362f9 | 7113 | |
606d0858 AK |
7114 | # Check whether --with-ocfdir was given. |
7115 | if test "${with_ocfdir+set}" = set; then : | |
7116 | withval=$with_ocfdir; OCFDIR=$withval | |
7117 | else | |
7118 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
7119 | fi | |
7120 | ||
7121 | ||
f11781c5 AK |
7122 | ################################################################################ |
7123 | pkg_config_init() { | |
7124 | ||
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7131 | if test -n "$ac_tool_prefix"; then | |
7132 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7133 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7135 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7136 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7137 | $as_echo_n "(cached) " >&6 |
7138 | else | |
f11781c5 | 7139 | case $PKG_CONFIG in |
54b362f9 | 7140 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7141 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7142 | ;; |
7143 | *) | |
7144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7145 | for as_dir in $PATH | |
7146 | do | |
7147 | IFS=$as_save_IFS | |
7148 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7149 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7151 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7153 | break 2 |
7154 | fi | |
7155 | done | |
f11781c5 | 7156 | done |
54b362f9 AK |
7157 | IFS=$as_save_IFS |
7158 | ||
7159 | ;; | |
7160 | esac | |
7161 | fi | |
f11781c5 AK |
7162 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7163 | if test -n "$PKG_CONFIG"; then | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7165 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7166 | else |
f11781c5 | 7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7168 | $as_echo "no" >&6; } |
7169 | fi | |
7170 | ||
7171 | ||
f11781c5 AK |
7172 | fi |
7173 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7174 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7175 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7176 | set dummy pkg-config; ac_word=$2 | |
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7178 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7179 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7180 | $as_echo_n "(cached) " >&6 |
7181 | else | |
f11781c5 | 7182 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7183 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7184 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7185 | ;; |
7186 | *) | |
7187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7188 | for as_dir in $PATH | |
7189 | do | |
7190 | IFS=$as_save_IFS | |
7191 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7192 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7194 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7196 | break 2 |
7197 | fi | |
7198 | done | |
f11781c5 | 7199 | done |
54b362f9 AK |
7200 | IFS=$as_save_IFS |
7201 | ||
7202 | ;; | |
7203 | esac | |
7204 | fi | |
f11781c5 AK |
7205 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7206 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7208 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7209 | else |
f11781c5 | 7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7211 | $as_echo "no" >&6; } |
7212 | fi | |
7213 | ||
f11781c5 AK |
7214 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7215 | PKG_CONFIG="" | |
7216 | else | |
7217 | case $cross_compiling:$ac_tool_warned in | |
7218 | yes:) | |
7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7221 | ac_tool_warned=yes ;; | |
7222 | esac | |
7223 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7224 | fi | |
d1e8046f | 7225 | else |
f11781c5 | 7226 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7227 | fi |
7228 | ||
f11781c5 AK |
7229 | fi |
7230 | if test -n "$PKG_CONFIG"; then | |
7231 | _pkg_min_version=0.9.0 | |
7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7233 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7234 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7236 | $as_echo "yes" >&6; } | |
7237 | else | |
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7239 | $as_echo "no" >&6; } | |
7240 | PKG_CONFIG="" | |
7241 | fi | |
7242 | fi | |
d1e8046f | 7243 | |
f11781c5 AK |
7244 | pkg_failed=no |
7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7246 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7247 | |
f11781c5 AK |
7248 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7249 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7250 | elif test -n "$PKG_CONFIG"; then | |
7251 | if test -n "$PKG_CONFIG" && \ | |
7252 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7253 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7254 | ac_status=$? | |
7255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7256 | test $ac_status = 0; }; then | |
7257 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7258 | else |
f11781c5 AK |
7259 | pkg_failed=yes |
7260 | fi | |
7261 | else | |
7262 | pkg_failed=untried | |
7263 | fi | |
7264 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7265 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7266 | elif test -n "$PKG_CONFIG"; then | |
7267 | if test -n "$PKG_CONFIG" && \ | |
7268 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7269 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7270 | ac_status=$? |
f11781c5 AK |
7271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7272 | test $ac_status = 0; }; then | |
7273 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7274 | else |
f11781c5 AK |
7275 | pkg_failed=yes |
7276 | fi | |
7277 | else | |
7278 | pkg_failed=untried | |
d1e8046f AK |
7279 | fi |
7280 | ||
d1e8046f | 7281 | |
f11781c5 AK |
7282 | |
7283 | if test $pkg_failed = yes; then | |
7284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7285 | $as_echo "no" >&6; } | |
7286 | ||
7287 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7288 | _pkg_short_errors_supported=yes | |
7289 | else | |
7290 | _pkg_short_errors_supported=no | |
7291 | fi | |
7292 | if test $_pkg_short_errors_supported = yes; then | |
7293 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7294 | else | |
7295 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7296 | fi | |
7297 | # Put the nasty error message in config.log where it belongs | |
7298 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7299 | ||
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7301 | $as_echo "pkg-config initialized" >&6; } | |
7302 | elif test $pkg_failed = untried; then | |
7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7304 | $as_echo "no" >&6; } | |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7306 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7307 | else |
f11781c5 AK |
7308 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7309 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7311 | $as_echo "yes" >&6; } | |
d1e8046f | 7312 | |
d1e8046f | 7313 | fi |
f11781c5 AK |
7314 | PKGCONFIG_INIT=1 |
7315 | } | |
d1e8046f | 7316 | |
f11781c5 AK |
7317 | ################################################################################ |
7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7319 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7320 | |
f11781c5 AK |
7321 | # Check whether --with-clvmd was given. |
7322 | if test "${with_clvmd+set}" = set; then : | |
7323 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7324 | else |
f11781c5 | 7325 | CLVMD=none |
d1e8046f | 7326 | fi |
d1e8046f | 7327 | |
f11781c5 AK |
7328 | if test x$CLVMD = xyes; then |
7329 | CLVMD=all | |
d1e8046f | 7330 | fi |
f11781c5 AK |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7332 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7333 | |
f11781c5 AK |
7334 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7335 | CLUSTER=internal | |
d1e8046f AK |
7336 | fi |
7337 | ||
f11781c5 AK |
7338 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7339 | pkg_config_init | |
7340 | fi | |
d1e8046f | 7341 | |
f11781c5 AK |
7342 | CLVMD_CMANAGERS="" |
7343 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7344 | |
f11781c5 | 7345 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7346 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7347 | fi |
f11781c5 AK |
7348 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7349 | BUILDCMAN=yes | |
7350 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7351 | CLVMD_NEEDS_QDISKD=yes | |
7352 | fi | |
7353 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7354 | BUILDCOROSYNC=yes | |
7355 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7356 | fi | |
7357 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7358 | BUILDOPENAIS=yes | |
7359 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7360 | fi | |
7361 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7362 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7363 | fi |
7364 | ||
f11781c5 AK |
7365 | soft_bailout() { |
7366 | NOTFOUND=1 | |
7367 | } | |
ad6254c5 | 7368 | |
f11781c5 AK |
7369 | hard_bailout() { |
7370 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7371 | } | |
ad6254c5 | 7372 | |
f11781c5 AK |
7373 | if test x$CLVMD = xall; then |
7374 | bailout=soft_bailout | |
f11781c5 AK |
7375 | BUILDCMAN=yes |
7376 | BUILDCOROSYNC=yes | |
7377 | BUILDOPENAIS=yes | |
a5f46f6a | 7378 | else |
f11781c5 | 7379 | bailout=hard_bailout |
a5f46f6a AK |
7380 | fi |
7381 | ||
f11781c5 AK |
7382 | check_lib_no_libs() { |
7383 | lib_no_libs_arg1=$1 | |
7384 | shift | |
7385 | lib_no_libs_arg2=$1 | |
7386 | shift | |
7387 | lib_no_libs_args=$@ | |
7388 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7390 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7391 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7392 | $as_echo_n "(cached) " >&6 |
7393 | else | |
7394 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7395 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7397 | /* end confdefs.h. */ |
7398 | ||
7399 | /* Override any GCC internal prototype to avoid an error. | |
7400 | Use char because int might match the return type of a GCC | |
7401 | builtin and then its argument prototype would still apply. */ | |
7402 | #ifdef __cplusplus | |
7403 | extern "C" | |
7404 | #endif | |
f11781c5 | 7405 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7406 | int |
7407 | main () | |
7408 | { | |
f11781c5 | 7409 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7410 | ; |
7411 | return 0; | |
7412 | } | |
7413 | _ACEOF | |
f11781c5 AK |
7414 | if ac_fn_c_try_link "$LINENO"; then : |
7415 | eval "$as_ac_Lib=yes" | |
90c80887 | 7416 | else |
f11781c5 | 7417 | eval "$as_ac_Lib=no" |
90c80887 | 7418 | fi |
f11781c5 AK |
7419 | rm -f core conftest.err conftest.$ac_objext \ |
7420 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7421 | LIBS=$ac_check_lib_save_LIBS |
7422 | fi | |
f11781c5 AK |
7423 | eval ac_res=\$$as_ac_Lib |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7425 | $as_echo "$ac_res" >&6; } | |
7426 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7427 | cat >>confdefs.h <<_ACEOF | |
7428 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7429 | _ACEOF | |
7430 | ||
7431 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7432 | ||
90c80887 | 7433 | else |
f11781c5 | 7434 | $bailout |
90c80887 AK |
7435 | fi |
7436 | ||
f11781c5 AK |
7437 | LIBS=$ac_check_lib_save_LIBS |
7438 | } | |
90c80887 | 7439 | |
f11781c5 | 7440 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7441 | |
f11781c5 AK |
7442 | pkg_failed=no |
7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7444 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7445 | |
f11781c5 AK |
7446 | if test -n "$CMAN_CFLAGS"; then |
7447 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7448 | elif test -n "$PKG_CONFIG"; then | |
7449 | if test -n "$PKG_CONFIG" && \ | |
7450 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7451 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7452 | ac_status=$? | |
7453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7454 | test $ac_status = 0; }; then | |
7455 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7456 | else | |
7457 | pkg_failed=yes | |
ad6254c5 | 7458 | fi |
f11781c5 AK |
7459 | else |
7460 | pkg_failed=untried | |
ad6254c5 | 7461 | fi |
f11781c5 AK |
7462 | if test -n "$CMAN_LIBS"; then |
7463 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7464 | elif test -n "$PKG_CONFIG"; then | |
7465 | if test -n "$PKG_CONFIG" && \ | |
7466 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7467 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7468 | ac_status=$? |
f11781c5 AK |
7469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7470 | test $ac_status = 0; }; then | |
7471 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7472 | else |
f11781c5 AK |
7473 | pkg_failed=yes |
7474 | fi | |
7475 | else | |
7476 | pkg_failed=untried | |
93bd259b AK |
7477 | fi |
7478 | ||
f11781c5 AK |
7479 | |
7480 | ||
7481 | if test $pkg_failed = yes; then | |
7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7483 | $as_echo "no" >&6; } | |
7484 | ||
7485 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7486 | _pkg_short_errors_supported=yes | |
7487 | else | |
7488 | _pkg_short_errors_supported=no | |
93bd259b | 7489 | fi |
f11781c5 AK |
7490 | if test $_pkg_short_errors_supported = yes; then |
7491 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7492 | else | |
7493 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7494 | fi | |
7495 | # Put the nasty error message in config.log where it belongs | |
7496 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7497 | |
f11781c5 AK |
7498 | NOTFOUND=0 |
7499 | for ac_header in libcman.h | |
7500 | do : | |
7501 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7502 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7503 | cat >>confdefs.h <<_ACEOF | |
7504 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7505 | _ACEOF |
7506 | ||
f11781c5 AK |
7507 | else |
7508 | $bailout | |
93bd259b AK |
7509 | fi |
7510 | ||
f11781c5 | 7511 | done |
93bd259b | 7512 | |
f11781c5 AK |
7513 | check_lib_no_libs cman cman_init |
7514 | if test $NOTFOUND = 0; then | |
7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7516 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7517 | CMAN_LIBS="-lcman" | |
7518 | HAVE_CMAN=yes | |
7519 | fi | |
7520 | elif test $pkg_failed = untried; then | |
7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7522 | $as_echo "no" >&6; } | |
7523 | NOTFOUND=0 | |
7524 | for ac_header in libcman.h | |
7525 | do : | |
7526 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7527 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7528 | cat >>confdefs.h <<_ACEOF | |
7529 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7530 | _ACEOF |
93bd259b | 7531 | |
93bd259b | 7532 | else |
f11781c5 | 7533 | $bailout |
93bd259b AK |
7534 | fi |
7535 | ||
f11781c5 AK |
7536 | done |
7537 | ||
7538 | check_lib_no_libs cman cman_init | |
7539 | if test $NOTFOUND = 0; then | |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7541 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7542 | CMAN_LIBS="-lcman" | |
7543 | HAVE_CMAN=yes | |
7544 | fi | |
7545 | else | |
7546 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7547 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7549 | $as_echo "yes" >&6; } | |
7550 | HAVE_CMAN=yes | |
93bd259b | 7551 | fi |
f11781c5 AK |
7552 | CHECKCONFDB=yes |
7553 | CHECKDLM=yes | |
93bd259b AK |
7554 | fi |
7555 | ||
f11781c5 AK |
7556 | if test x$BUILDCOROSYNC = xyes || \ |
7557 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7558 | |
f11781c5 AK |
7559 | pkg_failed=no |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7561 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7562 | |
f11781c5 AK |
7563 | if test -n "$COROSYNC_CFLAGS"; then |
7564 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7565 | elif test -n "$PKG_CONFIG"; then | |
7566 | if test -n "$PKG_CONFIG" && \ | |
7567 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7568 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7569 | ac_status=$? | |
7570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7571 | test $ac_status = 0; }; then | |
7572 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7573 | else |
f11781c5 AK |
7574 | pkg_failed=yes |
7575 | fi | |
7576 | else | |
7577 | pkg_failed=untried | |
7578 | fi | |
7579 | if test -n "$COROSYNC_LIBS"; then | |
7580 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7581 | elif test -n "$PKG_CONFIG"; then | |
7582 | if test -n "$PKG_CONFIG" && \ | |
7583 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7584 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7585 | ac_status=$? |
f11781c5 AK |
7586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7587 | test $ac_status = 0; }; then | |
7588 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7589 | else |
f11781c5 | 7590 | pkg_failed=yes |
ad6254c5 | 7591 | fi |
f11781c5 AK |
7592 | else |
7593 | pkg_failed=untried | |
ad6254c5 | 7594 | fi |
ad6254c5 | 7595 | |
72b2cb61 | 7596 | |
72b2cb61 | 7597 | |
f11781c5 AK |
7598 | if test $pkg_failed = yes; then |
7599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7600 | $as_echo "no" >&6; } | |
19a2c6e0 | 7601 | |
f11781c5 AK |
7602 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7603 | _pkg_short_errors_supported=yes | |
7604 | else | |
7605 | _pkg_short_errors_supported=no | |
ad6254c5 | 7606 | fi |
f11781c5 AK |
7607 | if test $_pkg_short_errors_supported = yes; then |
7608 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7609 | else | |
7610 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7611 | fi | |
7612 | # Put the nasty error message in config.log where it belongs | |
7613 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7614 | |
f11781c5 AK |
7615 | $bailout |
7616 | elif test $pkg_failed = untried; then | |
7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7618 | $as_echo "no" >&6; } | |
7619 | $bailout | |
7620 | else | |
7621 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7622 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7624 | $as_echo "yes" >&6; } | |
7625 | HAVE_COROSYNC=yes | |
7626 | fi | |
7627 | CHECKCONFDB=yes | |
b6d7a484 | 7628 | CHECKCMAP=yes |
ad6254c5 AK |
7629 | fi |
7630 | ||
f11781c5 | 7631 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7632 | |
f11781c5 AK |
7633 | pkg_failed=no |
7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7635 | $as_echo_n "checking for QUORUM... " >&6; } | |
7636 | ||
7637 | if test -n "$QUORUM_CFLAGS"; then | |
7638 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7639 | elif test -n "$PKG_CONFIG"; then | |
7640 | if test -n "$PKG_CONFIG" && \ | |
7641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7642 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7643 | ac_status=$? |
f11781c5 AK |
7644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7645 | test $ac_status = 0; }; then | |
7646 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7647 | else |
f11781c5 | 7648 | pkg_failed=yes |
f30875db | 7649 | fi |
f11781c5 AK |
7650 | else |
7651 | pkg_failed=untried | |
f30875db | 7652 | fi |
f11781c5 AK |
7653 | if test -n "$QUORUM_LIBS"; then |
7654 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7655 | elif test -n "$PKG_CONFIG"; then | |
7656 | if test -n "$PKG_CONFIG" && \ | |
7657 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7658 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7659 | ac_status=$? | |
7660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7661 | test $ac_status = 0; }; then | |
7662 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7663 | else |
f11781c5 | 7664 | pkg_failed=yes |
f30875db | 7665 | fi |
f11781c5 AK |
7666 | else |
7667 | pkg_failed=untried | |
7668 | fi | |
7669 | ||
f30875db | 7670 | |
f11781c5 AK |
7671 | |
7672 | if test $pkg_failed = yes; then | |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7674 | $as_echo "no" >&6; } | |
7675 | ||
7676 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7677 | _pkg_short_errors_supported=yes | |
7678 | else | |
7679 | _pkg_short_errors_supported=no | |
f30875db | 7680 | fi |
f11781c5 AK |
7681 | if test $_pkg_short_errors_supported = yes; then |
7682 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7683 | else | |
7684 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7685 | fi | |
7686 | # Put the nasty error message in config.log where it belongs | |
7687 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7688 | |
f11781c5 AK |
7689 | $bailout |
7690 | elif test $pkg_failed = untried; then | |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7692 | $as_echo "no" >&6; } | |
7693 | $bailout | |
7694 | else | |
7695 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7696 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7698 | $as_echo "yes" >&6; } | |
7699 | HAVE_QUORUM=yes | |
7700 | fi | |
7701 | CHECKCPG=yes | |
7702 | CHECKDLM=yes | |
d0191583 JM |
7703 | fi |
7704 | ||
f11781c5 | 7705 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7706 | |
f11781c5 AK |
7707 | pkg_failed=no |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7709 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7710 | |
f11781c5 AK |
7711 | if test -n "$SALCK_CFLAGS"; then |
7712 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7713 | elif test -n "$PKG_CONFIG"; then | |
7714 | if test -n "$PKG_CONFIG" && \ | |
7715 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7716 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7717 | ac_status=$? | |
7718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7719 | test $ac_status = 0; }; then | |
7720 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7721 | else | |
7722 | pkg_failed=yes | |
7723 | fi | |
7724 | else | |
7725 | pkg_failed=untried | |
7726 | fi | |
7727 | if test -n "$SALCK_LIBS"; then | |
7728 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7729 | elif test -n "$PKG_CONFIG"; then | |
7730 | if test -n "$PKG_CONFIG" && \ | |
7731 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7732 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7733 | ac_status=$? |
f11781c5 AK |
7734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7735 | test $ac_status = 0; }; then | |
7736 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7737 | else |
f11781c5 | 7738 | pkg_failed=yes |
8a2fc586 | 7739 | fi |
f11781c5 AK |
7740 | else |
7741 | pkg_failed=untried | |
8a2fc586 | 7742 | fi |
d0191583 | 7743 | |
d0191583 | 7744 | |
f8f6ec92 | 7745 | |
f11781c5 AK |
7746 | if test $pkg_failed = yes; then |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7748 | $as_echo "no" >&6; } | |
8a2fc586 | 7749 | |
f11781c5 AK |
7750 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7751 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7752 | else |
f11781c5 AK |
7753 | _pkg_short_errors_supported=no |
7754 | fi | |
7755 | if test $_pkg_short_errors_supported = yes; then | |
7756 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7757 | else | |
7758 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7759 | fi | |
7760 | # Put the nasty error message in config.log where it belongs | |
7761 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7762 | |
f11781c5 AK |
7763 | $bailout |
7764 | elif test $pkg_failed = untried; then | |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7766 | $as_echo "no" >&6; } | |
7767 | $bailout | |
ad6254c5 | 7768 | else |
f11781c5 AK |
7769 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7770 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7772 | $as_echo "yes" >&6; } | |
7773 | HAVE_SALCK=yes | |
ad6254c5 | 7774 | fi |
f11781c5 | 7775 | CHECKCPG=yes |
ad6254c5 | 7776 | fi |
ad6254c5 | 7777 | |
72b2cb61 | 7778 | |
f8f6ec92 | 7779 | |
f11781c5 | 7780 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7781 | |
f11781c5 AK |
7782 | pkg_failed=no |
7783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7784 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7785 | |
f11781c5 AK |
7786 | if test -n "$CONFDB_CFLAGS"; then |
7787 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7788 | elif test -n "$PKG_CONFIG"; then | |
7789 | if test -n "$PKG_CONFIG" && \ | |
7790 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7791 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7792 | ac_status=$? |
f11781c5 AK |
7793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7794 | test $ac_status = 0; }; then | |
7795 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7796 | else |
f11781c5 AK |
7797 | pkg_failed=yes |
7798 | fi | |
7799 | else | |
7800 | pkg_failed=untried | |
7801 | fi | |
7802 | if test -n "$CONFDB_LIBS"; then | |
7803 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7804 | elif test -n "$PKG_CONFIG"; then | |
7805 | if test -n "$PKG_CONFIG" && \ | |
7806 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7807 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7808 | ac_status=$? | |
7809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7810 | test $ac_status = 0; }; then | |
7811 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7812 | else | |
7813 | pkg_failed=yes | |
7814 | fi | |
7815 | else | |
7816 | pkg_failed=untried | |
f8f6ec92 ZK |
7817 | fi |
7818 | ||
f8f6ec92 | 7819 | |
66e941e8 | 7820 | |
f11781c5 AK |
7821 | if test $pkg_failed = yes; then |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7823 | $as_echo "no" >&6; } | |
7824 | ||
7825 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7826 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7827 | else |
f11781c5 | 7828 | _pkg_short_errors_supported=no |
66e941e8 | 7829 | fi |
f11781c5 AK |
7830 | if test $_pkg_short_errors_supported = yes; then |
7831 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7832 | else | |
7833 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7834 | fi | |
7835 | # Put the nasty error message in config.log where it belongs | |
7836 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7837 | |
f11781c5 AK |
7838 | HAVE_CONFDB=no |
7839 | elif test $pkg_failed = untried; then | |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7841 | $as_echo "no" >&6; } | |
7842 | HAVE_CONFDB=no | |
7843 | else | |
7844 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7845 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7847 | $as_echo "yes" >&6; } | |
7848 | HAVE_CONFDB=yes | |
66e941e8 | 7849 | fi |
f11781c5 AK |
7850 | |
7851 | for ac_header in corosync/confdb.h | |
7852 | do : | |
7853 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7854 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7855 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7856 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7857 | _ACEOF |
f11781c5 | 7858 | HAVE_CONFDB_H=yes |
66e941e8 | 7859 | else |
f11781c5 | 7860 | HAVE_CONFDB_H=no |
66e941e8 | 7861 | fi |
dd1f2c09 MB |
7862 | |
7863 | done | |
7864 | ||
7865 | ||
f11781c5 AK |
7866 | if test x$HAVE_CONFDB != xyes && \ |
7867 | test x$HAVE_CONFDB_H = xyes; then | |
7868 | check_lib_no_libs confdb confdb_initialize | |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7870 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7871 | CONFDB_LIBS="-lconfdb" | |
7872 | HAVE_CONFDB=yes | |
7873 | fi | |
b6d7a484 AK |
7874 | fi |
7875 | ||
7876 | ||
7877 | if test x$CHECKCMAP = xyes; then | |
7878 | ||
7879 | pkg_failed=no | |
7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5 | |
7881 | $as_echo_n "checking for CMAP... " >&6; } | |
7882 | ||
7883 | if test -n "$CMAP_CFLAGS"; then | |
7884 | pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS" | |
7885 | elif test -n "$PKG_CONFIG"; then | |
7886 | if test -n "$PKG_CONFIG" && \ | |
7887 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7888 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7889 | ac_status=$? | |
7890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7891 | test $ac_status = 0; }; then | |
7892 | pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null` | |
7893 | else | |
7894 | pkg_failed=yes | |
7895 | fi | |
7896 | else | |
7897 | pkg_failed=untried | |
7898 | fi | |
7899 | if test -n "$CMAP_LIBS"; then | |
7900 | pkg_cv_CMAP_LIBS="$CMAP_LIBS" | |
7901 | elif test -n "$PKG_CONFIG"; then | |
7902 | if test -n "$PKG_CONFIG" && \ | |
7903 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7904 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7905 | ac_status=$? | |
7906 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7907 | test $ac_status = 0; }; then | |
7908 | pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null` | |
7909 | else | |
7910 | pkg_failed=yes | |
7911 | fi | |
7912 | else | |
7913 | pkg_failed=untried | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | ||
7918 | if test $pkg_failed = yes; then | |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7920 | $as_echo "no" >&6; } | |
f11781c5 | 7921 | |
b6d7a484 AK |
7922 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7923 | _pkg_short_errors_supported=yes | |
7924 | else | |
7925 | _pkg_short_errors_supported=no | |
7926 | fi | |
7927 | if test $_pkg_short_errors_supported = yes; then | |
7928 | CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1` | |
7929 | else | |
7930 | CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1` | |
7931 | fi | |
7932 | # Put the nasty error message in config.log where it belongs | |
7933 | echo "$CMAP_PKG_ERRORS" >&5 | |
7934 | ||
7935 | HAVE_CMAP=no | |
7936 | elif test $pkg_failed = untried; then | |
7937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7938 | $as_echo "no" >&6; } | |
7939 | HAVE_CMAP=no | |
7940 | else | |
7941 | CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS | |
7942 | CMAP_LIBS=$pkg_cv_CMAP_LIBS | |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7944 | $as_echo "yes" >&6; } | |
7945 | HAVE_CMAP=yes | |
7946 | fi | |
7947 | ||
7948 | for ac_header in corosync/cmap.h | |
7949 | do : | |
7950 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default" | |
7951 | if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then : | |
7952 | cat >>confdefs.h <<_ACEOF | |
7953 | #define HAVE_COROSYNC_CMAP_H 1 | |
7954 | _ACEOF | |
7955 | HAVE_CMAP_H=yes | |
7956 | else | |
7957 | HAVE_CMAP_H=no | |
7958 | fi | |
7959 | ||
7960 | done | |
7961 | ||
7962 | ||
7963 | if test x$HAVE_CMAP != xyes && \ | |
7964 | test x$HAVE_CMAP_H = xyes; then | |
7965 | check_lib_no_libs cmap cmap_initialize | |
7966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5 | |
7967 | $as_echo "no pkg for cmap, using -lcmap" >&6; } | |
7968 | CMAP_LIBS="-lcmap" | |
7969 | HAVE_CMAP=yes | |
7970 | fi | |
7971 | fi | |
7972 | ||
7973 | if test x$BUILDCOROSYNC = xyes; then | |
7974 | if test x$HAVE_CMAP != xyes && \ | |
7975 | test x$HAVE_CONFDB != xyes && \ | |
f11781c5 | 7976 | test x$CLVMD != xall; then |
b6d7a484 | 7977 | as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5 |
f11781c5 | 7978 | fi |
dd1f2c09 | 7979 | fi |
f11781c5 AK |
7980 | |
7981 | if test x$CHECKCPG = xyes; then | |
7982 | ||
7983 | pkg_failed=no | |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7985 | $as_echo_n "checking for CPG... " >&6; } | |
7986 | ||
7987 | if test -n "$CPG_CFLAGS"; then | |
7988 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7989 | elif test -n "$PKG_CONFIG"; then | |
7990 | if test -n "$PKG_CONFIG" && \ | |
7991 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7992 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7993 | ac_status=$? | |
7994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7995 | test $ac_status = 0; }; then | |
7996 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7997 | else |
f11781c5 AK |
7998 | pkg_failed=yes |
7999 | fi | |
8000 | else | |
8001 | pkg_failed=untried | |
8002 | fi | |
8003 | if test -n "$CPG_LIBS"; then | |
8004 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8005 | elif test -n "$PKG_CONFIG"; then | |
8006 | if test -n "$PKG_CONFIG" && \ | |
8007 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8008 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 8009 | ac_status=$? |
f11781c5 AK |
8010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8011 | test $ac_status = 0; }; then | |
8012 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 8013 | else |
f11781c5 AK |
8014 | pkg_failed=yes |
8015 | fi | |
8016 | else | |
8017 | pkg_failed=untried | |
8018 | fi | |
8019 | ||
8020 | ||
8021 | ||
8022 | if test $pkg_failed = yes; then | |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8024 | $as_echo "no" >&6; } | |
8025 | ||
8026 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8027 | _pkg_short_errors_supported=yes | |
8028 | else | |
8029 | _pkg_short_errors_supported=no | |
8030 | fi | |
8031 | if test $_pkg_short_errors_supported = yes; then | |
8032 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8033 | else | |
8034 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8035 | fi | |
8036 | # Put the nasty error message in config.log where it belongs | |
8037 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 8038 | |
f11781c5 AK |
8039 | $bailout |
8040 | elif test $pkg_failed = untried; then | |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8042 | $as_echo "no" >&6; } | |
8043 | $bailout | |
8044 | else | |
8045 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
8046 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8048 | $as_echo "yes" >&6; } | |
8049 | HAVE_CPG=yes | |
8050 | fi | |
dd1f2c09 MB |
8051 | fi |
8052 | ||
f11781c5 | 8053 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 8054 | |
f11781c5 AK |
8055 | pkg_failed=no |
8056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
8057 | $as_echo_n "checking for DLM... " >&6; } | |
8058 | ||
8059 | if test -n "$DLM_CFLAGS"; then | |
8060 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
8061 | elif test -n "$PKG_CONFIG"; then | |
8062 | if test -n "$PKG_CONFIG" && \ | |
8063 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8064 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8065 | ac_status=$? |
f11781c5 AK |
8066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8067 | test $ac_status = 0; }; then | |
8068 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8069 | else |
f11781c5 AK |
8070 | pkg_failed=yes |
8071 | fi | |
8072 | else | |
8073 | pkg_failed=untried | |
8074 | fi | |
8075 | if test -n "$DLM_LIBS"; then | |
8076 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8077 | elif test -n "$PKG_CONFIG"; then | |
8078 | if test -n "$PKG_CONFIG" && \ | |
8079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8080 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8081 | ac_status=$? | |
8082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8083 | test $ac_status = 0; }; then | |
8084 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8085 | else | |
8086 | pkg_failed=yes | |
8087 | fi | |
8088 | else | |
8089 | pkg_failed=untried | |
dd1f2c09 MB |
8090 | fi |
8091 | ||
dd1f2c09 | 8092 | |
dd1f2c09 | 8093 | |
f11781c5 AK |
8094 | if test $pkg_failed = yes; then |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8096 | $as_echo "no" >&6; } | |
8097 | ||
8098 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8099 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8100 | else |
f11781c5 | 8101 | _pkg_short_errors_supported=no |
dd1f2c09 | 8102 | fi |
f11781c5 AK |
8103 | if test $_pkg_short_errors_supported = yes; then |
8104 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8105 | else | |
8106 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8107 | fi | |
8108 | # Put the nasty error message in config.log where it belongs | |
8109 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8110 | |
f11781c5 AK |
8111 | NOTFOUND=0 |
8112 | for ac_header in libdlm.h | |
8113 | do : | |
8114 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8115 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8116 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8117 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8118 | _ACEOF |
8119 | ||
f11781c5 AK |
8120 | else |
8121 | $bailout | |
dd1f2c09 | 8122 | fi |
f8f6ec92 ZK |
8123 | |
8124 | done | |
8125 | ||
f11781c5 AK |
8126 | check_lib_no_libs dlm dlm_lock -lpthread |
8127 | if test $NOTFOUND = 0; then | |
8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8129 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8130 | DLM_LIBS="-ldlm -lpthread" | |
8131 | HAVE_DLM=yes | |
8132 | fi | |
8133 | elif test $pkg_failed = untried; then | |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8135 | $as_echo "no" >&6; } | |
8136 | NOTFOUND=0 | |
8137 | for ac_header in libdlm.h | |
8138 | do : | |
8139 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8140 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8141 | cat >>confdefs.h <<_ACEOF | |
8142 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8143 | _ACEOF |
8144 | ||
f8f6ec92 | 8145 | else |
f11781c5 | 8146 | $bailout |
ad6254c5 AK |
8147 | fi |
8148 | ||
f11781c5 | 8149 | done |
8b1a3214 | 8150 | |
f11781c5 AK |
8151 | check_lib_no_libs dlm dlm_lock -lpthread |
8152 | if test $NOTFOUND = 0; then | |
8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8154 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8155 | DLM_LIBS="-ldlm -lpthread" | |
8156 | HAVE_DLM=yes | |
8157 | fi | |
8b1a3214 | 8158 | else |
f11781c5 AK |
8159 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8160 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8162 | $as_echo "yes" >&6; } | |
8163 | HAVE_DLM=yes | |
8b1a3214 | 8164 | fi |
8b1a3214 AK |
8165 | fi |
8166 | ||
f11781c5 AK |
8167 | if test x$CLVMD = xall; then |
8168 | CLVMD=none | |
8169 | CLVMD_CMANAGERS="" | |
8170 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
8171 | if test x$HAVE_CMAN = xyes && \ |
8172 | test x$HAVE_DLM = xyes; then | |
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8174 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8175 | CLVMD="$CLVMD,cman" | |
8176 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8177 | CLVMD_NEEDS_QDISKD=yes | |
8178 | fi | |
8179 | if test x$HAVE_COROSYNC = xyes && \ | |
8180 | test x$HAVE_QUORUM = xyes && \ | |
8181 | test x$HAVE_CPG = xyes && \ | |
b6d7a484 AK |
8182 | test x$HAVE_DLM = xyes; then |
8183 | if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then | |
f11781c5 AK |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 |
8185 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8186 | CLVMD="$CLVMD,corosync" | |
8187 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
b6d7a484 | 8188 | fi |
f11781c5 AK |
8189 | fi |
8190 | if test x$HAVE_COROSYNC = xyes && \ | |
8191 | test x$HAVE_CPG = xyes && \ | |
8192 | test x$HAVE_SALCK = xyes; then | |
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8194 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8195 | CLVMD="$CLVMD,openais" | |
8196 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8197 | fi | |
8198 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8199 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8200 | fi | |
8201 | if test x$CLVMD = xnone; then | |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8203 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8204 | fi |
8205 | fi | |
8206 | ||
75fad6ea MB |
8207 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
8208 | if test x$HAVE_CMAP = xyes; then | |
8209 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm" | |
8210 | fi | |
8211 | fi | |
8212 | ||
ad6254c5 | 8213 | ################################################################################ |
f11781c5 | 8214 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8215 | |
f11781c5 AK |
8216 | # Check whether --with-clvmd-pidfile was given. |
8217 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8218 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8219 | else |
f11781c5 | 8220 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8221 | fi |
7a197a62 | 8222 | |
ad6254c5 | 8223 | |
f11781c5 AK |
8224 | cat >>confdefs.h <<_ACEOF |
8225 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8226 | _ACEOF |
ad6254c5 | 8227 | |
ad6254c5 | 8228 | fi |
7a197a62 | 8229 | |
f11781c5 AK |
8230 | ################################################################################ |
8231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8232 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8233 | # Check whether --enable-cmirrord was given. | |
8234 | if test "${enable_cmirrord+set}" = set; then : | |
8235 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8236 | else | |
8237 | CMIRRORD=no | |
8238 | fi | |
8239 | ||
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8241 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8242 | |
f11781c5 | 8243 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8244 | |
f11781c5 AK |
8245 | ################################################################################ |
8246 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8247 | ||
8248 | # Check whether --with-cmirrord-pidfile was given. | |
8249 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8250 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8251 | else |
f11781c5 | 8252 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8253 | fi |
ad6254c5 | 8254 | |
72b2cb61 | 8255 | |
f11781c5 AK |
8256 | cat >>confdefs.h <<_ACEOF |
8257 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8258 | _ACEOF |
8259 | ||
ad6254c5 AK |
8260 | fi |
8261 | ||
f11781c5 AK |
8262 | ################################################################################ |
8263 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8264 | if test x$PKGCONFIG_INIT != x1; then | |
8265 | pkg_config_init | |
8266 | fi | |
ad6254c5 | 8267 | |
62e38da1 JEB |
8268 | |
8269 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h | |
8270 | ||
8271 | ||
f11781c5 AK |
8272 | pkg_failed=no |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8274 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8275 | |
f11781c5 AK |
8276 | if test -n "$SACKPT_CFLAGS"; then |
8277 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8278 | elif test -n "$PKG_CONFIG"; then | |
8279 | if test -n "$PKG_CONFIG" && \ | |
8280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8281 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8282 | ac_status=$? | |
8283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8284 | test $ac_status = 0; }; then | |
8285 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8286 | else |
f11781c5 AK |
8287 | pkg_failed=yes |
8288 | fi | |
8289 | else | |
8290 | pkg_failed=untried | |
8291 | fi | |
8292 | if test -n "$SACKPT_LIBS"; then | |
8293 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8294 | elif test -n "$PKG_CONFIG"; then | |
8295 | if test -n "$PKG_CONFIG" && \ | |
8296 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8297 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8298 | ac_status=$? |
f11781c5 AK |
8299 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8300 | test $ac_status = 0; }; then | |
8301 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8302 | else |
f11781c5 AK |
8303 | pkg_failed=yes |
8304 | fi | |
8305 | else | |
8306 | pkg_failed=untried | |
8307 | fi | |
539f4a77 ZK |
8308 | |
8309 | ||
539f4a77 | 8310 | |
f11781c5 AK |
8311 | if test $pkg_failed = yes; then |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8313 | $as_echo "no" >&6; } | |
8314 | ||
8315 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8316 | _pkg_short_errors_supported=yes | |
539f4a77 | 8317 | else |
f11781c5 | 8318 | _pkg_short_errors_supported=no |
539f4a77 | 8319 | fi |
f11781c5 AK |
8320 | if test $_pkg_short_errors_supported = yes; then |
8321 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8322 | else | |
8323 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8324 | fi | |
8325 | # Put the nasty error message in config.log where it belongs | |
8326 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8327 | ||
62e38da1 JEB |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8329 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8330 | |
62e38da1 | 8331 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 AK |
8332 | |
8333 | elif test $pkg_failed = untried; then | |
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8335 | $as_echo "no" >&6; } | |
62e38da1 JEB |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8337 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8338 | |
62e38da1 | 8339 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 | 8340 | |
539f4a77 | 8341 | else |
f11781c5 AK |
8342 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8343 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8345 | $as_echo "yes" >&6; } | |
62e38da1 | 8346 | HAVE_SACKPT=yes |
539f4a77 | 8347 | fi |
62e38da1 | 8348 | |
f11781c5 | 8349 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8350 | |
f11781c5 AK |
8351 | pkg_failed=no |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8353 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8354 | |
f11781c5 AK |
8355 | if test -n "$CPG_CFLAGS"; then |
8356 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8357 | elif test -n "$PKG_CONFIG"; then | |
8358 | if test -n "$PKG_CONFIG" && \ | |
8359 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8360 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8361 | ac_status=$? |
f11781c5 AK |
8362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8363 | test $ac_status = 0; }; then | |
8364 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8365 | else |
f11781c5 AK |
8366 | pkg_failed=yes |
8367 | fi | |
8368 | else | |
8369 | pkg_failed=untried | |
8370 | fi | |
8371 | if test -n "$CPG_LIBS"; then | |
8372 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8373 | elif test -n "$PKG_CONFIG"; then | |
8374 | if test -n "$PKG_CONFIG" && \ | |
8375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8376 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8377 | ac_status=$? | |
8378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8379 | test $ac_status = 0; }; then | |
8380 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8381 | else | |
8382 | pkg_failed=yes | |
8383 | fi | |
8384 | else | |
8385 | pkg_failed=untried | |
8386 | fi | |
8387 | ||
8388 | ||
8389 | ||
8390 | if test $pkg_failed = yes; then | |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8392 | $as_echo "no" >&6; } | |
ad6254c5 | 8393 | |
f11781c5 AK |
8394 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8395 | _pkg_short_errors_supported=yes | |
8396 | else | |
8397 | _pkg_short_errors_supported=no | |
ad6254c5 | 8398 | fi |
f11781c5 AK |
8399 | if test $_pkg_short_errors_supported = yes; then |
8400 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8401 | else | |
8402 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8403 | fi | |
8404 | # Put the nasty error message in config.log where it belongs | |
8405 | echo "$CPG_PKG_ERRORS" >&5 | |
8406 | ||
8407 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8408 | ||
8409 | $CPG_PKG_ERRORS | |
8410 | ||
8411 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8412 | installed software in a non-standard prefix. | |
8413 | ||
8414 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8415 | and CPG_LIBS to avoid the need to call pkg-config. | |
8416 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8417 | |
f11781c5 AK |
8418 | elif test $pkg_failed = untried; then |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8420 | $as_echo "no" >&6; } | |
8421 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8422 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8423 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8424 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8425 | path to pkg-config. | |
539f4a77 | 8426 | |
f11781c5 AK |
8427 | Alternatively, you may set the environment variables CPG_CFLAGS |
8428 | and CPG_LIBS to avoid the need to call pkg-config. | |
8429 | See the pkg-config man page for more details. | |
539f4a77 | 8430 | |
f11781c5 AK |
8431 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8432 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8433 | |
539f4a77 | 8434 | else |
f11781c5 AK |
8435 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8436 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8438 | $as_echo "yes" >&6; } | |
bc1024f8 | 8439 | |
f11781c5 AK |
8440 | fi |
8441 | fi | |
8442 | fi | |
8443 | ||
8444 | ################################################################################ | |
8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8446 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8447 | # Check whether --enable-debug was given. | |
8448 | if test "${enable_debug+set}" = set; then : | |
8449 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8450 | else |
f11781c5 AK |
8451 | DEBUG=no |
8452 | fi | |
8453 | ||
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8455 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8456 | |
f11781c5 AK |
8457 | if test x$DEBUG = xyes; then |
8458 | COPTIMISE_FLAG= | |
8459 | else | |
8460 | CSCOPE_CMD= | |
06e459df JM |
8461 | fi |
8462 | ||
f11781c5 AK |
8463 | ################################################################################ |
8464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8465 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8466 | ||
8467 | # Check whether --with-optimisation was given. | |
8468 | if test "${with_optimisation+set}" = set; then : | |
8469 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8470 | fi |
539f4a77 | 8471 | |
f11781c5 AK |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8473 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8474 | |
f11781c5 AK |
8475 | ################################################################################ |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8477 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8478 | # Check whether --enable-profiling was given. | |
8479 | if test "${enable_profiling+set}" = set; then : | |
8480 | enableval=$enable_profiling; PROFILING=$enableval | |
8481 | else | |
8482 | PROFILING=no | |
539f4a77 ZK |
8483 | fi |
8484 | ||
f11781c5 AK |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8486 | $as_echo "$PROFILING" >&6; } | |
8487 | ||
8488 | if test "x$PROFILING" = xyes; then | |
8489 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8490 | # Extract the first word of "lcov", so it can be a program name with args. | |
8491 | set dummy lcov; ac_word=$2 | |
8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8493 | $as_echo_n "checking for $ac_word... " >&6; } | |
8494 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8495 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8496 | else |
f11781c5 AK |
8497 | case $LCOV in |
8498 | [\\/]* | ?:[\\/]*) | |
8499 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8500 | ;; | |
8501 | *) | |
8502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8503 | for as_dir in $PATH | |
8504 | do | |
8505 | IFS=$as_save_IFS | |
8506 | test -z "$as_dir" && as_dir=. | |
8507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8509 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8511 | break 2 | |
8512 | fi | |
8513 | done | |
8514 | done | |
8515 | IFS=$as_save_IFS | |
539f4a77 | 8516 | |
f11781c5 AK |
8517 | ;; |
8518 | esac | |
8519 | fi | |
8520 | LCOV=$ac_cv_path_LCOV | |
8521 | if test -n "$LCOV"; then | |
8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8523 | $as_echo "$LCOV" >&6; } | |
8524 | else | |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8526 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8527 | fi |
8528 | ||
bc1024f8 | 8529 | |
f11781c5 AK |
8530 | # Extract the first word of "genhtml", so it can be a program name with args. |
8531 | set dummy genhtml; ac_word=$2 | |
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8533 | $as_echo_n "checking for $ac_word... " >&6; } | |
8534 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8535 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8536 | else |
f11781c5 AK |
8537 | case $GENHTML in |
8538 | [\\/]* | ?:[\\/]*) | |
8539 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8540 | ;; | |
8541 | *) | |
8542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8543 | for as_dir in $PATH | |
8544 | do | |
8545 | IFS=$as_save_IFS | |
8546 | test -z "$as_dir" && as_dir=. | |
8547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8549 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8551 | break 2 | |
8552 | fi | |
8553 | done | |
8554 | done | |
8555 | IFS=$as_save_IFS | |
8a2fc586 | 8556 | |
f11781c5 AK |
8557 | ;; |
8558 | esac | |
8559 | fi | |
8560 | GENHTML=$ac_cv_path_GENHTML | |
8561 | if test -n "$GENHTML"; then | |
8562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8563 | $as_echo "$GENHTML" >&6; } | |
8564 | else | |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8566 | $as_echo "no" >&6; } | |
8567 | fi | |
8a2fc586 | 8568 | |
8a2fc586 | 8569 | |
f11781c5 AK |
8570 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8571 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8572 | fi | |
8573 | # Extract the first word of "genpng", so it can be a program name with args. | |
8574 | set dummy genpng; ac_word=$2 | |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8576 | $as_echo_n "checking for $ac_word... " >&6; } | |
8577 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8578 | $as_echo_n "(cached) " >&6 | |
8579 | else | |
8580 | case $GENPNG in | |
8581 | [\\/]* | ?:[\\/]*) | |
8582 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8583 | ;; | |
8584 | *) | |
8585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8586 | for as_dir in $PATH | |
8587 | do | |
8588 | IFS=$as_save_IFS | |
8589 | test -z "$as_dir" && as_dir=. | |
8590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8592 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8594 | break 2 | |
8595 | fi | |
8596 | done | |
8597 | done | |
8598 | IFS=$as_save_IFS | |
ad6254c5 | 8599 | |
f11781c5 | 8600 | ;; |
7a197a62 | 8601 | esac |
f11781c5 AK |
8602 | fi |
8603 | GENPNG=$ac_cv_path_GENPNG | |
8604 | if test -n "$GENPNG"; then | |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8606 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8607 | else |
f11781c5 AK |
8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8609 | $as_echo "no" >&6; } | |
8610 | fi | |
8611 | ||
8612 | ||
8613 | if test -n "$GENPNG"; then | |
8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8615 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8616 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8618 | $as_echo "ok" >&6; } | |
8619 | GENHTML="$GENHTML --frames" | |
8620 | else | |
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8622 | $as_echo "not supported" >&6; } | |
8623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8624 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8625 | GENPNG= | |
8626 | fi | |
8627 | fi | |
8628 | fi | |
ad6254c5 | 8629 | |
f11781c5 AK |
8630 | ################################################################################ |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8632 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8633 | # Check whether --enable-testing was given. | |
8634 | if test "${enable_testing+set}" = set; then : | |
8635 | enableval=$enable_testing; TESTING=$enableval | |
8636 | else | |
8637 | TESTING=no | |
ad6254c5 | 8638 | fi |
7a197a62 | 8639 | |
f11781c5 AK |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8641 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8642 | |
f11781c5 | 8643 | if test "$TESTING" = yes; then |
426fc742 PR |
8644 | |
8645 | pkg_failed=no | |
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5 | |
8647 | $as_echo_n "checking for CUNIT... " >&6; } | |
8648 | ||
8649 | if test -n "$CUNIT_CFLAGS"; then | |
8650 | pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS" | |
8651 | elif test -n "$PKG_CONFIG"; then | |
8652 | if test -n "$PKG_CONFIG" && \ | |
8653 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8654 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8655 | ac_status=$? | |
8656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8657 | test $ac_status = 0; }; then | |
8658 | pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null` | |
8659 | else | |
8660 | pkg_failed=yes | |
8661 | fi | |
8662 | else | |
8663 | pkg_failed=untried | |
8664 | fi | |
8665 | if test -n "$CUNIT_LIBS"; then | |
8666 | pkg_cv_CUNIT_LIBS="$CUNIT_LIBS" | |
8667 | elif test -n "$PKG_CONFIG"; then | |
8668 | if test -n "$PKG_CONFIG" && \ | |
8669 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8670 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8671 | ac_status=$? | |
8672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8673 | test $ac_status = 0; }; then | |
8674 | pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null` | |
ad6254c5 | 8675 | else |
426fc742 PR |
8676 | pkg_failed=yes |
8677 | fi | |
8678 | else | |
8679 | pkg_failed=untried | |
ad6254c5 AK |
8680 | fi |
8681 | ||
7a197a62 | 8682 | |
426fc742 PR |
8683 | |
8684 | if test $pkg_failed = yes; then | |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8686 | $as_echo "no" >&6; } | |
8687 | ||
8688 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8689 | _pkg_short_errors_supported=yes | |
8690 | else | |
8691 | _pkg_short_errors_supported=no | |
8692 | fi | |
8693 | if test $_pkg_short_errors_supported = yes; then | |
8694 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1` | |
8695 | else | |
8696 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1` | |
8697 | fi | |
8698 | # Put the nasty error message in config.log where it belongs | |
8699 | echo "$CUNIT_PKG_ERRORS" >&5 | |
8700 | ||
8701 | as_fn_error $? "Package requirements (cunit >= 2.0) were not met: | |
8702 | ||
8703 | $CUNIT_PKG_ERRORS | |
8704 | ||
8705 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8706 | installed software in a non-standard prefix. | |
8707 | ||
8708 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8709 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8710 | See the pkg-config man page for more details." "$LINENO" 5 | |
8711 | ||
8712 | elif test $pkg_failed = untried; then | |
8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8714 | $as_echo "no" >&6; } | |
8715 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8716 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8717 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8718 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8719 | path to pkg-config. | |
8720 | ||
8721 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8722 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8723 | See the pkg-config man page for more details. | |
8724 | ||
8725 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8726 | See \`config.log' for more details" "$LINENO" 5; } | |
8727 | ||
8728 | else | |
8729 | CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS | |
8730 | CUNIT_LIBS=$pkg_cv_CUNIT_LIBS | |
8731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8732 | $as_echo "yes" >&6; } | |
8733 | ||
8734 | fi | |
f11781c5 | 8735 | fi |
ad6254c5 | 8736 | |
f11781c5 AK |
8737 | ################################################################################ |
8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8739 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8740 | # Check whether --enable-valgrind_pool was given. | |
8741 | if test "${enable_valgrind_pool+set}" = set; then : | |
8742 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8743 | else | |
8744 | VALGRIND_POOL=no | |
8745 | fi | |
8746 | ||
8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8748 | $as_echo "$VALGRIND_POOL" >&6; } | |
8749 | ||
8750 | if test "$VALGRIND_POOL" = yes; then | |
8751 | for ac_header in valgrind/memcheck.h | |
8752 | do : | |
8753 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8754 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8755 | cat >>confdefs.h <<_ACEOF | |
8756 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8757 | _ACEOF | |
ad6254c5 | 8758 | |
ad6254c5 | 8759 | else |
f11781c5 | 8760 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8761 | fi |
8762 | ||
f11781c5 AK |
8763 | done |
8764 | ||
8765 | ||
8766 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8767 | ||
ad6254c5 AK |
8768 | fi |
8769 | ||
8770 | ################################################################################ | |
f11781c5 AK |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8772 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8773 | # Check whether --enable-devmapper was given. | |
8774 | if test "${enable_devmapper+set}" = set; then : | |
8775 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8776 | fi |
8777 | ||
f11781c5 AK |
8778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8779 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8780 | |
f11781c5 | 8781 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8782 | |
f11781c5 AK |
8783 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8784 | ||
8785 | fi | |
8786 | ||
cdd50823 ZK |
8787 | ################################################################################ |
8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5 | |
8789 | $as_echo_n "checking whether to build LVMetaD... " >&6; } | |
8790 | # Check whether --enable-lvmetad was given. | |
8791 | if test "${enable_lvmetad+set}" = set; then : | |
8792 | enableval=$enable_lvmetad; LVMETAD=$enableval | |
8793 | fi | |
8794 | ||
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5 | |
8796 | $as_echo "$LVMETAD" >&6; } | |
8797 | ||
8798 | BUILD_LVMETAD=$LVMETAD | |
8799 | ||
7126d8c2 AK |
8800 | if test x$BUILD_LVMETAD = xyes; then |
8801 | ||
8802 | $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h | |
8803 | ||
8804 | fi | |
8805 | ||
f11781c5 AK |
8806 | ################################################################################ |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8808 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8809 | # Check whether --enable-udev_sync was given. | |
8810 | if test "${enable_udev_sync+set}" = set; then : | |
8811 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8812 | else |
f11781c5 | 8813 | UDEV_SYNC=no |
7a197a62 | 8814 | fi |
ad6254c5 | 8815 | |
f11781c5 AK |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8817 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8818 | |
f11781c5 | 8819 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8820 | if test x$PKGCONFIG_INIT != x1; then |
8821 | pkg_config_init | |
8822 | fi | |
7a197a62 | 8823 | |
d93275eb PR |
8824 | pkg_failed=no |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8826 | $as_echo_n "checking for UDEV... " >&6; } | |
8827 | ||
8828 | if test -n "$UDEV_CFLAGS"; then | |
8829 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8830 | elif test -n "$PKG_CONFIG"; then | |
8831 | if test -n "$PKG_CONFIG" && \ | |
8832 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8833 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8834 | ac_status=$? | |
8835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8836 | test $ac_status = 0; }; then | |
8837 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8838 | else |
d93275eb | 8839 | pkg_failed=yes |
f11781c5 | 8840 | fi |
d93275eb PR |
8841 | else |
8842 | pkg_failed=untried | |
f11781c5 | 8843 | fi |
d93275eb PR |
8844 | if test -n "$UDEV_LIBS"; then |
8845 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8846 | elif test -n "$PKG_CONFIG"; then | |
8847 | if test -n "$PKG_CONFIG" && \ | |
8848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8849 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8850 | ac_status=$? | |
8851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8852 | test $ac_status = 0; }; then | |
8853 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8854 | else |
d93275eb | 8855 | pkg_failed=yes |
68f2de6d | 8856 | fi |
d93275eb PR |
8857 | else |
8858 | pkg_failed=untried | |
8859 | fi | |
8860 | ||
8861 | ||
8862 | ||
8863 | if test $pkg_failed = yes; then | |
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8865 | $as_echo "no" >&6; } | |
8866 | ||
8867 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8868 | _pkg_short_errors_supported=yes | |
8869 | else | |
8870 | _pkg_short_errors_supported=no | |
8871 | fi | |
8872 | if test $_pkg_short_errors_supported = yes; then | |
8873 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8874 | else | |
8875 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8876 | fi | |
8877 | # Put the nasty error message in config.log where it belongs | |
8878 | echo "$UDEV_PKG_ERRORS" >&5 | |
8879 | ||
8880 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8881 | ||
8882 | $UDEV_PKG_ERRORS | |
8883 | ||
8884 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8885 | installed software in a non-standard prefix. | |
8886 | ||
8887 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8888 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8889 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8890 | |
d93275eb PR |
8891 | elif test $pkg_failed = untried; then |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8893 | $as_echo "no" >&6; } | |
8894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8896 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8897 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8898 | path to pkg-config. | |
8899 | ||
8900 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8901 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8902 | See the pkg-config man page for more details. | |
8903 | ||
8904 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8905 | See \`config.log' for more details" "$LINENO" 5; } | |
8906 | ||
8907 | else | |
8908 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8909 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8911 | $as_echo "yes" >&6; } | |
8912 | UDEV_PC="libudev" | |
8913 | fi | |
68f2de6d | 8914 | |
f11781c5 | 8915 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8916 | |
f11781c5 AK |
8917 | fi |
8918 | ||
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8920 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8921 | # Check whether --enable-udev_rules was given. | |
8922 | if test "${enable_udev_rules+set}" = set; then : | |
8923 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8924 | else |
f11781c5 | 8925 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8926 | fi |
8927 | ||
f11781c5 AK |
8928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8929 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8930 | |
b559a1e6 PR |
8931 | if test x$UDEV_RULES = xyes; then |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5 | |
8933 | $as_echo_n "checking whether udev supports builtin blkid... " >&6; } | |
8934 | udev_version=$(udevadm info --version 2>/dev/null) | |
8935 | if test -n "$udev_version" && test "$udev_version" -ge 176; then | |
8936 | UDEV_HAS_BUILTIN_BLKID=yes | |
8937 | else | |
8938 | UDEV_HAS_BUILTIN_BLKID=no | |
8939 | fi | |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 | |
8941 | $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
8942 | fi | |
8943 | ||
a5f46f6a | 8944 | ################################################################################ |
f11781c5 AK |
8945 | # Check whether --enable-compat was given. |
8946 | if test "${enable_compat+set}" = set; then : | |
8947 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8948 | else | |
8949 | DM_COMPAT=no | |
8950 | fi | |
a5f46f6a | 8951 | |
f11781c5 | 8952 | |
2061c0ec AK |
8953 | if test x$DM_COMPAT = xyes; then |
8954 | as_fn_error $? "--enable-compat is not currently supported. | |
8955 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
8956 | ioctl protocol is supported. | |
8957 | " "$LINENO" 5 | |
8958 | fi | |
8959 | ||
f11781c5 AK |
8960 | ################################################################################ |
8961 | # Check whether --enable-units-compat was given. | |
8962 | if test "${enable_units_compat+set}" = set; then : | |
8963 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8964 | else |
f11781c5 | 8965 | UNITS_COMPAT=no |
a5f46f6a AK |
8966 | fi |
8967 | ||
8968 | ||
f11781c5 | 8969 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8970 | |
f11781c5 AK |
8971 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8972 | ||
8973 | fi | |
8974 | ||
8975 | ################################################################################ | |
8976 | # Check whether --enable-ioctl was given. | |
8977 | if test "${enable_ioctl+set}" = set; then : | |
8978 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8979 | fi |
8980 | ||
a5f46f6a | 8981 | |
ad6254c5 | 8982 | ################################################################################ |
f11781c5 AK |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8984 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8985 | # Check whether --enable-o_direct was given. | |
8986 | if test "${enable_o_direct+set}" = set; then : | |
8987 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8988 | fi | |
ad6254c5 | 8989 | |
f11781c5 AK |
8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8991 | $as_echo "$ODIRECT" >&6; } | |
8992 | ||
8993 | if test x$ODIRECT = xyes; then | |
8994 | ||
8995 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8996 | |
ad6254c5 | 8997 | fi |
ad6254c5 | 8998 | |
f11781c5 AK |
8999 | ################################################################################ |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
9001 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9002 | # Check whether --enable-applib was given. | |
9003 | if test "${enable_applib+set}" = set; then : | |
9004 | enableval=$enable_applib; APPLIB=$enableval | |
9005 | else | |
9006 | APPLIB=no | |
ad6254c5 | 9007 | fi |
7a197a62 | 9008 | |
f11781c5 AK |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
9010 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 9011 | |
f11781c5 AK |
9012 | test x$APPLIB = xyes \ |
9013 | && LVM2APP_LIB=-llvm2app \ | |
9014 | || LVM2APP_LIB= | |
ad6254c5 | 9015 | |
f11781c5 AK |
9016 | ################################################################################ |
9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
9018 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
9019 | # Check whether --enable-cmdlib was given. | |
9020 | if test "${enable_cmdlib+set}" = set; then : | |
9021 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
9022 | else | |
9023 | CMDLIB=no | |
ad6254c5 | 9024 | fi |
7a197a62 | 9025 | |
f11781c5 AK |
9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
9027 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 9028 | |
f11781c5 AK |
9029 | test x$CMDLIB = xyes \ |
9030 | && LVM2CMD_LIB=-llvm2cmd \ | |
9031 | || LVM2CMD_LIB= | |
9032 | ||
9033 | ################################################################################ | |
9034 | # Check whether --enable-pkgconfig was given. | |
9035 | if test "${enable_pkgconfig+set}" = set; then : | |
9036 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 9037 | else |
f11781c5 | 9038 | PKGCONFIG=no |
ad6254c5 | 9039 | fi |
ad6254c5 | 9040 | |
ad6254c5 | 9041 | |
f11781c5 AK |
9042 | ################################################################################ |
9043 | # Check whether --enable-write_install was given. | |
9044 | if test "${enable_write_install+set}" = set; then : | |
9045 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 9046 | else |
f11781c5 | 9047 | WRITE_INSTALL=no |
ad6254c5 AK |
9048 | fi |
9049 | ||
ad6254c5 | 9050 | |
f11781c5 AK |
9051 | ################################################################################ |
9052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
9053 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
9054 | # Check whether --enable-fsadm was given. | |
9055 | if test "${enable_fsadm+set}" = set; then : | |
9056 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
9057 | fi |
9058 | ||
f11781c5 AK |
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
9060 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 9061 | |
f11781c5 AK |
9062 | ################################################################################ |
9063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
9064 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
9065 | # Check whether --enable-dmeventd was given. | |
9066 | if test "${enable_dmeventd+set}" = set; then : | |
9067 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9068 | fi | |
ad6254c5 | 9069 | |
f11781c5 AK |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9071 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9072 | |
f11781c5 | 9073 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9074 | |
f11781c5 AK |
9075 | if test x$DMEVENTD = xyes; then |
9076 | if test x$MIRRORS != xinternal; then | |
9077 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9078 | " "$LINENO" 5 | |
9079 | fi | |
9080 | if test x$CMDLIB = xno; then | |
9081 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9082 | " "$LINENO" 5 | |
9083 | fi | |
9084 | fi | |
ad6254c5 | 9085 | |
f11781c5 | 9086 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9087 | |
f11781c5 | 9088 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9089 | |
f11781c5 | 9090 | fi |
ad6254c5 | 9091 | |
f11781c5 | 9092 | ################################################################################ |
ad6254c5 | 9093 | |
f11781c5 AK |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9095 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9096 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9097 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9098 | else |
f11781c5 AK |
9099 | ac_check_lib_save_LIBS=$LIBS |
9100 | LIBS="-lc $LIBS" | |
9101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9102 | /* end confdefs.h. */ |
f11781c5 AK |
9103 | |
9104 | /* Override any GCC internal prototype to avoid an error. | |
9105 | Use char because int might match the return type of a GCC | |
9106 | builtin and then its argument prototype would still apply. */ | |
9107 | #ifdef __cplusplus | |
9108 | extern "C" | |
9109 | #endif | |
9110 | char getline (); | |
9111 | int | |
9112 | main () | |
9113 | { | |
9114 | return getline (); | |
9115 | ; | |
9116 | return 0; | |
9117 | } | |
ad6254c5 | 9118 | _ACEOF |
f11781c5 AK |
9119 | if ac_fn_c_try_link "$LINENO"; then : |
9120 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9121 | else |
f11781c5 AK |
9122 | ac_cv_lib_c_getline=no |
9123 | fi | |
9124 | rm -f core conftest.err conftest.$ac_objext \ | |
9125 | conftest$ac_exeext conftest.$ac_ext | |
9126 | LIBS=$ac_check_lib_save_LIBS | |
9127 | fi | |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9129 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9130 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9131 | ||
9132 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9133 | |
ad6254c5 | 9134 | fi |
7a197a62 | 9135 | |
ad6254c5 | 9136 | |
f11781c5 AK |
9137 | ################################################################################ |
9138 | ||
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9140 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9141 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9142 | $as_echo_n "(cached) " >&6 | |
9143 | else | |
9144 | ac_check_lib_save_LIBS=$LIBS | |
9145 | LIBS="-lc $LIBS" | |
9146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9147 | /* end confdefs.h. */ |
f11781c5 AK |
9148 | |
9149 | /* Override any GCC internal prototype to avoid an error. | |
9150 | Use char because int might match the return type of a GCC | |
9151 | builtin and then its argument prototype would still apply. */ | |
9152 | #ifdef __cplusplus | |
9153 | extern "C" | |
9154 | #endif | |
9155 | char canonicalize_file_name (); | |
9156 | int | |
9157 | main () | |
9158 | { | |
9159 | return canonicalize_file_name (); | |
9160 | ; | |
9161 | return 0; | |
9162 | } | |
ad6254c5 | 9163 | _ACEOF |
f11781c5 AK |
9164 | if ac_fn_c_try_link "$LINENO"; then : |
9165 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9166 | else |
f11781c5 AK |
9167 | ac_cv_lib_c_canonicalize_file_name=no |
9168 | fi | |
9169 | rm -f core conftest.err conftest.$ac_objext \ | |
9170 | conftest$ac_exeext conftest.$ac_ext | |
9171 | LIBS=$ac_check_lib_save_LIBS | |
9172 | fi | |
9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9174 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9175 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9176 | ||
9177 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9178 | |
ad6254c5 | 9179 | fi |
7a197a62 | 9180 | |
ad6254c5 | 9181 | |
f11781c5 AK |
9182 | ################################################################################ |
9183 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9184 | then exec_prefix=""; | |
9185 | fi; | |
7a197a62 | 9186 | |
f11781c5 AK |
9187 | ################################################################################ |
9188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9189 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9190 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9191 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9192 | else |
f11781c5 AK |
9193 | ac_check_lib_save_LIBS=$LIBS |
9194 | LIBS="-ldl $LIBS" | |
9195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9196 | /* end confdefs.h. */ | |
ad6254c5 | 9197 | |
f11781c5 AK |
9198 | /* Override any GCC internal prototype to avoid an error. |
9199 | Use char because int might match the return type of a GCC | |
9200 | builtin and then its argument prototype would still apply. */ | |
9201 | #ifdef __cplusplus | |
9202 | extern "C" | |
9203 | #endif | |
9204 | char dlopen (); | |
9205 | int | |
9206 | main () | |
9207 | { | |
9208 | return dlopen (); | |
9209 | ; | |
9210 | return 0; | |
9211 | } | |
ad6254c5 | 9212 | _ACEOF |
f11781c5 AK |
9213 | if ac_fn_c_try_link "$LINENO"; then : |
9214 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9215 | else |
f11781c5 | 9216 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9217 | fi |
f11781c5 AK |
9218 | rm -f core conftest.err conftest.$ac_objext \ |
9219 | conftest$ac_exeext conftest.$ac_ext | |
9220 | LIBS=$ac_check_lib_save_LIBS | |
9221 | fi | |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9223 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9224 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9225 | |
ad6254c5 | 9226 | |
f11781c5 | 9227 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9228 | |
f11781c5 AK |
9229 | DL_LIBS="-ldl" |
9230 | HAVE_LIBDL=yes | |
9231 | else | |
795ca3e5 | 9232 | |
f11781c5 AK |
9233 | DL_LIBS= |
9234 | HAVE_LIBDL=no | |
9235 | fi | |
8106cdd5 | 9236 | |
ad6254c5 | 9237 | |
f11781c5 AK |
9238 | ################################################################################ |
9239 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9240 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9241 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9242 | \) -a "x$STATIC_LINK" = xyes ]; |
9243 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9244 | " "$LINENO" 5 | |
9245 | fi | |
ad6254c5 | 9246 | |
f11781c5 AK |
9247 | ################################################################################ |
9248 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9250 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9251 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9252 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9253 | else |
f11781c5 AK |
9254 | ac_check_lib_save_LIBS=$LIBS |
9255 | LIBS="-lpthread $LIBS" | |
9256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9257 | /* end confdefs.h. */ |
8a2fc586 | 9258 | |
f11781c5 AK |
9259 | /* Override any GCC internal prototype to avoid an error. |
9260 | Use char because int might match the return type of a GCC | |
9261 | builtin and then its argument prototype would still apply. */ | |
9262 | #ifdef __cplusplus | |
9263 | extern "C" | |
ad6254c5 | 9264 | #endif |
f11781c5 AK |
9265 | char pthread_mutex_lock (); |
9266 | int | |
9267 | main () | |
9268 | { | |
9269 | return pthread_mutex_lock (); | |
9270 | ; | |
9271 | return 0; | |
9272 | } | |
9273 | _ACEOF | |
9274 | if ac_fn_c_try_link "$LINENO"; then : | |
9275 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9276 | else | |
9277 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9278 | fi | |
9279 | rm -f core conftest.err conftest.$ac_objext \ | |
9280 | conftest$ac_exeext conftest.$ac_ext | |
9281 | LIBS=$ac_check_lib_save_LIBS | |
9282 | fi | |
9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9284 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9285 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9286 | PTHREAD_LIBS="-lpthread" | |
9287 | else | |
9288 | hard_bailout | |
9289 | fi | |
9290 | ||
9291 | fi | |
9292 | ||
9293 | ################################################################################ | |
9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9295 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9296 | # Check whether --enable-selinux was given. | |
9297 | if test "${enable_selinux+set}" = set; then : | |
9298 | enableval=$enable_selinux; SELINUX=$enableval | |
9299 | fi | |
9300 | ||
9301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9302 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9303 | |
f11781c5 AK |
9304 | ################################################################################ |
9305 | if test x$SELINUX = xyes; then | |
9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9307 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9308 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9309 | $as_echo_n "(cached) " >&6 | |
9310 | else | |
9311 | ac_check_lib_save_LIBS=$LIBS | |
9312 | LIBS="-lsepol $LIBS" | |
9313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9314 | /* end confdefs.h. */ | |
8a2fc586 | 9315 | |
7a197a62 AK |
9316 | /* Override any GCC internal prototype to avoid an error. |
9317 | Use char because int might match the return type of a GCC | |
9318 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9319 | #ifdef __cplusplus |
9320 | extern "C" | |
ad6254c5 | 9321 | #endif |
f11781c5 | 9322 | char sepol_check_context (); |
ad6254c5 AK |
9323 | int |
9324 | main () | |
9325 | { | |
f11781c5 | 9326 | return sepol_check_context (); |
ad6254c5 AK |
9327 | ; |
9328 | return 0; | |
9329 | } | |
9330 | _ACEOF | |
f11781c5 AK |
9331 | if ac_fn_c_try_link "$LINENO"; then : |
9332 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9333 | else |
f11781c5 AK |
9334 | ac_cv_lib_sepol_sepol_check_context=no |
9335 | fi | |
9336 | rm -f core conftest.err conftest.$ac_objext \ | |
9337 | conftest$ac_exeext conftest.$ac_ext | |
9338 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9339 | fi |
f11781c5 AK |
9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9341 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9342 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9343 | |
80992638 | 9344 | |
f11781c5 AK |
9345 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9346 | ||
9347 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9348 | fi |
795ca3e5 | 9349 | |
f11781c5 AK |
9350 | |
9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9352 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9353 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9354 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9355 | else |
f11781c5 AK |
9356 | ac_check_lib_save_LIBS=$LIBS |
9357 | LIBS="-lselinux $LIBS" | |
9358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9359 | /* end confdefs.h. */ |
80992638 | 9360 | |
7a197a62 AK |
9361 | /* Override any GCC internal prototype to avoid an error. |
9362 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9363 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9364 | #ifdef __cplusplus |
9365 | extern "C" | |
9366 | #endif | |
f11781c5 | 9367 | char is_selinux_enabled (); |
ad6254c5 AK |
9368 | int |
9369 | main () | |
9370 | { | |
f11781c5 | 9371 | return is_selinux_enabled (); |
ad6254c5 AK |
9372 | ; |
9373 | return 0; | |
9374 | } | |
9375 | _ACEOF | |
f11781c5 AK |
9376 | if ac_fn_c_try_link "$LINENO"; then : |
9377 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9378 | else |
f11781c5 | 9379 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9380 | fi |
f11781c5 AK |
9381 | rm -f core conftest.err conftest.$ac_objext \ |
9382 | conftest$ac_exeext conftest.$ac_ext | |
9383 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9384 | fi |
f11781c5 AK |
9385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9386 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9387 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9388 | |
f11781c5 AK |
9389 | for ac_header in selinux/selinux.h |
9390 | do : | |
9391 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9392 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9393 | cat >>confdefs.h <<_ACEOF | |
9394 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9395 | _ACEOF |
795ca3e5 | 9396 | |
25fbec5b | 9397 | else |
f11781c5 | 9398 | hard_bailout |
795ca3e5 | 9399 | fi |
795ca3e5 | 9400 | |
f11781c5 | 9401 | done |
795ca3e5 | 9402 | |
f11781c5 AK |
9403 | for ac_header in selinux/label.h |
9404 | do : | |
9405 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9406 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9407 | cat >>confdefs.h <<_ACEOF | |
9408 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9409 | _ACEOF |
ad6254c5 | 9410 | |
ad6254c5 | 9411 | fi |
7a197a62 | 9412 | |
f11781c5 | 9413 | done |
7a197a62 | 9414 | |
ad6254c5 | 9415 | |
f11781c5 | 9416 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9417 | |
f11781c5 AK |
9418 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9419 | SELINUX_PC="libselinux" | |
9420 | HAVE_SELINUX=yes | |
ad6254c5 | 9421 | else |
8106cdd5 | 9422 | |
f11781c5 AK |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9424 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9425 | SELINUX_LIBS= | |
9426 | SELINUX_PC= | |
9427 | HAVE_SELINUX=no | |
795ca3e5 | 9428 | fi |
ad6254c5 | 9429 | |
795ca3e5 AK |
9430 | fi |
9431 | ||
f11781c5 AK |
9432 | ################################################################################ |
9433 | if test x$REALTIME = xyes; then | |
9434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9435 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9436 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9437 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9438 | else |
f11781c5 AK |
9439 | ac_check_lib_save_LIBS=$LIBS |
9440 | LIBS="-lrt $LIBS" | |
9441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9442 | /* end confdefs.h. */ |
ad6254c5 | 9443 | |
f11781c5 AK |
9444 | /* Override any GCC internal prototype to avoid an error. |
9445 | Use char because int might match the return type of a GCC | |
9446 | builtin and then its argument prototype would still apply. */ | |
9447 | #ifdef __cplusplus | |
9448 | extern "C" | |
9449 | #endif | |
9450 | char clock_gettime (); | |
ad6254c5 AK |
9451 | int |
9452 | main () | |
9453 | { | |
f11781c5 | 9454 | return clock_gettime (); |
ad6254c5 AK |
9455 | ; |
9456 | return 0; | |
9457 | } | |
9458 | _ACEOF | |
f11781c5 AK |
9459 | if ac_fn_c_try_link "$LINENO"; then : |
9460 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9461 | else |
f11781c5 | 9462 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9463 | fi |
f11781c5 AK |
9464 | rm -f core conftest.err conftest.$ac_objext \ |
9465 | conftest$ac_exeext conftest.$ac_ext | |
9466 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9467 | fi |
f11781c5 AK |
9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9469 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9470 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9471 | HAVE_REALTIME=yes | |
9472 | else | |
9473 | HAVE_REALTIME=no | |
8106cdd5 | 9474 | fi |
ad6254c5 | 9475 | |
ad6254c5 | 9476 | |
f11781c5 | 9477 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9478 | |
f11781c5 | 9479 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9480 | |
f11781c5 AK |
9481 | LIBS="-lrt $LIBS" |
9482 | else | |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9484 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9485 | fi | |
9486 | fi | |
9487 | ||
9488 | ################################################################################ | |
9489 | for ac_header in getopt.h | |
9490 | do : | |
9491 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9492 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9493 | cat >>confdefs.h <<_ACEOF | |
9494 | #define HAVE_GETOPT_H 1 | |
9495 | _ACEOF | |
9496 | ||
9497 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9498 | |
ad6254c5 | 9499 | fi |
7a197a62 | 9500 | |
f11781c5 | 9501 | done |
ad6254c5 | 9502 | |
7a197a62 | 9503 | |
f11781c5 AK |
9504 | ################################################################################ |
9505 | if test x$READLINE != xno; then | |
9506 | lvm_saved_libs=$LIBS | |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9508 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9509 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9510 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9511 | else |
f11781c5 AK |
9512 | ac_func_search_save_LIBS=$LIBS |
9513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9514 | /* end confdefs.h. */ | |
ad6254c5 | 9515 | |
f11781c5 AK |
9516 | /* Override any GCC internal prototype to avoid an error. |
9517 | Use char because int might match the return type of a GCC | |
9518 | builtin and then its argument prototype would still apply. */ | |
9519 | #ifdef __cplusplus | |
9520 | extern "C" | |
9521 | #endif | |
9522 | char tgetent (); | |
9523 | int | |
9524 | main () | |
9525 | { | |
9526 | return tgetent (); | |
9527 | ; | |
9528 | return 0; | |
9529 | } | |
ad6254c5 | 9530 | _ACEOF |
f11781c5 AK |
9531 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9532 | if test -z "$ac_lib"; then | |
9533 | ac_res="none required" | |
9534 | else | |
9535 | ac_res=-l$ac_lib | |
9536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9537 | fi | |
9538 | if ac_fn_c_try_link "$LINENO"; then : | |
9539 | ac_cv_search_tgetent=$ac_res | |
9540 | fi | |
9541 | rm -f core conftest.err conftest.$ac_objext \ | |
9542 | conftest$ac_exeext | |
9543 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9544 | break | |
9545 | fi | |
9546 | done | |
9547 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9548 | |
80992638 | 9549 | else |
f11781c5 | 9550 | ac_cv_search_tgetent=no |
b896caa1 | 9551 | fi |
f11781c5 AK |
9552 | rm conftest.$ac_ext |
9553 | LIBS=$ac_func_search_save_LIBS | |
9554 | fi | |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9556 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9557 | ac_res=$ac_cv_search_tgetent | |
9558 | if test "$ac_res" != no; then : | |
9559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9560 | READLINE_LIBS=$ac_cv_search_tgetent | |
9561 | else | |
ad6254c5 | 9562 | |
f11781c5 AK |
9563 | if test "$READLINE" = yes; then |
9564 | as_fn_error $? "termcap could not be found which is required for the | |
9565 | --enable-readline option (which is enabled by default). Either disable readline | |
9566 | support with --disable-readline or download and install termcap from: | |
9567 | ftp.gnu.org/gnu/termcap | |
9568 | Note: if you are using precompiled packages you will also need the development | |
9569 | package as well (which may be called termcap-devel or something similar). | |
9570 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9571 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9572 | fi | |
9573 | fi | |
b896caa1 | 9574 | |
f11781c5 AK |
9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9576 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9577 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9578 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9579 | else |
f11781c5 AK |
9580 | ac_check_lib_save_LIBS=$LIBS |
9581 | LIBS="-lreadline $LIBS" | |
9582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9583 | /* end confdefs.h. */ |
8a2fc586 | 9584 | |
f11781c5 AK |
9585 | /* Override any GCC internal prototype to avoid an error. |
9586 | Use char because int might match the return type of a GCC | |
9587 | builtin and then its argument prototype would still apply. */ | |
9588 | #ifdef __cplusplus | |
9589 | extern "C" | |
ad6254c5 | 9590 | #endif |
f11781c5 AK |
9591 | char readline (); |
9592 | int | |
9593 | main () | |
9594 | { | |
9595 | return readline (); | |
9596 | ; | |
9597 | return 0; | |
9598 | } | |
9599 | _ACEOF | |
9600 | if ac_fn_c_try_link "$LINENO"; then : | |
9601 | ac_cv_lib_readline_readline=yes | |
9602 | else | |
9603 | ac_cv_lib_readline_readline=no | |
9604 | fi | |
9605 | rm -f core conftest.err conftest.$ac_objext \ | |
9606 | conftest$ac_exeext conftest.$ac_ext | |
9607 | LIBS=$ac_check_lib_save_LIBS | |
9608 | fi | |
9609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9610 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9611 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9612 | ||
8a2fc586 | 9613 | |
f11781c5 AK |
9614 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9615 | ||
9616 | LIBS=$lvm_saved_libs | |
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9618 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9619 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9620 | $as_echo_n "(cached) " >&6 | |
9621 | else | |
9622 | ac_check_lib_save_LIBS=$LIBS | |
9623 | LIBS="-lreadline $LIBS" | |
9624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9625 | /* end confdefs.h. */ | |
8a2fc586 | 9626 | |
7a197a62 AK |
9627 | /* Override any GCC internal prototype to avoid an error. |
9628 | Use char because int might match the return type of a GCC | |
9629 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9630 | #ifdef __cplusplus |
9631 | extern "C" | |
ad6254c5 | 9632 | #endif |
f11781c5 | 9633 | char rl_line_buffer (); |
ad6254c5 AK |
9634 | int |
9635 | main () | |
9636 | { | |
f11781c5 | 9637 | return rl_line_buffer (); |
ad6254c5 AK |
9638 | ; |
9639 | return 0; | |
9640 | } | |
9641 | _ACEOF | |
f11781c5 AK |
9642 | if ac_fn_c_try_link "$LINENO"; then : |
9643 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9644 | else |
f11781c5 AK |
9645 | ac_cv_lib_readline_rl_line_buffer=no |
9646 | fi | |
9647 | rm -f core conftest.err conftest.$ac_objext \ | |
9648 | conftest$ac_exeext conftest.$ac_ext | |
9649 | LIBS=$ac_check_lib_save_LIBS | |
9650 | fi | |
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9652 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9653 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9654 | READLINE_LIBS="-lreadline" | |
9655 | else | |
9656 | ||
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9658 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9659 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9660 | |
ad6254c5 | 9661 | fi |
7a197a62 | 9662 | |
f11781c5 AK |
9663 | else |
9664 | ||
9665 | READLINE_LIBS= | |
9666 | if test "$READLINE" = yes; then | |
9667 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9668 | --enable-readline option (which is enabled by default). Either disable readline | |
9669 | support with --disable-readline or download and install readline from: | |
9670 | ftp.gnu.org/gnu/readline | |
9671 | Note: if you are using precompiled packages you will also need the development | |
9672 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9673 | fi | |
ad6254c5 | 9674 | fi |
f11781c5 AK |
9675 | |
9676 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9677 | for ac_func in rl_completion_matches | |
9678 | do : | |
9679 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9680 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9681 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9682 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9683 | _ACEOF |
9684 | ||
ad6254c5 AK |
9685 | fi |
9686 | done | |
9687 | ||
f11781c5 | 9688 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9689 | fi |
9690 | ||
f11781c5 AK |
9691 | ################################################################################ |
9692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9693 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9694 | # Check whether --enable-nls was given. | |
9695 | if test "${enable_nls+set}" = set; then : | |
9696 | enableval=$enable_nls; INTL=$enableval | |
9697 | else | |
9698 | INTL=no | |
9699 | fi | |
d911ec67 | 9700 | |
f11781c5 AK |
9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9702 | $as_echo "$INTL" >&6; } | |
9703 | ||
9704 | if test x$INTL = xyes; then | |
9705 | # FIXME - Move this - can be device-mapper too | |
9706 | INTL_PACKAGE="lvm2" | |
9707 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9708 | set dummy msgfmt; ac_word=$2 | |
9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9710 | $as_echo_n "checking for $ac_word... " >&6; } | |
9711 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9712 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9713 | else |
f11781c5 AK |
9714 | case $MSGFMT in |
9715 | [\\/]* | ?:[\\/]*) | |
9716 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9717 | ;; | |
9718 | *) | |
9719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9720 | for as_dir in $PATH | |
9721 | do | |
9722 | IFS=$as_save_IFS | |
9723 | test -z "$as_dir" && as_dir=. | |
9724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9726 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9728 | break 2 | |
9729 | fi | |
9730 | done | |
9731 | done | |
9732 | IFS=$as_save_IFS | |
9733 | ||
9734 | ;; | |
d911ec67 | 9735 | esac |
f11781c5 AK |
9736 | fi |
9737 | MSGFMT=$ac_cv_path_MSGFMT | |
9738 | if test -n "$MSGFMT"; then | |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9740 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9741 | else |
f11781c5 AK |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9743 | $as_echo "no" >&6; } | |
9744 | fi | |
d911ec67 | 9745 | |
f11781c5 AK |
9746 | |
9747 | if [ "x$MSGFMT" == x ]; | |
9748 | then as_fn_error $? "msgfmt not found in path $PATH | |
9749 | " "$LINENO" 5 | |
9750 | fi; | |
9751 | ||
9752 | ||
9753 | # Check whether --with-localedir was given. | |
9754 | if test "${with_localedir+set}" = set; then : | |
9755 | withval=$with_localedir; LOCALEDIR=$withval | |
9756 | else | |
9757 | LOCALEDIR='${prefix}/share/locale' | |
9758 | fi | |
9759 | ||
9760 | fi | |
9761 | ||
9762 | ################################################################################ | |
9763 | ||
9764 | # Check whether --with-confdir was given. | |
9765 | if test "${with_confdir+set}" = set; then : | |
9766 | withval=$with_confdir; CONFDIR=$withval | |
9767 | else | |
9768 | CONFDIR="/etc" | |
9769 | fi | |
9770 | ||
9771 | ||
9772 | ||
9773 | # Check whether --with-staticdir was given. | |
9774 | if test "${with_staticdir+set}" = set; then : | |
9775 | withval=$with_staticdir; STATICDIR=$withval | |
9776 | else | |
9777 | STATICDIR='${exec_prefix}/sbin' | |
9778 | fi | |
9779 | ||
9780 | ||
9781 | ||
9782 | # Check whether --with-usrlibdir was given. | |
9783 | if test "${with_usrlibdir+set}" = set; then : | |
9784 | withval=$with_usrlibdir; usrlibdir=$withval | |
9785 | else | |
9786 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9787 | fi |
9788 | ||
d911ec67 | 9789 | |
d911ec67 | 9790 | |
f11781c5 AK |
9791 | # Check whether --with-usrsbindir was given. |
9792 | if test "${with_usrsbindir+set}" = set; then : | |
9793 | withval=$with_usrsbindir; usrsbindir=$withval | |
9794 | else | |
9795 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9796 | fi |
9797 | ||
d911ec67 | 9798 | |
f11781c5 | 9799 | ################################################################################ |
d911ec67 | 9800 | |
f11781c5 AK |
9801 | # Check whether --with-udev_prefix was given. |
9802 | if test "${with_udev_prefix+set}" = set; then : | |
9803 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9804 | else |
f11781c5 | 9805 | udev_prefix='${exec_prefix}' |
d911ec67 | 9806 | fi |
d911ec67 | 9807 | |
f11781c5 AK |
9808 | |
9809 | ||
9810 | # Check whether --with-udevdir was given. | |
9811 | if test "${with_udevdir+set}" = set; then : | |
9812 | withval=$with_udevdir; udevdir=$withval | |
9813 | else | |
9814 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9815 | fi |
f11781c5 AK |
9816 | |
9817 | ||
e587cb6a PR |
9818 | ################################################################################ |
9819 | ||
9820 | # Check whether --with-systemdsystemunitdir was given. | |
9821 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
9822 | withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval | |
9823 | else | |
767ce95a ZK |
9824 | test x$PKGCONFIG_INIT != x1 && pkg_config_init |
9825 | pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | |
e587cb6a PR |
9826 | fi |
9827 | ||
9828 | ||
9829 | if test -n "$pkg_systemdsystemunitdir"; then | |
9830 | systemdsystemunitdir=$pkg_systemdsystemunitdir; | |
9831 | fi | |
9832 | ||
9833 | if test -z "$systemdsystemunitdir"; then | |
9834 | systemdsystemunitdir='/lib/systemd/system'; | |
9835 | fi | |
4417a8bd PR |
9836 | ################################################################################ |
9837 | ||
9838 | # Check whether --with-tmpfilesdir was given. | |
9839 | if test "${with_tmpfilesdir+set}" = set; then : | |
9840 | withval=$with_tmpfilesdir; tmpfilesdir=$withval | |
9841 | else | |
9842 | tmpfilesdir='${sysconfdir}/tmpfiles.d' | |
9843 | fi | |
9844 | ||
f11781c5 AK |
9845 | ################################################################################ |
9846 | if test x$READLINE = xyes; then | |
9847 | for ac_header in readline/readline.h readline/history.h | |
9848 | do : | |
9849 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9850 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9851 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9852 | cat >>confdefs.h <<_ACEOF |
9853 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9854 | _ACEOF | |
9855 | ||
9856 | else | |
f11781c5 | 9857 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9858 | fi |
9859 | ||
9860 | done | |
9861 | ||
9862 | fi | |
9863 | ||
f11781c5 AK |
9864 | if test x$CLVMD != xnone; then |
9865 | 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 | |
9866 | do : | |
9867 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9868 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9869 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9870 | cat >>confdefs.h <<_ACEOF | |
9871 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9872 | _ACEOF |
ad6254c5 | 9873 | |
f11781c5 AK |
9874 | else |
9875 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9876 | fi |
7a197a62 | 9877 | |
f11781c5 | 9878 | done |
ad6254c5 | 9879 | |
f11781c5 AK |
9880 | for ac_func in dup2 getmntent memmove select socket |
9881 | do : | |
9882 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9883 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9884 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9885 | cat >>confdefs.h <<_ACEOF | |
9886 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9887 | _ACEOF |
ad6254c5 | 9888 | |
f11781c5 AK |
9889 | else |
9890 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9891 | fi |
f11781c5 | 9892 | done |
7a197a62 | 9893 | |
f11781c5 AK |
9894 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9895 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9897 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9898 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9899 | $as_echo_n "(cached) " >&6 | |
9900 | else | |
9901 | ac_func_search_save_LIBS=$LIBS | |
9902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9903 | /* end confdefs.h. */ | |
ad6254c5 | 9904 | |
f11781c5 AK |
9905 | /* Override any GCC internal prototype to avoid an error. |
9906 | Use char because int might match the return type of a GCC | |
9907 | builtin and then its argument prototype would still apply. */ | |
9908 | #ifdef __cplusplus | |
9909 | extern "C" | |
9910 | #endif | |
9911 | char getmntent (); | |
9912 | int | |
9913 | main () | |
9914 | { | |
9915 | return getmntent (); | |
9916 | ; | |
9917 | return 0; | |
9918 | } | |
9919 | _ACEOF | |
9920 | for ac_lib in '' sun seq gen; do | |
9921 | if test -z "$ac_lib"; then | |
9922 | ac_res="none required" | |
9923 | else | |
9924 | ac_res=-l$ac_lib | |
9925 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9926 | fi | |
9927 | if ac_fn_c_try_link "$LINENO"; then : | |
9928 | ac_cv_search_getmntent=$ac_res | |
9929 | fi | |
9930 | rm -f core conftest.err conftest.$ac_objext \ | |
9931 | conftest$ac_exeext | |
9932 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9933 | break | |
9934 | fi | |
9935 | done | |
9936 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9937 | |
ad6254c5 | 9938 | else |
f11781c5 | 9939 | ac_cv_search_getmntent=no |
795ca3e5 | 9940 | fi |
f11781c5 AK |
9941 | rm conftest.$ac_ext |
9942 | LIBS=$ac_func_search_save_LIBS | |
9943 | fi | |
9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9945 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9946 | ac_res=$ac_cv_search_getmntent | |
9947 | if test "$ac_res" != no; then : | |
9948 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9949 | ac_cv_func_getmntent=yes | |
9950 | ||
9951 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9952 | |
f11781c5 AK |
9953 | else |
9954 | ac_cv_func_getmntent=no | |
8106cdd5 | 9955 | fi |
f11781c5 AK |
9956 | |
9957 | ||
9958 | for ac_header in sys/select.h sys/socket.h | |
9959 | do : | |
9960 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9961 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9962 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9963 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9964 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9965 | _ACEOF |
795ca3e5 | 9966 | |
795ca3e5 AK |
9967 | fi |
9968 | ||
ad6254c5 | 9969 | done |
80992638 | 9970 | |
f11781c5 AK |
9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9972 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9973 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9974 | $as_echo_n "(cached) " >&6 |
83912faa | 9975 | else |
f11781c5 AK |
9976 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9977 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9978 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9980 | /* end confdefs.h. */ |
9981 | $ac_includes_default | |
f11781c5 AK |
9982 | #ifdef HAVE_SYS_SELECT_H |
9983 | # include <sys/select.h> | |
9984 | #endif | |
9985 | #ifdef HAVE_SYS_SOCKET_H | |
9986 | # include <sys/socket.h> | |
9987 | #endif | |
9988 | ||
9989 | int | |
9990 | main () | |
9991 | { | |
9992 | extern int select ($ac_arg1, | |
9993 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9994 | $ac_arg5); | |
9995 | ; | |
9996 | return 0; | |
9997 | } | |
ad6254c5 | 9998 | _ACEOF |
f11781c5 AK |
9999 | if ac_fn_c_try_compile "$LINENO"; then : |
10000 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
10001 | fi | |
10002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10003 | done | |
10004 | done | |
10005 | done | |
10006 | # Provide a safe default value. | |
10007 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 10008 | |
ad6254c5 | 10009 | fi |
f11781c5 AK |
10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
10011 | $as_echo "$ac_cv_func_select_args" >&6; } | |
10012 | ac_save_IFS=$IFS; IFS=',' | |
10013 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10014 | IFS=$ac_save_IFS | |
10015 | shift | |
7a197a62 | 10016 | |
f11781c5 AK |
10017 | cat >>confdefs.h <<_ACEOF |
10018 | #define SELECT_TYPE_ARG1 $1 | |
10019 | _ACEOF | |
ad6254c5 | 10020 | |
f11781c5 AK |
10021 | |
10022 | cat >>confdefs.h <<_ACEOF | |
10023 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 10024 | _ACEOF |
f11781c5 AK |
10025 | |
10026 | ||
10027 | cat >>confdefs.h <<_ACEOF | |
10028 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 10029 | _ACEOF |
ad6254c5 | 10030 | |
f11781c5 AK |
10031 | rm -f conftest* |
10032 | ||
ad6254c5 | 10033 | fi |
7a197a62 | 10034 | |
f11781c5 AK |
10035 | if test x$CLUSTER != xnone; then |
10036 | for ac_header in sys/socket.h sys/un.h | |
10037 | do : | |
10038 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10039 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10040 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10041 | cat >>confdefs.h <<_ACEOF | |
10042 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10043 | _ACEOF | |
ad6254c5 | 10044 | |
f11781c5 AK |
10045 | else |
10046 | as_fn_error $? "bailing out" "$LINENO" 5 | |
10047 | fi | |
10048 | ||
10049 | done | |
10050 | ||
10051 | for ac_func in socket | |
10052 | do : | |
10053 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
10054 | if test "x$ac_cv_func_socket" = x""yes; then : | |
10055 | cat >>confdefs.h <<_ACEOF | |
10056 | #define HAVE_SOCKET 1 | |
10057 | _ACEOF | |
7a197a62 | 10058 | |
80992638 | 10059 | else |
f11781c5 | 10060 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 10061 | fi |
f11781c5 | 10062 | done |
83912faa | 10063 | |
69792976 | 10064 | fi |
f11781c5 AK |
10065 | |
10066 | if test x$DMEVENTD = xyes; then | |
10067 | for ac_header in arpa/inet.h | |
10068 | do : | |
10069 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
10070 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 10071 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10072 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 10073 | _ACEOF |
69792976 | 10074 | |
69792976 | 10075 | else |
f11781c5 | 10076 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
10077 | fi |
10078 | ||
ad6254c5 | 10079 | done |
69792976 | 10080 | |
ad6254c5 AK |
10081 | fi |
10082 | ||
f11781c5 AK |
10083 | if test x$HAVE_LIBDL = xyes; then |
10084 | for ac_header in dlfcn.h | |
10085 | do : | |
10086 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
10087 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
10088 | cat >>confdefs.h <<_ACEOF | |
10089 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 10090 | _ACEOF |
a5f46f6a | 10091 | |
f11781c5 AK |
10092 | else |
10093 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
10094 | fi |
10095 | ||
f11781c5 | 10096 | done |
a5f46f6a | 10097 | |
a5f46f6a AK |
10098 | fi |
10099 | ||
f11781c5 AK |
10100 | if test x$INTL = xyes; then |
10101 | for ac_header in libintl.h | |
10102 | do : | |
10103 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10104 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10105 | cat >>confdefs.h <<_ACEOF | |
10106 | #define HAVE_LIBINTL_H 1 | |
10107 | _ACEOF | |
a5f46f6a | 10108 | |
a5f46f6a | 10109 | else |
f11781c5 | 10110 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10111 | fi |
f11781c5 AK |
10112 | |
10113 | done | |
a5f46f6a AK |
10114 | |
10115 | fi | |
f11781c5 AK |
10116 | |
10117 | if test x$UDEV_SYNC = xyes; then | |
10118 | for ac_header in sys/ipc.h sys/sem.h | |
10119 | do : | |
10120 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10121 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10122 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10123 | cat >>confdefs.h <<_ACEOF |
10124 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10125 | _ACEOF | |
10126 | ||
10127 | else | |
f11781c5 | 10128 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10129 | fi |
10130 | ||
10131 | done | |
10132 | ||
10133 | fi | |
10134 | ||
a653923f AK |
10135 | ################################################################################ |
10136 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10137 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10139 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10140 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10141 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10142 | else |
10143 | case $MODPROBE_CMD in | |
10144 | [\\/]* | ?:[\\/]*) | |
10145 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10146 | ;; | |
10147 | *) | |
10148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10149 | for as_dir in $PATH | |
10150 | do | |
10151 | IFS=$as_save_IFS | |
10152 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10153 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10154 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10155 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10157 | break 2 |
10158 | fi | |
10159 | done | |
f11781c5 | 10160 | done |
7a197a62 | 10161 | IFS=$as_save_IFS |
72b2cb61 AK |
10162 | |
10163 | ;; | |
10164 | esac | |
10165 | fi | |
10166 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10167 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10169 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10170 | else |
f11781c5 | 10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10172 | $as_echo "no" >&6; } |
72b2cb61 AK |
10173 | fi |
10174 | ||
a653923f | 10175 | |
7a197a62 | 10176 | |
a653923f | 10177 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10178 | |
10179 | cat >>confdefs.h <<_ACEOF | |
10180 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10181 | _ACEOF | |
10182 | ||
a653923f AK |
10183 | fi |
10184 | ||
b5c2529b | 10185 | |
a9b601e2 ZK |
10186 | lvm_exec_prefix=$exec_prefix |
10187 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10188 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 | 10189 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
a9b601e2 | 10190 | |
b5c2529b | 10191 | cat >>confdefs.h <<_ACEOF |
d2c11605 | 10192 | #define LVM_PATH "$LVM_PATH" |
b5c2529b ZK |
10193 | _ACEOF |
10194 | ||
10195 | ||
10196 | if test "$CLVMD" != none; then | |
10197 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 10198 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b ZK |
10199 | test "$prefix" != NONE && clvmd_prefix=$prefix |
10200 | ||
10201 | cat >>confdefs.h <<_ACEOF | |
d2c11605 | 10202 | #define CLVMD_PATH "$CLVMD_PATH" |
b5c2529b ZK |
10203 | _ACEOF |
10204 | ||
10205 | fi | |
10206 | ||
80992638 | 10207 | ################################################################################ |
93bd259b AK |
10208 | if test "$BUILD_DMEVENTD" = yes; then |
10209 | ||
10210 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10211 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10212 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10213 | else |
71082be4 | 10214 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10215 | fi |
10216 | ||
93bd259b | 10217 | |
71082be4 ZK |
10218 | cat >>confdefs.h <<_ACEOF |
10219 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10220 | _ACEOF | |
93bd259b | 10221 | |
71082be4 | 10222 | fi |
93bd259b AK |
10223 | |
10224 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10225 | |
10226 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10227 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10228 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10229 | else |
71082be4 | 10230 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10231 | fi |
10232 | ||
93bd259b | 10233 | |
71082be4 ZK |
10234 | cat >>confdefs.h <<_ACEOF |
10235 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10236 | _ACEOF | |
3399ae32 | 10237 | |
71082be4 | 10238 | fi |
3399ae32 | 10239 | |
8bae0a1e AK |
10240 | |
10241 | ||
8bae0a1e | 10242 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10243 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10244 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10245 | else | |
10246 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10247 | fi | |
10248 | ||
10249 | cat >>confdefs.h <<_ACEOF | |
10250 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10251 | _ACEOF | |
10252 | ||
10253 | ||
71082be4 | 10254 | ################################################################################ |
3399ae32 AK |
10255 | |
10256 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10257 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10258 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10259 | else |
71082be4 | 10260 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10261 | fi |
10262 | ||
71082be4 | 10263 | |
3399ae32 AK |
10264 | cat >>confdefs.h <<_ACEOF |
10265 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10266 | _ACEOF | |
10267 | ||
10268 | ||
10269 | ||
3399ae32 | 10270 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10271 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10272 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10273 | else |
71082be4 | 10274 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10275 | fi |
10276 | ||
71082be4 | 10277 | |
3399ae32 AK |
10278 | cat >>confdefs.h <<_ACEOF |
10279 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10280 | _ACEOF | |
10281 | ||
10282 | ||
10283 | ||
3399ae32 | 10284 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10285 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10286 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10287 | else |
71082be4 | 10288 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10289 | fi |
10290 | ||
71082be4 | 10291 | |
3399ae32 AK |
10292 | cat >>confdefs.h <<_ACEOF |
10293 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10294 | _ACEOF | |
10295 | ||
10296 | ||
10297 | ||
3399ae32 | 10298 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10299 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10300 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10301 | else |
71082be4 | 10302 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10303 | fi |
10304 | ||
71082be4 | 10305 | |
3399ae32 AK |
10306 | cat >>confdefs.h <<_ACEOF |
10307 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10308 | _ACEOF | |
10309 | ||
10310 | ||
10311 | ||
3399ae32 | 10312 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10313 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10314 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10315 | else |
71082be4 | 10316 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10317 | fi |
10318 | ||
71082be4 | 10319 | |
3399ae32 AK |
10320 | cat >>confdefs.h <<_ACEOF |
10321 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10322 | _ACEOF | |
10323 | ||
10324 | ||
fea55602 DW |
10325 | ################################################################################ |
10326 | ||
10327 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10328 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10329 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10330 | else | |
10331 | DEFAULT_DATA_ALIGNMENT=1 | |
10332 | fi | |
10333 | ||
10334 | ||
10335 | cat >>confdefs.h <<_ACEOF | |
10336 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10337 | _ACEOF | |
10338 | ||
10339 | ||
93bd259b | 10340 | ################################################################################ |
f11781c5 | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10342 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10343 | |
10344 | # Check whether --with-interface was given. | |
f11781c5 | 10345 | if test "${with_interface+set}" = set; then : |
71082be4 | 10346 | withval=$with_interface; interface=$withval |
93bd259b | 10347 | else |
71082be4 | 10348 | interface=ioctl |
93bd259b AK |
10349 | fi |
10350 | ||
10351 | if [ "x$interface" != xioctl ]; | |
10352 | then | |
f11781c5 | 10353 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10354 | fi |
f11781c5 | 10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10356 | $as_echo "$interface" >&6; } |
93bd259b AK |
10357 | |
10358 | ################################################################################ | |
db8b5af9 | 10359 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10360 | |
10361 | cat >>confdefs.h <<_ACEOF | |
10362 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10363 | _ACEOF | |
10364 | ||
10365 | ||
db8b5af9 | 10366 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10367 | |
db8b5af9 | 10368 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10369 | |
db8b5af9 | 10370 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10371 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10372 | VER=`echo "$VER" | $AWK '{print $1}'` |
10373 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10374 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10375 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10376 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10377 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10378 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10379 | |
80992638 | 10380 | ################################################################################ |
fae0c576 | 10381 | |
83912faa | 10382 | |
795ca3e5 AK |
10383 | |
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
5a52dca9 | 10389 | |
8ef2b021 | 10390 | |
199e490e | 10391 | |
69792976 AK |
10392 | |
10393 | ||
10394 | ||
d0191583 | 10395 | |
69792976 | 10396 | |
8106cdd5 AK |
10397 | |
10398 | ||
10399 | ||
10400 | ||
10401 | ||
d68a82ec | 10402 | |
036f273a | 10403 | |
7d1552c9 | 10404 | |
8106cdd5 | 10405 | |
0a62c911 | 10406 | |
8106cdd5 | 10407 | |
4a7f3eb2 | 10408 | |
4922197a AK |
10409 | |
10410 | ||
d8ac0fbc | 10411 | |
1a9ea74d | 10412 | |
8a2fc586 AK |
10413 | |
10414 | ||
d0191583 | 10415 | |
93bd259b AK |
10416 | |
10417 | ||
10418 | ||
10419 | ||
10420 | ||
d0191583 JM |
10421 | |
10422 | ||
10423 | ||
10424 | ||
10425 | ||
8a2fc586 | 10426 | |
19a2c6e0 | 10427 | |
f7f0854e ZK |
10428 | |
10429 | ||
3ceb7608 | 10430 | |
8ce0cbda | 10431 | |
8b1a3214 | 10432 | |
ec6a6fbe AK |
10433 | |
10434 | ||
10435 | ||
10436 | ||
e2997b73 AK |
10437 | |
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
a946372e AK |
10443 | |
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
ec6a6fbe | 10454 | |
cac52ca4 | 10455 | |
d3c8211f | 10456 | |
7e3fe830 | 10457 | |
a5f46f6a AK |
10458 | |
10459 | ||
10460 | ||
572fefeb | 10461 | |
90c80887 | 10462 | |
3399ae32 AK |
10463 | |
10464 | ||
10465 | ||
10466 | ||
10467 | ||
90c80887 | 10468 | |
bf456146 | 10469 | |
e1b8a236 | 10470 | |
0878503f | 10471 | |
8fea97b7 | 10472 | |
54b362f9 | 10473 | |
b1f08e51 | 10474 | |
d1e8046f | 10475 | |
fea55602 | 10476 | |
c89bc357 | 10477 | |
6e5c1f75 | 10478 | |
3ba4a195 | 10479 | |
d2c11605 ZK |
10480 | |
10481 | ||
cdd50823 | 10482 | |
426fc742 PR |
10483 | |
10484 | ||
b6d7a484 AK |
10485 | |
10486 | ||
bf09a320 | 10487 | |
e587cb6a | 10488 | |
b559a1e6 | 10489 | |
4417a8bd | 10490 | |
f61cacad | 10491 | |
68f2de6d AK |
10492 | |
10493 | ||
80992638 | 10494 | ################################################################################ |
05fb5158 | 10495 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10496 | |
ad6254c5 | 10497 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10498 | # This file is a shell script that caches the results of configure |
10499 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10500 | # scripts and configure runs, see configure's option --config-cache. |
10501 | # It is not useful on other systems. If it contains results you don't | |
10502 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10503 | # |
ad6254c5 AK |
10504 | # config.status only pays attention to the cache file if you give it |
10505 | # the --recheck option to rerun configure. | |
795ca3e5 | 10506 | # |
ad6254c5 AK |
10507 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10508 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10509 | # following values. | |
10510 | ||
10511 | _ACEOF | |
10512 | ||
795ca3e5 AK |
10513 | # The following way of writing the cache mishandles newlines in values, |
10514 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10515 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10516 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10517 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10518 | ( |
10519 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10520 | eval ac_val=\$$ac_var | |
10521 | case $ac_val in #( | |
10522 | *${as_nl}*) | |
10523 | case $ac_var in #( | |
f11781c5 | 10524 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10525 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10526 | esac |
10527 | case $ac_var in #( | |
10528 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10529 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10530 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10531 | esac ;; |
10532 | esac | |
10533 | done | |
10534 | ||
ad6254c5 | 10535 | (set) 2>&1 | |
7a197a62 AK |
10536 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10537 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10538 | # `set' does not quote correctly, so add quotes: double-quote |
10539 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10540 | sed -n \ |
8a2fc586 AK |
10541 | "s/'/'\\\\''/g; |
10542 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10543 | ;; #( |
ad6254c5 AK |
10544 | *) |
10545 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10546 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10547 | ;; |
7a197a62 AK |
10548 | esac | |
10549 | sort | |
10550 | ) | | |
ad6254c5 | 10551 | sed ' |
7a197a62 | 10552 | /^ac_cv_env_/b end |
ad6254c5 | 10553 | t clear |
7a197a62 | 10554 | :clear |
ad6254c5 AK |
10555 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10556 | t end | |
7a197a62 AK |
10557 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10558 | :end' >>confcache | |
10559 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10560 | if test -w "$cache_file"; then | |
10561 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10563 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10564 | cat confcache >$cache_file |
795ca3e5 | 10565 | else |
f11781c5 | 10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10567 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10568 | fi |
10569 | fi | |
10570 | rm -f confcache | |
10571 | ||
795ca3e5 AK |
10572 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10573 | # Let make expand exec_prefix. | |
10574 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10575 | ||
72b2cb61 | 10576 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10577 | |
10578 | ac_libobjs= | |
10579 | ac_ltlibobjs= | |
f11781c5 | 10580 | U= |
ad6254c5 AK |
10581 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10582 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10583 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10584 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10585 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10586 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10587 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10588 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10589 | done |
10590 | LIBOBJS=$ac_libobjs | |
80992638 | 10591 | |
ad6254c5 AK |
10592 | LTLIBOBJS=$ac_ltlibobjs |
10593 | ||
10594 | ||
10595 | ||
10596 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10597 | ac_write_fail=0 |
ad6254c5 AK |
10598 | ac_clean_files_save=$ac_clean_files |
10599 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10601 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10602 | as_write_fail=0 |
10603 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10604 | #! $SHELL |
10605 | # Generated by $as_me. | |
795ca3e5 | 10606 | # Run this file to recreate the current configuration. |
795ca3e5 | 10607 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10608 | # configure, is in config.log if it exists. |
10609 | ||
10610 | debug=false | |
10611 | ac_cs_recheck=false | |
10612 | ac_cs_silent=false | |
ad6254c5 | 10613 | |
f11781c5 AK |
10614 | SHELL=\${CONFIG_SHELL-$SHELL} |
10615 | export SHELL | |
10616 | _ASEOF | |
10617 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10618 | ## -------------------- ## | |
10619 | ## M4sh Initialization. ## | |
10620 | ## -------------------- ## | |
ad6254c5 | 10621 | |
25fbec5b AK |
10622 | # Be more Bourne compatible |
10623 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10624 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10625 | emulate sh |
10626 | NULLCMD=: | |
ec6a6fbe | 10627 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10628 | # is contrary to our usage. Disable this feature. |
10629 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10630 | setopt NO_GLOB_SUBST |
10631 | else | |
f11781c5 AK |
10632 | case `(set -o) 2>/dev/null` in #( |
10633 | *posix*) : | |
10634 | set -o posix ;; #( | |
10635 | *) : | |
10636 | ;; | |
25fbec5b | 10637 | esac |
7a197a62 | 10638 | fi |
25fbec5b AK |
10639 | |
10640 | ||
ec6a6fbe AK |
10641 | as_nl=' |
10642 | ' | |
10643 | export as_nl | |
10644 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10645 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10646 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10647 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10648 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10649 | # but without wasting forks for bash or zsh. | |
10650 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10651 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10652 | as_echo='print -r --' | |
10653 | as_echo_n='print -rn --' | |
10654 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10655 | as_echo='printf %s\n' |
10656 | as_echo_n='printf %s' | |
10657 | else | |
10658 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10659 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10660 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10661 | else |
ec6a6fbe AK |
10662 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10663 | as_echo_n_body='eval | |
10664 | arg=$1; | |
f11781c5 | 10665 | case $arg in #( |
ec6a6fbe AK |
10666 | *"$as_nl"*) |
10667 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10668 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10669 | esac; | |
10670 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10671 | ' | |
10672 | export as_echo_n_body | |
10673 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10674 | fi |
ec6a6fbe AK |
10675 | export as_echo_body |
10676 | as_echo='sh -c $as_echo_body as_echo' | |
10677 | fi | |
10678 | ||
10679 | # The user is always right. | |
10680 | if test "${PATH_SEPARATOR+set}" != set; then | |
10681 | PATH_SEPARATOR=: | |
10682 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10683 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10684 | PATH_SEPARATOR=';' | |
10685 | } | |
ad6254c5 AK |
10686 | fi |
10687 | ||
ad6254c5 | 10688 | |
7a197a62 AK |
10689 | # IFS |
10690 | # We need space, tab and new line, in precisely that order. Quoting is | |
10691 | # there to prevent editors from complaining about space-tab. | |
10692 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10693 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10694 | IFS=" "" $as_nl" |
10695 | ||
10696 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10697 | case $0 in #(( |
7a197a62 AK |
10698 | *[\\/]* ) as_myself=$0 ;; |
10699 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10700 | for as_dir in $PATH | |
10701 | do | |
10702 | IFS=$as_save_IFS | |
10703 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10704 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10705 | done | |
7a197a62 AK |
10706 | IFS=$as_save_IFS |
10707 | ||
10708 | ;; | |
10709 | esac | |
10710 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10711 | # in which case we are not to be found in the path. | |
10712 | if test "x$as_myself" = x; then | |
10713 | as_myself=$0 | |
10714 | fi | |
10715 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10716 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10717 | exit 1 |
7a197a62 AK |
10718 | fi |
10719 | ||
f11781c5 AK |
10720 | # Unset variables that we do not need and which cause bugs (e.g. in |
10721 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10722 | # suppresses any "Segmentation fault" message there. '((' could | |
10723 | # trigger a bug in pdksh 5.2.14. | |
10724 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10725 | do eval test x\${$as_var+set} = xset \ | |
10726 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10727 | done |
ad6254c5 AK |
10728 | PS1='$ ' |
10729 | PS2='> ' | |
10730 | PS4='+ ' | |
10731 | ||
10732 | # NLS nuisances. | |
ec6a6fbe AK |
10733 | LC_ALL=C |
10734 | export LC_ALL | |
10735 | LANGUAGE=C | |
10736 | export LANGUAGE | |
8106cdd5 | 10737 | |
f11781c5 AK |
10738 | # CDPATH. |
10739 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10740 | ||
10741 | ||
10742 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10743 | # ---------------------------------------- | |
10744 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10745 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10746 | # script with STATUS, using 1 if that was 0. | |
10747 | as_fn_error () | |
10748 | { | |
10749 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10750 | if test "$4"; then | |
10751 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10752 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10753 | fi | |
10754 | $as_echo "$as_me: error: $2" >&2 | |
10755 | as_fn_exit $as_status | |
10756 | } # as_fn_error | |
10757 | ||
10758 | ||
10759 | # as_fn_set_status STATUS | |
10760 | # ----------------------- | |
10761 | # Set $? to STATUS, without forking. | |
10762 | as_fn_set_status () | |
10763 | { | |
10764 | return $1 | |
10765 | } # as_fn_set_status | |
10766 | ||
10767 | # as_fn_exit STATUS | |
10768 | # ----------------- | |
10769 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10770 | as_fn_exit () | |
10771 | { | |
10772 | set +e | |
10773 | as_fn_set_status $1 | |
10774 | exit $1 | |
10775 | } # as_fn_exit | |
10776 | ||
10777 | # as_fn_unset VAR | |
10778 | # --------------- | |
10779 | # Portably unset VAR. | |
10780 | as_fn_unset () | |
10781 | { | |
10782 | { eval $1=; unset $1;} | |
10783 | } | |
10784 | as_unset=as_fn_unset | |
10785 | # as_fn_append VAR VALUE | |
10786 | # ---------------------- | |
10787 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10788 | # advantage of any shell optimizations that allow amortized linear growth over | |
10789 | # repeated appends, instead of the typical quadratic growth present in naive | |
10790 | # implementations. | |
10791 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10792 | eval 'as_fn_append () | |
10793 | { | |
10794 | eval $1+=\$2 | |
10795 | }' | |
10796 | else | |
10797 | as_fn_append () | |
10798 | { | |
10799 | eval $1=\$$1\$2 | |
10800 | } | |
10801 | fi # as_fn_append | |
10802 | ||
10803 | # as_fn_arith ARG... | |
10804 | # ------------------ | |
10805 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10806 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10807 | # must be portable across $(()) and expr. | |
10808 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10809 | eval 'as_fn_arith () | |
10810 | { | |
10811 | as_val=$(( $* )) | |
10812 | }' | |
10813 | else | |
10814 | as_fn_arith () | |
10815 | { | |
10816 | as_val=`expr "$@" || test $? -eq 1` | |
10817 | } | |
10818 | fi # as_fn_arith | |
10819 | ||
10820 | ||
7a197a62 AK |
10821 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10822 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10823 | as_expr=expr |
10824 | else | |
10825 | as_expr=false | |
10826 | fi | |
8106cdd5 | 10827 | |
7a197a62 | 10828 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10829 | as_basename=basename |
10830 | else | |
10831 | as_basename=false | |
10832 | fi | |
10833 | ||
f11781c5 AK |
10834 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10835 | as_dirname=dirname | |
10836 | else | |
10837 | as_dirname=false | |
10838 | fi | |
ad6254c5 | 10839 | |
7a197a62 | 10840 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10841 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10842 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10843 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10844 | $as_echo X/"$0" | |
7a197a62 AK |
10845 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10846 | s//\1/ | |
10847 | q | |
10848 | } | |
10849 | /^X\/\(\/\/\)$/{ | |
10850 | s//\1/ | |
10851 | q | |
10852 | } | |
10853 | /^X\/\(\/\).*/{ | |
10854 | s//\1/ | |
10855 | q | |
10856 | } | |
10857 | s/.*/./; q'` | |
ad6254c5 | 10858 | |
f11781c5 AK |
10859 | # Avoid depending upon Character Ranges. |
10860 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10861 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10862 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10863 | as_cr_digits='0123456789' | |
10864 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10865 | |
10866 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10867 | case `echo -n x` in #((((( |
7a197a62 | 10868 | -n*) |
f11781c5 | 10869 | case `echo 'xy\c'` in |
7a197a62 | 10870 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10871 | xy) ECHO_C='\c';; |
10872 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10873 | ECHO_T=' ';; | |
7a197a62 AK |
10874 | esac;; |
10875 | *) | |
10876 | ECHO_N='-n';; | |
ad6254c5 | 10877 | esac |
80992638 | 10878 | |
ad6254c5 | 10879 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10880 | if test -d conf$$.dir; then |
10881 | rm -f conf$$.dir/conf$$.file | |
10882 | else | |
10883 | rm -f conf$$.dir | |
ec6a6fbe AK |
10884 | mkdir conf$$.dir 2>/dev/null |
10885 | fi | |
10886 | if (echo >conf$$.file) 2>/dev/null; then | |
10887 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10888 | as_ln_s='ln -s' | |
10889 | # ... but there are two gotchas: | |
10890 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10891 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10892 | # In both cases, we have to default to `cp -p'. | |
10893 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10894 | as_ln_s='cp -p' | |
10895 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10896 | as_ln_s=ln | |
10897 | else | |
ad6254c5 | 10898 | as_ln_s='cp -p' |
ec6a6fbe | 10899 | fi |
ad6254c5 AK |
10900 | else |
10901 | as_ln_s='cp -p' | |
10902 | fi | |
7a197a62 AK |
10903 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10904 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10905 | |
f11781c5 AK |
10906 | |
10907 | # as_fn_mkdir_p | |
10908 | # ------------- | |
10909 | # Create "$as_dir" as a directory, including parents if necessary. | |
10910 | as_fn_mkdir_p () | |
10911 | { | |
10912 | ||
10913 | case $as_dir in #( | |
10914 | -*) as_dir=./$as_dir;; | |
10915 | esac | |
10916 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10917 | as_dirs= | |
10918 | while :; do | |
10919 | case $as_dir in #( | |
10920 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10921 | *) as_qdir=$as_dir;; | |
10922 | esac | |
10923 | as_dirs="'$as_qdir' $as_dirs" | |
10924 | as_dir=`$as_dirname -- "$as_dir" || | |
10925 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10926 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10927 | X"$as_dir" : 'X\(//\)$' \| \ | |
10928 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10929 | $as_echo X"$as_dir" | | |
10930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10931 | s//\1/ | |
10932 | q | |
10933 | } | |
10934 | /^X\(\/\/\)[^/].*/{ | |
10935 | s//\1/ | |
10936 | q | |
10937 | } | |
10938 | /^X\(\/\/\)$/{ | |
10939 | s//\1/ | |
10940 | q | |
10941 | } | |
10942 | /^X\(\/\).*/{ | |
10943 | s//\1/ | |
10944 | q | |
10945 | } | |
10946 | s/.*/./; q'` | |
10947 | test -d "$as_dir" && break | |
10948 | done | |
10949 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10950 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10951 | ||
10952 | ||
10953 | } # as_fn_mkdir_p | |
ad6254c5 | 10954 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10955 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10956 | else |
8a2fc586 | 10957 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10958 | as_mkdir_p=false |
10959 | fi | |
10960 | ||
25fbec5b AK |
10961 | if test -x / >/dev/null 2>&1; then |
10962 | as_test_x='test -x' | |
7a197a62 | 10963 | else |
25fbec5b AK |
10964 | if ls -dL / >/dev/null 2>&1; then |
10965 | as_ls_L_option=L | |
10966 | else | |
10967 | as_ls_L_option= | |
10968 | fi | |
10969 | as_test_x=' | |
10970 | eval sh -c '\'' | |
10971 | if test -d "$1"; then | |
ec6a6fbe | 10972 | test -d "$1/."; |
25fbec5b | 10973 | else |
f11781c5 | 10974 | case $1 in #( |
ec6a6fbe | 10975 | -*)set "./$1";; |
25fbec5b | 10976 | esac; |
f11781c5 | 10977 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10978 | ???[sx]*):;;*)false;;esac;fi |
10979 | '\'' sh | |
10980 | ' | |
7a197a62 | 10981 | fi |
25fbec5b | 10982 | as_executable_p=$as_test_x |
ad6254c5 AK |
10983 | |
10984 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10985 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10986 | |
10987 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10988 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10989 | |
10990 | ||
ad6254c5 | 10991 | exec 6>&1 |
f11781c5 AK |
10992 | ## ----------------------------------- ## |
10993 | ## Main body of $CONFIG_STATUS script. ## | |
10994 | ## ----------------------------------- ## | |
10995 | _ASEOF | |
10996 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10997 | |
f11781c5 AK |
10998 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10999 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 11000 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11001 | # values after options handling. |
11002 | ac_log=" | |
ad6254c5 | 11003 | This file was extended by $as_me, which was |
f11781c5 | 11004 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
11005 | |
11006 | CONFIG_FILES = $CONFIG_FILES | |
11007 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11008 | CONFIG_LINKS = $CONFIG_LINKS | |
11009 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11010 | $ $0 $@ | |
11011 | ||
7a197a62 AK |
11012 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11013 | " | |
11014 | ||
ad6254c5 AK |
11015 | _ACEOF |
11016 | ||
ec6a6fbe AK |
11017 | case $ac_config_files in *" |
11018 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11019 | esac | |
11020 | ||
11021 | case $ac_config_headers in *" | |
11022 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11023 | esac | |
11024 | ||
11025 | ||
11026 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 11027 | # Files that config.status was made for. |
68f2de6d AK |
11028 | config_files="$ac_config_files" |
11029 | config_headers="$ac_config_headers" | |
ad6254c5 | 11030 | |
7a197a62 | 11031 | _ACEOF |
ad6254c5 | 11032 | |
ec6a6fbe | 11033 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 11034 | ac_cs_usage="\ |
f11781c5 AK |
11035 | \`$as_me' instantiates files and other configuration actions |
11036 | from templates according to the current configuration. Unless the files | |
11037 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 11038 | |
f11781c5 | 11039 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
11040 | |
11041 | -h, --help print this help, then exit | |
25fbec5b | 11042 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 11043 | --config print configuration, then exit |
ec6a6fbe AK |
11044 | -q, --quiet, --silent |
11045 | do not print progress messages | |
ad6254c5 AK |
11046 | -d, --debug don't remove temporary files |
11047 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
11048 | --file=FILE[:TEMPLATE] |
11049 | instantiate the configuration file FILE | |
11050 | --header=FILE[:TEMPLATE] | |
11051 | instantiate the configuration header FILE | |
ad6254c5 AK |
11052 | |
11053 | Configuration files: | |
11054 | $config_files | |
11055 | ||
72b2cb61 AK |
11056 | Configuration headers: |
11057 | $config_headers | |
11058 | ||
f11781c5 | 11059 | Report bugs to the package provider." |
ad6254c5 | 11060 | |
7a197a62 | 11061 | _ACEOF |
ec6a6fbe | 11062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 11063 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
11064 | ac_cs_version="\\ |
11065 | config.status | |
f11781c5 AK |
11066 | configured by $0, generated by GNU Autoconf 2.66, |
11067 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 11068 | |
f11781c5 | 11069 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
11070 | This config.status script is free software; the Free Software Foundation |
11071 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11072 | |
11073 | ac_pwd='$ac_pwd' | |
11074 | srcdir='$srcdir' | |
11075 | INSTALL='$INSTALL' | |
fddafd51 | 11076 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
11077 | AWK='$AWK' |
11078 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
11079 | _ACEOF |
11080 | ||
ec6a6fbe AK |
11081 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11082 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
11083 | ac_need_defaults=: |
11084 | while test $# != 0 | |
11085 | do | |
11086 | case $1 in | |
11087 | --*=*) | |
7a197a62 AK |
11088 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11089 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11090 | ac_shift=: |
11091 | ;; | |
7a197a62 | 11092 | *) |
ad6254c5 AK |
11093 | ac_option=$1 |
11094 | ac_optarg=$2 | |
11095 | ac_shift=shift | |
11096 | ;; | |
ad6254c5 AK |
11097 | esac |
11098 | ||
11099 | case $ac_option in | |
11100 | # Handling of the options. | |
ad6254c5 AK |
11101 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11102 | ac_cs_recheck=: ;; | |
7a197a62 | 11103 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 11104 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
11105 | --config | --confi | --conf | --con | --co | --c ) |
11106 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 11107 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11108 | debug=: ;; |
11109 | --file | --fil | --fi | --f ) | |
11110 | $ac_shift | |
ec6a6fbe AK |
11111 | case $ac_optarg in |
11112 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11113 | esac | |
f11781c5 | 11114 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11115 | ac_need_defaults=false;; |
11116 | --header | --heade | --head | --hea ) | |
11117 | $ac_shift | |
ec6a6fbe AK |
11118 | case $ac_optarg in |
11119 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11120 | esac | |
f11781c5 | 11121 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11122 | ac_need_defaults=false;; |
7a197a62 AK |
11123 | --he | --h) |
11124 | # Conflict between --help and --header | |
f11781c5 AK |
11125 | as_fn_error $? "ambiguous option: \`$1' |
11126 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11127 | --help | --hel | -h ) |
ec6a6fbe | 11128 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11129 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11130 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11131 | ac_cs_silent=: ;; | |
11132 | ||
11133 | # This is an error. | |
f11781c5 AK |
11134 | -*) as_fn_error $? "unrecognized option: \`$1' |
11135 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11136 | |
f11781c5 | 11137 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11138 | ac_need_defaults=false ;; |
ad6254c5 AK |
11139 | |
11140 | esac | |
11141 | shift | |
11142 | done | |
11143 | ||
11144 | ac_configure_extra_args= | |
11145 | ||
11146 | if $ac_cs_silent; then | |
11147 | exec 6>/dev/null | |
11148 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11149 | fi | |
11150 | ||
11151 | _ACEOF | |
ec6a6fbe | 11152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11153 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11154 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11155 | shift | |
11156 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11157 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11158 | export CONFIG_SHELL |
ec6a6fbe | 11159 | exec "\$@" |
ad6254c5 AK |
11160 | fi |
11161 | ||
11162 | _ACEOF | |
ec6a6fbe | 11163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11164 | exec 5>>config.log |
11165 | { | |
11166 | echo | |
11167 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11168 | ## Running $as_me. ## | |
11169 | _ASBOX | |
ec6a6fbe | 11170 | $as_echo "$ac_log" |
7a197a62 | 11171 | } >&5 |
ad6254c5 | 11172 | |
7a197a62 | 11173 | _ACEOF |
ec6a6fbe | 11174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11175 | _ACEOF |
ad6254c5 | 11176 | |
ec6a6fbe | 11177 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11178 | |
11179 | # Handling of arguments. | |
ad6254c5 AK |
11180 | for ac_config_target in $ac_config_targets |
11181 | do | |
7a197a62 AK |
11182 | case $ac_config_target in |
11183 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11184 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11185 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11186 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11187 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11188 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11189 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11190 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11191 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11192 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 11193 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
11194 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11195 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
2bc1d759 | 11196 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; |
cdd50823 | 11197 | "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;; |
7a197a62 | 11198 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11199 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11200 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11201 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11202 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11203 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11204 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11205 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11206 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11207 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11208 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
40dbaac8 | 11209 | "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;; |
7a197a62 | 11210 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
3ba4a195 | 11211 | "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;; |
7126d8c2 AK |
11212 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; |
11213 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
11214 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
93bd259b AK |
11215 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11216 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11217 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11218 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11219 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11220 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11221 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11222 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
a30491b2 | 11223 | "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;; |
dac3c36f | 11224 | "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;; |
da532741 | 11225 | "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;; |
595eaf92 | 11226 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
11227 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11228 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
4417a8bd | 11229 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; |
7a197a62 | 11230 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11231 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11232 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
9493f1df | 11233 | "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;; |
7a197a62 | 11234 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11235 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11236 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11237 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11238 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11239 | |
f11781c5 | 11240 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11241 | esac |
ad6254c5 AK |
11242 | done |
11243 | ||
7a197a62 | 11244 | |
ad6254c5 AK |
11245 | # If the user did not use the arguments to specify the items to instantiate, |
11246 | # then the envvar interface is used. Set only those that are not. | |
11247 | # We use the long form for the default assignment because of an extremely | |
11248 | # bizarre bug on SunOS 4.1.3. | |
11249 | if $ac_need_defaults; then | |
11250 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11251 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11252 | fi |
11253 | ||
11254 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11255 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11256 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11257 | # Hook for its removal unless debugging. |
11258 | # Note that there is a small window in which the directory will not be cleaned: | |
11259 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11260 | $debug || |
11261 | { | |
7a197a62 AK |
11262 | tmp= |
11263 | trap 'exit_status=$? | |
11264 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11265 | ' 0 | |
f11781c5 | 11266 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11267 | } |
ad6254c5 AK |
11268 | # Create a (secure) tmp directory for tmp files. |
11269 | ||
11270 | { | |
7a197a62 | 11271 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11272 | test -n "$tmp" && test -d "$tmp" |
11273 | } || | |
11274 | { | |
7a197a62 AK |
11275 | tmp=./conf$$-$RANDOM |
11276 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11277 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11278 | |
ec6a6fbe AK |
11279 | # Set up the scripts for CONFIG_FILES section. |
11280 | # No need to generate them if there are no CONFIG_FILES. | |
11281 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11282 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11283 | |
68f2de6d | 11284 | |
f11781c5 AK |
11285 | ac_cr=`echo X | tr X '\015'` |
11286 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11287 | # But we know of no other shell where ac_cr would be empty at this | |
11288 | # point, so we can use a bashism as a fallback. | |
11289 | if test "x$ac_cr" = x; then | |
11290 | eval ac_cr=\$\'\\r\' | |
11291 | fi | |
ec6a6fbe AK |
11292 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11293 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11294 | ac_cs_awk_cr='\\r' | |
11295 | else | |
11296 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11297 | fi |
7a197a62 | 11298 | |
ec6a6fbe | 11299 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11300 | _ACEOF |
7a197a62 | 11301 | |
8106cdd5 | 11302 | |
ec6a6fbe AK |
11303 | { |
11304 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11305 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11306 | echo "_ACEOF" | |
11307 | } >conf$$subs.sh || | |
f11781c5 AK |
11308 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11309 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11310 | ac_delim='%!_!# ' |
11311 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11312 | . ./conf$$subs.sh || |
f11781c5 | 11313 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11314 | |
11315 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11316 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11317 | break |
11318 | elif $ac_last_try; then | |
f11781c5 | 11319 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11320 | else |
11321 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11322 | fi | |
11323 | done | |
ec6a6fbe AK |
11324 | rm -f conf$$subs.sh |
11325 | ||
11326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11327 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11328 | _ACEOF | |
11329 | sed -n ' | |
11330 | h | |
11331 | s/^/S["/; s/!.*/"]=/ | |
11332 | p | |
11333 | g | |
11334 | s/^[^!]*!// | |
11335 | :repl | |
11336 | t repl | |
11337 | s/'"$ac_delim"'$// | |
11338 | t delim | |
11339 | :nl | |
11340 | h | |
f11781c5 | 11341 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11342 | t more1 |
11343 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11344 | p | |
11345 | n | |
11346 | b repl | |
11347 | :more1 | |
11348 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11349 | p | |
11350 | g | |
11351 | s/.\{148\}// | |
11352 | t nl | |
11353 | :delim | |
11354 | h | |
f11781c5 | 11355 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11356 | t more2 |
11357 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11358 | p | |
11359 | b | |
11360 | :more2 | |
11361 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11362 | p | |
11363 | g | |
11364 | s/.\{148\}// | |
11365 | t delim | |
11366 | ' <conf$$subs.awk | sed ' | |
11367 | /^[^""]/{ | |
11368 | N | |
11369 | s/\n// | |
11370 | } | |
11371 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11372 | rm -f conf$$subs.awk | |
11373 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11374 | _ACAWK | |
11375 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11376 | for (key in S) S_is_set[key] = 1 | |
11377 | FS = "\a" | |
7a197a62 | 11378 | |
ec6a6fbe AK |
11379 | } |
11380 | { | |
11381 | line = $ 0 | |
11382 | nfields = split(line, field, "@") | |
11383 | substed = 0 | |
11384 | len = length(field[1]) | |
11385 | for (i = 2; i < nfields; i++) { | |
11386 | key = field[i] | |
11387 | keylen = length(key) | |
11388 | if (S_is_set[key]) { | |
11389 | value = S[key] | |
11390 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11391 | len += length(value) + length(field[++i]) | |
11392 | substed = 1 | |
11393 | } else | |
11394 | len += 1 + keylen | |
11395 | } | |
11396 | ||
11397 | print line | |
11398 | } | |
fddafd51 | 11399 | |
ec6a6fbe | 11400 | _ACAWK |
1995c9ff | 11401 | _ACEOF |
ec6a6fbe AK |
11402 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11403 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11404 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11405 | else | |
11406 | cat | |
11407 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11408 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11409 | _ACEOF |
11410 | ||
f11781c5 AK |
11411 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11412 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11413 | # trailing colons and then remove the whole line if VPATH becomes empty |
11414 | # (actually we leave an empty line to preserve line numbers). | |
11415 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11416 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11417 | h | |
11418 | s/// | |
11419 | s/^/:/ | |
11420 | s/[ ]*$/:/ | |
11421 | s/:\$(srcdir):/:/g | |
11422 | s/:\${srcdir}:/:/g | |
11423 | s/:@srcdir@:/:/g | |
11424 | s/^:*// | |
7a197a62 | 11425 | s/:*$// |
f11781c5 AK |
11426 | x |
11427 | s/\(=[ ]*\).*/\1/ | |
11428 | G | |
11429 | s/\n// | |
7a197a62 AK |
11430 | s/^[^=]*=[ ]*$// |
11431 | }' | |
11432 | fi | |
11433 | ||
ec6a6fbe | 11434 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11435 | fi # test -n "$CONFIG_FILES" |
11436 | ||
ec6a6fbe AK |
11437 | # Set up the scripts for CONFIG_HEADERS section. |
11438 | # No need to generate them if there are no CONFIG_HEADERS. | |
11439 | # This happens for instance with `./config.status Makefile'. | |
11440 | if test -n "$CONFIG_HEADERS"; then | |
11441 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11442 | BEGIN { | |
11443 | _ACEOF | |
11444 | ||
11445 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11446 | # here-document in config.status, that substitutes the proper values into | |
11447 | # config.h.in to produce config.h. | |
11448 | ||
11449 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11450 | # handling of long lines. | |
11451 | ac_delim='%!_!# ' | |
11452 | for ac_last_try in false false :; do | |
11453 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11454 | if test -z "$ac_t"; then | |
11455 | break | |
11456 | elif $ac_last_try; then | |
f11781c5 | 11457 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11458 | else |
11459 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11460 | fi | |
11461 | done | |
11462 | ||
11463 | # For the awk script, D is an array of macro values keyed by name, | |
11464 | # likewise P contains macro parameters if any. Preserve backslash | |
11465 | # newline sequences. | |
11466 | ||
11467 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11468 | sed -n ' | |
11469 | s/.\{148\}/&'"$ac_delim"'/g | |
11470 | t rset | |
11471 | :rset | |
11472 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11473 | t def | |
11474 | d | |
11475 | :def | |
11476 | s/\\$// | |
11477 | t bsnl | |
11478 | s/["\\]/\\&/g | |
11479 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11480 | D["\1"]=" \3"/p | |
11481 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11482 | d | |
11483 | :bsnl | |
11484 | s/["\\]/\\&/g | |
11485 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11486 | D["\1"]=" \3\\\\\\n"\\/p | |
11487 | t cont | |
11488 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11489 | t cont | |
11490 | d | |
11491 | :cont | |
11492 | n | |
11493 | s/.\{148\}/&'"$ac_delim"'/g | |
11494 | t clear | |
11495 | :clear | |
11496 | s/\\$// | |
11497 | t bsnlc | |
11498 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11499 | d | |
11500 | :bsnlc | |
11501 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11502 | b cont | |
11503 | ' <confdefs.h | sed ' | |
11504 | s/'"$ac_delim"'/"\\\ | |
11505 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11506 | ||
11507 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11508 | for (key in D) D_is_set[key] = 1 | |
11509 | FS = "\a" | |
11510 | } | |
11511 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11512 | line = \$ 0 | |
11513 | split(line, arg, " ") | |
11514 | if (arg[1] == "#") { | |
11515 | defundef = arg[2] | |
11516 | mac1 = arg[3] | |
11517 | } else { | |
11518 | defundef = substr(arg[1], 2) | |
11519 | mac1 = arg[2] | |
11520 | } | |
11521 | split(mac1, mac2, "(") #) | |
11522 | macro = mac2[1] | |
11523 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11524 | if (D_is_set[macro]) { | |
11525 | # Preserve the white space surrounding the "#". | |
11526 | print prefix "define", macro P[macro] D[macro] | |
11527 | next | |
11528 | } else { | |
11529 | # Replace #undef with comments. This is necessary, for example, | |
11530 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11531 | # on some systems where configure will not decide to define it. | |
11532 | if (defundef == "undef") { | |
11533 | print "/*", prefix defundef, macro, "*/" | |
11534 | next | |
11535 | } | |
11536 | } | |
11537 | } | |
11538 | { print } | |
11539 | _ACAWK | |
11540 | _ACEOF | |
11541 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11542 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11543 | fi # test -n "$CONFIG_HEADERS" |
11544 | ||
7a197a62 | 11545 | |
ec6a6fbe AK |
11546 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11547 | shift | |
11548 | for ac_tag | |
7a197a62 AK |
11549 | do |
11550 | case $ac_tag in | |
11551 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11552 | esac | |
11553 | case $ac_mode$ac_tag in | |
11554 | :[FHL]*:*);; | |
f11781c5 | 11555 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11556 | :[FH]-) ac_tag=-:-;; |
11557 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11558 | esac | |
11559 | ac_save_IFS=$IFS | |
11560 | IFS=: | |
11561 | set x $ac_tag | |
11562 | IFS=$ac_save_IFS | |
11563 | shift | |
11564 | ac_file=$1 | |
11565 | shift | |
11566 | ||
11567 | case $ac_mode in | |
11568 | :L) ac_source=$1;; | |
11569 | :[FH]) | |
11570 | ac_file_inputs= | |
11571 | for ac_f | |
11572 | do | |
11573 | case $ac_f in | |
11574 | -) ac_f="$tmp/stdin";; | |
11575 | *) # Look for the file first in the build tree, then in the source tree | |
11576 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11577 | # because $ac_f cannot contain `:'. | |
11578 | test -f "$ac_f" || | |
11579 | case $ac_f in | |
11580 | [\\/$]*) false;; | |
11581 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11582 | esac || | |
f11781c5 | 11583 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11584 | esac |
ec6a6fbe | 11585 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11586 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11587 | done |
11588 | ||
11589 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11590 | # use $as_me), people would be surprised to read: | |
11591 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11592 | configure_input='Generated from '` |
11593 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11594 | `' by configure.' | |
7a197a62 AK |
11595 | if test x"$ac_file" != x-; then |
11596 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11597 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11598 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11599 | fi |
ec6a6fbe AK |
11600 | # Neutralize special characters interpreted by sed in replacement strings. |
11601 | case $configure_input in #( | |
11602 | *\&* | *\|* | *\\* ) | |
11603 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11604 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11605 | *) ac_sed_conf_input=$configure_input;; | |
11606 | esac | |
7a197a62 AK |
11607 | |
11608 | case $ac_tag in | |
ec6a6fbe | 11609 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11610 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11611 | esac |
11612 | ;; | |
80992638 | 11613 | esac |
8106cdd5 | 11614 | |
7a197a62 | 11615 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11616 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11617 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11618 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11619 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11620 | $as_echo X"$ac_file" | |
7a197a62 AK |
11621 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11622 | s//\1/ | |
11623 | q | |
11624 | } | |
11625 | /^X\(\/\/\)[^/].*/{ | |
11626 | s//\1/ | |
11627 | q | |
11628 | } | |
11629 | /^X\(\/\/\)$/{ | |
11630 | s//\1/ | |
11631 | q | |
11632 | } | |
11633 | /^X\(\/\).*/{ | |
11634 | s//\1/ | |
11635 | q | |
11636 | } | |
11637 | s/.*/./; q'` | |
f11781c5 | 11638 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11639 | ac_builddir=. |
11640 | ||
7a197a62 AK |
11641 | case "$ac_dir" in |
11642 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11643 | *) | |
ec6a6fbe | 11644 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11645 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11646 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11647 | case $ac_top_builddir_sub in |
11648 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11649 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11650 | esac ;; | |
11651 | esac | |
11652 | ac_abs_top_builddir=$ac_pwd | |
11653 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11654 | # for backward compatibility: | |
11655 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11656 | |
11657 | case $srcdir in | |
7a197a62 | 11658 | .) # We are building in place. |
ad6254c5 | 11659 | ac_srcdir=. |
7a197a62 AK |
11660 | ac_top_srcdir=$ac_top_builddir_sub |
11661 | ac_abs_top_srcdir=$ac_pwd ;; | |
11662 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11663 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11664 | ac_top_srcdir=$srcdir |
11665 | ac_abs_top_srcdir=$srcdir ;; | |
11666 | *) # Relative name. | |
11667 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11668 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11669 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11670 | esac |
7a197a62 | 11671 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11672 | |
ad6254c5 | 11673 | |
7a197a62 AK |
11674 | case $ac_mode in |
11675 | :F) | |
11676 | # | |
11677 | # CONFIG_FILE | |
11678 | # | |
ad6254c5 AK |
11679 | |
11680 | case $INSTALL in | |
11681 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11682 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11683 | esac |
fddafd51 ZK |
11684 | ac_MKDIR_P=$MKDIR_P |
11685 | case $MKDIR_P in | |
11686 | [\\/$]* | ?:[\\/]* ) ;; | |
11687 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11688 | esac | |
7a197a62 | 11689 | _ACEOF |
795ca3e5 | 11690 | |
ec6a6fbe | 11691 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11692 | # If the template does not know about datarootdir, expand it. |
11693 | # FIXME: This hack should be removed a few years after 2.60. | |
11694 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11695 | ac_sed_dataroot=' |
11696 | /datarootdir/ { | |
7a197a62 AK |
11697 | p |
11698 | q | |
11699 | } | |
11700 | /@datadir@/p | |
11701 | /@docdir@/p | |
11702 | /@infodir@/p | |
11703 | /@localedir@/p | |
f11781c5 | 11704 | /@mandir@/p' |
ec6a6fbe | 11705 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11706 | *datarootdir*) ac_datarootdir_seen=yes;; |
11707 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11709 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11710 | _ACEOF |
ec6a6fbe | 11711 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11712 | ac_datarootdir_hack=' |
11713 | s&@datadir@&$datadir&g | |
11714 | s&@docdir@&$docdir&g | |
11715 | s&@infodir@&$infodir&g | |
11716 | s&@localedir@&$localedir&g | |
11717 | s&@mandir@&$mandir&g | |
f11781c5 | 11718 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11719 | esac |
11720 | _ACEOF | |
11721 | ||
11722 | # Neutralize VPATH when `$srcdir' = `.'. | |
11723 | # Shell code in configure.ac might set extrasub. | |
11724 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11725 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11726 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11727 | $extrasub |
11728 | _ACEOF | |
ec6a6fbe | 11729 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11730 | :t |
11731 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11732 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11733 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11734 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11735 | s&@srcdir@&$ac_srcdir&;t t |
11736 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11737 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11738 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11739 | s&@builddir@&$ac_builddir&;t t | |
11740 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11741 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11742 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11743 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11744 | $ac_datarootdir_hack |
ec6a6fbe AK |
11745 | " |
11746 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11747 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11748 | |
11749 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11750 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11751 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11753 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11754 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11755 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11756 | |
11757 | rm -f "$tmp/stdin" | |
72b2cb61 | 11758 | case $ac_file in |
ec6a6fbe AK |
11759 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11760 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11761 | esac \ | |
f11781c5 | 11762 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11763 | ;; |
11764 | :H) | |
11765 | # | |
11766 | # CONFIG_HEADER | |
11767 | # | |
72b2cb61 | 11768 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11769 | { |
11770 | $as_echo "/* $configure_input */" \ | |
11771 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11772 | } >"$tmp/config.h" \ | |
f11781c5 | 11773 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11774 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11776 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11777 | else |
ec6a6fbe AK |
11778 | rm -f "$ac_file" |
11779 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11780 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11781 | fi |
11782 | else | |
ec6a6fbe AK |
11783 | $as_echo "/* $configure_input */" \ |
11784 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11785 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11786 | fi |
7a197a62 AK |
11787 | ;; |
11788 | ||
11789 | ||
11790 | esac | |
11791 | ||
11792 | done # for ac_tag | |
795ca3e5 | 11793 | |
795ca3e5 | 11794 | |
f11781c5 | 11795 | as_fn_exit 0 |
ad6254c5 | 11796 | _ACEOF |
ad6254c5 AK |
11797 | ac_clean_files=$ac_clean_files_save |
11798 | ||
ec6a6fbe | 11799 | test $ac_write_fail = 0 || |
f11781c5 | 11800 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11801 | |
ad6254c5 AK |
11802 | |
11803 | # configure is writing to config.log, and then calls config.status. | |
11804 | # config.status does its own redirection, appending to config.log. | |
11805 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11806 | # by configure, so config.status won't be able to write to it; its | |
11807 | # output is simply discarded. So we exec the FD to /dev/null, | |
11808 | # effectively closing config.log, so it can be properly (re)opened and | |
11809 | # appended to by config.status. When coming back to configure, we | |
11810 | # need to make the FD available again. | |
11811 | if test "$no_create" != yes; then | |
11812 | ac_cs_success=: | |
11813 | ac_config_status_args= | |
11814 | test "$silent" = yes && | |
11815 | ac_config_status_args="$ac_config_status_args --quiet" | |
11816 | exec 5>/dev/null | |
11817 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11818 | exec 5>>config.log | |
11819 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11820 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11821 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11822 | fi |
ec6a6fbe | 11823 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11825 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11826 | fi | |
795ca3e5 | 11827 | |
2dc95e1c AK |
11828 | |
11829 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11831 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11832 | fi |