]>
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 | |
3d962ed6 AK |
685 | VERITYSETUP |
686 | VERITYSETUP_LIBS | |
687 | VERITYSETUP_CFLAGS | |
688 | NSS_LIBS | |
689 | NSS_CFLAGS | |
690 | OPENSSL_LIBS | |
691 | OPENSSL_CFLAGS | |
ec6a6fbe | 692 | LVM2CMD_LIB |
572fefeb | 693 | LVM2APP_LIB |
d93275eb PR |
694 | UDEV_LIBS |
695 | UDEV_CFLAGS | |
426fc742 PR |
696 | CUNIT_LIBS |
697 | CUNIT_CFLAGS | |
fd4728e1 | 698 | GENPNG |
ec6a6fbe AK |
699 | GENHTML |
700 | LCOV | |
90c80887 AK |
701 | SACKPT_LIBS |
702 | SACKPT_CFLAGS | |
a946372e AK |
703 | DLM_LIBS |
704 | DLM_CFLAGS | |
e2997b73 AK |
705 | CPG_LIBS |
706 | CPG_CFLAGS | |
b6d7a484 AK |
707 | CMAP_LIBS |
708 | CMAP_CFLAGS | |
e2997b73 AK |
709 | CONFDB_LIBS |
710 | CONFDB_CFLAGS | |
a946372e AK |
711 | SALCK_LIBS |
712 | SALCK_CFLAGS | |
e2997b73 AK |
713 | QUORUM_LIBS |
714 | QUORUM_CFLAGS | |
a946372e AK |
715 | COROSYNC_LIBS |
716 | COROSYNC_CFLAGS | |
717 | CMAN_LIBS | |
718 | CMAN_CFLAGS | |
a946372e AK |
719 | PKGCONFIGINIT_LIBS |
720 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
721 | PKG_CONFIG_LIBDIR |
722 | PKG_CONFIG_PATH | |
e2997b73 | 723 | PKG_CONFIG |
f61cacad | 724 | THIN_CHECK_CMD |
ec6a6fbe AK |
725 | POW_LIB |
726 | LIBOBJS | |
727 | ALLOCA | |
728 | CSCOPE_CMD | |
729 | CFLOW_CMD | |
730 | RANLIB | |
731 | MKDIR_P | |
732 | SET_MAKE | |
733 | LN_S | |
734 | INSTALL_DATA | |
735 | INSTALL_SCRIPT | |
736 | INSTALL_PROGRAM | |
737 | EGREP | |
738 | GREP | |
739 | CPP | |
740 | OBJEXT | |
741 | EXEEXT | |
742 | ac_ct_CC | |
743 | CPPFLAGS | |
744 | LDFLAGS | |
745 | CFLAGS | |
746 | CC | |
747 | AWK | |
748 | SED | |
749 | target_os | |
750 | target_vendor | |
751 | target_cpu | |
752 | target | |
753 | host_os | |
754 | host_vendor | |
755 | host_cpu | |
756 | host | |
757 | build_os | |
758 | build_vendor | |
759 | build_cpu | |
760 | build | |
761 | target_alias | |
762 | host_alias | |
763 | build_alias | |
764 | LIBS | |
765 | ECHO_T | |
766 | ECHO_N | |
767 | ECHO_C | |
768 | DEFS | |
769 | mandir | |
770 | localedir | |
771 | libdir | |
772 | psdir | |
773 | pdfdir | |
774 | dvidir | |
775 | htmldir | |
776 | infodir | |
777 | docdir | |
778 | oldincludedir | |
779 | includedir | |
780 | localstatedir | |
781 | sharedstatedir | |
782 | sysconfdir | |
783 | datadir | |
784 | datarootdir | |
785 | libexecdir | |
786 | sbindir | |
787 | bindir | |
788 | program_transform_name | |
789 | prefix | |
790 | exec_prefix | |
f11781c5 | 791 | PACKAGE_URL |
ec6a6fbe AK |
792 | PACKAGE_BUGREPORT |
793 | PACKAGE_STRING | |
794 | PACKAGE_VERSION | |
795 | PACKAGE_TARNAME | |
796 | PACKAGE_NAME | |
797 | PATH_SEPARATOR | |
798 | SHELL' | |
ad6254c5 | 799 | ac_subst_files='' |
ec6a6fbe AK |
800 | ac_user_opts=' |
801 | enable_option_checking | |
802 | enable_static_link | |
803 | with_user | |
804 | with_group | |
805 | with_device_uid | |
806 | with_device_gid | |
807 | with_device_mode | |
d0df875d | 808 | with_device_nodes_on |
c64d7cd3 | 809 | with_default_name_mangling |
ec6a6fbe AK |
810 | enable_lvm1_fallback |
811 | with_lvm1 | |
812 | with_pool | |
813 | with_cluster | |
814 | with_snapshots | |
815 | with_mirrors | |
cac52ca4 | 816 | with_raid |
8fea97b7 | 817 | with_replicators |
3ba4a195 | 818 | with_thin |
f61cacad | 819 | with_thin_check |
ec6a6fbe AK |
820 | enable_readline |
821 | enable_realtime | |
37ddf259 | 822 | enable_ocf |
606d0858 | 823 | with_ocfdir |
ec6a6fbe | 824 | with_clvmd |
8c4e8a18 | 825 | with_clvmd_pidfile |
66fd4529 AK |
826 | enable_cmirrord |
827 | with_cmirrord_pidfile | |
ec6a6fbe AK |
828 | enable_debug |
829 | with_optimisation | |
830 | enable_profiling | |
54b362f9 | 831 | enable_testing |
d1e8046f | 832 | enable_valgrind_pool |
ec6a6fbe | 833 | enable_devmapper |
cdd50823 | 834 | enable_lvmetad |
a5f46f6a AK |
835 | enable_udev_sync |
836 | enable_udev_rules | |
ec6a6fbe | 837 | enable_compat |
95eaa683 | 838 | enable_units_compat |
ec6a6fbe AK |
839 | enable_ioctl |
840 | enable_o_direct | |
572fefeb | 841 | enable_applib |
ec6a6fbe AK |
842 | enable_cmdlib |
843 | enable_pkgconfig | |
23b059e7 | 844 | enable_write_install |
ec6a6fbe AK |
845 | enable_fsadm |
846 | enable_dmeventd | |
3d962ed6 | 847 | with_veritysetup |
ec6a6fbe AK |
848 | enable_selinux |
849 | enable_nls | |
850 | with_localedir | |
851 | with_confdir | |
852 | with_staticdir | |
853 | with_usrlibdir | |
854 | with_usrsbindir | |
a5f46f6a | 855 | with_udev_prefix |
78ce7acc | 856 | with_udevdir |
e587cb6a | 857 | with_systemdsystemunitdir |
4417a8bd | 858 | with_tmpfilesdir |
ec6a6fbe AK |
859 | with_dmeventd_pidfile |
860 | with_dmeventd_path | |
8bae0a1e | 861 | with_default_run_dir |
3399ae32 AK |
862 | with_default_system_dir |
863 | with_default_archive_subdir | |
864 | with_default_backup_subdir | |
865 | with_default_cache_subdir | |
866 | with_default_locking_dir | |
fea55602 | 867 | with_default_data_alignment |
ec6a6fbe AK |
868 | with_interface |
869 | ' | |
7a197a62 AK |
870 | ac_precious_vars='build_alias |
871 | host_alias | |
872 | target_alias | |
873 | CC | |
874 | CFLAGS | |
875 | LDFLAGS | |
25fbec5b | 876 | LIBS |
7a197a62 | 877 | CPPFLAGS |
e2997b73 AK |
878 | CPP |
879 | PKG_CONFIG | |
f11781c5 AK |
880 | PKG_CONFIG_PATH |
881 | PKG_CONFIG_LIBDIR | |
a946372e AK |
882 | PKGCONFIGINIT_CFLAGS |
883 | PKGCONFIGINIT_LIBS | |
a946372e AK |
884 | CMAN_CFLAGS |
885 | CMAN_LIBS | |
886 | COROSYNC_CFLAGS | |
887 | COROSYNC_LIBS | |
e2997b73 AK |
888 | QUORUM_CFLAGS |
889 | QUORUM_LIBS | |
a946372e AK |
890 | SALCK_CFLAGS |
891 | SALCK_LIBS | |
e2997b73 AK |
892 | CONFDB_CFLAGS |
893 | CONFDB_LIBS | |
b6d7a484 AK |
894 | CMAP_CFLAGS |
895 | CMAP_LIBS | |
e2997b73 | 896 | CPG_CFLAGS |
a946372e AK |
897 | CPG_LIBS |
898 | DLM_CFLAGS | |
90c80887 AK |
899 | DLM_LIBS |
900 | SACKPT_CFLAGS | |
d93275eb | 901 | SACKPT_LIBS |
426fc742 PR |
902 | CUNIT_CFLAGS |
903 | CUNIT_LIBS | |
d93275eb | 904 | UDEV_CFLAGS |
3d962ed6 AK |
905 | UDEV_LIBS |
906 | OPENSSL_CFLAGS | |
907 | OPENSSL_LIBS | |
908 | NSS_CFLAGS | |
909 | NSS_LIBS' | |
7a197a62 | 910 | |
795ca3e5 AK |
911 | |
912 | # Initialize some variables set by options. | |
ad6254c5 AK |
913 | ac_init_help= |
914 | ac_init_version=false | |
ec6a6fbe AK |
915 | ac_unrecognized_opts= |
916 | ac_unrecognized_sep= | |
795ca3e5 AK |
917 | # The variables have the same names as the options, with |
918 | # dashes changed to underlines. | |
ad6254c5 | 919 | cache_file=/dev/null |
795ca3e5 | 920 | exec_prefix=NONE |
795ca3e5 | 921 | no_create= |
795ca3e5 AK |
922 | no_recursion= |
923 | prefix=NONE | |
924 | program_prefix=NONE | |
925 | program_suffix=NONE | |
926 | program_transform_name=s,x,x, | |
927 | silent= | |
928 | site= | |
929 | srcdir= | |
795ca3e5 AK |
930 | verbose= |
931 | x_includes=NONE | |
932 | x_libraries=NONE | |
ad6254c5 AK |
933 | |
934 | # Installation directory options. | |
935 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
936 | # and all the variables that are supposed to be based on exec_prefix | |
937 | # by default will actually change. | |
938 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 939 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
940 | bindir='${exec_prefix}/bin' |
941 | sbindir='${exec_prefix}/sbin' | |
942 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
943 | datarootdir='${prefix}/share' |
944 | datadir='${datarootdir}' | |
795ca3e5 AK |
945 | sysconfdir='${prefix}/etc' |
946 | sharedstatedir='${prefix}/com' | |
947 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
948 | includedir='${prefix}/include' |
949 | oldincludedir='/usr/include' | |
7a197a62 AK |
950 | docdir='${datarootdir}/doc/${PACKAGE}' |
951 | infodir='${datarootdir}/info' | |
952 | htmldir='${docdir}' | |
953 | dvidir='${docdir}' | |
954 | pdfdir='${docdir}' | |
955 | psdir='${docdir}' | |
956 | libdir='${exec_prefix}/lib' | |
957 | localedir='${datarootdir}/locale' | |
958 | mandir='${datarootdir}/man' | |
795ca3e5 | 959 | |
795ca3e5 | 960 | ac_prev= |
7a197a62 | 961 | ac_dashdash= |
795ca3e5 AK |
962 | for ac_option |
963 | do | |
795ca3e5 AK |
964 | # If the previous option needs an argument, assign it. |
965 | if test -n "$ac_prev"; then | |
7a197a62 | 966 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
967 | ac_prev= |
968 | continue | |
969 | fi | |
970 | ||
7a197a62 AK |
971 | case $ac_option in |
972 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
973 | *) ac_optarg=yes ;; | |
974 | esac | |
795ca3e5 AK |
975 | |
976 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
977 | ||
7a197a62 AK |
978 | case $ac_dashdash$ac_option in |
979 | --) | |
980 | ac_dashdash=yes ;; | |
795ca3e5 AK |
981 | |
982 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
983 | ac_prev=bindir ;; | |
984 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 985 | bindir=$ac_optarg ;; |
795ca3e5 AK |
986 | |
987 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 988 | ac_prev=build_alias ;; |
795ca3e5 | 989 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 990 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
991 | |
992 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
993 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
994 | ac_prev=cache_file ;; | |
995 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
996 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
997 | cache_file=$ac_optarg ;; |
998 | ||
999 | --config-cache | -C) | |
1000 | cache_file=config.cache ;; | |
795ca3e5 | 1001 | |
7a197a62 | 1002 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 1003 | ac_prev=datadir ;; |
7a197a62 | 1004 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1005 | datadir=$ac_optarg ;; |
795ca3e5 | 1006 | |
7a197a62 AK |
1007 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1008 | | --dataroo | --dataro | --datar) | |
1009 | ac_prev=datarootdir ;; | |
1010 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1011 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1012 | datarootdir=$ac_optarg ;; | |
1013 | ||
795ca3e5 | 1014 | -disable-* | --disable-*) |
ec6a6fbe | 1015 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1016 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1017 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1018 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1019 | ac_useropt_orig=$ac_useropt |
1020 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1021 | case $ac_user_opts in | |
1022 | *" | |
1023 | "enable_$ac_useropt" | |
1024 | "*) ;; | |
1025 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1026 | ac_unrecognized_sep=', ';; | |
1027 | esac | |
1028 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1029 | |
1030 | -docdir | --docdir | --docdi | --doc | --do) | |
1031 | ac_prev=docdir ;; | |
1032 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1033 | docdir=$ac_optarg ;; | |
1034 | ||
1035 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1036 | ac_prev=dvidir ;; | |
1037 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1038 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1039 | |
1040 | -enable-* | --enable-*) | |
ec6a6fbe | 1041 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1042 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1043 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1044 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1045 | ac_useropt_orig=$ac_useropt |
1046 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1047 | case $ac_user_opts in | |
1048 | *" | |
1049 | "enable_$ac_useropt" | |
1050 | "*) ;; | |
1051 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1052 | ac_unrecognized_sep=', ';; | |
1053 | esac | |
1054 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1055 | |
1056 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1057 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1058 | | --exec | --exe | --ex) | |
1059 | ac_prev=exec_prefix ;; | |
1060 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1061 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1062 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1063 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1064 | |
1065 | -gas | --gas | --ga | --g) | |
1066 | # Obsolete; use --with-gas. | |
1067 | with_gas=yes ;; | |
1068 | ||
ad6254c5 AK |
1069 | -help | --help | --hel | --he | -h) |
1070 | ac_init_help=long ;; | |
1071 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1072 | ac_init_help=recursive ;; | |
1073 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1074 | ac_init_help=short ;; | |
795ca3e5 AK |
1075 | |
1076 | -host | --host | --hos | --ho) | |
ad6254c5 | 1077 | ac_prev=host_alias ;; |
795ca3e5 | 1078 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1079 | host_alias=$ac_optarg ;; |
795ca3e5 | 1080 | |
7a197a62 AK |
1081 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1082 | ac_prev=htmldir ;; | |
1083 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1084 | | --ht=*) | |
1085 | htmldir=$ac_optarg ;; | |
1086 | ||
795ca3e5 AK |
1087 | -includedir | --includedir | --includedi | --included | --include \ |
1088 | | --includ | --inclu | --incl | --inc) | |
1089 | ac_prev=includedir ;; | |
1090 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1091 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1092 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1093 | |
1094 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1095 | ac_prev=infodir ;; | |
1096 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1097 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1098 | |
1099 | -libdir | --libdir | --libdi | --libd) | |
1100 | ac_prev=libdir ;; | |
1101 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1102 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1103 | |
1104 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1105 | | --libexe | --libex | --libe) | |
1106 | ac_prev=libexecdir ;; | |
1107 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1108 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1109 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1110 | |
7a197a62 AK |
1111 | -localedir | --localedir | --localedi | --localed | --locale) |
1112 | ac_prev=localedir ;; | |
1113 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1114 | localedir=$ac_optarg ;; | |
1115 | ||
795ca3e5 | 1116 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1117 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1118 | ac_prev=localstatedir ;; |
1119 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1120 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1121 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1122 | |
1123 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1124 | ac_prev=mandir ;; | |
1125 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1126 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1127 | |
1128 | -nfp | --nfp | --nf) | |
1129 | # Obsolete; use --without-fp. | |
1130 | with_fp=no ;; | |
1131 | ||
1132 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1133 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1134 | no_create=yes ;; |
1135 | ||
1136 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1137 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1138 | no_recursion=yes ;; | |
1139 | ||
1140 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1141 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1142 | | --oldin | --oldi | --old | --ol | --o) | |
1143 | ac_prev=oldincludedir ;; | |
1144 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1145 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1146 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1147 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1148 | |
1149 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1150 | ac_prev=prefix ;; | |
1151 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1152 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1153 | |
1154 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1155 | | --program-pre | --program-pr | --program-p) | |
1156 | ac_prev=program_prefix ;; | |
1157 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1158 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1159 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1160 | |
1161 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1162 | | --program-suf | --program-su | --program-s) | |
1163 | ac_prev=program_suffix ;; | |
1164 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1165 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1166 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1167 | |
1168 | -program-transform-name | --program-transform-name \ | |
1169 | | --program-transform-nam | --program-transform-na \ | |
1170 | | --program-transform-n | --program-transform- \ | |
1171 | | --program-transform | --program-transfor \ | |
1172 | | --program-transfo | --program-transf \ | |
1173 | | --program-trans | --program-tran \ | |
1174 | | --progr-tra | --program-tr | --program-t) | |
1175 | ac_prev=program_transform_name ;; | |
1176 | -program-transform-name=* | --program-transform-name=* \ | |
1177 | | --program-transform-nam=* | --program-transform-na=* \ | |
1178 | | --program-transform-n=* | --program-transform-=* \ | |
1179 | | --program-transform=* | --program-transfor=* \ | |
1180 | | --program-transfo=* | --program-transf=* \ | |
1181 | | --program-trans=* | --program-tran=* \ | |
1182 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1183 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1184 | |
7a197a62 AK |
1185 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1186 | ac_prev=pdfdir ;; | |
1187 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1188 | pdfdir=$ac_optarg ;; | |
1189 | ||
1190 | -psdir | --psdir | --psdi | --psd | --ps) | |
1191 | ac_prev=psdir ;; | |
1192 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1193 | psdir=$ac_optarg ;; | |
1194 | ||
795ca3e5 AK |
1195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1196 | | -silent | --silent | --silen | --sile | --sil) | |
1197 | silent=yes ;; | |
1198 | ||
1199 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1200 | ac_prev=sbindir ;; | |
1201 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1202 | | --sbi=* | --sb=*) | |
ad6254c5 | 1203 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1204 | |
1205 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1206 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1207 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1208 | | --sha | --sh) | |
1209 | ac_prev=sharedstatedir ;; | |
1210 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1211 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1212 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1213 | | --sha=* | --sh=*) | |
ad6254c5 | 1214 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1215 | |
1216 | -site | --site | --sit) | |
1217 | ac_prev=site ;; | |
1218 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1219 | site=$ac_optarg ;; |
795ca3e5 AK |
1220 | |
1221 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1222 | ac_prev=srcdir ;; | |
1223 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1224 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1225 | |
1226 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1227 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1228 | ac_prev=sysconfdir ;; | |
1229 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1230 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1231 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1232 | |
1233 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1234 | ac_prev=target_alias ;; |
795ca3e5 | 1235 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1236 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1237 | |
1238 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1239 | verbose=yes ;; | |
1240 | ||
ad6254c5 AK |
1241 | -version | --version | --versio | --versi | --vers | -V) |
1242 | ac_init_version=: ;; | |
795ca3e5 AK |
1243 | |
1244 | -with-* | --with-*) | |
ec6a6fbe | 1245 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1246 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1247 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1248 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1249 | ac_useropt_orig=$ac_useropt |
1250 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1251 | case $ac_user_opts in | |
1252 | *" | |
1253 | "with_$ac_useropt" | |
1254 | "*) ;; | |
1255 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1256 | ac_unrecognized_sep=', ';; | |
1257 | esac | |
1258 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1259 | |
1260 | -without-* | --without-*) | |
ec6a6fbe | 1261 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1262 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1263 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1264 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1265 | ac_useropt_orig=$ac_useropt |
1266 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1267 | case $ac_user_opts in | |
1268 | *" | |
1269 | "with_$ac_useropt" | |
1270 | "*) ;; | |
1271 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1272 | ac_unrecognized_sep=', ';; | |
1273 | esac | |
1274 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1275 | |
1276 | --x) | |
1277 | # Obsolete; use --with-x. | |
1278 | with_x=yes ;; | |
1279 | ||
1280 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1281 | | --x-incl | --x-inc | --x-in | --x-i) | |
1282 | ac_prev=x_includes ;; | |
1283 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1284 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1285 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1286 | |
1287 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1288 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1289 | ac_prev=x_libraries ;; | |
1290 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1291 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1292 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1293 | |
f11781c5 AK |
1294 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1295 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1296 | ;; |
1297 | ||
ad6254c5 AK |
1298 | *=*) |
1299 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1300 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1301 | case $ac_envvar in #( |
1302 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1303 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1304 | esac | |
7a197a62 | 1305 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1306 | export $ac_envvar ;; |
1307 | ||
795ca3e5 | 1308 | *) |
ad6254c5 | 1309 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1310 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1311 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1312 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1313 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1314 | ;; |
1315 | ||
1316 | esac | |
1317 | done | |
1318 | ||
1319 | if test -n "$ac_prev"; then | |
ad6254c5 | 1320 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1321 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1322 | fi |
795ca3e5 | 1323 | |
ec6a6fbe AK |
1324 | if test -n "$ac_unrecognized_opts"; then |
1325 | case $enable_option_checking in | |
1326 | no) ;; | |
f11781c5 | 1327 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1328 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1329 | esac | |
1330 | fi | |
1331 | ||
1332 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1333 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1334 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1335 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1336 | libdir localedir mandir | |
795ca3e5 | 1337 | do |
7a197a62 | 1338 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1339 | # Remove trailing slashes. |
1340 | case $ac_val in | |
1341 | */ ) | |
1342 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1343 | eval $ac_var=\$ac_val;; | |
1344 | esac | |
1345 | # Be sure to have absolute directory names. | |
ad6254c5 | 1346 | case $ac_val in |
7a197a62 AK |
1347 | [\\/$]* | ?:[\\/]* ) continue;; |
1348 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1349 | esac |
f11781c5 | 1350 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1351 | done |
1352 | ||
ad6254c5 AK |
1353 | # There might be people who depend on the old broken behavior: `$host' |
1354 | # used to hold the argument of --host etc. | |
1355 | # FIXME: To remove some day. | |
1356 | build=$build_alias | |
1357 | host=$host_alias | |
1358 | target=$target_alias | |
1359 | ||
1360 | # FIXME: To remove some day. | |
1361 | if test "x$host_alias" != x; then | |
1362 | if test "x$build_alias" = x; then | |
1363 | cross_compiling=maybe | |
f11781c5 AK |
1364 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1365 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1366 | elif test "x$build_alias" != "x$host_alias"; then |
1367 | cross_compiling=yes | |
1368 | fi | |
1369 | fi | |
8106cdd5 | 1370 | |
ad6254c5 AK |
1371 | ac_tool_prefix= |
1372 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1373 | ||
1374 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1375 | |
795ca3e5 | 1376 | |
7a197a62 AK |
1377 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1378 | ac_ls_di=`ls -di .` && | |
1379 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1380 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1381 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1382 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1383 | |
1384 | ||
795ca3e5 AK |
1385 | # Find the source files, if location was not specified. |
1386 | if test -z "$srcdir"; then | |
1387 | ac_srcdir_defaulted=yes | |
7a197a62 | 1388 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1389 | ac_confdir=`$as_dirname -- "$as_myself" || |
1390 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1391 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1392 | X"$as_myself" : 'X\(//\)$' \| \ | |
1393 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1394 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1395 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1396 | s//\1/ | |
1397 | q | |
1398 | } | |
1399 | /^X\(\/\/\)[^/].*/{ | |
1400 | s//\1/ | |
1401 | q | |
1402 | } | |
1403 | /^X\(\/\/\)$/{ | |
1404 | s//\1/ | |
1405 | q | |
1406 | } | |
1407 | /^X\(\/\).*/{ | |
1408 | s//\1/ | |
1409 | q | |
1410 | } | |
1411 | s/.*/./; q'` | |
795ca3e5 | 1412 | srcdir=$ac_confdir |
7a197a62 | 1413 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1414 | srcdir=.. |
1415 | fi | |
1416 | else | |
1417 | ac_srcdir_defaulted=no | |
1418 | fi | |
7a197a62 AK |
1419 | if test ! -r "$srcdir/$ac_unique_file"; then |
1420 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1421 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1422 | fi |
7a197a62 AK |
1423 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1424 | ac_abs_confdir=`( | |
f11781c5 | 1425 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1426 | pwd)` |
1427 | # When building in place, set srcdir=. | |
1428 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1429 | srcdir=. | |
1430 | fi | |
1431 | # Remove unnecessary trailing slashes from srcdir. | |
1432 | # Double slashes in file names in object file debugging info | |
1433 | # mess up M-x gdb in Emacs. | |
1434 | case $srcdir in | |
1435 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1436 | esac | |
1437 | for ac_var in $ac_precious_vars; do | |
1438 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1439 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1440 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1441 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1442 | done | |
ad6254c5 AK |
1443 | |
1444 | # | |
1445 | # Report the --help message. | |
1446 | # | |
1447 | if test "$ac_init_help" = "long"; then | |
1448 | # Omit some internal or obsolete options to make the list less imposing. | |
1449 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1450 | cat <<_ACEOF | |
1451 | \`configure' configures this package to adapt to many kinds of systems. | |
1452 | ||
1453 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1454 | ||
1455 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1456 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1457 | ||
1458 | Defaults for the options are specified in brackets. | |
1459 | ||
1460 | Configuration: | |
1461 | -h, --help display this help and exit | |
1462 | --help=short display options specific to this package | |
1463 | --help=recursive display the short help of all the included packages | |
1464 | -V, --version display version information and exit | |
f11781c5 | 1465 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1466 | --cache-file=FILE cache test results in FILE [disabled] |
1467 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1468 | -n, --no-create do not create output files | |
1469 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1470 | ||
ad6254c5 AK |
1471 | Installation directories: |
1472 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1473 | [$ac_default_prefix] |
ad6254c5 | 1474 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1475 | [PREFIX] |
ad6254c5 AK |
1476 | |
1477 | By default, \`make install' will install all the files in | |
1478 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1479 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1480 | for instance \`--prefix=\$HOME'. | |
1481 | ||
1482 | For better control, use the options below. | |
1483 | ||
1484 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1485 | --bindir=DIR user executables [EPREFIX/bin] |
1486 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1487 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1488 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1489 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1490 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1491 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1492 | --includedir=DIR C header files [PREFIX/include] | |
1493 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1494 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1495 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1496 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1497 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1498 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1499 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1500 | --htmldir=DIR html documentation [DOCDIR] | |
1501 | --dvidir=DIR dvi documentation [DOCDIR] | |
1502 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1503 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1504 | _ACEOF |
1505 | ||
1506 | cat <<\_ACEOF | |
1507 | ||
1508 | System types: | |
1509 | --build=BUILD configure for building on BUILD [guessed] | |
1510 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1511 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1512 | _ACEOF | |
1513 | fi | |
1514 | ||
1515 | if test -n "$ac_init_help"; then | |
1516 | ||
1517 | cat <<\_ACEOF | |
1518 | ||
1519 | Optional Features: | |
ec6a6fbe | 1520 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1521 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1522 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1523 | --enable-static_link use this to link the tools to their libraries |
1524 | statically (default is dynamic linking | |
1525 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1526 | device-mapper is missing from the kernel |
71082be4 ZK |
1527 | --disable-readline disable readline support |
1528 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1529 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1530 | resource agents | |
71082be4 ZK |
1531 | --enable-cmirrord enable the cluster mirror log daemon |
1532 | --enable-debug enable debugging | |
1533 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1534 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1535 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1536 | --disable-devmapper disable LVM2 device-mapper interaction |
d38de32b | 1537 | --enable-lvmetad enable the LVM Metadata Daemon |
71082be4 ZK |
1538 | --enable-udev_sync enable synchronisation with udev processing |
1539 | --enable-udev_rules install rule files needed for udev synchronisation | |
1540 | --enable-compat enable support for old device-mapper versions | |
1541 | --enable-units-compat enable output compatibility with old versions that | |
1542 | that do not use KiB-style unit suffixes | |
1543 | --disable-driver disable calls to device-mapper in the kernel | |
1544 | --disable-o_direct disable O_DIRECT | |
1545 | --enable-applib build application library | |
1546 | --enable-cmdlib build shared command library | |
1547 | --enable-pkgconfig install pkgconfig support | |
1548 | --enable-write_install install user writable files | |
1549 | --disable-fsadm disable fsadm | |
1550 | --enable-dmeventd enable the device-mapper event daemon | |
1551 | --disable-selinux disable selinux support | |
1552 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1553 | |
1554 | Optional Packages: | |
1555 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1556 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1557 | --with-user=USER set the owner of installed files [[USER=]] |
1558 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1559 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1560 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1561 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1562 | --with-device-nodes-on=ON |
1563 | create nodes on resume or create [[ON=resume]] | |
c64d7cd3 PR |
1564 | --with-default-name-mangling=MANGLING |
1565 | default name mangling: auto/none/hex | |
1566 | [[MANGLING=auto]] | |
ad6254c5 | 1567 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1568 | [[TYPE=internal]] |
ad6254c5 | 1569 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1570 | [[TYPE=internal]] |
71082be4 | 1571 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1572 | [[TYPE=internal]] |
71082be4 | 1573 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1574 | [[TYPE=internal]] |
71082be4 | 1575 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1576 | [[TYPE=internal]] |
cac52ca4 JEB |
1577 | --with-raid=TYPE mirror support: internal/shared/none |
1578 | [[TYPE=internal]] | |
71082be4 | 1579 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1580 | [[TYPE=none]] |
3ba4a195 ZK |
1581 | --with-thin=TYPE thin provisioning support: internal/shared/none |
1582 | [[TYPE=none]] | |
f61cacad | 1583 | --with-thin-check=PATH thin_check tool: [[autodetect]] |
606d0858 AK |
1584 | --with-ocfdir=DIR install OCF files in DIR |
1585 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1586 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1587 | The following cluster manager combinations are valid: |
a946372e AK |
1588 | * cman (RHEL5 or equivalent) |
1589 | * cman,corosync,openais (or selection of them) | |
1091650a | 1590 | * singlenode (localhost only) |
a946372e AK |
1591 | * all (autodetect) |
1592 | * none (disable build) | |
71082be4 | 1593 | [TYPE=none] |
8c4e8a18 | 1594 | --with-clvmd-pidfile=PATH |
f11781c5 | 1595 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1596 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1597 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1598 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
3d962ed6 | 1599 | --with-veritysetup=TYPE build veritysetup using openssl/nss/gcrypt |
f11781c5 AK |
1600 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] |
1601 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1602 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1603 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1604 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1605 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1606 | install udev rule files in UPREFIX [[EPREFIX]] |
1607 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
e587cb6a PR |
1608 | --with-systemdsystemunitdir=DIR |
1609 | systemd service files in DIR | |
4417a8bd PR |
1610 | --with-tmpfilesdir=DIR install configuration files for management of |
1611 | volatile files and directories in DIR | |
1612 | [[SYSCONFDIR/tmpfiles.d]] | |
71082be4 | 1613 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1614 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1615 | --with-dmeventd-path=PATH |
f11781c5 | 1616 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1617 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1618 | --with-default-system-dir=DIR |
f11781c5 | 1619 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1620 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1621 | default metadata archive subdir [[archive]] |
71082be4 | 1622 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1623 | default metadata backup subdir [[backup]] |
71082be4 | 1624 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1625 | default metadata cache subdir [[cache]] |
71082be4 | 1626 | --with-default-locking-dir=DIR |
f11781c5 | 1627 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1628 | --with-default-data-alignment=NUM |
f11781c5 AK |
1629 | set the default data alignment in MiB [[1]] |
1630 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1631 | |
1632 | Some influential environment variables: | |
1633 | CC C compiler command | |
1634 | CFLAGS C compiler flags | |
1635 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1636 | nonstandard directory <lib dir> | |
25fbec5b | 1637 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1638 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1639 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1640 | CPP C preprocessor |
e2997b73 | 1641 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1642 | PKG_CONFIG_PATH |
1643 | directories to add to pkg-config's search path | |
1644 | PKG_CONFIG_LIBDIR | |
1645 | path overriding pkg-config's built-in search path | |
a946372e AK |
1646 | PKGCONFIGINIT_CFLAGS |
1647 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1648 | PKGCONFIGINIT_LIBS | |
1649 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1650 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1651 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1652 | COROSYNC_CFLAGS | |
1653 | C compiler flags for COROSYNC, overriding pkg-config | |
1654 | COROSYNC_LIBS | |
1655 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1656 | QUORUM_CFLAGS |
1657 | C compiler flags for QUORUM, overriding pkg-config | |
1658 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1659 | SALCK_CFLAGS |
1660 | C compiler flags for SALCK, overriding pkg-config | |
1661 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1662 | CONFDB_CFLAGS |
1663 | C compiler flags for CONFDB, overriding pkg-config | |
1664 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
b6d7a484 AK |
1665 | CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config |
1666 | CMAP_LIBS linker flags for CMAP, overriding pkg-config | |
e2997b73 AK |
1667 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config |
1668 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1669 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1670 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1671 | SACKPT_CFLAGS |
1672 | C compiler flags for SACKPT, overriding pkg-config | |
1673 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
426fc742 PR |
1674 | CUNIT_CFLAGS |
1675 | C compiler flags for CUNIT, overriding pkg-config | |
1676 | CUNIT_LIBS linker flags for CUNIT, overriding pkg-config | |
d93275eb PR |
1677 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1678 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
3d962ed6 AK |
1679 | OPENSSL_CFLAGS |
1680 | C compiler flags for OPENSSL, overriding pkg-config | |
1681 | OPENSSL_LIBS | |
1682 | linker flags for OPENSSL, overriding pkg-config | |
1683 | NSS_CFLAGS C compiler flags for NSS, overriding pkg-config | |
1684 | NSS_LIBS linker flags for NSS, overriding pkg-config | |
ad6254c5 AK |
1685 | |
1686 | Use these variables to override the choices made by `configure' or to help | |
1687 | it to find libraries and programs with nonstandard names/locations. | |
1688 | ||
f11781c5 | 1689 | Report bugs to the package provider. |
ad6254c5 | 1690 | _ACEOF |
7a197a62 | 1691 | ac_status=$? |
ad6254c5 AK |
1692 | fi |
1693 | ||
1694 | if test "$ac_init_help" = "recursive"; then | |
1695 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1696 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1697 | test -d "$ac_dir" || |
1698 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1699 | continue | |
ad6254c5 AK |
1700 | ac_builddir=. |
1701 | ||
7a197a62 AK |
1702 | case "$ac_dir" in |
1703 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1704 | *) | |
ec6a6fbe | 1705 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1706 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1707 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1708 | case $ac_top_builddir_sub in |
1709 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1710 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1711 | esac ;; | |
1712 | esac | |
1713 | ac_abs_top_builddir=$ac_pwd | |
1714 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1715 | # for backward compatibility: | |
1716 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1717 | |
1718 | case $srcdir in | |
7a197a62 | 1719 | .) # We are building in place. |
ad6254c5 | 1720 | ac_srcdir=. |
7a197a62 AK |
1721 | ac_top_srcdir=$ac_top_builddir_sub |
1722 | ac_abs_top_srcdir=$ac_pwd ;; | |
1723 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1724 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1725 | ac_top_srcdir=$srcdir |
1726 | ac_abs_top_srcdir=$srcdir ;; | |
1727 | *) # Relative name. | |
1728 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1729 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1730 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1731 | esac |
7a197a62 AK |
1732 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1733 | ||
1734 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1735 | # Check for guested configure. | |
1736 | if test -f "$ac_srcdir/configure.gnu"; then | |
1737 | echo && | |
1738 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1739 | elif test -f "$ac_srcdir/configure"; then | |
1740 | echo && | |
1741 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1742 | else |
ec6a6fbe | 1743 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1744 | fi || ac_status=$? |
1745 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1746 | done |
1747 | fi | |
1748 | ||
7a197a62 | 1749 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1750 | if $ac_init_version; then |
1751 | cat <<\_ACEOF | |
7a197a62 | 1752 | configure |
f11781c5 | 1753 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1754 | |
f11781c5 | 1755 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1756 | This configure script is free software; the Free Software Foundation |
1757 | gives unlimited permission to copy, distribute and modify it. | |
1758 | _ACEOF | |
7a197a62 | 1759 | exit |
ad6254c5 | 1760 | fi |
ad6254c5 | 1761 | |
f11781c5 AK |
1762 | ## ------------------------ ## |
1763 | ## Autoconf initialization. ## | |
1764 | ## ------------------------ ## | |
ad6254c5 | 1765 | |
f11781c5 AK |
1766 | # ac_fn_c_try_compile LINENO |
1767 | # -------------------------- | |
1768 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1769 | ac_fn_c_try_compile () | |
ad6254c5 | 1770 | { |
f11781c5 AK |
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1772 | rm -f conftest.$ac_objext | |
1773 | if { { ac_try="$ac_compile" | |
1774 | case "(($ac_try" in | |
1775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1776 | *) ac_try_echo=$ac_try;; | |
1777 | esac | |
1778 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1779 | $as_echo "$ac_try_echo"; } >&5 | |
1780 | (eval "$ac_compile") 2>conftest.err | |
1781 | ac_status=$? | |
1782 | if test -s conftest.err; then | |
1783 | grep -v '^ *+' conftest.err >conftest.er1 | |
1784 | cat conftest.er1 >&5 | |
1785 | mv -f conftest.er1 conftest.err | |
1786 | fi | |
1787 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1788 | test $ac_status = 0; } && { | |
1789 | test -z "$ac_c_werror_flag" || | |
1790 | test ! -s conftest.err | |
1791 | } && test -s conftest.$ac_objext; then : | |
1792 | ac_retval=0 | |
1793 | else | |
1794 | $as_echo "$as_me: failed program was:" >&5 | |
1795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1796 | |
f11781c5 AK |
1797 | ac_retval=1 |
1798 | fi | |
1799 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1800 | as_fn_set_status $ac_retval | |
ad6254c5 | 1801 | |
f11781c5 | 1802 | } # ac_fn_c_try_compile |
ad6254c5 | 1803 | |
f11781c5 AK |
1804 | # ac_fn_c_try_cpp LINENO |
1805 | # ---------------------- | |
1806 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1807 | ac_fn_c_try_cpp () | |
1808 | { | |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1810 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1818 | ac_status=$? | |
1819 | if test -s conftest.err; then | |
1820 | grep -v '^ *+' conftest.err >conftest.er1 | |
1821 | cat conftest.er1 >&5 | |
1822 | mv -f conftest.er1 conftest.err | |
1823 | fi | |
1824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1825 | test $ac_status = 0; } >/dev/null && { | |
1826 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1827 | test ! -s conftest.err | |
1828 | }; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1833 | |
f11781c5 AK |
1834 | ac_retval=1 |
1835 | fi | |
1836 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1837 | as_fn_set_status $ac_retval | |
ad6254c5 | 1838 | |
f11781c5 | 1839 | } # ac_fn_c_try_cpp |
d911ec67 | 1840 | |
f11781c5 AK |
1841 | # ac_fn_c_try_link LINENO |
1842 | # ----------------------- | |
1843 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1844 | ac_fn_c_try_link () | |
d911ec67 | 1845 | { |
f11781c5 AK |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1848 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1849 | case "(($ac_try" in |
1850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1851 | *) ac_try_echo=$ac_try;; | |
1852 | esac | |
f11781c5 AK |
1853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1854 | $as_echo "$ac_try_echo"; } >&5 | |
1855 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1856 | ac_status=$? |
f11781c5 AK |
1857 | if test -s conftest.err; then |
1858 | grep -v '^ *+' conftest.err >conftest.er1 | |
1859 | cat conftest.er1 >&5 | |
1860 | mv -f conftest.er1 conftest.err | |
1861 | fi | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { | |
1864 | test -z "$ac_c_werror_flag" || | |
1865 | test ! -s conftest.err | |
1866 | } && test -s conftest$ac_exeext && { | |
1867 | test "$cross_compiling" = yes || | |
1868 | $as_test_x conftest$ac_exeext | |
1869 | }; then : | |
1870 | ac_retval=0 | |
d911ec67 | 1871 | else |
f11781c5 | 1872 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1873 | sed 's/^/| /' conftest.$ac_ext >&5 |
1874 | ||
f11781c5 | 1875 | ac_retval=1 |
d911ec67 | 1876 | fi |
f11781c5 AK |
1877 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1878 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1879 | # interfere with the next link command; also delete a directory that is | |
1880 | # left behind by Apple's compiler. We do this before executing the actions. | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1882 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1883 | as_fn_set_status $ac_retval | |
d911ec67 | 1884 | |
f11781c5 | 1885 | } # ac_fn_c_try_link |
d911ec67 | 1886 | |
f11781c5 AK |
1887 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1888 | # ------------------------------------------------------- | |
1889 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1890 | # the include files in INCLUDES and setting the cache variable VAR | |
1891 | # accordingly. | |
1892 | ac_fn_c_check_header_mongrel () | |
1893 | { | |
1894 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1895 | if eval "test \"\${$3+set}\"" = set; then : | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1897 | $as_echo_n "checking for $2... " >&6; } | |
1898 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1899 | $as_echo_n "(cached) " >&6 |
1900 | fi | |
f11781c5 AK |
1901 | eval ac_res=\$$3 |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1903 | $as_echo "$ac_res" >&6; } |
1904 | else | |
1905 | # Is the header compilable? | |
f11781c5 AK |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1907 | $as_echo_n "checking $2 usability... " >&6; } | |
1908 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1909 | /* end confdefs.h. */ |
f11781c5 AK |
1910 | $4 |
1911 | #include <$2> | |
d911ec67 | 1912 | _ACEOF |
f11781c5 | 1913 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1914 | ac_header_compiler=yes |
1915 | else | |
f11781c5 | 1916 | ac_header_compiler=no |
d911ec67 | 1917 | fi |
d911ec67 | 1918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1920 | $as_echo "$ac_header_compiler" >&6; } |
1921 | ||
1922 | # Is the header present? | |
f11781c5 AK |
1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1924 | $as_echo_n "checking $2 presence... " >&6; } | |
1925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1926 | /* end confdefs.h. */ |
f11781c5 | 1927 | #include <$2> |
d911ec67 | 1928 | _ACEOF |
f11781c5 | 1929 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1930 | ac_header_preproc=yes |
1931 | else | |
d911ec67 AK |
1932 | ac_header_preproc=no |
1933 | fi | |
d911ec67 | 1934 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1936 | $as_echo "$ac_header_preproc" >&6; } |
1937 | ||
1938 | # So? What about this header? | |
f11781c5 | 1939 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1940 | yes:no: ) |
f11781c5 AK |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1942 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1944 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1945 | ;; |
1946 | no:yes:* ) | |
f11781c5 AK |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1948 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1950 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1952 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1954 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1956 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1957 | ;; |
1958 | esac | |
f11781c5 AK |
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1960 | $as_echo_n "checking for $2... " >&6; } | |
1961 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1962 | $as_echo_n "(cached) " >&6 |
1963 | else | |
f11781c5 | 1964 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1965 | fi |
f11781c5 AK |
1966 | eval ac_res=\$$3 |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1968 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1969 | fi |
f11781c5 | 1970 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1971 | |
f11781c5 | 1972 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1973 | |
f11781c5 AK |
1974 | # ac_fn_c_try_run LINENO |
1975 | # ---------------------- | |
1976 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1977 | # that executables *can* be run. | |
1978 | ac_fn_c_try_run () | |
ad6254c5 | 1979 | { |
f11781c5 AK |
1980 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1981 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1982 | case "(($ac_try" in |
1983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1984 | *) ac_try_echo=$ac_try;; | |
1985 | esac | |
f11781c5 AK |
1986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1987 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1988 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1989 | ac_status=$? |
f11781c5 AK |
1990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1991 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1992 | { { case "(($ac_try" in | |
7a197a62 AK |
1993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1994 | *) ac_try_echo=$ac_try;; | |
1995 | esac | |
f11781c5 AK |
1996 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1997 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1998 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1999 | ac_status=$? |
f11781c5 AK |
2000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2001 | test $ac_status = 0; }; }; then : | |
2002 | ac_retval=0 | |
ad6254c5 | 2003 | else |
ec6a6fbe | 2004 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 2005 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2006 | sed 's/^/| /' conftest.$ac_ext >&5 |
2007 | ||
f11781c5 | 2008 | ac_retval=$ac_status |
ad6254c5 | 2009 | fi |
f11781c5 AK |
2010 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2011 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2012 | as_fn_set_status $ac_retval | |
ad6254c5 | 2013 | |
f11781c5 | 2014 | } # ac_fn_c_try_run |
ad6254c5 | 2015 | |
f11781c5 AK |
2016 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2017 | # ------------------------------------------------------- | |
2018 | # Tests whether HEADER exists and can be compiled using the include files in | |
2019 | # INCLUDES, setting the cache variable VAR accordingly. | |
2020 | ac_fn_c_check_header_compile () | |
2021 | { | |
2022 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2024 | $as_echo_n "checking for $2... " >&6; } | |
2025 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2026 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2027 | else |
f11781c5 | 2028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 2029 | /* end confdefs.h. */ |
f11781c5 AK |
2030 | $4 |
2031 | #include <$2> | |
ad6254c5 | 2032 | _ACEOF |
f11781c5 AK |
2033 | if ac_fn_c_try_compile "$LINENO"; then : |
2034 | eval "$3=yes" | |
ad6254c5 | 2035 | else |
f11781c5 | 2036 | eval "$3=no" |
ad6254c5 | 2037 | fi |
7a197a62 | 2038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2039 | fi |
f11781c5 AK |
2040 | eval ac_res=\$$3 |
2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2042 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2043 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2044 | |
f11781c5 | 2045 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2046 | |
f11781c5 AK |
2047 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2048 | # ---------------------------------------------------- | |
2049 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2050 | # INCLUDES, setting cache variable VAR accordingly. | |
2051 | ac_fn_c_check_member () | |
2052 | { | |
2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2055 | $as_echo_n "checking for $2.$3... " >&6; } | |
2056 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2057 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2058 | else |
f11781c5 AK |
2059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2060 | /* end confdefs.h. */ | |
2061 | $5 | |
2062 | int | |
2063 | main () | |
2064 | { | |
2065 | static $2 ac_aggr; | |
2066 | if (ac_aggr.$3) | |
2067 | return 0; | |
2068 | ; | |
2069 | return 0; | |
2070 | } | |
ad6254c5 | 2071 | _ACEOF |
f11781c5 AK |
2072 | if ac_fn_c_try_compile "$LINENO"; then : |
2073 | eval "$4=yes" | |
2074 | else | |
2075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2076 | /* end confdefs.h. */ |
f11781c5 AK |
2077 | $5 |
2078 | int | |
2079 | main () | |
2080 | { | |
2081 | static $2 ac_aggr; | |
2082 | if (sizeof ac_aggr.$3) | |
2083 | return 0; | |
2084 | ; | |
2085 | return 0; | |
2086 | } | |
2087 | _ACEOF | |
2088 | if ac_fn_c_try_compile "$LINENO"; then : | |
2089 | eval "$4=yes" | |
2090 | else | |
2091 | eval "$4=no" | |
2092 | fi | |
2093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2094 | fi | |
2095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2096 | fi | |
2097 | eval ac_res=\$$4 | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2099 | $as_echo "$ac_res" >&6; } | |
2100 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2101 | ||
2102 | } # ac_fn_c_check_member | |
795ca3e5 | 2103 | |
f11781c5 AK |
2104 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2105 | # ------------------------------------------- | |
2106 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2107 | # variable VAR accordingly. | |
2108 | ac_fn_c_check_type () | |
2109 | { | |
2110 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2112 | $as_echo_n "checking for $2... " >&6; } | |
2113 | if eval "test \"\${$3+set}\"" = set; then : | |
2114 | $as_echo_n "(cached) " >&6 | |
2115 | else | |
2116 | eval "$3=no" | |
2117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2118 | /* end confdefs.h. */ | |
2119 | $4 | |
ad6254c5 AK |
2120 | int |
2121 | main () | |
2122 | { | |
f11781c5 AK |
2123 | if (sizeof ($2)) |
2124 | return 0; | |
ad6254c5 AK |
2125 | ; |
2126 | return 0; | |
2127 | } | |
2128 | _ACEOF | |
f11781c5 AK |
2129 | if ac_fn_c_try_compile "$LINENO"; then : |
2130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2131 | /* end confdefs.h. */ | |
2132 | $4 | |
2133 | int | |
2134 | main () | |
2135 | { | |
2136 | if (sizeof (($2))) | |
2137 | return 0; | |
2138 | ; | |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2143 | |
f11781c5 AK |
2144 | else |
2145 | eval "$3=yes" | |
795ca3e5 | 2146 | fi |
f11781c5 AK |
2147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2148 | fi | |
2149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2150 | fi |
f11781c5 AK |
2151 | eval ac_res=\$$3 |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2153 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2154 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2155 | |
f11781c5 | 2156 | } # ac_fn_c_check_type |
ad6254c5 | 2157 | |
f11781c5 AK |
2158 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2159 | # ----------------------------------- | |
2160 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2161 | # accordingly. | |
2162 | ac_fn_c_find_intX_t () | |
2163 | { | |
2164 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2166 | $as_echo_n "checking for int$2_t... " >&6; } | |
2167 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2168 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2169 | else |
f11781c5 AK |
2170 | eval "$3=no" |
2171 | # Order is important - never check a type that is potentially smaller | |
2172 | # than half of the expected target width. | |
2173 | for ac_type in int$2_t 'int' 'long int' \ | |
2174 | 'long long int' 'short int' 'signed char'; do | |
2175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2176 | /* end confdefs.h. */ |
2177 | $ac_includes_default | |
f11781c5 | 2178 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2179 | int |
2180 | main () | |
2181 | { | |
f11781c5 AK |
2182 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2183 | test_array [0] = 0 | |
7a197a62 | 2184 | |
f11781c5 AK |
2185 | ; |
2186 | return 0; | |
2187 | } | |
2188 | _ACEOF | |
2189 | if ac_fn_c_try_compile "$LINENO"; then : | |
2190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2191 | /* end confdefs.h. */ | |
2192 | $ac_includes_default | |
2193 | enum { N = $2 / 2 - 1 }; | |
2194 | int | |
2195 | main () | |
2196 | { | |
2197 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2198 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2199 | test_array [0] = 0 | |
7a197a62 AK |
2200 | |
2201 | ; | |
2202 | return 0; | |
2203 | } | |
ad6254c5 | 2204 | _ACEOF |
f11781c5 | 2205 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2206 | |
f11781c5 AK |
2207 | else |
2208 | case $ac_type in #( | |
2209 | int$2_t) : | |
2210 | eval "$3=yes" ;; #( | |
2211 | *) : | |
2212 | eval "$3=\$ac_type" ;; | |
2213 | esac | |
ad6254c5 | 2214 | fi |
f11781c5 | 2215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2216 | fi |
f11781c5 AK |
2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2218 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2219 | |
2220 | else | |
f11781c5 | 2221 | break |
ad6254c5 | 2222 | fi |
f11781c5 | 2223 | done |
ad6254c5 | 2224 | fi |
f11781c5 AK |
2225 | eval ac_res=\$$3 |
2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2227 | $as_echo "$ac_res" >&6; } | |
2228 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2229 | ||
2230 | } # ac_fn_c_find_intX_t | |
2231 | ||
2232 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2233 | # ------------------------------------ | |
2234 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2235 | # accordingly. | |
2236 | ac_fn_c_find_uintX_t () | |
2237 | { | |
2238 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2240 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2241 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2242 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2243 | else |
f11781c5 AK |
2244 | eval "$3=no" |
2245 | # Order is important - never check a type that is potentially smaller | |
2246 | # than half of the expected target width. | |
2247 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2248 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2250 | /* end confdefs.h. */ |
7a197a62 | 2251 | $ac_includes_default |
ad6254c5 AK |
2252 | int |
2253 | main () | |
2254 | { | |
f11781c5 AK |
2255 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2256 | test_array [0] = 0 | |
ad6254c5 | 2257 | |
f11781c5 AK |
2258 | ; |
2259 | return 0; | |
ad6254c5 AK |
2260 | } |
2261 | _ACEOF | |
f11781c5 AK |
2262 | if ac_fn_c_try_compile "$LINENO"; then : |
2263 | case $ac_type in #( | |
2264 | uint$2_t) : | |
2265 | eval "$3=yes" ;; #( | |
2266 | *) : | |
2267 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2268 | esac |
ad6254c5 | 2269 | fi |
f11781c5 AK |
2270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2271 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2272 | |
f11781c5 AK |
2273 | else |
2274 | break | |
ad6254c5 | 2275 | fi |
f11781c5 | 2276 | done |
ad6254c5 | 2277 | fi |
f11781c5 AK |
2278 | eval ac_res=\$$3 |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2280 | $as_echo "$ac_res" >&6; } | |
2281 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2282 | |
f11781c5 | 2283 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2284 | |
f11781c5 AK |
2285 | # ac_fn_c_check_func LINENO FUNC VAR |
2286 | # ---------------------------------- | |
2287 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2288 | ac_fn_c_check_func () | |
2289 | { | |
2290 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2292 | $as_echo_n "checking for $2... " >&6; } | |
2293 | if eval "test \"\${$3+set}\"" = set; then : | |
2294 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2295 | else |
f11781c5 AK |
2296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2297 | /* end confdefs.h. */ | |
2298 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2299 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2300 | #define $2 innocuous_$2 | |
ad6254c5 | 2301 | |
f11781c5 AK |
2302 | /* System header to define __stub macros and hopefully few prototypes, |
2303 | which can conflict with char $2 (); below. | |
2304 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2305 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2306 | |
f11781c5 AK |
2307 | #ifdef __STDC__ |
2308 | # include <limits.h> | |
2309 | #else | |
2310 | # include <assert.h> | |
2311 | #endif | |
ad6254c5 | 2312 | |
f11781c5 AK |
2313 | #undef $2 |
2314 | ||
2315 | /* Override any GCC internal prototype to avoid an error. | |
2316 | Use char because int might match the return type of a GCC | |
2317 | builtin and then its argument prototype would still apply. */ | |
2318 | #ifdef __cplusplus | |
2319 | extern "C" | |
2320 | #endif | |
2321 | char $2 (); | |
2322 | /* The GNU C library defines this for functions which it implements | |
2323 | to always fail with ENOSYS. Some functions are actually named | |
2324 | something starting with __ and the normal name is an alias. */ | |
2325 | #if defined __stub_$2 || defined __stub___$2 | |
2326 | choke me | |
2327 | #endif | |
ad6254c5 | 2328 | |
ad6254c5 AK |
2329 | int |
2330 | main () | |
2331 | { | |
f11781c5 | 2332 | return $2 (); |
ad6254c5 AK |
2333 | ; |
2334 | return 0; | |
2335 | } | |
2336 | _ACEOF | |
f11781c5 AK |
2337 | if ac_fn_c_try_link "$LINENO"; then : |
2338 | eval "$3=yes" | |
ad6254c5 | 2339 | else |
f11781c5 | 2340 | eval "$3=no" |
ad6254c5 | 2341 | fi |
f11781c5 AK |
2342 | rm -f core conftest.err conftest.$ac_objext \ |
2343 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2344 | fi |
f11781c5 AK |
2345 | eval ac_res=\$$3 |
2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2347 | $as_echo "$ac_res" >&6; } | |
2348 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2349 | |
f11781c5 AK |
2350 | } # ac_fn_c_check_func |
2351 | cat >config.log <<_ACEOF | |
2352 | This file contains any messages produced by compilers while | |
2353 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2354 | |
f11781c5 AK |
2355 | It was created by $as_me, which was |
2356 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2357 | |
f11781c5 | 2358 | $ $0 $@ |
ad6254c5 | 2359 | |
ad6254c5 | 2360 | _ACEOF |
f11781c5 AK |
2361 | exec 5>>config.log |
2362 | { | |
2363 | cat <<_ASUNAME | |
2364 | ## --------- ## | |
2365 | ## Platform. ## | |
2366 | ## --------- ## | |
ad6254c5 | 2367 | |
f11781c5 AK |
2368 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2369 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2370 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2371 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2372 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2373 | |
f11781c5 AK |
2374 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2375 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2376 | |
f11781c5 AK |
2377 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2378 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2379 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2380 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2381 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2382 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2383 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2384 | ||
2385 | _ASUNAME | |
2386 | ||
2387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2388 | for as_dir in $PATH | |
2389 | do | |
2390 | IFS=$as_save_IFS | |
2391 | test -z "$as_dir" && as_dir=. | |
2392 | $as_echo "PATH: $as_dir" | |
2393 | done | |
2394 | IFS=$as_save_IFS | |
2395 | ||
2396 | } >&5 | |
2397 | ||
2398 | cat >&5 <<_ACEOF | |
2399 | ||
2400 | ||
2401 | ## ----------- ## | |
2402 | ## Core tests. ## | |
2403 | ## ----------- ## | |
ad6254c5 | 2404 | |
ad6254c5 | 2405 | _ACEOF |
ad6254c5 | 2406 | |
7a197a62 | 2407 | |
f11781c5 AK |
2408 | # Keep a trace of the command line. |
2409 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2410 | # Strip out --silent because we don't want to record it for future runs. | |
2411 | # Also quote any args containing shell meta-characters. | |
2412 | # Make two passes to allow for proper duplicate-argument suppression. | |
2413 | ac_configure_args= | |
2414 | ac_configure_args0= | |
2415 | ac_configure_args1= | |
2416 | ac_must_keep_next=false | |
2417 | for ac_pass in 1 2 | |
2418 | do | |
2419 | for ac_arg | |
2420 | do | |
2421 | case $ac_arg in | |
2422 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2423 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2424 | | -silent | --silent | --silen | --sile | --sil) | |
2425 | continue ;; | |
2426 | *\'*) | |
2427 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2428 | esac | |
2429 | case $ac_pass in | |
2430 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2431 | 2) | |
2432 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2433 | if test $ac_must_keep_next = true; then | |
2434 | ac_must_keep_next=false # Got value, back to normal. | |
2435 | else | |
2436 | case $ac_arg in | |
2437 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2438 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2439 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2440 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2441 | case "$ac_configure_args0 " in | |
2442 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2443 | esac | |
2444 | ;; | |
2445 | -* ) ac_must_keep_next=true ;; | |
2446 | esac | |
2447 | fi | |
2448 | as_fn_append ac_configure_args " '$ac_arg'" | |
2449 | ;; | |
2450 | esac | |
2451 | done | |
2452 | done | |
2453 | { ac_configure_args0=; unset ac_configure_args0;} | |
2454 | { ac_configure_args1=; unset ac_configure_args1;} | |
2455 | ||
2456 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2457 | # config.log. We remove comments because anyway the quotes in there | |
2458 | # would cause problems or look ugly. | |
2459 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2460 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2461 | trap 'exit_status=$? | |
2462 | # Save into config.log some information that might help in debugging. | |
2463 | { | |
2464 | echo | |
2465 | ||
2466 | $as_echo "## ---------------- ## | |
2467 | ## Cache variables. ## | |
2468 | ## ---------------- ##" | |
2469 | echo | |
2470 | # The following way of writing the cache mishandles newlines in values, | |
2471 | ( | |
2472 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2473 | eval ac_val=\$$ac_var | |
2474 | case $ac_val in #( | |
2475 | *${as_nl}*) | |
2476 | case $ac_var in #( | |
2477 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2478 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2479 | esac | |
2480 | case $ac_var in #( | |
2481 | _ | IFS | as_nl) ;; #( | |
2482 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2483 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2484 | esac ;; | |
2485 | esac | |
2486 | done | |
2487 | (set) 2>&1 | | |
2488 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2489 | *${as_nl}ac_space=\ *) | |
2490 | sed -n \ | |
2491 | "s/'\''/'\''\\\\'\'''\''/g; | |
2492 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2493 | ;; #( | |
2494 | *) | |
2495 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2496 | ;; | |
2497 | esac | | |
2498 | sort | |
2499 | ) | |
2500 | echo | |
2501 | ||
2502 | $as_echo "## ----------------- ## | |
2503 | ## Output variables. ## | |
2504 | ## ----------------- ##" | |
2505 | echo | |
2506 | for ac_var in $ac_subst_vars | |
2507 | do | |
2508 | eval ac_val=\$$ac_var | |
2509 | case $ac_val in | |
2510 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2511 | esac | |
2512 | $as_echo "$ac_var='\''$ac_val'\''" | |
2513 | done | sort | |
2514 | echo | |
2515 | ||
2516 | if test -n "$ac_subst_files"; then | |
2517 | $as_echo "## ------------------- ## | |
2518 | ## File substitutions. ## | |
2519 | ## ------------------- ##" | |
2520 | echo | |
2521 | for ac_var in $ac_subst_files | |
2522 | do | |
2523 | eval ac_val=\$$ac_var | |
2524 | case $ac_val in | |
2525 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2526 | esac | |
2527 | $as_echo "$ac_var='\''$ac_val'\''" | |
2528 | done | sort | |
2529 | echo | |
2530 | fi | |
2531 | ||
2532 | if test -s confdefs.h; then | |
2533 | $as_echo "## ----------- ## | |
2534 | ## confdefs.h. ## | |
2535 | ## ----------- ##" | |
2536 | echo | |
2537 | cat confdefs.h | |
2538 | echo | |
2539 | fi | |
2540 | test "$ac_signal" != 0 && | |
2541 | $as_echo "$as_me: caught signal $ac_signal" | |
2542 | $as_echo "$as_me: exit $exit_status" | |
2543 | } >&5 | |
2544 | rm -f core *.core core.conftest.* && | |
2545 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2546 | exit $exit_status | |
2547 | ' 0 | |
2548 | for ac_signal in 1 2 13 15; do | |
2549 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2550 | done | |
2551 | ac_signal=0 | |
2552 | ||
2553 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2554 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2555 | |
f11781c5 | 2556 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2557 | |
f11781c5 | 2558 | # Predefined preprocessor variables. |
ad6254c5 AK |
2559 | |
2560 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2561 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2562 | _ACEOF |
2563 | ||
f11781c5 AK |
2564 | cat >>confdefs.h <<_ACEOF |
2565 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2566 | _ACEOF |
ad6254c5 | 2567 | |
f11781c5 AK |
2568 | cat >>confdefs.h <<_ACEOF |
2569 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2570 | _ACEOF |
f11781c5 AK |
2571 | |
2572 | cat >>confdefs.h <<_ACEOF | |
2573 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2574 | _ACEOF |
ad6254c5 | 2575 | |
f11781c5 AK |
2576 | cat >>confdefs.h <<_ACEOF |
2577 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2578 | _ACEOF | |
7a197a62 | 2579 | |
f11781c5 AK |
2580 | cat >>confdefs.h <<_ACEOF |
2581 | #define PACKAGE_URL "$PACKAGE_URL" | |
2582 | _ACEOF | |
ad6254c5 | 2583 | |
7a197a62 | 2584 | |
f11781c5 AK |
2585 | # Let the site file select an alternate cache file if it wants to. |
2586 | # Prefer an explicitly selected file to automatically selected ones. | |
2587 | ac_site_file1=NONE | |
2588 | ac_site_file2=NONE | |
2589 | if test -n "$CONFIG_SITE"; then | |
2590 | # We do not want a PATH search for config.site. | |
2591 | case $CONFIG_SITE in #(( | |
2592 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2593 | */*) ac_site_file1=$CONFIG_SITE;; | |
2594 | *) ac_site_file1=./$CONFIG_SITE;; | |
2595 | esac | |
2596 | elif test "x$prefix" != xNONE; then | |
2597 | ac_site_file1=$prefix/share/config.site | |
2598 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2599 | else |
f11781c5 AK |
2600 | ac_site_file1=$ac_default_prefix/share/config.site |
2601 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2602 | fi |
f11781c5 AK |
2603 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2604 | do | |
2605 | test "x$ac_site_file" = xNONE && continue | |
2606 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2608 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2609 | sed 's/^/| /' "$ac_site_file" >&5 | |
2610 | . "$ac_site_file" \ | |
2611 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2613 | as_fn_error $? "failed to load site script $ac_site_file | |
2614 | See \`config.log' for more details" "$LINENO" 5; } | |
2615 | fi | |
2616 | done | |
ad6254c5 | 2617 | |
f11781c5 AK |
2618 | if test -r "$cache_file"; then |
2619 | # Some versions of bash will fail to source /dev/null (special files | |
2620 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2621 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2623 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2624 | case $cache_file in | |
2625 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2626 | *) . "./$cache_file";; | |
2627 | esac | |
2628 | fi | |
2629 | else | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2631 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2632 | >$cache_file | |
ad6254c5 | 2633 | fi |
ad6254c5 | 2634 | |
f11781c5 AK |
2635 | as_fn_append ac_header_list " stdlib.h" |
2636 | as_fn_append ac_header_list " unistd.h" | |
2637 | as_fn_append ac_header_list " sys/param.h" | |
2638 | # Check that the precious variables saved in the cache have kept the same | |
2639 | # value. | |
2640 | ac_cache_corrupted=false | |
2641 | for ac_var in $ac_precious_vars; do | |
2642 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2643 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2644 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2645 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2646 | case $ac_old_set,$ac_new_set in | |
2647 | set,) | |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2649 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2650 | ac_cache_corrupted=: ;; | |
2651 | ,set) | |
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2653 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2654 | ac_cache_corrupted=: ;; | |
2655 | ,);; | |
2656 | *) | |
2657 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2658 | # differences in whitespace do not lead to failure. | |
2659 | ac_old_val_w=`echo x $ac_old_val` | |
2660 | ac_new_val_w=`echo x $ac_new_val` | |
2661 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2663 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2664 | ac_cache_corrupted=: | |
2665 | else | |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2667 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2668 | eval $ac_var=\$ac_old_val | |
2669 | fi | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2671 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2673 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2674 | fi;; | |
2675 | esac | |
2676 | # Pass precious variables to config.status. | |
2677 | if test "$ac_new_set" = set; then | |
2678 | case $ac_new_val in | |
2679 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2680 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2681 | esac | |
2682 | case " $ac_configure_args " in | |
2683 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2684 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2685 | esac | |
2686 | fi | |
2687 | done | |
2688 | if $ac_cache_corrupted; then | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2690 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2692 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2693 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2694 | fi |
f11781c5 AK |
2695 | ## -------------------- ## |
2696 | ## Main body of script. ## | |
2697 | ## -------------------- ## | |
ad6254c5 | 2698 | |
f11781c5 AK |
2699 | ac_ext=c |
2700 | ac_cpp='$CPP $CPPFLAGS' | |
2701 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2702 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2703 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2704 | |
ad6254c5 | 2705 | |
ad6254c5 | 2706 | |
f11781c5 | 2707 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2708 | |
2709 | ||
f11781c5 AK |
2710 | ################################################################################ |
2711 | ac_aux_dir= | |
2712 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2713 | if test -f "$ac_dir/install-sh"; then | |
2714 | ac_aux_dir=$ac_dir | |
2715 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2716 | break | |
2717 | elif test -f "$ac_dir/install.sh"; then | |
2718 | ac_aux_dir=$ac_dir | |
2719 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2720 | break | |
2721 | elif test -f "$ac_dir/shtool"; then | |
2722 | ac_aux_dir=$ac_dir | |
2723 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2724 | break | |
2725 | fi | |
2726 | done | |
2727 | if test -z "$ac_aux_dir"; then | |
2728 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2729 | fi |
ad6254c5 | 2730 | |
f11781c5 AK |
2731 | # These three variables are undocumented and unsupported, |
2732 | # and are intended to be withdrawn in a future Autoconf release. | |
2733 | # They can cause serious problems if a builder's source tree is in a directory | |
2734 | # whose full name contains unusual characters. | |
2735 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2736 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2737 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2738 | |
ad6254c5 | 2739 | |
8a2fc586 | 2740 | |
f11781c5 AK |
2741 | ################################################################################ |
2742 | # Make sure we can run config.sub. | |
2743 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2744 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2745 | |
f11781c5 AK |
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2747 | $as_echo_n "checking build system type... " >&6; } | |
2748 | if test "${ac_cv_build+set}" = set; then : | |
2749 | $as_echo_n "(cached) " >&6 | |
2750 | else | |
2751 | ac_build_alias=$build_alias | |
2752 | test "x$ac_build_alias" = x && | |
2753 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2754 | test "x$ac_build_alias" = x && | |
2755 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2756 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2757 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2758 | |
2759 | fi | |
f11781c5 AK |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2761 | $as_echo "$ac_cv_build" >&6; } | |
2762 | case $ac_cv_build in | |
2763 | *-*-*) ;; | |
2764 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2765 | esac | |
2766 | build=$ac_cv_build | |
2767 | ac_save_IFS=$IFS; IFS='-' | |
2768 | set x $ac_cv_build | |
2769 | shift | |
2770 | build_cpu=$1 | |
2771 | build_vendor=$2 | |
2772 | shift; shift | |
2773 | # Remember, the first character of IFS is used to create $*, | |
2774 | # except with old shells: | |
2775 | build_os=$* | |
2776 | IFS=$ac_save_IFS | |
2777 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2778 | |
2779 | ||
f11781c5 AK |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2781 | $as_echo_n "checking host system type... " >&6; } | |
2782 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2783 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2784 | else |
f11781c5 AK |
2785 | if test "x$host_alias" = x; then |
2786 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2787 | else |
f11781c5 AK |
2788 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2789 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2790 | fi | |
ad6254c5 | 2791 | |
f11781c5 AK |
2792 | fi |
2793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2794 | $as_echo "$ac_cv_host" >&6; } | |
2795 | case $ac_cv_host in | |
2796 | *-*-*) ;; | |
2797 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2798 | esac | |
2799 | host=$ac_cv_host | |
2800 | ac_save_IFS=$IFS; IFS='-' | |
2801 | set x $ac_cv_host | |
2802 | shift | |
2803 | host_cpu=$1 | |
2804 | host_vendor=$2 | |
2805 | shift; shift | |
2806 | # Remember, the first character of IFS is used to create $*, | |
2807 | # except with old shells: | |
2808 | host_os=$* | |
2809 | IFS=$ac_save_IFS | |
2810 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2811 | |
ad6254c5 | 2812 | |
f11781c5 AK |
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2814 | $as_echo_n "checking target system type... " >&6; } | |
2815 | if test "${ac_cv_target+set}" = set; then : | |
2816 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2817 | else |
f11781c5 AK |
2818 | if test "x$target_alias" = x; then |
2819 | ac_cv_target=$ac_cv_host | |
2820 | else | |
2821 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2822 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2823 | fi |
7a197a62 | 2824 | |
ad6254c5 | 2825 | fi |
f11781c5 AK |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2827 | $as_echo "$ac_cv_target" >&6; } | |
2828 | case $ac_cv_target in | |
2829 | *-*-*) ;; | |
2830 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2831 | esac |
f11781c5 AK |
2832 | target=$ac_cv_target |
2833 | ac_save_IFS=$IFS; IFS='-' | |
2834 | set x $ac_cv_target | |
2835 | shift | |
2836 | target_cpu=$1 | |
2837 | target_vendor=$2 | |
2838 | shift; shift | |
2839 | # Remember, the first character of IFS is used to create $*, | |
2840 | # except with old shells: | |
2841 | target_os=$* | |
2842 | IFS=$ac_save_IFS | |
2843 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2844 | |
ad6254c5 | 2845 | |
f11781c5 AK |
2846 | # The aliases save the names the user supplied, while $host etc. |
2847 | # will get canonicalized. | |
2848 | test -n "$target_alias" && | |
2849 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2850 | NONENONEs,x,x, && | |
2851 | program_prefix=${target_alias}- | |
ad6254c5 | 2852 | |
f11781c5 AK |
2853 | case "$host_os" in |
2854 | linux*) | |
2855 | CFLAGS="$CFLAGS" | |
2856 | COPTIMISE_FLAG="-O2" | |
2857 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
bf09a320 AK |
2858 | ELDFLAGS="-Wl,--export-dynamic" |
2859 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
f11781c5 AK |
2860 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
2861 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2862 | LDDEPS="$LDDEPS .export.sym" | |
f11781c5 AK |
2863 | LIB_SUFFIX=so |
2864 | DEVMAPPER=yes | |
cdd50823 | 2865 | LVMETAD=no |
f11781c5 AK |
2866 | ODIRECT=yes |
2867 | DM_IOCTLS=yes | |
2868 | SELINUX=yes | |
2869 | CLUSTER=internal | |
2870 | FSADM=yes | |
2871 | ;; | |
2872 | darwin*) | |
2873 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2874 | COPTIMISE_FLAG="-O2" | |
2875 | CLDFLAGS="$CLDFLAGS" | |
bf09a320 | 2876 | ELDFLAGS= |
f11781c5 AK |
2877 | CLDWHOLEARCHIVE="-all_load" |
2878 | CLDNOWHOLEARCHIVE= | |
2879 | LIB_SUFFIX=dylib | |
2880 | DEVMAPPER=yes | |
2881 | ODIRECT=no | |
2882 | DM_IOCTLS=no | |
2883 | SELINUX=no | |
2884 | CLUSTER=none | |
2885 | FSADM=no | |
2886 | ;; | |
2887 | esac | |
ad6254c5 | 2888 | |
3d962ed6 AK |
2889 | VERITYSETUP=no |
2890 | ||
f11781c5 AK |
2891 | ################################################################################ |
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2893 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2894 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2895 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2896 | else |
f11781c5 AK |
2897 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2898 | for ac_i in 1 2 3 4 5 6 7; do | |
2899 | ac_script="$ac_script$as_nl$ac_script" | |
2900 | done | |
2901 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2902 | { ac_script=; unset ac_script;} | |
2903 | if test -z "$SED"; then | |
2904 | ac_path_SED_found=false | |
2905 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2907 | for as_dir in $PATH | |
2908 | do | |
2909 | IFS=$as_save_IFS | |
2910 | test -z "$as_dir" && as_dir=. | |
2911 | for ac_prog in sed gsed; do | |
2912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2913 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2914 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2915 | # Check for GNU ac_path_SED and select it if it is found. | |
2916 | # Check for GNU $ac_path_SED | |
2917 | case `"$ac_path_SED" --version 2>&1` in | |
2918 | *GNU*) | |
2919 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2920 | *) | |
2921 | ac_count=0 | |
2922 | $as_echo_n 0123456789 >"conftest.in" | |
2923 | while : | |
2924 | do | |
2925 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2926 | mv "conftest.tmp" "conftest.in" | |
2927 | cp "conftest.in" "conftest.nl" | |
2928 | $as_echo '' >> "conftest.nl" | |
2929 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2930 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2931 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2932 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2933 | # Best one so far, save it but keep looking for a better one | |
2934 | ac_cv_path_SED="$ac_path_SED" | |
2935 | ac_path_SED_max=$ac_count | |
2936 | fi | |
2937 | # 10*(2^10) chars as input seems more than enough | |
2938 | test $ac_count -gt 10 && break | |
2939 | done | |
2940 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2941 | esac |
ad6254c5 | 2942 | |
f11781c5 AK |
2943 | $ac_path_SED_found && break 3 |
2944 | done | |
2945 | done | |
2946 | done | |
2947 | IFS=$as_save_IFS | |
2948 | if test -z "$ac_cv_path_SED"; then | |
2949 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2950 | fi | |
2951 | else | |
2952 | ac_cv_path_SED=$SED | |
ad6254c5 | 2953 | fi |
7a197a62 | 2954 | |
f11781c5 AK |
2955 | fi |
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2957 | $as_echo "$ac_cv_path_SED" >&6; } | |
2958 | SED="$ac_cv_path_SED" | |
2959 | rm -f conftest.sed | |
ad6254c5 | 2960 | |
f11781c5 AK |
2961 | for ac_prog in gawk mawk nawk awk |
2962 | do | |
2963 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2964 | set dummy $ac_prog; ac_word=$2 | |
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2966 | $as_echo_n "checking for $ac_word... " >&6; } | |
2967 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2968 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2969 | else |
f11781c5 AK |
2970 | if test -n "$AWK"; then |
2971 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2972 | else | |
2973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2974 | for as_dir in $PATH | |
2975 | do | |
2976 | IFS=$as_save_IFS | |
2977 | test -z "$as_dir" && as_dir=. | |
2978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2980 | ac_cv_prog_AWK="$ac_prog" | |
2981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2982 | break 2 | |
2983 | fi | |
2984 | done | |
2985 | done | |
2986 | IFS=$as_save_IFS | |
ad6254c5 | 2987 | |
ad6254c5 | 2988 | fi |
ad6254c5 | 2989 | fi |
f11781c5 AK |
2990 | AWK=$ac_cv_prog_AWK |
2991 | if test -n "$AWK"; then | |
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2993 | $as_echo "$AWK" >&6; } | |
2994 | else | |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2996 | $as_echo "no" >&6; } | |
ad6254c5 | 2997 | fi |
ad6254c5 | 2998 | |
ad6254c5 | 2999 | |
f11781c5 | 3000 | test -n "$AWK" && break |
ad6254c5 AK |
3001 | done |
3002 | ||
f11781c5 AK |
3003 | ac_ext=c |
3004 | ac_cpp='$CPP $CPPFLAGS' | |
3005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3008 | if test -n "$ac_tool_prefix"; then | |
3009 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3010 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3012 | $as_echo_n "checking for $ac_word... " >&6; } | |
3013 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 3014 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3015 | else |
f11781c5 AK |
3016 | if test -n "$CC"; then |
3017 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 3018 | else |
f11781c5 AK |
3019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3020 | for as_dir in $PATH | |
3021 | do | |
3022 | IFS=$as_save_IFS | |
3023 | test -z "$as_dir" && as_dir=. | |
3024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3026 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3028 | break 2 | |
3029 | fi | |
3030 | done | |
3031 | done | |
3032 | IFS=$as_save_IFS | |
ad6254c5 | 3033 | |
ad6254c5 | 3034 | fi |
ad6254c5 | 3035 | fi |
f11781c5 AK |
3036 | CC=$ac_cv_prog_CC |
3037 | if test -n "$CC"; then | |
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3039 | $as_echo "$CC" >&6; } | |
3040 | else | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3042 | $as_echo "no" >&6; } | |
ad6254c5 | 3043 | fi |
ad6254c5 | 3044 | |
f11781c5 AK |
3045 | |
3046 | fi | |
3047 | if test -z "$ac_cv_prog_CC"; then | |
3048 | ac_ct_CC=$CC | |
3049 | # Extract the first word of "gcc", so it can be a program name with args. | |
3050 | set dummy gcc; ac_word=$2 | |
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3052 | $as_echo_n "checking for $ac_word... " >&6; } | |
3053 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3054 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3055 | else |
f11781c5 AK |
3056 | if test -n "$ac_ct_CC"; then |
3057 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3058 | else |
f11781c5 AK |
3059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3060 | for as_dir in $PATH | |
3061 | do | |
3062 | IFS=$as_save_IFS | |
3063 | test -z "$as_dir" && as_dir=. | |
3064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3066 | ac_cv_prog_ac_ct_CC="gcc" | |
3067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3068 | break 2 | |
3069 | fi | |
3070 | done | |
3071 | done | |
3072 | IFS=$as_save_IFS | |
d911ec67 | 3073 | |
d911ec67 | 3074 | fi |
d911ec67 | 3075 | fi |
f11781c5 AK |
3076 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3077 | if test -n "$ac_ct_CC"; then | |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3079 | $as_echo "$ac_ct_CC" >&6; } | |
3080 | else | |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3082 | $as_echo "no" >&6; } | |
d911ec67 | 3083 | fi |
d911ec67 | 3084 | |
f11781c5 AK |
3085 | if test "x$ac_ct_CC" = x; then |
3086 | CC="" | |
3087 | else | |
3088 | case $cross_compiling:$ac_tool_warned in | |
3089 | yes:) | |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3092 | ac_tool_warned=yes ;; | |
3093 | esac | |
3094 | CC=$ac_ct_CC | |
3095 | fi | |
3096 | else | |
3097 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3098 | fi |
d911ec67 | 3099 | |
f11781c5 AK |
3100 | if test -z "$CC"; then |
3101 | if test -n "$ac_tool_prefix"; then | |
3102 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3103 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3105 | $as_echo_n "checking for $ac_word... " >&6; } | |
3106 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3107 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3108 | else |
f11781c5 AK |
3109 | if test -n "$CC"; then |
3110 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3111 | else |
f11781c5 AK |
3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3113 | for as_dir in $PATH | |
3114 | do | |
3115 | IFS=$as_save_IFS | |
3116 | test -z "$as_dir" && as_dir=. | |
3117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3119 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3121 | break 2 | |
3122 | fi | |
3123 | done | |
3124 | done | |
3125 | IFS=$as_save_IFS | |
d911ec67 | 3126 | |
f11781c5 AK |
3127 | fi |
3128 | fi | |
3129 | CC=$ac_cv_prog_CC | |
3130 | if test -n "$CC"; then | |
3131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3132 | $as_echo "$CC" >&6; } | |
3133 | else | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3135 | $as_echo "no" >&6; } | |
d911ec67 AK |
3136 | fi |
3137 | ||
d911ec67 | 3138 | |
f11781c5 AK |
3139 | fi |
3140 | fi | |
3141 | if test -z "$CC"; then | |
3142 | # Extract the first word of "cc", so it can be a program name with args. | |
3143 | set dummy cc; ac_word=$2 | |
3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3145 | $as_echo_n "checking for $ac_word... " >&6; } | |
3146 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3147 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3148 | else |
f11781c5 AK |
3149 | if test -n "$CC"; then |
3150 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3151 | else | |
3152 | ac_prog_rejected=no | |
3153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3154 | for as_dir in $PATH | |
3155 | do | |
3156 | IFS=$as_save_IFS | |
3157 | test -z "$as_dir" && as_dir=. | |
3158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3160 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3161 | ac_prog_rejected=yes | |
3162 | continue | |
3163 | fi | |
3164 | ac_cv_prog_CC="cc" | |
3165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3166 | break 2 | |
3167 | fi | |
3168 | done | |
3169 | done | |
3170 | IFS=$as_save_IFS | |
d911ec67 | 3171 | |
f11781c5 AK |
3172 | if test $ac_prog_rejected = yes; then |
3173 | # We found a bogon in the path, so make sure we never use it. | |
3174 | set dummy $ac_cv_prog_CC | |
3175 | shift | |
3176 | if test $# != 0; then | |
3177 | # We chose a different compiler from the bogus one. | |
3178 | # However, it has the same basename, so the bogon will be chosen | |
3179 | # first if we set CC to just the basename; use the full file name. | |
3180 | shift | |
3181 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3182 | fi | |
3183 | fi | |
3184 | fi | |
3185 | fi | |
3186 | CC=$ac_cv_prog_CC | |
3187 | if test -n "$CC"; then | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3189 | $as_echo "$CC" >&6; } | |
3190 | else | |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3192 | $as_echo "no" >&6; } | |
d911ec67 AK |
3193 | fi |
3194 | ||
d911ec67 | 3195 | |
f11781c5 AK |
3196 | fi |
3197 | if test -z "$CC"; then | |
3198 | if test -n "$ac_tool_prefix"; then | |
3199 | for ac_prog in cl.exe | |
3200 | do | |
3201 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3202 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3204 | $as_echo_n "checking for $ac_word... " >&6; } | |
3205 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3206 | $as_echo_n "(cached) " >&6 |
3207 | else | |
f11781c5 AK |
3208 | if test -n "$CC"; then |
3209 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3210 | else | |
3211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3212 | for as_dir in $PATH | |
3213 | do | |
3214 | IFS=$as_save_IFS | |
3215 | test -z "$as_dir" && as_dir=. | |
3216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3218 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3220 | break 2 | |
3221 | fi | |
3222 | done | |
3223 | done | |
3224 | IFS=$as_save_IFS | |
d911ec67 AK |
3225 | |
3226 | fi | |
f11781c5 AK |
3227 | fi |
3228 | CC=$ac_cv_prog_CC | |
3229 | if test -n "$CC"; then | |
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3231 | $as_echo "$CC" >&6; } | |
3232 | else | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3234 | $as_echo "no" >&6; } | |
d911ec67 AK |
3235 | fi |
3236 | ||
d911ec67 | 3237 | |
f11781c5 AK |
3238 | test -n "$CC" && break |
3239 | done | |
3240 | fi | |
3241 | if test -z "$CC"; then | |
3242 | ac_ct_CC=$CC | |
3243 | for ac_prog in cl.exe | |
3244 | do | |
3245 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3246 | set dummy $ac_prog; ac_word=$2 | |
3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3248 | $as_echo_n "checking for $ac_word... " >&6; } | |
3249 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3250 | $as_echo_n "(cached) " >&6 |
3251 | else | |
f11781c5 AK |
3252 | if test -n "$ac_ct_CC"; then |
3253 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3254 | else |
f11781c5 AK |
3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3256 | for as_dir in $PATH | |
3257 | do | |
3258 | IFS=$as_save_IFS | |
3259 | test -z "$as_dir" && as_dir=. | |
3260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3262 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3263 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3264 | break 2 | |
3265 | fi | |
3266 | done | |
3267 | done | |
3268 | IFS=$as_save_IFS | |
ad6254c5 | 3269 | |
ad6254c5 | 3270 | fi |
ad6254c5 | 3271 | fi |
f11781c5 AK |
3272 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3273 | if test -n "$ac_ct_CC"; then | |
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3275 | $as_echo "$ac_ct_CC" >&6; } | |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3278 | $as_echo "no" >&6; } | |
ad6254c5 | 3279 | fi |
ad6254c5 | 3280 | |
d911ec67 | 3281 | |
f11781c5 AK |
3282 | test -n "$ac_ct_CC" && break |
3283 | done | |
d911ec67 | 3284 | |
f11781c5 AK |
3285 | if test "x$ac_ct_CC" = x; then |
3286 | CC="" | |
3287 | else | |
3288 | case $cross_compiling:$ac_tool_warned in | |
3289 | yes:) | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3291 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3292 | ac_tool_warned=yes ;; | |
d911ec67 | 3293 | esac |
f11781c5 AK |
3294 | CC=$ac_ct_CC |
3295 | fi | |
3296 | fi | |
ad6254c5 AK |
3297 | |
3298 | fi | |
d911ec67 AK |
3299 | |
3300 | ||
f11781c5 AK |
3301 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3302 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3303 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3304 | See \`config.log' for more details" "$LINENO" 5; } | |
3305 | ||
3306 | # Provide some information about the compiler. | |
3307 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3308 | set X $ac_compile | |
3309 | ac_compiler=$2 | |
3310 | for ac_option in --version -v -V -qversion; do | |
3311 | { { ac_try="$ac_compiler $ac_option >&5" | |
3312 | case "(($ac_try" in | |
3313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3314 | *) ac_try_echo=$ac_try;; | |
3315 | esac | |
3316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3317 | $as_echo "$ac_try_echo"; } >&5 | |
3318 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3319 | ac_status=$? | |
3320 | if test -s conftest.err; then | |
3321 | sed '10a\ | |
3322 | ... rest of stderr output deleted ... | |
3323 | 10q' conftest.err >conftest.er1 | |
3324 | cat conftest.er1 >&5 | |
3325 | fi | |
3326 | rm -f conftest.er1 conftest.err | |
3327 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3328 | test $ac_status = 0; } | |
3329 | done | |
ad6254c5 | 3330 | |
f11781c5 | 3331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3332 | /* end confdefs.h. */ |
f11781c5 | 3333 | |
ad6254c5 AK |
3334 | int |
3335 | main () | |
3336 | { | |
f11781c5 | 3337 | |
ad6254c5 AK |
3338 | ; |
3339 | return 0; | |
3340 | } | |
3341 | _ACEOF | |
f11781c5 AK |
3342 | ac_clean_files_save=$ac_clean_files |
3343 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3344 | # Try to create an executable without -o first, disregard a.out. | |
3345 | # It will help us diagnose broken compilers, and finding out an intuition | |
3346 | # of exeext. | |
3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3348 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3349 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3350 | ||
3351 | # The possible output files: | |
3352 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3353 | ||
3354 | ac_rmfiles= | |
3355 | for ac_file in $ac_files | |
3356 | do | |
3357 | case $ac_file in | |
3358 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3359 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3360 | esac | |
3361 | done | |
3362 | rm -f $ac_rmfiles | |
3363 | ||
3364 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3365 | case "(($ac_try" in |
3366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3367 | *) ac_try_echo=$ac_try;; | |
3368 | esac | |
f11781c5 AK |
3369 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3370 | $as_echo "$ac_try_echo"; } >&5 | |
3371 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3372 | ac_status=$? |
f11781c5 AK |
3373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3374 | test $ac_status = 0; }; then : | |
3375 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3376 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3377 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3378 | # so that the user can short-circuit this test for compilers unknown to | |
3379 | # Autoconf. | |
3380 | for ac_file in $ac_files '' | |
3381 | do | |
3382 | test -f "$ac_file" || continue | |
3383 | case $ac_file in | |
3384 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3385 | ;; | |
3386 | [ab].out ) | |
3387 | # We found the default executable, but exeext='' is most | |
3388 | # certainly right. | |
3389 | break;; | |
3390 | *.* ) | |
3391 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3392 | then :; else | |
3393 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3394 | fi | |
3395 | # We set ac_cv_exeext here because the later test for it is not | |
3396 | # safe: cross compilers may not add the suffix if given an `-o' | |
3397 | # argument, so we may need to know it at that point already. | |
3398 | # Even if this section looks crufty: it has the advantage of | |
3399 | # actually working. | |
3400 | break;; | |
3401 | * ) | |
3402 | break;; | |
3403 | esac | |
3404 | done | |
3405 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3406 | ||
ad6254c5 | 3407 | else |
f11781c5 AK |
3408 | ac_file='' |
3409 | fi | |
3410 | if test -z "$ac_file"; then : | |
3411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3412 | $as_echo "no" >&6; } | |
ec6a6fbe | 3413 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3414 | sed 's/^/| /' conftest.$ac_ext >&5 |
3415 | ||
f11781c5 AK |
3416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3418 | as_fn_error 77 "C compiler cannot create executables | |
3419 | See \`config.log' for more details" "$LINENO" 5; } | |
3420 | else | |
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3422 | $as_echo "yes" >&6; } | |
ad6254c5 | 3423 | fi |
f11781c5 AK |
3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3425 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3427 | $as_echo "$ac_file" >&6; } | |
3428 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3429 | |
f11781c5 AK |
3430 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3431 | ac_clean_files=$ac_clean_files_save | |
3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3433 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3434 | if { { ac_try="$ac_link" | |
3435 | case "(($ac_try" in | |
3436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3437 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3438 | esac |
f11781c5 AK |
3439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3440 | $as_echo "$ac_try_echo"; } >&5 | |
3441 | (eval "$ac_link") 2>&5 | |
3442 | ac_status=$? | |
3443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3444 | test $ac_status = 0; }; then : | |
3445 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3446 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3447 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3448 | # `rm'. | |
3449 | for ac_file in conftest.exe conftest conftest.*; do | |
3450 | test -f "$ac_file" || continue | |
3451 | case $ac_file in | |
3452 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3453 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3454 | break;; | |
3455 | * ) break;; | |
3456 | esac | |
3457 | done | |
3458 | else | |
3459 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3460 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3461 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3462 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3463 | fi |
f11781c5 AK |
3464 | rm -f conftest conftest$ac_cv_exeext |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3466 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3467 | |
f11781c5 AK |
3468 | rm -f conftest.$ac_ext |
3469 | EXEEXT=$ac_cv_exeext | |
3470 | ac_exeext=$EXEEXT | |
3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3472 | /* end confdefs.h. */ |
f11781c5 | 3473 | #include <stdio.h> |
ad6254c5 | 3474 | int |
f11781c5 | 3475 | main () |
ad6254c5 | 3476 | { |
f11781c5 AK |
3477 | FILE *f = fopen ("conftest.out", "w"); |
3478 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3479 | |
f11781c5 | 3480 | ; |
7a197a62 | 3481 | return 0; |
ad6254c5 | 3482 | } |
ad6254c5 | 3483 | _ACEOF |
f11781c5 AK |
3484 | ac_clean_files="$ac_clean_files conftest.out" |
3485 | # Check that the compiler produces executables we can run. If not, either | |
3486 | # the compiler is broken, or we cross compile. | |
3487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3488 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3489 | if test "$cross_compiling" != yes; then | |
3490 | { { ac_try="$ac_link" | |
7a197a62 AK |
3491 | case "(($ac_try" in |
3492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3493 | *) ac_try_echo=$ac_try;; | |
3494 | esac | |
f11781c5 AK |
3495 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3496 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3497 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3498 | ac_status=$? |
f11781c5 AK |
3499 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3500 | test $ac_status = 0; } | |
3501 | if { ac_try='./conftest$ac_cv_exeext' | |
3502 | { { case "(($ac_try" in | |
7a197a62 AK |
3503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3504 | *) ac_try_echo=$ac_try;; | |
3505 | esac | |
f11781c5 AK |
3506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3507 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3508 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3509 | ac_status=$? |
f11781c5 AK |
3510 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3511 | test $ac_status = 0; }; }; then | |
3512 | cross_compiling=no | |
3513 | else | |
3514 | if test "$cross_compiling" = maybe; then | |
3515 | cross_compiling=yes | |
3516 | else | |
3517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3519 | as_fn_error $? "cannot run C compiled programs. | |
3520 | If you meant to cross compile, use \`--host'. | |
3521 | See \`config.log' for more details" "$LINENO" 5; } | |
3522 | fi | |
3523 | fi | |
3524 | fi | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3526 | $as_echo "$cross_compiling" >&6; } | |
3527 | ||
3528 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3529 | ac_clean_files=$ac_clean_files_save | |
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3531 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3532 | if test "${ac_cv_objext+set}" = set; then : | |
3533 | $as_echo_n "(cached) " >&6 | |
3534 | else | |
3535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3536 | /* end confdefs.h. */ | |
ad6254c5 AK |
3537 | |
3538 | int | |
3539 | main () | |
3540 | { | |
f11781c5 | 3541 | |
ad6254c5 AK |
3542 | ; |
3543 | return 0; | |
3544 | } | |
3545 | _ACEOF | |
f11781c5 AK |
3546 | rm -f conftest.o conftest.obj |
3547 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3548 | case "(($ac_try" in |
3549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3550 | *) ac_try_echo=$ac_try;; | |
3551 | esac | |
f11781c5 AK |
3552 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3553 | $as_echo "$ac_try_echo"; } >&5 | |
3554 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3555 | ac_status=$? |
f11781c5 AK |
3556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3557 | test $ac_status = 0; }; then : | |
3558 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3559 | test -f "$ac_file" || continue; | |
3560 | case $ac_file in | |
3561 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3562 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3563 | break;; | |
3564 | esac | |
3565 | done | |
ad6254c5 | 3566 | else |
ec6a6fbe | 3567 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3568 | sed 's/^/| /' conftest.$ac_ext >&5 |
3569 | ||
f11781c5 AK |
3570 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3572 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3573 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3574 | fi |
f11781c5 | 3575 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3576 | fi |
f11781c5 AK |
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3578 | $as_echo "$ac_cv_objext" >&6; } | |
3579 | OBJEXT=$ac_cv_objext | |
3580 | ac_objext=$OBJEXT | |
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3582 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3583 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3584 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3585 | else |
f11781c5 | 3586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3587 | /* end confdefs.h. */ |
3588 | ||
ad6254c5 AK |
3589 | int |
3590 | main () | |
3591 | { | |
f11781c5 AK |
3592 | #ifndef __GNUC__ |
3593 | choke me | |
3594 | #endif | |
3595 | ||
ad6254c5 AK |
3596 | ; |
3597 | return 0; | |
3598 | } | |
3599 | _ACEOF | |
f11781c5 AK |
3600 | if ac_fn_c_try_compile "$LINENO"; then : |
3601 | ac_compiler_gnu=yes | |
ad6254c5 | 3602 | else |
f11781c5 | 3603 | ac_compiler_gnu=no |
ad6254c5 | 3604 | fi |
f11781c5 AK |
3605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3606 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3607 | |
d0191583 | 3608 | fi |
f11781c5 AK |
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3610 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3611 | if test $ac_compiler_gnu = yes; then | |
3612 | GCC=yes | |
d0191583 | 3613 | else |
f11781c5 | 3614 | GCC= |
d0191583 | 3615 | fi |
f11781c5 AK |
3616 | ac_test_CFLAGS=${CFLAGS+set} |
3617 | ac_save_CFLAGS=$CFLAGS | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3619 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3620 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3621 | $as_echo_n "(cached) " >&6 | |
3622 | else | |
3623 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3624 | ac_c_werror_flag=yes | |
3625 | ac_cv_prog_cc_g=no | |
3626 | CFLAGS="-g" | |
3627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3628 | /* end confdefs.h. */ | |
72b2cb61 | 3629 | |
f11781c5 AK |
3630 | int |
3631 | main () | |
3632 | { | |
72b2cb61 | 3633 | |
f11781c5 AK |
3634 | ; |
3635 | return 0; | |
3636 | } | |
3637 | _ACEOF | |
3638 | if ac_fn_c_try_compile "$LINENO"; then : | |
3639 | ac_cv_prog_cc_g=yes | |
3640 | else | |
3641 | CFLAGS="" | |
3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3643 | /* end confdefs.h. */ | |
ad6254c5 | 3644 | |
f11781c5 AK |
3645 | int |
3646 | main () | |
3647 | { | |
ad6254c5 | 3648 | |
f11781c5 AK |
3649 | ; |
3650 | return 0; | |
3651 | } | |
d0191583 | 3652 | _ACEOF |
f11781c5 AK |
3653 | if ac_fn_c_try_compile "$LINENO"; then : |
3654 | ||
3655 | else | |
3656 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3657 | CFLAGS="-g" | |
3658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3659 | /* end confdefs.h. */ |
7a197a62 | 3660 | |
f11781c5 AK |
3661 | int |
3662 | main () | |
3663 | { | |
ad6254c5 | 3664 | |
f11781c5 AK |
3665 | ; |
3666 | return 0; | |
3667 | } | |
3668 | _ACEOF | |
3669 | if ac_fn_c_try_compile "$LINENO"; then : | |
3670 | ac_cv_prog_cc_g=yes | |
3671 | fi | |
3672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3673 | fi | |
3674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3675 | fi | |
3676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3677 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3678 | fi | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3680 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3681 | if test "$ac_test_CFLAGS" = set; then | |
3682 | CFLAGS=$ac_save_CFLAGS | |
3683 | elif test $ac_cv_prog_cc_g = yes; then | |
3684 | if test "$GCC" = yes; then | |
3685 | CFLAGS="-g -O2" | |
3686 | else | |
3687 | CFLAGS="-g" | |
3688 | fi | |
3689 | else | |
3690 | if test "$GCC" = yes; then | |
3691 | CFLAGS="-O2" | |
3692 | else | |
3693 | CFLAGS= | |
3694 | fi | |
3695 | fi | |
3696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3697 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3698 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3699 | $as_echo_n "(cached) " >&6 | |
3700 | else | |
3701 | ac_cv_prog_cc_c89=no | |
3702 | ac_save_CC=$CC | |
3703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3704 | /* end confdefs.h. */ | |
3705 | #include <stdarg.h> | |
3706 | #include <stdio.h> | |
3707 | #include <sys/types.h> | |
3708 | #include <sys/stat.h> | |
3709 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3710 | struct buf { int x; }; | |
3711 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3712 | static char *e (p, i) | |
3713 | char **p; | |
3714 | int i; | |
3715 | { | |
3716 | return p[i]; | |
3717 | } | |
3718 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3719 | { | |
3720 | char *s; | |
3721 | va_list v; | |
3722 | va_start (v,p); | |
3723 | s = g (p, va_arg (v,int)); | |
3724 | va_end (v); | |
3725 | return s; | |
3726 | } | |
ad6254c5 | 3727 | |
f11781c5 AK |
3728 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3729 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3730 | These don't provoke an error unfortunately, instead are silently treated | |
3731 | as 'x'. The following induces an error, until -std is added to get | |
3732 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3733 | array size at least. It's necessary to write '\x00'==0 to get something | |
3734 | that's true only with -std. */ | |
3735 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3736 | |
f11781c5 AK |
3737 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3738 | inside strings and character constants. */ | |
3739 | #define FOO(x) 'x' | |
3740 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3741 | |
f11781c5 AK |
3742 | int test (int i, double x); |
3743 | struct s1 {int (*f) (int a);}; | |
3744 | struct s2 {int (*f) (double a);}; | |
3745 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3746 | int argc; | |
3747 | char **argv; | |
d0191583 JM |
3748 | int |
3749 | main () | |
3750 | { | |
f11781c5 | 3751 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3752 | ; |
3753 | return 0; | |
3754 | } | |
72b2cb61 | 3755 | _ACEOF |
f11781c5 AK |
3756 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3757 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3758 | do | |
3759 | CC="$ac_save_CC $ac_arg" | |
3760 | if ac_fn_c_try_compile "$LINENO"; then : | |
3761 | ac_cv_prog_cc_c89=$ac_arg | |
3762 | fi | |
3763 | rm -f core conftest.err conftest.$ac_objext | |
3764 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3765 | done | |
3766 | rm -f conftest.$ac_ext | |
3767 | CC=$ac_save_CC | |
3768 | ||
3769 | fi | |
3770 | # AC_CACHE_VAL | |
3771 | case "x$ac_cv_prog_cc_c89" in | |
3772 | x) | |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3774 | $as_echo "none needed" >&6; } ;; | |
3775 | xno) | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3777 | $as_echo "unsupported" >&6; } ;; | |
3778 | *) | |
3779 | CC="$CC $ac_cv_prog_cc_c89" | |
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3781 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3782 | esac |
f11781c5 AK |
3783 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3784 | ||
3785 | fi | |
3786 | ||
3787 | ac_ext=c | |
3788 | ac_cpp='$CPP $CPPFLAGS' | |
3789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3792 | |
ad6254c5 | 3793 | |
7a197a62 | 3794 | |
f11781c5 AK |
3795 | ac_ext=c |
3796 | ac_cpp='$CPP $CPPFLAGS' | |
3797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3801 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3802 | # On Suns, sometimes $CPP names a directory. | |
3803 | if test -n "$CPP" && test -d "$CPP"; then | |
3804 | CPP= | |
3805 | fi | |
3806 | if test -z "$CPP"; then | |
3807 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3808 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3809 | else |
f11781c5 AK |
3810 | # Double quotes because CPP needs to be expanded |
3811 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3812 | do | |
3813 | ac_preproc_ok=false | |
3814 | for ac_c_preproc_warn_flag in '' yes | |
3815 | do | |
3816 | # Use a header file that comes with gcc, so configuring glibc | |
3817 | # with a fresh cross-compiler works. | |
3818 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3819 | # <limits.h> exists even on freestanding compilers. | |
3820 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3821 | # not just through cpp. "Syntax error" is here to catch this case. | |
3822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3823 | /* end confdefs.h. */ |
d0191583 JM |
3824 | #ifdef __STDC__ |
3825 | # include <limits.h> | |
3826 | #else | |
3827 | # include <assert.h> | |
3828 | #endif | |
f11781c5 AK |
3829 | Syntax error |
3830 | _ACEOF | |
3831 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3832 | |
f11781c5 AK |
3833 | else |
3834 | # Broken: fails on valid input. | |
3835 | continue | |
3836 | fi | |
3837 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3838 | |
f11781c5 AK |
3839 | # OK, works on sane cases. Now check whether nonexistent headers |
3840 | # can be detected and how. | |
3841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3842 | /* end confdefs.h. */ | |
3843 | #include <ac_nonexistent.h> | |
72b2cb61 | 3844 | _ACEOF |
f11781c5 AK |
3845 | if ac_fn_c_try_cpp "$LINENO"; then : |
3846 | # Broken: success on invalid input. | |
3847 | continue | |
d0191583 | 3848 | else |
f11781c5 AK |
3849 | # Passes both tests. |
3850 | ac_preproc_ok=: | |
3851 | break | |
ad6254c5 | 3852 | fi |
f11781c5 | 3853 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3854 | |
f11781c5 AK |
3855 | done |
3856 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3857 | rm -f conftest.err conftest.$ac_ext | |
3858 | if $ac_preproc_ok; then : | |
3859 | break | |
7a197a62 AK |
3860 | fi |
3861 | ||
f11781c5 AK |
3862 | done |
3863 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3864 | |
7a197a62 | 3865 | fi |
f11781c5 AK |
3866 | CPP=$ac_cv_prog_CPP |
3867 | else | |
3868 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3869 | fi |
f11781c5 AK |
3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3871 | $as_echo "$CPP" >&6; } | |
3872 | ac_preproc_ok=false | |
3873 | for ac_c_preproc_warn_flag in '' yes | |
3874 | do | |
3875 | # Use a header file that comes with gcc, so configuring glibc | |
3876 | # with a fresh cross-compiler works. | |
3877 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3878 | # <limits.h> exists even on freestanding compilers. | |
3879 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3880 | # not just through cpp. "Syntax error" is here to catch this case. | |
3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3882 | /* end confdefs.h. */ | |
3883 | #ifdef __STDC__ | |
3884 | # include <limits.h> | |
3885 | #else | |
3886 | # include <assert.h> | |
3887 | #endif | |
3888 | Syntax error | |
3889 | _ACEOF | |
3890 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3891 | |
9c961554 | 3892 | else |
f11781c5 AK |
3893 | # Broken: fails on valid input. |
3894 | continue | |
9c961554 | 3895 | fi |
f11781c5 | 3896 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3897 | |
f11781c5 AK |
3898 | # OK, works on sane cases. Now check whether nonexistent headers |
3899 | # can be detected and how. | |
3900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3901 | /* end confdefs.h. */ | |
3902 | #include <ac_nonexistent.h> | |
3903 | _ACEOF | |
3904 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3905 | # Broken: success on invalid input. | |
3906 | continue | |
3907 | else | |
3908 | # Passes both tests. | |
3909 | ac_preproc_ok=: | |
3910 | break | |
3911 | fi | |
3912 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3913 | |
f11781c5 AK |
3914 | done |
3915 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3916 | rm -f conftest.err conftest.$ac_ext | |
3917 | if $ac_preproc_ok; then : | |
d0191583 | 3918 | |
f11781c5 AK |
3919 | else |
3920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3922 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3923 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3924 | fi |
3925 | ||
f11781c5 AK |
3926 | ac_ext=c |
3927 | ac_cpp='$CPP $CPPFLAGS' | |
3928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3931 | |
ad6254c5 | 3932 | |
f11781c5 AK |
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3934 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3935 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3936 | $as_echo_n "(cached) " >&6 | |
3937 | else | |
3938 | if test -z "$GREP"; then | |
3939 | ac_path_GREP_found=false | |
3940 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3942 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3943 | do | |
3944 | IFS=$as_save_IFS | |
3945 | test -z "$as_dir" && as_dir=. | |
3946 | for ac_prog in grep ggrep; do | |
3947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3948 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3949 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3950 | # Check for GNU ac_path_GREP and select it if it is found. | |
3951 | # Check for GNU $ac_path_GREP | |
3952 | case `"$ac_path_GREP" --version 2>&1` in | |
3953 | *GNU*) | |
3954 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3955 | *) | |
3956 | ac_count=0 | |
3957 | $as_echo_n 0123456789 >"conftest.in" | |
3958 | while : | |
3959 | do | |
3960 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3961 | mv "conftest.tmp" "conftest.in" | |
3962 | cp "conftest.in" "conftest.nl" | |
3963 | $as_echo 'GREP' >> "conftest.nl" | |
3964 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3965 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3966 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3967 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3968 | # Best one so far, save it but keep looking for a better one | |
3969 | ac_cv_path_GREP="$ac_path_GREP" | |
3970 | ac_path_GREP_max=$ac_count | |
3971 | fi | |
3972 | # 10*(2^10) chars as input seems more than enough | |
3973 | test $ac_count -gt 10 && break | |
3974 | done | |
3975 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3976 | esac | |
ad6254c5 | 3977 | |
f11781c5 AK |
3978 | $ac_path_GREP_found && break 3 |
3979 | done | |
3980 | done | |
3981 | done | |
3982 | IFS=$as_save_IFS | |
3983 | if test -z "$ac_cv_path_GREP"; then | |
3984 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3985 | fi | |
3986 | else | |
3987 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3988 | fi |
3989 | ||
d0191583 | 3990 | fi |
f11781c5 AK |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3992 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3993 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3994 | |
24bbc4d7 | 3995 | |
f11781c5 AK |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3997 | $as_echo_n "checking for egrep... " >&6; } | |
3998 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3999 | $as_echo_n "(cached) " >&6 | |
4000 | else | |
4001 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4002 | then ac_cv_path_EGREP="$GREP -E" | |
4003 | else | |
4004 | if test -z "$EGREP"; then | |
4005 | ac_path_EGREP_found=false | |
4006 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4008 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4009 | do | |
4010 | IFS=$as_save_IFS | |
4011 | test -z "$as_dir" && as_dir=. | |
4012 | for ac_prog in egrep; do | |
4013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4014 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4015 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4016 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4017 | # Check for GNU $ac_path_EGREP | |
4018 | case `"$ac_path_EGREP" --version 2>&1` in | |
4019 | *GNU*) | |
4020 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4021 | *) | |
4022 | ac_count=0 | |
4023 | $as_echo_n 0123456789 >"conftest.in" | |
4024 | while : | |
4025 | do | |
4026 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4027 | mv "conftest.tmp" "conftest.in" | |
4028 | cp "conftest.in" "conftest.nl" | |
4029 | $as_echo 'EGREP' >> "conftest.nl" | |
4030 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4031 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4032 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4033 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4034 | # Best one so far, save it but keep looking for a better one | |
4035 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4036 | ac_path_EGREP_max=$ac_count | |
4037 | fi | |
4038 | # 10*(2^10) chars as input seems more than enough | |
4039 | test $ac_count -gt 10 && break | |
4040 | done | |
4041 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4042 | esac | |
24bbc4d7 | 4043 | |
f11781c5 AK |
4044 | $ac_path_EGREP_found && break 3 |
4045 | done | |
4046 | done | |
4047 | done | |
4048 | IFS=$as_save_IFS | |
4049 | if test -z "$ac_cv_path_EGREP"; then | |
4050 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4051 | fi | |
24bbc4d7 | 4052 | else |
f11781c5 | 4053 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4054 | fi |
4055 | ||
f11781c5 | 4056 | fi |
24bbc4d7 | 4057 | fi |
f11781c5 AK |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4059 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4060 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4061 | |
4062 | ||
f11781c5 AK |
4063 | if test $ac_cv_c_compiler_gnu = yes; then |
4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4065 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4066 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4067 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4068 | else |
f11781c5 AK |
4069 | ac_pattern="Autoconf.*'x'" |
4070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4071 | /* end confdefs.h. */ | |
4072 | #include <sgtty.h> | |
4073 | Autoconf TIOCGETP | |
4074 | _ACEOF | |
4075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4076 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4077 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4078 | else |
f11781c5 | 4079 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4080 | fi |
f11781c5 | 4081 | rm -f conftest* |
7a197a62 | 4082 | |
72b2cb61 | 4083 | |
f11781c5 AK |
4084 | if test $ac_cv_prog_gcc_traditional = no; then |
4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4086 | /* end confdefs.h. */ | |
4087 | #include <termio.h> | |
4088 | Autoconf TCGETA | |
72b2cb61 | 4089 | _ACEOF |
f11781c5 AK |
4090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4091 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4092 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4093 | fi |
f11781c5 | 4094 | rm -f conftest* |
ad6254c5 | 4095 | |
f11781c5 | 4096 | fi |
7a197a62 | 4097 | fi |
f11781c5 AK |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4099 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4100 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4101 | CC="$CC -traditional" | |
4102 | fi | |
ad6254c5 AK |
4103 | fi |
4104 | ||
f11781c5 AK |
4105 | # Find a good install program. We prefer a C program (faster), |
4106 | # so one script is as good as another. But avoid the broken or | |
4107 | # incompatible versions: | |
4108 | # SysV /etc/install, /usr/sbin/install | |
4109 | # SunOS /usr/etc/install | |
4110 | # IRIX /sbin/install | |
4111 | # AIX /bin/install | |
4112 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4113 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4114 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4115 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4116 | # OS/2's system install, which has a completely different semantic | |
4117 | # ./install, which can be erroneously created by make from ./install.sh. | |
4118 | # Reject install programs that cannot install multiple files. | |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4120 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4121 | if test -z "$INSTALL"; then | |
4122 | if test "${ac_cv_path_install+set}" = set; then : | |
4123 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4124 | else |
f11781c5 AK |
4125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4126 | for as_dir in $PATH | |
4127 | do | |
4128 | IFS=$as_save_IFS | |
4129 | test -z "$as_dir" && as_dir=. | |
4130 | # Account for people who put trailing slashes in PATH elements. | |
4131 | case $as_dir/ in #(( | |
4132 | ./ | .// | /[cC]/* | \ | |
4133 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4134 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4135 | /usr/ucb/* ) ;; | |
4136 | *) | |
4137 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4138 | # Don't use installbsd from OSF since it installs stuff as root | |
4139 | # by default. | |
4140 | for ac_prog in ginstall scoinst install; do | |
4141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4142 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4143 | if test $ac_prog = install && | |
4144 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4145 | # AIX install. It has an incompatible calling convention. | |
4146 | : | |
4147 | elif test $ac_prog = install && | |
4148 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4149 | # program-specific install script used by HP pwplus--don't use. | |
4150 | : | |
4151 | else | |
4152 | rm -rf conftest.one conftest.two conftest.dir | |
4153 | echo one > conftest.one | |
4154 | echo two > conftest.two | |
4155 | mkdir conftest.dir | |
4156 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4157 | test -s conftest.one && test -s conftest.two && | |
4158 | test -s conftest.dir/conftest.one && | |
4159 | test -s conftest.dir/conftest.two | |
4160 | then | |
4161 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4162 | break 3 | |
4163 | fi | |
4164 | fi | |
4165 | fi | |
4166 | done | |
4167 | done | |
4168 | ;; | |
4169 | esac | |
7a197a62 | 4170 | |
f11781c5 AK |
4171 | done |
4172 | IFS=$as_save_IFS | |
d0191583 | 4173 | |
f11781c5 | 4174 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4175 | |
4176 | fi | |
f11781c5 AK |
4177 | if test "${ac_cv_path_install+set}" = set; then |
4178 | INSTALL=$ac_cv_path_install | |
4179 | else | |
4180 | # As a last resort, use the slow shell script. Don't cache a | |
4181 | # value for INSTALL within a source directory, because that will | |
4182 | # break other packages using the cache if that directory is | |
4183 | # removed, or if the value is a relative name. | |
4184 | INSTALL=$ac_install_sh | |
4185 | fi | |
7a197a62 | 4186 | fi |
f11781c5 AK |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4188 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4189 | |
f11781c5 AK |
4190 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4191 | # It thinks the first close brace ends the variable substitution. | |
4192 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4193 | |
f11781c5 | 4194 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4195 | |
f11781c5 | 4196 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4197 | |
f11781c5 AK |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4199 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4200 | LN_S=$as_ln_s | |
4201 | if test "$LN_S" = "ln -s"; then | |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4203 | $as_echo "yes" >&6; } | |
4204 | else | |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4206 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4207 | fi |
ad6254c5 | 4208 | |
f11781c5 AK |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4210 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4211 | set x ${MAKE-make} | |
4212 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4213 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4214 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4215 | else |
f11781c5 AK |
4216 | cat >conftest.make <<\_ACEOF |
4217 | SHELL = /bin/sh | |
4218 | all: | |
4219 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4220 | _ACEOF | |
4221 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4222 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4223 | *@@@%%%=?*=@@@%%%*) | |
4224 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4225 | *) | |
4226 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4227 | esac | |
4228 | rm -f conftest.make | |
4229 | fi | |
4230 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4232 | $as_echo "yes" >&6; } | |
4233 | SET_MAKE= | |
4234 | else | |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4236 | $as_echo "no" >&6; } | |
4237 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4238 | fi |
4239 | ||
f11781c5 AK |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4241 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4242 | if test -z "$MKDIR_P"; then | |
4243 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4244 | $as_echo_n "(cached) " >&6 | |
4245 | else | |
4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4247 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4248 | do | |
4249 | IFS=$as_save_IFS | |
4250 | test -z "$as_dir" && as_dir=. | |
4251 | for ac_prog in mkdir gmkdir; do | |
4252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4253 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4254 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4255 | 'mkdir (GNU coreutils) '* | \ | |
4256 | 'mkdir (coreutils) '* | \ | |
4257 | 'mkdir (fileutils) '4.1*) | |
4258 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4259 | break 3;; | |
4260 | esac | |
4261 | done | |
4262 | done | |
4263 | done | |
4264 | IFS=$as_save_IFS | |
d0191583 | 4265 | |
f11781c5 | 4266 | fi |
ad6254c5 | 4267 | |
f11781c5 AK |
4268 | test -d ./--version && rmdir ./--version |
4269 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4270 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4271 | else | |
4272 | # As a last resort, use the slow shell script. Don't cache a | |
4273 | # value for MKDIR_P within a source directory, because that will | |
4274 | # break other packages using the cache if that directory is | |
4275 | # removed, or if the value is a relative name. | |
4276 | MKDIR_P="$ac_install_sh -d" | |
4277 | fi | |
ad6254c5 | 4278 | fi |
f11781c5 AK |
4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4280 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4281 | |
f11781c5 AK |
4282 | if test -n "$ac_tool_prefix"; then |
4283 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4284 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4286 | $as_echo_n "checking for $ac_word... " >&6; } | |
4287 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4288 | $as_echo_n "(cached) " >&6 | |
4289 | else | |
4290 | if test -n "$RANLIB"; then | |
4291 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4292 | else | |
4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4294 | for as_dir in $PATH | |
4295 | do | |
4296 | IFS=$as_save_IFS | |
4297 | test -z "$as_dir" && as_dir=. | |
4298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4300 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4302 | break 2 | |
4303 | fi | |
4304 | done | |
4305 | done | |
4306 | IFS=$as_save_IFS | |
d0191583 | 4307 | |
f11781c5 AK |
4308 | fi |
4309 | fi | |
4310 | RANLIB=$ac_cv_prog_RANLIB | |
4311 | if test -n "$RANLIB"; then | |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4313 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4314 | else |
f11781c5 AK |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4316 | $as_echo "no" >&6; } | |
ad6254c5 | 4317 | fi |
ad6254c5 | 4318 | |
8a2fc586 | 4319 | |
d0191583 | 4320 | fi |
f11781c5 AK |
4321 | if test -z "$ac_cv_prog_RANLIB"; then |
4322 | ac_ct_RANLIB=$RANLIB | |
4323 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4324 | set dummy ranlib; ac_word=$2 | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4326 | $as_echo_n "checking for $ac_word... " >&6; } | |
4327 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4328 | $as_echo_n "(cached) " >&6 | |
4329 | else | |
4330 | if test -n "$ac_ct_RANLIB"; then | |
4331 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4332 | else | |
4333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4334 | for as_dir in $PATH | |
4335 | do | |
4336 | IFS=$as_save_IFS | |
4337 | test -z "$as_dir" && as_dir=. | |
4338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4340 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4342 | break 2 | |
4343 | fi | |
4344 | done | |
4345 | done | |
4346 | IFS=$as_save_IFS | |
8a2fc586 | 4347 | |
f11781c5 AK |
4348 | fi |
4349 | fi | |
4350 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4351 | if test -n "$ac_ct_RANLIB"; then | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4353 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4354 | else |
f11781c5 AK |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4356 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4357 | fi |
4358 | ||
f11781c5 AK |
4359 | if test "x$ac_ct_RANLIB" = x; then |
4360 | RANLIB=":" | |
4361 | else | |
4362 | case $cross_compiling:$ac_tool_warned in | |
4363 | yes:) | |
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4365 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4366 | ac_tool_warned=yes ;; | |
8fea97b7 | 4367 | esac |
f11781c5 AK |
4368 | RANLIB=$ac_ct_RANLIB |
4369 | fi | |
d0191583 | 4370 | else |
f11781c5 | 4371 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4372 | fi |
8a2fc586 | 4373 | |
f11781c5 AK |
4374 | # Extract the first word of "cflow", so it can be a program name with args. |
4375 | set dummy cflow; ac_word=$2 | |
4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4377 | $as_echo_n "checking for $ac_word... " >&6; } | |
4378 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4379 | $as_echo_n "(cached) " >&6 | |
4380 | else | |
4381 | case $CFLOW_CMD in | |
4382 | [\\/]* | ?:[\\/]*) | |
4383 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4384 | ;; | |
4385 | *) | |
4386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4387 | for as_dir in $PATH | |
4388 | do | |
4389 | IFS=$as_save_IFS | |
4390 | test -z "$as_dir" && as_dir=. | |
4391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4392 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4393 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4395 | break 2 | |
4396 | fi | |
4397 | done | |
4398 | done | |
4399 | IFS=$as_save_IFS | |
8a2fc586 | 4400 | |
f11781c5 AK |
4401 | ;; |
4402 | esac | |
ad6254c5 | 4403 | fi |
f11781c5 AK |
4404 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4405 | if test -n "$CFLOW_CMD"; then | |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4407 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4408 | else |
f11781c5 AK |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4410 | $as_echo "no" >&6; } | |
37ddf259 AK |
4411 | fi |
4412 | ||
e2997b73 | 4413 | |
f11781c5 AK |
4414 | # Extract the first word of "cscope", so it can be a program name with args. |
4415 | set dummy cscope; ac_word=$2 | |
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4417 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4418 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4419 | $as_echo_n "(cached) " >&6 |
4420 | else | |
f11781c5 | 4421 | case $CSCOPE_CMD in |
e2997b73 | 4422 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4423 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4424 | ;; |
4425 | *) | |
4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4427 | for as_dir in $PATH | |
4428 | do | |
4429 | IFS=$as_save_IFS | |
4430 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4431 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4433 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4435 | break 2 |
4436 | fi | |
4437 | done | |
f11781c5 | 4438 | done |
e2997b73 AK |
4439 | IFS=$as_save_IFS |
4440 | ||
4441 | ;; | |
4442 | esac | |
4443 | fi | |
f11781c5 AK |
4444 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4445 | if test -n "$CSCOPE_CMD"; then | |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4447 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4448 | else |
f11781c5 | 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4450 | $as_echo "no" >&6; } |
4451 | fi | |
f11781c5 AK |
4452 | |
4453 | ||
4454 | ||
4455 | ################################################################################ | |
4456 | ac_header_dirent=no | |
4457 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4458 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4460 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4461 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4462 | $as_echo_n "(cached) " >&6 | |
4463 | else | |
4464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4465 | /* end confdefs.h. */ | |
4466 | #include <sys/types.h> | |
4467 | #include <$ac_hdr> | |
4468 | ||
4469 | int | |
4470 | main () | |
4471 | { | |
4472 | if ((DIR *) 0) | |
4473 | return 0; | |
4474 | ; | |
4475 | return 0; | |
4476 | } | |
4477 | _ACEOF | |
4478 | if ac_fn_c_try_compile "$LINENO"; then : | |
4479 | eval "$as_ac_Header=yes" | |
4480 | else | |
4481 | eval "$as_ac_Header=no" | |
4482 | fi | |
4483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4484 | fi | |
4485 | eval ac_res=\$$as_ac_Header | |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4487 | $as_echo "$ac_res" >&6; } | |
4488 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4489 | cat >>confdefs.h <<_ACEOF | |
4490 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4491 | _ACEOF | |
4492 | ||
4493 | ac_header_dirent=$ac_hdr; break | |
4494 | fi | |
4495 | ||
4496 | done | |
4497 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4498 | if test $ac_header_dirent = dirent.h; then | |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4500 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4501 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4502 | $as_echo_n "(cached) " >&6 | |
4503 | else | |
4504 | ac_func_search_save_LIBS=$LIBS | |
4505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4506 | /* end confdefs.h. */ | |
4507 | ||
4508 | /* Override any GCC internal prototype to avoid an error. | |
4509 | Use char because int might match the return type of a GCC | |
4510 | builtin and then its argument prototype would still apply. */ | |
4511 | #ifdef __cplusplus | |
4512 | extern "C" | |
4513 | #endif | |
4514 | char opendir (); | |
4515 | int | |
4516 | main () | |
4517 | { | |
4518 | return opendir (); | |
4519 | ; | |
4520 | return 0; | |
4521 | } | |
4522 | _ACEOF | |
4523 | for ac_lib in '' dir; do | |
4524 | if test -z "$ac_lib"; then | |
4525 | ac_res="none required" | |
4526 | else | |
4527 | ac_res=-l$ac_lib | |
4528 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4529 | fi | |
4530 | if ac_fn_c_try_link "$LINENO"; then : | |
4531 | ac_cv_search_opendir=$ac_res | |
4532 | fi | |
4533 | rm -f core conftest.err conftest.$ac_objext \ | |
4534 | conftest$ac_exeext | |
4535 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4536 | break | |
4537 | fi | |
4538 | done | |
4539 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4540 | ||
4541 | else | |
4542 | ac_cv_search_opendir=no | |
4543 | fi | |
4544 | rm conftest.$ac_ext | |
4545 | LIBS=$ac_func_search_save_LIBS | |
4546 | fi | |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4548 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4549 | ac_res=$ac_cv_search_opendir | |
4550 | if test "$ac_res" != no; then : | |
4551 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4552 | |
4553 | fi | |
f11781c5 AK |
4554 | |
4555 | else | |
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4557 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4558 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4559 | $as_echo_n "(cached) " >&6 |
4560 | else | |
f11781c5 AK |
4561 | ac_func_search_save_LIBS=$LIBS |
4562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4563 | /* end confdefs.h. */ | |
e2997b73 | 4564 | |
f11781c5 AK |
4565 | /* Override any GCC internal prototype to avoid an error. |
4566 | Use char because int might match the return type of a GCC | |
4567 | builtin and then its argument prototype would still apply. */ | |
4568 | #ifdef __cplusplus | |
4569 | extern "C" | |
4570 | #endif | |
4571 | char opendir (); | |
4572 | int | |
4573 | main () | |
4574 | { | |
4575 | return opendir (); | |
4576 | ; | |
4577 | return 0; | |
4578 | } | |
4579 | _ACEOF | |
4580 | for ac_lib in '' x; do | |
4581 | if test -z "$ac_lib"; then | |
4582 | ac_res="none required" | |
4583 | else | |
4584 | ac_res=-l$ac_lib | |
4585 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4586 | fi | |
4587 | if ac_fn_c_try_link "$LINENO"; then : | |
4588 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4589 | fi |
f11781c5 AK |
4590 | rm -f core conftest.err conftest.$ac_objext \ |
4591 | conftest$ac_exeext | |
4592 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4593 | break | |
e2997b73 | 4594 | fi |
f11781c5 AK |
4595 | done |
4596 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4597 | |
e2997b73 | 4598 | else |
f11781c5 AK |
4599 | ac_cv_search_opendir=no |
4600 | fi | |
4601 | rm conftest.$ac_ext | |
4602 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4603 | fi |
f11781c5 AK |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4605 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4606 | ac_res=$ac_cv_search_opendir | |
4607 | if test "$ac_res" != no; then : | |
4608 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4609 | |
4610 | fi | |
8c4e8a18 | 4611 | |
e2997b73 AK |
4612 | fi |
4613 | ||
f11781c5 AK |
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4615 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4616 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4617 | $as_echo_n "(cached) " >&6 | |
4618 | else | |
4619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4620 | /* end confdefs.h. */ | |
4621 | #include <stdlib.h> | |
4622 | #include <stdarg.h> | |
4623 | #include <string.h> | |
4624 | #include <float.h> | |
e2997b73 | 4625 | |
f11781c5 AK |
4626 | int |
4627 | main () | |
4628 | { | |
4629 | ||
4630 | ; | |
4631 | return 0; | |
4632 | } | |
4633 | _ACEOF | |
4634 | if ac_fn_c_try_compile "$LINENO"; then : | |
4635 | ac_cv_header_stdc=yes | |
e2997b73 | 4636 | else |
f11781c5 | 4637 | ac_cv_header_stdc=no |
e2997b73 | 4638 | fi |
f11781c5 AK |
4639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4640 | ||
4641 | if test $ac_cv_header_stdc = yes; then | |
4642 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4644 | /* end confdefs.h. */ | |
4645 | #include <string.h> | |
4646 | ||
4647 | _ACEOF | |
4648 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4649 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4650 | ||
e2997b73 | 4651 | else |
f11781c5 | 4652 | ac_cv_header_stdc=no |
e2997b73 | 4653 | fi |
f11781c5 | 4654 | rm -f conftest* |
e2997b73 | 4655 | |
f11781c5 | 4656 | fi |
e2997b73 | 4657 | |
f11781c5 AK |
4658 | if test $ac_cv_header_stdc = yes; then |
4659 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4661 | /* end confdefs.h. */ | |
4662 | #include <stdlib.h> | |
e2997b73 | 4663 | |
f11781c5 AK |
4664 | _ACEOF |
4665 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4666 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4667 | |
e2997b73 | 4668 | else |
f11781c5 | 4669 | ac_cv_header_stdc=no |
e2997b73 | 4670 | fi |
f11781c5 | 4671 | rm -f conftest* |
e2997b73 | 4672 | |
e2997b73 | 4673 | fi |
90c80887 | 4674 | |
f11781c5 AK |
4675 | if test $ac_cv_header_stdc = yes; then |
4676 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4677 | if test "$cross_compiling" = yes; then : | |
4678 | : | |
4679 | else | |
4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4681 | /* end confdefs.h. */ | |
4682 | #include <ctype.h> | |
4683 | #include <stdlib.h> | |
4684 | #if ((' ' & 0x0FF) == 0x020) | |
4685 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4686 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4687 | #else | |
4688 | # define ISLOWER(c) \ | |
4689 | (('a' <= (c) && (c) <= 'i') \ | |
4690 | || ('j' <= (c) && (c) <= 'r') \ | |
4691 | || ('s' <= (c) && (c) <= 'z')) | |
4692 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4693 | #endif | |
4694 | ||
4695 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4696 | int | |
4697 | main () | |
4698 | { | |
4699 | int i; | |
4700 | for (i = 0; i < 256; i++) | |
4701 | if (XOR (islower (i), ISLOWER (i)) | |
4702 | || toupper (i) != TOUPPER (i)) | |
4703 | return 2; | |
4704 | return 0; | |
4705 | } | |
4706 | _ACEOF | |
4707 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4708 | |
90c80887 | 4709 | else |
f11781c5 | 4710 | ac_cv_header_stdc=no |
90c80887 | 4711 | fi |
f11781c5 AK |
4712 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4713 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4714 | fi |
90c80887 | 4715 | |
90c80887 | 4716 | fi |
90c80887 | 4717 | fi |
f11781c5 AK |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4719 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4720 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4721 | |
f11781c5 | 4722 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4723 | |
90c80887 | 4724 | fi |
f11781c5 AK |
4725 | |
4726 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4727 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4728 | inttypes.h stdint.h unistd.h | |
4729 | do : | |
4730 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4731 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4732 | " | |
4733 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4734 | cat >>confdefs.h <<_ACEOF | |
4735 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4736 | _ACEOF | |
4737 | ||
90c80887 | 4738 | fi |
f11781c5 AK |
4739 | |
4740 | done | |
4741 | ||
4742 | ||
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4744 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4745 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4746 | $as_echo_n "(cached) " >&6 | |
4747 | else | |
4748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4749 | /* end confdefs.h. */ | |
4750 | #include <sys/types.h> | |
4751 | int | |
4752 | main () | |
4753 | { | |
4754 | return makedev(0, 0); | |
4755 | ; | |
4756 | return 0; | |
4757 | } | |
4758 | _ACEOF | |
4759 | if ac_fn_c_try_link "$LINENO"; then : | |
4760 | ac_cv_header_sys_types_h_makedev=yes | |
4761 | else | |
4762 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4763 | fi |
f11781c5 AK |
4764 | rm -f core conftest.err conftest.$ac_objext \ |
4765 | conftest$ac_exeext conftest.$ac_ext | |
4766 | ||
90c80887 | 4767 | fi |
f11781c5 AK |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4769 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4770 | ||
4771 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4772 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4773 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4774 | ||
4775 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4776 | |
a946372e | 4777 | fi |
e2997b73 | 4778 | |
e2997b73 | 4779 | |
a946372e | 4780 | |
f11781c5 AK |
4781 | if test $ac_cv_header_sys_mkdev_h = no; then |
4782 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4783 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4784 | ||
4785 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4786 | ||
e2997b73 | 4787 | fi |
a946372e | 4788 | |
a946372e | 4789 | |
f11781c5 AK |
4790 | fi |
4791 | fi | |
4792 | ||
4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4794 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4795 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4796 | $as_echo_n "(cached) " >&6 |
4797 | else | |
f11781c5 | 4798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4799 | /* end confdefs.h. */ |
f11781c5 AK |
4800 | #include <stdlib.h> |
4801 | #include <stdarg.h> | |
4802 | #include <string.h> | |
4803 | #include <float.h> | |
a946372e | 4804 | |
a946372e AK |
4805 | int |
4806 | main () | |
4807 | { | |
f11781c5 | 4808 | |
a946372e AK |
4809 | ; |
4810 | return 0; | |
4811 | } | |
4812 | _ACEOF | |
f11781c5 AK |
4813 | if ac_fn_c_try_compile "$LINENO"; then : |
4814 | ac_cv_header_stdc=yes | |
e2997b73 | 4815 | else |
f11781c5 AK |
4816 | ac_cv_header_stdc=no |
4817 | fi | |
4818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4819 | ||
4820 | if test $ac_cv_header_stdc = yes; then | |
4821 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4823 | /* end confdefs.h. */ | |
4824 | #include <string.h> | |
4825 | ||
4826 | _ACEOF | |
4827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4828 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4829 | |
f11781c5 AK |
4830 | else |
4831 | ac_cv_header_stdc=no | |
a946372e | 4832 | fi |
f11781c5 | 4833 | rm -f conftest* |
e2997b73 | 4834 | |
a946372e | 4835 | fi |
e2997b73 | 4836 | |
f11781c5 AK |
4837 | if test $ac_cv_header_stdc = yes; then |
4838 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4840 | /* end confdefs.h. */ | |
4841 | #include <stdlib.h> | |
4842 | ||
4843 | _ACEOF | |
4844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4845 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4846 | |
e2997b73 | 4847 | else |
f11781c5 | 4848 | ac_cv_header_stdc=no |
e2997b73 | 4849 | fi |
f11781c5 | 4850 | rm -f conftest* |
e2997b73 | 4851 | |
f11781c5 | 4852 | fi |
a946372e | 4853 | |
f11781c5 AK |
4854 | if test $ac_cv_header_stdc = yes; then |
4855 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4856 | if test "$cross_compiling" = yes; then : | |
4857 | : | |
4858 | else | |
4859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4860 | /* end confdefs.h. */ | |
4861 | #include <ctype.h> | |
4862 | #include <stdlib.h> | |
4863 | #if ((' ' & 0x0FF) == 0x020) | |
4864 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4865 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4866 | #else | |
4867 | # define ISLOWER(c) \ | |
4868 | (('a' <= (c) && (c) <= 'i') \ | |
4869 | || ('j' <= (c) && (c) <= 'r') \ | |
4870 | || ('s' <= (c) && (c) <= 'z')) | |
4871 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4872 | #endif | |
e2997b73 | 4873 | |
f11781c5 AK |
4874 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4875 | int | |
4876 | main () | |
4877 | { | |
4878 | int i; | |
4879 | for (i = 0; i < 256; i++) | |
4880 | if (XOR (islower (i), ISLOWER (i)) | |
4881 | || toupper (i) != TOUPPER (i)) | |
4882 | return 2; | |
4883 | return 0; | |
4884 | } | |
4885 | _ACEOF | |
4886 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4887 | |
e2997b73 | 4888 | else |
f11781c5 | 4889 | ac_cv_header_stdc=no |
e2997b73 | 4890 | fi |
f11781c5 AK |
4891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4892 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4893 | fi |
f11781c5 | 4894 | |
e2997b73 | 4895 | fi |
e2997b73 | 4896 | fi |
f11781c5 AK |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4898 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4899 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4900 | |
f11781c5 | 4901 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4902 | |
f11781c5 | 4903 | fi |
e2997b73 | 4904 | |
f11781c5 AK |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4906 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4907 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4908 | $as_echo_n "(cached) " >&6 | |
4909 | else | |
4910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4911 | /* end confdefs.h. */ | |
4912 | #include <sys/types.h> | |
4913 | #include <sys/wait.h> | |
4914 | #ifndef WEXITSTATUS | |
4915 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4916 | #endif | |
4917 | #ifndef WIFEXITED | |
4918 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4919 | #endif | |
e2997b73 | 4920 | |
f11781c5 AK |
4921 | int |
4922 | main () | |
4923 | { | |
4924 | int s; | |
4925 | wait (&s); | |
4926 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4927 | ; | |
4928 | return 0; | |
4929 | } | |
4930 | _ACEOF | |
4931 | if ac_fn_c_try_compile "$LINENO"; then : | |
4932 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4933 | else |
f11781c5 | 4934 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4935 | fi |
f11781c5 AK |
4936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4937 | fi | |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4939 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4940 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4941 | |
f11781c5 | 4942 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4943 | |
d0191583 | 4944 | fi |
f11781c5 AK |
4945 | |
4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4947 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4948 | if test "${ac_cv_header_time+set}" = set; then : | |
4949 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4950 | else |
f11781c5 | 4951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4952 | /* end confdefs.h. */ |
f11781c5 AK |
4953 | #include <sys/types.h> |
4954 | #include <sys/time.h> | |
4955 | #include <time.h> | |
4956 | ||
4957 | int | |
4958 | main () | |
4959 | { | |
4960 | if ((struct tm *) 0) | |
4961 | return 0; | |
4962 | ; | |
4963 | return 0; | |
4964 | } | |
a946372e | 4965 | _ACEOF |
f11781c5 AK |
4966 | if ac_fn_c_try_compile "$LINENO"; then : |
4967 | ac_cv_header_time=yes | |
a946372e | 4968 | else |
f11781c5 AK |
4969 | ac_cv_header_time=no |
4970 | fi | |
4971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4972 | fi | |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4974 | $as_echo "$ac_cv_header_time" >&6; } | |
4975 | if test $ac_cv_header_time = yes; then | |
4976 | ||
4977 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4978 | ||
4979 | fi | |
4980 | ||
4981 | ||
4982 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4983 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4984 | sys/wait.h time.h | |
4985 | do : | |
4986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4987 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4988 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4989 | cat >>confdefs.h <<_ACEOF | |
4990 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4991 | _ACEOF | |
d0191583 | 4992 | |
f11781c5 AK |
4993 | else |
4994 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4995 | fi |
4996 | ||
f11781c5 | 4997 | done |
fddafd51 | 4998 | |
f11781c5 AK |
4999 | |
5000 | case "$host_os" in | |
5001 | linux*) | |
5002 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
5003 | do : | |
5004 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5005 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5006 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5007 | cat >>confdefs.h <<_ACEOF | |
5008 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 5009 | _ACEOF |
a946372e | 5010 | |
f11781c5 AK |
5011 | else |
5012 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
5013 | fi |
5014 | ||
f11781c5 AK |
5015 | done |
5016 | ;; | |
5017 | darwin*) | |
5018 | for ac_header in machine/endian.h sys/disk.h | |
5019 | do : | |
5020 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5021 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5022 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5023 | cat >>confdefs.h <<_ACEOF | |
5024 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5025 | _ACEOF | |
a946372e | 5026 | |
f11781c5 AK |
5027 | else |
5028 | as_fn_error $? "bailing out" "$LINENO" 5 | |
5029 | fi | |
a946372e | 5030 | |
f11781c5 AK |
5031 | done |
5032 | ;; | |
a946372e | 5033 | esac |
f11781c5 AK |
5034 | |
5035 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5036 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5037 | sys/types.h unistd.h | |
5038 | do : | |
5039 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5040 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5041 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5042 | cat >>confdefs.h <<_ACEOF | |
5043 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5044 | _ACEOF | |
5045 | ||
a946372e | 5046 | else |
f11781c5 | 5047 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5048 | fi |
a946372e | 5049 | |
f11781c5 AK |
5050 | done |
5051 | ||
5052 | for ac_header in termios.h sys/statvfs.h | |
5053 | do : | |
5054 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5055 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5056 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5057 | cat >>confdefs.h <<_ACEOF |
5058 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5059 | _ACEOF | |
5060 | ||
a946372e AK |
5061 | fi |
5062 | ||
5063 | done | |
5064 | ||
a946372e | 5065 | |
f11781c5 AK |
5066 | ################################################################################ |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5068 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5069 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5070 | $as_echo_n "(cached) " >&6 |
a946372e | 5071 | else |
f11781c5 | 5072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5073 | /* end confdefs.h. */ |
a946372e | 5074 | |
f11781c5 AK |
5075 | int |
5076 | main () | |
5077 | { | |
5078 | /* FIXME: Include the comments suggested by Paul. */ | |
5079 | #ifndef __cplusplus | |
5080 | /* Ultrix mips cc rejects this. */ | |
5081 | typedef int charset[2]; | |
5082 | const charset cs; | |
5083 | /* SunOS 4.1.1 cc rejects this. */ | |
5084 | char const *const *pcpcc; | |
5085 | char **ppc; | |
5086 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5087 | struct point {int x, y;}; | |
5088 | static struct point const zero = {0,0}; | |
5089 | /* AIX XL C 1.02.0.0 rejects this. | |
5090 | It does not let you subtract one const X* pointer from another in | |
5091 | an arm of an if-expression whose if-part is not a constant | |
5092 | expression */ | |
5093 | const char *g = "string"; | |
5094 | pcpcc = &g + (g ? g-g : 0); | |
5095 | /* HPUX 7.0 cc rejects these. */ | |
5096 | ++pcpcc; | |
5097 | ppc = (char**) pcpcc; | |
5098 | pcpcc = (char const *const *) ppc; | |
5099 | { /* SCO 3.2v4 cc rejects this. */ | |
5100 | char *t; | |
5101 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5102 | |
f11781c5 AK |
5103 | *t++ = 0; |
5104 | if (s) return 0; | |
5105 | } | |
5106 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5107 | int x[] = {25, 17}; | |
5108 | const int *foo = &x[0]; | |
5109 | ++foo; | |
5110 | } | |
5111 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5112 | typedef const int *iptr; | |
5113 | iptr p = 0; | |
5114 | ++p; | |
5115 | } | |
5116 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5117 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5118 | struct s { int j; const int *ap[3]; }; | |
5119 | struct s *b; b->j = 5; | |
5120 | } | |
5121 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5122 | const int foo = 10; | |
5123 | if (!foo) return 0; | |
5124 | } | |
5125 | return !cs[0] && !zero.x; | |
5126 | #endif | |
a946372e | 5127 | |
f11781c5 AK |
5128 | ; |
5129 | return 0; | |
5130 | } | |
a946372e | 5131 | _ACEOF |
f11781c5 AK |
5132 | if ac_fn_c_try_compile "$LINENO"; then : |
5133 | ac_cv_c_const=yes | |
a946372e | 5134 | else |
f11781c5 AK |
5135 | ac_cv_c_const=no |
5136 | fi | |
5137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5138 | fi |
f11781c5 AK |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5140 | $as_echo "$ac_cv_c_const" >&6; } | |
5141 | if test $ac_cv_c_const = no; then | |
a946372e | 5142 | |
f11781c5 | 5143 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5144 | |
f11781c5 | 5145 | fi |
a946372e | 5146 | |
f11781c5 AK |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5148 | $as_echo_n "checking for inline... " >&6; } | |
5149 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5150 | $as_echo_n "(cached) " >&6 |
5151 | else | |
f11781c5 AK |
5152 | ac_cv_c_inline=no |
5153 | for ac_kw in inline __inline__ __inline; do | |
5154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5155 | /* end confdefs.h. */ | |
5156 | #ifndef __cplusplus | |
5157 | typedef int foo_t; | |
5158 | static $ac_kw foo_t static_foo () {return 0; } | |
5159 | $ac_kw foo_t foo () {return 0; } | |
5160 | #endif | |
5161 | ||
5162 | _ACEOF | |
5163 | if ac_fn_c_try_compile "$LINENO"; then : | |
5164 | ac_cv_c_inline=$ac_kw | |
a946372e | 5165 | fi |
f11781c5 AK |
5166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5167 | test "$ac_cv_c_inline" != no && break | |
5168 | done | |
a946372e AK |
5169 | |
5170 | fi | |
f11781c5 AK |
5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5172 | $as_echo "$ac_cv_c_inline" >&6; } | |
5173 | ||
5174 | case $ac_cv_c_inline in | |
5175 | inline | yes) ;; | |
5176 | *) | |
5177 | case $ac_cv_c_inline in | |
5178 | no) ac_val=;; | |
5179 | *) ac_val=$ac_cv_c_inline;; | |
5180 | esac | |
5181 | cat >>confdefs.h <<_ACEOF | |
5182 | #ifndef __cplusplus | |
5183 | #define inline $ac_val | |
5184 | #endif | |
5185 | _ACEOF | |
5186 | ;; | |
5187 | esac | |
5188 | ||
5189 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5190 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5191 | ||
5192 | cat >>confdefs.h <<_ACEOF | |
5193 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5194 | _ACEOF |
5195 | ||
f11781c5 | 5196 | |
a946372e AK |
5197 | fi |
5198 | ||
f11781c5 AK |
5199 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5200 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5201 | |
a946372e | 5202 | else |
f11781c5 AK |
5203 | |
5204 | cat >>confdefs.h <<_ACEOF | |
5205 | #define off_t long int | |
5206 | _ACEOF | |
5207 | ||
a946372e AK |
5208 | fi |
5209 | ||
f11781c5 AK |
5210 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5211 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5212 | |
a946372e | 5213 | else |
f11781c5 AK |
5214 | |
5215 | cat >>confdefs.h <<_ACEOF | |
5216 | #define pid_t int | |
5217 | _ACEOF | |
5218 | ||
5219 | fi | |
5220 | ||
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5222 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5223 | if test "${ac_cv_type_signal+set}" = set; then : | |
5224 | $as_echo_n "(cached) " >&6 | |
a946372e | 5225 | else |
f11781c5 AK |
5226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5227 | /* end confdefs.h. */ | |
5228 | #include <sys/types.h> | |
5229 | #include <signal.h> | |
5230 | ||
5231 | int | |
5232 | main () | |
5233 | { | |
5234 | return *(signal (0, 0)) (0) == 1; | |
5235 | ; | |
5236 | return 0; | |
5237 | } | |
5238 | _ACEOF | |
5239 | if ac_fn_c_try_compile "$LINENO"; then : | |
5240 | ac_cv_type_signal=int | |
5241 | else | |
5242 | ac_cv_type_signal=void | |
a946372e | 5243 | fi |
f11781c5 | 5244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5245 | fi |
f11781c5 AK |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5247 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5248 | |
f11781c5 AK |
5249 | cat >>confdefs.h <<_ACEOF |
5250 | #define RETSIGTYPE $ac_cv_type_signal | |
5251 | _ACEOF | |
a946372e AK |
5252 | |
5253 | ||
f11781c5 AK |
5254 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5255 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5256 | |
a946372e | 5257 | else |
a946372e | 5258 | |
f11781c5 AK |
5259 | cat >>confdefs.h <<_ACEOF |
5260 | #define size_t unsigned int | |
5261 | _ACEOF | |
a946372e | 5262 | |
a946372e | 5263 | fi |
f11781c5 AK |
5264 | |
5265 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5266 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5267 | ||
a946372e | 5268 | else |
f11781c5 AK |
5269 | |
5270 | cat >>confdefs.h <<_ACEOF | |
5271 | #define mode_t int | |
a946372e | 5272 | _ACEOF |
a946372e | 5273 | |
a946372e AK |
5274 | fi |
5275 | ||
f11781c5 AK |
5276 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5277 | case $ac_cv_c_int8_t in #( | |
5278 | no|yes) ;; #( | |
5279 | *) | |
a946372e | 5280 | |
f11781c5 AK |
5281 | cat >>confdefs.h <<_ACEOF |
5282 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5283 | _ACEOF |
f11781c5 | 5284 | ;; |
a946372e | 5285 | esac |
a946372e | 5286 | |
f11781c5 AK |
5287 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5288 | case $ac_cv_c_int16_t in #( | |
5289 | no|yes) ;; #( | |
5290 | *) | |
a946372e | 5291 | |
f11781c5 AK |
5292 | cat >>confdefs.h <<_ACEOF |
5293 | #define int16_t $ac_cv_c_int16_t | |
5294 | _ACEOF | |
5295 | ;; | |
5296 | esac | |
a946372e | 5297 | |
f11781c5 AK |
5298 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5299 | case $ac_cv_c_int32_t in #( | |
5300 | no|yes) ;; #( | |
5301 | *) | |
a946372e | 5302 | |
f11781c5 AK |
5303 | cat >>confdefs.h <<_ACEOF |
5304 | #define int32_t $ac_cv_c_int32_t | |
5305 | _ACEOF | |
5306 | ;; | |
a946372e | 5307 | esac |
a946372e | 5308 | |
f11781c5 AK |
5309 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5310 | case $ac_cv_c_int64_t in #( | |
5311 | no|yes) ;; #( | |
5312 | *) | |
5313 | ||
5314 | cat >>confdefs.h <<_ACEOF | |
5315 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5316 | _ACEOF |
f11781c5 AK |
5317 | ;; |
5318 | esac | |
5319 | ||
5320 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5321 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5322 | |
5323 | else | |
a946372e | 5324 | |
f11781c5 AK |
5325 | cat >>confdefs.h <<_ACEOF |
5326 | #define ssize_t int | |
5327 | _ACEOF | |
a946372e | 5328 | |
f11781c5 | 5329 | fi |
a946372e | 5330 | |
f11781c5 AK |
5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5332 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5333 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5334 | $as_echo_n "(cached) " >&6 |
a946372e | 5335 | else |
f11781c5 | 5336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5337 | /* end confdefs.h. */ |
f11781c5 AK |
5338 | #include <sys/types.h> |
5339 | ||
a946372e | 5340 | _ACEOF |
f11781c5 AK |
5341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5342 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5343 | ac_cv_type_uid_t=yes | |
a946372e | 5344 | else |
f11781c5 AK |
5345 | ac_cv_type_uid_t=no |
5346 | fi | |
5347 | rm -f conftest* | |
a946372e | 5348 | |
a946372e | 5349 | fi |
f11781c5 AK |
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5351 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5352 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5353 | |
f11781c5 | 5354 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5355 | |
f11781c5 AK |
5356 | |
5357 | $as_echo "#define gid_t int" >>confdefs.h | |
5358 | ||
5359 | fi | |
5360 | ||
5361 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5362 | case $ac_cv_c_uint8_t in #( | |
5363 | no|yes) ;; #( | |
5364 | *) | |
5365 | ||
5366 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5367 | ||
5368 | ||
5369 | cat >>confdefs.h <<_ACEOF | |
5370 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5371 | _ACEOF |
f11781c5 AK |
5372 | ;; |
5373 | esac | |
5374 | ||
5375 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5376 | case $ac_cv_c_uint16_t in #( | |
5377 | no|yes) ;; #( | |
5378 | *) | |
5379 | ||
5380 | ||
5381 | cat >>confdefs.h <<_ACEOF | |
5382 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5383 | _ACEOF |
f11781c5 AK |
5384 | ;; |
5385 | esac | |
a946372e | 5386 | |
f11781c5 AK |
5387 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5388 | case $ac_cv_c_uint32_t in #( | |
5389 | no|yes) ;; #( | |
5390 | *) | |
a946372e | 5391 | |
f11781c5 | 5392 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5393 | |
a946372e | 5394 | |
f11781c5 AK |
5395 | cat >>confdefs.h <<_ACEOF |
5396 | #define uint32_t $ac_cv_c_uint32_t | |
5397 | _ACEOF | |
5398 | ;; | |
5399 | esac | |
5400 | ||
5401 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5402 | case $ac_cv_c_uint64_t in #( | |
5403 | no|yes) ;; #( | |
5404 | *) | |
5405 | ||
5406 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5407 | ||
5408 | ||
5409 | cat >>confdefs.h <<_ACEOF | |
5410 | #define uint64_t $ac_cv_c_uint64_t | |
5411 | _ACEOF | |
5412 | ;; | |
5413 | esac | |
5414 | ||
5415 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5416 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5417 | ||
5418 | cat >>confdefs.h <<_ACEOF | |
5419 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5420 | _ACEOF | |
5421 | ||
5422 | ||
5423 | fi | |
5424 | ||
5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5426 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5427 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5428 | $as_echo_n "(cached) " >&6 |
5429 | else | |
f11781c5 AK |
5430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5431 | /* end confdefs.h. */ | |
5432 | #include <sys/types.h> | |
5433 | #include <time.h> | |
5434 | ||
5435 | int | |
5436 | main () | |
5437 | { | |
5438 | struct tm tm; | |
5439 | int *p = &tm.tm_sec; | |
5440 | return !p; | |
5441 | ; | |
5442 | return 0; | |
5443 | } | |
5444 | _ACEOF | |
5445 | if ac_fn_c_try_compile "$LINENO"; then : | |
5446 | ac_cv_struct_tm=time.h | |
5447 | else | |
5448 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5449 | fi |
f11781c5 AK |
5450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5451 | fi | |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5453 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5454 | if test $ac_cv_struct_tm = sys/time.h; then | |
5455 | ||
5456 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5457 | |
5458 | fi | |
f11781c5 AK |
5459 | |
5460 | ||
5461 | ################################################################################ | |
5462 | for ac_func in ftruncate gethostname getpagesize \ | |
5463 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5464 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5465 | strstr strtol strtoul uname | |
5466 | do : | |
5467 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5468 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5469 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5470 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5471 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5472 | _ACEOF |
5473 | ||
5474 | else | |
f11781c5 | 5475 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5476 | fi |
a946372e AK |
5477 | done |
5478 | ||
f11781c5 AK |
5479 | for ac_func in siginterrupt |
5480 | do : | |
5481 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5482 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5483 | cat >>confdefs.h <<_ACEOF | |
5484 | #define HAVE_SIGINTERRUPT 1 | |
5485 | _ACEOF | |
a946372e | 5486 | |
f11781c5 AK |
5487 | fi |
5488 | done | |
a946372e | 5489 | |
f11781c5 AK |
5490 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5491 | # for constant arguments. Useless! | |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5493 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5494 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5495 | $as_echo_n "(cached) " >&6 | |
a946372e | 5496 | else |
f11781c5 AK |
5497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5498 | /* end confdefs.h. */ | |
5499 | #include <alloca.h> | |
5500 | int | |
5501 | main () | |
5502 | { | |
5503 | char *p = (char *) alloca (2 * sizeof (int)); | |
5504 | if (p) return 0; | |
5505 | ; | |
5506 | return 0; | |
5507 | } | |
5508 | _ACEOF | |
5509 | if ac_fn_c_try_link "$LINENO"; then : | |
5510 | ac_cv_working_alloca_h=yes | |
a946372e | 5511 | else |
f11781c5 | 5512 | ac_cv_working_alloca_h=no |
a946372e | 5513 | fi |
f11781c5 AK |
5514 | rm -f core conftest.err conftest.$ac_objext \ |
5515 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5516 | fi |
f11781c5 AK |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5518 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5519 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5520 | |
f11781c5 | 5521 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5522 | |
a946372e | 5523 | fi |
a946372e | 5524 | |
f11781c5 AK |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5526 | $as_echo_n "checking for alloca... " >&6; } | |
5527 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5528 | $as_echo_n "(cached) " >&6 |
a946372e | 5529 | else |
f11781c5 | 5530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5531 | /* end confdefs.h. */ |
f11781c5 AK |
5532 | #ifdef __GNUC__ |
5533 | # define alloca __builtin_alloca | |
5534 | #else | |
5535 | # ifdef _MSC_VER | |
5536 | # include <malloc.h> | |
5537 | # define alloca _alloca | |
5538 | # else | |
5539 | # ifdef HAVE_ALLOCA_H | |
5540 | # include <alloca.h> | |
5541 | # else | |
5542 | # ifdef _AIX | |
5543 | #pragma alloca | |
5544 | # else | |
5545 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5546 | char *alloca (); | |
5547 | # endif | |
5548 | # endif | |
5549 | # endif | |
5550 | # endif | |
5551 | #endif | |
a946372e | 5552 | |
f11781c5 AK |
5553 | int |
5554 | main () | |
5555 | { | |
5556 | char *p = (char *) alloca (1); | |
5557 | if (p) return 0; | |
5558 | ; | |
5559 | return 0; | |
5560 | } | |
a946372e | 5561 | _ACEOF |
f11781c5 AK |
5562 | if ac_fn_c_try_link "$LINENO"; then : |
5563 | ac_cv_func_alloca_works=yes | |
a946372e | 5564 | else |
f11781c5 | 5565 | ac_cv_func_alloca_works=no |
a946372e | 5566 | fi |
f11781c5 AK |
5567 | rm -f core conftest.err conftest.$ac_objext \ |
5568 | conftest$ac_exeext conftest.$ac_ext | |
5569 | fi | |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5571 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5572 | |
f11781c5 | 5573 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5574 | |
f11781c5 | 5575 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5576 | |
a946372e | 5577 | else |
f11781c5 AK |
5578 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5579 | # that cause trouble. Some versions do not even contain alloca or | |
5580 | # contain a buggy version. If you still want to use their alloca, | |
5581 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5582 | |
f11781c5 | 5583 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5584 | |
f11781c5 | 5585 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5586 | |
a946372e | 5587 | |
f11781c5 AK |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5589 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5590 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5591 | $as_echo_n "(cached) " >&6 |
a946372e | 5592 | else |
f11781c5 | 5593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5594 | /* end confdefs.h. */ |
f11781c5 AK |
5595 | #if defined CRAY && ! defined CRAY2 |
5596 | webecray | |
5597 | #else | |
5598 | wenotbecray | |
5599 | #endif | |
5600 | ||
a946372e | 5601 | _ACEOF |
f11781c5 AK |
5602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5603 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5604 | ac_cv_os_cray=yes | |
a946372e | 5605 | else |
f11781c5 | 5606 | ac_cv_os_cray=no |
a946372e | 5607 | fi |
f11781c5 | 5608 | rm -f conftest* |
a946372e | 5609 | |
f11781c5 AK |
5610 | fi |
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5612 | $as_echo "$ac_cv_os_cray" >&6; } | |
5613 | if test $ac_cv_os_cray = yes; then | |
5614 | for ac_func in _getb67 GETB67 getb67; do | |
5615 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5616 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5617 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5618 | |
f11781c5 AK |
5619 | cat >>confdefs.h <<_ACEOF |
5620 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5621 | _ACEOF |
a946372e | 5622 | |
f11781c5 | 5623 | break |
a946372e AK |
5624 | fi |
5625 | ||
f11781c5 AK |
5626 | done |
5627 | fi | |
a946372e | 5628 | |
f11781c5 AK |
5629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5630 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5631 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5632 | $as_echo_n "(cached) " >&6 |
5633 | else | |
f11781c5 AK |
5634 | if test "$cross_compiling" = yes; then : |
5635 | ac_cv_c_stack_direction=0 | |
5636 | else | |
5637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5638 | /* end confdefs.h. */ | |
5639 | $ac_includes_default | |
5640 | int | |
5641 | find_stack_direction () | |
5642 | { | |
5643 | static char *addr = 0; | |
5644 | auto char dummy; | |
5645 | if (addr == 0) | |
5646 | { | |
5647 | addr = &dummy; | |
5648 | return find_stack_direction (); | |
5649 | } | |
5650 | else | |
5651 | return (&dummy > addr) ? 1 : -1; | |
5652 | } | |
5653 | ||
5654 | int | |
5655 | main () | |
5656 | { | |
5657 | return find_stack_direction () < 0; | |
5658 | } | |
5659 | _ACEOF | |
5660 | if ac_fn_c_try_run "$LINENO"; then : | |
5661 | ac_cv_c_stack_direction=1 | |
5662 | else | |
5663 | ac_cv_c_stack_direction=-1 | |
5664 | fi | |
5665 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5666 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5667 | fi |
a946372e AK |
5668 | |
5669 | fi | |
f11781c5 AK |
5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5671 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5672 | cat >>confdefs.h <<_ACEOF | |
5673 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5674 | _ACEOF |
5675 | ||
f11781c5 | 5676 | |
a946372e AK |
5677 | fi |
5678 | ||
f11781c5 AK |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5680 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5681 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5682 | $as_echo_n "(cached) " >&6 | |
5683 | else | |
5684 | if test "$cross_compiling" = yes; then : | |
5685 | ac_cv_func_closedir_void=yes | |
5686 | else | |
5687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5688 | /* end confdefs.h. */ | |
5689 | $ac_includes_default | |
5690 | #include <$ac_header_dirent> | |
5691 | #ifndef __cplusplus | |
5692 | int closedir (); | |
5693 | #endif | |
a946372e | 5694 | |
f11781c5 AK |
5695 | int |
5696 | main () | |
5697 | { | |
5698 | return closedir (opendir (".")) != 0; | |
5699 | ; | |
5700 | return 0; | |
5701 | } | |
5702 | _ACEOF | |
5703 | if ac_fn_c_try_run "$LINENO"; then : | |
5704 | ac_cv_func_closedir_void=no | |
a946372e | 5705 | else |
f11781c5 | 5706 | ac_cv_func_closedir_void=yes |
a946372e | 5707 | fi |
f11781c5 AK |
5708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5709 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5710 | fi |
5711 | ||
f11781c5 AK |
5712 | fi |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5714 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5715 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5716 | |
f11781c5 | 5717 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5718 | |
a946372e AK |
5719 | fi |
5720 | ||
f11781c5 AK |
5721 | for ac_header in unistd.h |
5722 | do : | |
5723 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5724 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5725 | cat >>confdefs.h <<_ACEOF | |
5726 | #define HAVE_UNISTD_H 1 | |
5727 | _ACEOF | |
a946372e | 5728 | |
f11781c5 | 5729 | fi |
a946372e | 5730 | |
f11781c5 | 5731 | done |
a946372e | 5732 | |
f11781c5 AK |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5734 | $as_echo_n "checking for working chown... " >&6; } | |
5735 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5736 | $as_echo_n "(cached) " >&6 | |
a946372e | 5737 | else |
f11781c5 AK |
5738 | if test "$cross_compiling" = yes; then : |
5739 | ac_cv_func_chown_works=no | |
a946372e | 5740 | else |
f11781c5 AK |
5741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5742 | /* end confdefs.h. */ | |
5743 | $ac_includes_default | |
5744 | #include <fcntl.h> | |
a946372e | 5745 | |
f11781c5 AK |
5746 | int |
5747 | main () | |
5748 | { | |
5749 | char *f = "conftest.chown"; | |
5750 | struct stat before, after; | |
a946372e | 5751 | |
f11781c5 AK |
5752 | if (creat (f, 0600) < 0) |
5753 | return 1; | |
5754 | if (stat (f, &before) < 0) | |
5755 | return 1; | |
5756 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5757 | return 1; | |
5758 | if (stat (f, &after) < 0) | |
5759 | return 1; | |
5760 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5761 | |
f11781c5 AK |
5762 | ; |
5763 | return 0; | |
5764 | } | |
5765 | _ACEOF | |
5766 | if ac_fn_c_try_run "$LINENO"; then : | |
5767 | ac_cv_func_chown_works=yes | |
a946372e | 5768 | else |
f11781c5 | 5769 | ac_cv_func_chown_works=no |
a946372e | 5770 | fi |
f11781c5 AK |
5771 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5772 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5773 | fi |
5774 | ||
f11781c5 | 5775 | rm -f conftest.chown |
a946372e | 5776 | |
f11781c5 AK |
5777 | fi |
5778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5779 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5780 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5781 | |
f11781c5 | 5782 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5783 | |
a946372e | 5784 | fi |
a946372e | 5785 | |
f11781c5 AK |
5786 | for ac_header in vfork.h |
5787 | do : | |
5788 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5789 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5790 | cat >>confdefs.h <<_ACEOF | |
5791 | #define HAVE_VFORK_H 1 | |
5792 | _ACEOF | |
a946372e | 5793 | |
f11781c5 | 5794 | fi |
a946372e | 5795 | |
f11781c5 | 5796 | done |
a946372e | 5797 | |
f11781c5 AK |
5798 | for ac_func in fork vfork |
5799 | do : | |
5800 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5801 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5802 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5803 | cat >>confdefs.h <<_ACEOF | |
5804 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5805 | _ACEOF | |
a946372e | 5806 | |
f11781c5 AK |
5807 | fi |
5808 | done | |
a946372e | 5809 | |
f11781c5 AK |
5810 | if test "x$ac_cv_func_fork" = xyes; then |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5812 | $as_echo_n "checking for working fork... " >&6; } | |
5813 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5814 | $as_echo_n "(cached) " >&6 | |
5815 | else | |
5816 | if test "$cross_compiling" = yes; then : | |
5817 | ac_cv_func_fork_works=cross | |
5818 | else | |
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5820 | /* end confdefs.h. */ | |
5821 | $ac_includes_default | |
5822 | int | |
5823 | main () | |
5824 | { | |
a946372e | 5825 | |
f11781c5 AK |
5826 | /* By Ruediger Kuhlmann. */ |
5827 | return fork () < 0; | |
a946372e | 5828 | |
f11781c5 AK |
5829 | ; |
5830 | return 0; | |
5831 | } | |
5832 | _ACEOF | |
5833 | if ac_fn_c_try_run "$LINENO"; then : | |
5834 | ac_cv_func_fork_works=yes | |
a946372e | 5835 | else |
f11781c5 AK |
5836 | ac_cv_func_fork_works=no |
5837 | fi | |
5838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5839 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5840 | fi |
a946372e | 5841 | |
f11781c5 AK |
5842 | fi |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5844 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5845 | ||
a946372e | 5846 | else |
f11781c5 | 5847 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5848 | fi |
f11781c5 AK |
5849 | if test "x$ac_cv_func_fork_works" = xcross; then |
5850 | case $host in | |
5851 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5852 | # Override, as these systems have only a dummy fork() stub | |
5853 | ac_cv_func_fork_works=no | |
5854 | ;; | |
5855 | *) | |
5856 | ac_cv_func_fork_works=yes | |
5857 | ;; | |
5858 | esac | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5860 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5861 | fi |
f11781c5 AK |
5862 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5863 | if test "x$ac_cv_func_vfork" = xyes; then | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5865 | $as_echo_n "checking for working vfork... " >&6; } | |
5866 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5867 | $as_echo_n "(cached) " >&6 | |
5868 | else | |
5869 | if test "$cross_compiling" = yes; then : | |
5870 | ac_cv_func_vfork_works=cross | |
5871 | else | |
5872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5873 | /* end confdefs.h. */ | |
5874 | /* Thanks to Paul Eggert for this test. */ | |
5875 | $ac_includes_default | |
5876 | #include <sys/wait.h> | |
5877 | #ifdef HAVE_VFORK_H | |
5878 | # include <vfork.h> | |
5879 | #endif | |
5880 | /* On some sparc systems, changes by the child to local and incoming | |
5881 | argument registers are propagated back to the parent. The compiler | |
5882 | is told about this with #include <vfork.h>, but some compilers | |
5883 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5884 | static variable whose address is put into a register that is | |
5885 | clobbered by the vfork. */ | |
5886 | static void | |
5887 | #ifdef __cplusplus | |
5888 | sparc_address_test (int arg) | |
5889 | # else | |
5890 | sparc_address_test (arg) int arg; | |
5891 | #endif | |
5892 | { | |
5893 | static pid_t child; | |
5894 | if (!child) { | |
5895 | child = vfork (); | |
5896 | if (child < 0) { | |
5897 | perror ("vfork"); | |
5898 | _exit(2); | |
5899 | } | |
5900 | if (!child) { | |
5901 | arg = getpid(); | |
5902 | write(-1, "", 0); | |
5903 | _exit (arg); | |
5904 | } | |
5905 | } | |
5906 | } | |
a946372e | 5907 | |
f11781c5 AK |
5908 | int |
5909 | main () | |
5910 | { | |
5911 | pid_t parent = getpid (); | |
5912 | pid_t child; | |
a946372e | 5913 | |
f11781c5 | 5914 | sparc_address_test (0); |
a946372e | 5915 | |
f11781c5 | 5916 | child = vfork (); |
a946372e | 5917 | |
f11781c5 AK |
5918 | if (child == 0) { |
5919 | /* Here is another test for sparc vfork register problems. This | |
5920 | test uses lots of local variables, at least as many local | |
5921 | variables as main has allocated so far including compiler | |
5922 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5923 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5924 | reuse the register of parent for one of the local variables, | |
5925 | since it will think that parent can't possibly be used any more | |
5926 | in this routine. Assigning to the local variable will thus | |
5927 | munge parent in the parent process. */ | |
5928 | pid_t | |
5929 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5930 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5931 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5932 | use the same hardware register for all 8 local variables. */ | |
5933 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5934 | || p != p5 || p != p6 || p != p7) | |
5935 | _exit(1); | |
a946372e | 5936 | |
f11781c5 AK |
5937 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5938 | from child file descriptors. If the child closes a descriptor | |
5939 | before it execs or exits, this munges the parent's descriptor | |
5940 | as well. Test for this by closing stdout in the child. */ | |
5941 | _exit(close(fileno(stdout)) != 0); | |
5942 | } else { | |
5943 | int status; | |
5944 | struct stat st; | |
5945 | ||
5946 | while (wait(&status) != child) | |
5947 | ; | |
5948 | return ( | |
5949 | /* Was there some problem with vforking? */ | |
5950 | child < 0 | |
5951 | ||
5952 | /* Did the child fail? (This shouldn't happen.) */ | |
5953 | || status | |
5954 | ||
5955 | /* Did the vfork/compiler bug occur? */ | |
5956 | || parent != getpid() | |
5957 | ||
5958 | /* Did the file descriptor bug occur? */ | |
5959 | || fstat(fileno(stdout), &st) != 0 | |
5960 | ); | |
5961 | } | |
5962 | } | |
5963 | _ACEOF | |
5964 | if ac_fn_c_try_run "$LINENO"; then : | |
5965 | ac_cv_func_vfork_works=yes | |
a946372e | 5966 | else |
f11781c5 | 5967 | ac_cv_func_vfork_works=no |
a946372e | 5968 | fi |
f11781c5 AK |
5969 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5970 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5971 | fi |
f11781c5 | 5972 | |
a946372e | 5973 | fi |
f11781c5 AK |
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5975 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5976 | |
f11781c5 AK |
5977 | fi; |
5978 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5979 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5981 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5982 | fi | |
a946372e | 5983 | |
f11781c5 | 5984 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5985 | |
f11781c5 | 5986 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5987 | |
a946372e | 5988 | else |
a946372e | 5989 | |
f11781c5 AK |
5990 | $as_echo "#define vfork fork" >>confdefs.h |
5991 | ||
a946372e | 5992 | fi |
f11781c5 | 5993 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5994 | |
f11781c5 | 5995 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5996 | |
a946372e | 5997 | fi |
f11781c5 AK |
5998 | |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
6000 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
6001 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
6002 | $as_echo_n "(cached) " >&6 | |
a946372e | 6003 | else |
f11781c5 AK |
6004 | rm -f conftest.sym conftest.file |
6005 | echo >conftest.file | |
6006 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6007 | if test "$cross_compiling" = yes; then : | |
6008 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6009 | else |
f11781c5 | 6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 6011 | /* end confdefs.h. */ |
f11781c5 AK |
6012 | $ac_includes_default |
6013 | int | |
6014 | main () | |
6015 | { | |
6016 | struct stat sbuf; | |
6017 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
6018 | That is better in the sense that it means we will not | |
6019 | have to compile and use the lstat wrapper. */ | |
6020 | return lstat ("conftest.sym/", &sbuf) == 0; | |
6021 | ; | |
6022 | return 0; | |
6023 | } | |
a946372e | 6024 | _ACEOF |
f11781c5 AK |
6025 | if ac_fn_c_try_run "$LINENO"; then : |
6026 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 6027 | else |
f11781c5 | 6028 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 6029 | fi |
f11781c5 AK |
6030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6031 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6032 | fi |
a946372e | 6033 | |
a946372e | 6034 | else |
f11781c5 AK |
6035 | # If the `ln -s' command failed, then we probably don't even |
6036 | # have an lstat function. | |
6037 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6038 | fi |
f11781c5 | 6039 | rm -f conftest.sym conftest.file |
a946372e | 6040 | |
f11781c5 AK |
6041 | fi |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6043 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 6044 | |
f11781c5 | 6045 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 6046 | |
f11781c5 AK |
6047 | cat >>confdefs.h <<_ACEOF |
6048 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6049 | _ACEOF | |
a946372e | 6050 | |
a946372e | 6051 | |
f11781c5 AK |
6052 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6053 | case " $LIBOBJS " in | |
6054 | *" lstat.$ac_objext "* ) ;; | |
6055 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6056 | ;; | |
6057 | esac | |
a946372e | 6058 | |
f11781c5 | 6059 | fi |
a946372e | 6060 | |
f11781c5 AK |
6061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6062 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6063 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6064 | $as_echo_n "(cached) " >&6 | |
a946372e | 6065 | else |
f11781c5 AK |
6066 | if test "$cross_compiling" = yes; then : |
6067 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6068 | else |
f11781c5 AK |
6069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6070 | /* end confdefs.h. */ | |
6071 | $ac_includes_default | |
6072 | int | |
6073 | main () | |
6074 | { | |
6075 | struct stat sbuf; | |
6076 | return lstat ("", &sbuf) == 0; | |
6077 | ; | |
6078 | return 0; | |
6079 | } | |
6080 | _ACEOF | |
6081 | if ac_fn_c_try_run "$LINENO"; then : | |
6082 | ac_cv_func_lstat_empty_string_bug=no | |
6083 | else | |
6084 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6085 | fi |
f11781c5 AK |
6086 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6087 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6088 | fi |
6089 | ||
f11781c5 AK |
6090 | fi |
6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6092 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6093 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6094 | case " $LIBOBJS " in | |
6095 | *" lstat.$ac_objext "* ) ;; | |
6096 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6097 | ;; | |
6098 | esac | |
a946372e AK |
6099 | |
6100 | ||
f11781c5 AK |
6101 | cat >>confdefs.h <<_ACEOF |
6102 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6103 | _ACEOF | |
a946372e | 6104 | |
a946372e | 6105 | fi |
a946372e | 6106 | |
f11781c5 AK |
6107 | for ac_header in stdlib.h |
6108 | do : | |
6109 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6110 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6111 | cat >>confdefs.h <<_ACEOF | |
6112 | #define HAVE_STDLIB_H 1 | |
6113 | _ACEOF | |
6114 | ||
a946372e AK |
6115 | fi |
6116 | ||
f11781c5 | 6117 | done |
a946372e | 6118 | |
f11781c5 AK |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6120 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6121 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6122 | $as_echo_n "(cached) " >&6 | |
6123 | else | |
6124 | if test "$cross_compiling" = yes; then : | |
6125 | ac_cv_func_malloc_0_nonnull=no | |
6126 | else | |
6127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6128 | /* end confdefs.h. */ | |
6129 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6130 | # include <stdlib.h> | |
6131 | #else | |
6132 | char *malloc (); | |
6133 | #endif | |
a946372e | 6134 | |
f11781c5 AK |
6135 | int |
6136 | main () | |
6137 | { | |
6138 | return ! malloc (0); | |
6139 | ; | |
6140 | return 0; | |
6141 | } | |
6142 | _ACEOF | |
6143 | if ac_fn_c_try_run "$LINENO"; then : | |
6144 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6145 | else |
f11781c5 | 6146 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6147 | fi |
f11781c5 AK |
6148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6149 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6150 | fi |
f11781c5 | 6151 | |
a946372e | 6152 | fi |
f11781c5 AK |
6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6154 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6155 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6156 | |
f11781c5 | 6157 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6158 | |
f11781c5 AK |
6159 | else |
6160 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6161 | |
f11781c5 AK |
6162 | case " $LIBOBJS " in |
6163 | *" malloc.$ac_objext "* ) ;; | |
6164 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6165 | ;; | |
6166 | esac | |
6167 | ||
6168 | ||
6169 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6170 | |
a946372e | 6171 | fi |
a946372e | 6172 | |
a946372e | 6173 | |
f11781c5 AK |
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6175 | $as_echo_n "checking for working memcmp... " >&6; } | |
6176 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6177 | $as_echo_n "(cached) " >&6 |
a946372e | 6178 | else |
f11781c5 AK |
6179 | if test "$cross_compiling" = yes; then : |
6180 | ac_cv_func_memcmp_working=no | |
6181 | else | |
6182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6183 | /* end confdefs.h. */ |
6184 | $ac_includes_default | |
f11781c5 AK |
6185 | int |
6186 | main () | |
6187 | { | |
a946372e | 6188 | |
f11781c5 AK |
6189 | /* Some versions of memcmp are not 8-bit clean. */ |
6190 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6191 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6192 | return 1; | |
a946372e | 6193 | |
f11781c5 AK |
6194 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6195 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6196 | William Lewis provided this test program. */ | |
6197 | { | |
6198 | char foo[21]; | |
6199 | char bar[21]; | |
6200 | int i; | |
6201 | for (i = 0; i < 4; i++) | |
6202 | { | |
6203 | char *a = foo + i; | |
6204 | char *b = bar + i; | |
6205 | strcpy (a, "--------01111111"); | |
6206 | strcpy (b, "--------10000000"); | |
6207 | if (memcmp (a, b, 16) >= 0) | |
6208 | return 1; | |
6209 | } | |
6210 | return 0; | |
6211 | } | |
a946372e | 6212 | |
f11781c5 AK |
6213 | ; |
6214 | return 0; | |
6215 | } | |
a946372e | 6216 | _ACEOF |
f11781c5 AK |
6217 | if ac_fn_c_try_run "$LINENO"; then : |
6218 | ac_cv_func_memcmp_working=yes | |
a946372e | 6219 | else |
f11781c5 AK |
6220 | ac_cv_func_memcmp_working=no |
6221 | fi | |
6222 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6223 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6224 | fi | |
a946372e | 6225 | |
a946372e | 6226 | fi |
f11781c5 AK |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6228 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6229 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6230 | *" memcmp.$ac_objext "* ) ;; | |
6231 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6232 | ;; | |
6233 | esac | |
a946372e | 6234 | |
a946372e | 6235 | |
a946372e | 6236 | |
a946372e | 6237 | |
f11781c5 AK |
6238 | |
6239 | for ac_header in $ac_header_list | |
6240 | do : | |
6241 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6242 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6243 | " | |
6244 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6245 | cat >>confdefs.h <<_ACEOF |
6246 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6247 | _ACEOF | |
6248 | ||
a946372e AK |
6249 | fi |
6250 | ||
6251 | done | |
6252 | ||
a946372e | 6253 | |
f11781c5 AK |
6254 | |
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
6260 | for ac_func in getpagesize | |
6261 | do : | |
6262 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6263 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6264 | cat >>confdefs.h <<_ACEOF | |
6265 | #define HAVE_GETPAGESIZE 1 | |
6266 | _ACEOF | |
6267 | ||
a946372e | 6268 | fi |
f11781c5 AK |
6269 | done |
6270 | ||
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6272 | $as_echo_n "checking for working mmap... " >&6; } | |
6273 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6274 | $as_echo_n "(cached) " >&6 | |
a946372e | 6275 | else |
f11781c5 AK |
6276 | if test "$cross_compiling" = yes; then : |
6277 | ac_cv_func_mmap_fixed_mapped=no | |
6278 | else | |
6279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6280 | /* end confdefs.h. */ |
6281 | $ac_includes_default | |
f11781c5 AK |
6282 | /* malloc might have been renamed as rpl_malloc. */ |
6283 | #undef malloc | |
6284 | ||
6285 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6286 | Here is a matrix of mmap possibilities: | |
6287 | mmap private not fixed | |
6288 | mmap private fixed at somewhere currently unmapped | |
6289 | mmap private fixed at somewhere already mapped | |
6290 | mmap shared not fixed | |
6291 | mmap shared fixed at somewhere currently unmapped | |
6292 | mmap shared fixed at somewhere already mapped | |
6293 | For private mappings, we should verify that changes cannot be read() | |
6294 | back from the file, nor mmap's back from the file at a different | |
6295 | address. (There have been systems where private was not correctly | |
6296 | implemented like the infamous i386 svr4.0, and systems where the | |
6297 | VM page cache was not coherent with the file system buffer cache | |
6298 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6299 | For shared mappings, we should conversely verify that changes get | |
6300 | propagated back to all the places they're supposed to be. | |
6301 | ||
6302 | Grep wants private fixed already mapped. | |
6303 | The main things grep needs to know about mmap are: | |
6304 | * does it exist and is it safe to write into the mmap'd area | |
6305 | * how to use it (BSD variants) */ | |
6306 | ||
6307 | #include <fcntl.h> | |
6308 | #include <sys/mman.h> | |
6309 | ||
6310 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6311 | char *malloc (); | |
6312 | #endif | |
6313 | ||
6314 | /* This mess was copied from the GNU getpagesize.h. */ | |
6315 | #ifndef HAVE_GETPAGESIZE | |
6316 | # ifdef _SC_PAGESIZE | |
6317 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6318 | # else /* no _SC_PAGESIZE */ | |
6319 | # ifdef HAVE_SYS_PARAM_H | |
6320 | # include <sys/param.h> | |
6321 | # ifdef EXEC_PAGESIZE | |
6322 | # define getpagesize() EXEC_PAGESIZE | |
6323 | # else /* no EXEC_PAGESIZE */ | |
6324 | # ifdef NBPG | |
6325 | # define getpagesize() NBPG * CLSIZE | |
6326 | # ifndef CLSIZE | |
6327 | # define CLSIZE 1 | |
6328 | # endif /* no CLSIZE */ | |
6329 | # else /* no NBPG */ | |
6330 | # ifdef NBPC | |
6331 | # define getpagesize() NBPC | |
6332 | # else /* no NBPC */ | |
6333 | # ifdef PAGESIZE | |
6334 | # define getpagesize() PAGESIZE | |
6335 | # endif /* PAGESIZE */ | |
6336 | # endif /* no NBPC */ | |
6337 | # endif /* no NBPG */ | |
6338 | # endif /* no EXEC_PAGESIZE */ | |
6339 | # else /* no HAVE_SYS_PARAM_H */ | |
6340 | # define getpagesize() 8192 /* punt totally */ | |
6341 | # endif /* no HAVE_SYS_PARAM_H */ | |
6342 | # endif /* no _SC_PAGESIZE */ | |
6343 | ||
6344 | #endif /* no HAVE_GETPAGESIZE */ | |
6345 | ||
6346 | int | |
6347 | main () | |
6348 | { | |
6349 | char *data, *data2, *data3; | |
6350 | const char *cdata2; | |
6351 | int i, pagesize; | |
6352 | int fd, fd2; | |
6353 | ||
6354 | pagesize = getpagesize (); | |
6355 | ||
6356 | /* First, make a file with some known garbage in it. */ | |
6357 | data = (char *) malloc (pagesize); | |
6358 | if (!data) | |
6359 | return 1; | |
6360 | for (i = 0; i < pagesize; ++i) | |
6361 | *(data + i) = rand (); | |
6362 | umask (0); | |
6363 | fd = creat ("conftest.mmap", 0600); | |
6364 | if (fd < 0) | |
6365 | return 2; | |
6366 | if (write (fd, data, pagesize) != pagesize) | |
6367 | return 3; | |
6368 | close (fd); | |
6369 | ||
6370 | /* Next, check that the tail of a page is zero-filled. File must have | |
6371 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6372 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6373 | if (fd2 < 0) | |
6374 | return 4; | |
6375 | cdata2 = ""; | |
6376 | if (write (fd2, cdata2, 1) != 1) | |
6377 | return 5; | |
6378 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6379 | if (data2 == MAP_FAILED) | |
6380 | return 6; | |
6381 | for (i = 0; i < pagesize; ++i) | |
6382 | if (*(data2 + i)) | |
6383 | return 7; | |
6384 | close (fd2); | |
6385 | if (munmap (data2, pagesize)) | |
6386 | return 8; | |
6387 | ||
6388 | /* Next, try to mmap the file at a fixed address which already has | |
6389 | something else allocated at it. If we can, also make sure that | |
6390 | we see the same garbage. */ | |
6391 | fd = open ("conftest.mmap", O_RDWR); | |
6392 | if (fd < 0) | |
6393 | return 9; | |
6394 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6395 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6396 | return 10; | |
6397 | for (i = 0; i < pagesize; ++i) | |
6398 | if (*(data + i) != *(data2 + i)) | |
6399 | return 11; | |
6400 | ||
6401 | /* Finally, make sure that changes to the mapped area do not | |
6402 | percolate back to the file as seen by read(). (This is a bug on | |
6403 | some variants of i386 svr4.0.) */ | |
6404 | for (i = 0; i < pagesize; ++i) | |
6405 | *(data2 + i) = *(data2 + i) + 1; | |
6406 | data3 = (char *) malloc (pagesize); | |
6407 | if (!data3) | |
6408 | return 12; | |
6409 | if (read (fd, data3, pagesize) != pagesize) | |
6410 | return 13; | |
6411 | for (i = 0; i < pagesize; ++i) | |
6412 | if (*(data + i) != *(data3 + i)) | |
6413 | return 14; | |
6414 | close (fd); | |
6415 | return 0; | |
6416 | } | |
a946372e | 6417 | _ACEOF |
f11781c5 AK |
6418 | if ac_fn_c_try_run "$LINENO"; then : |
6419 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6420 | else |
f11781c5 AK |
6421 | ac_cv_func_mmap_fixed_mapped=no |
6422 | fi | |
6423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6424 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6425 | fi | |
a946372e | 6426 | |
a946372e | 6427 | fi |
f11781c5 AK |
6428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6429 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6430 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6431 | |
f11781c5 | 6432 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6433 | |
f11781c5 AK |
6434 | fi |
6435 | rm -f conftest.mmap conftest.txt | |
6436 | ||
6437 | for ac_header in stdlib.h | |
6438 | do : | |
6439 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6440 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6441 | cat >>confdefs.h <<_ACEOF | |
6442 | #define HAVE_STDLIB_H 1 | |
a946372e | 6443 | _ACEOF |
f11781c5 AK |
6444 | |
6445 | fi | |
6446 | ||
6447 | done | |
6448 | ||
6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6450 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6451 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6452 | $as_echo_n "(cached) " >&6 | |
6453 | else | |
6454 | if test "$cross_compiling" = yes; then : | |
6455 | ac_cv_func_realloc_0_nonnull=no | |
6456 | else | |
6457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6458 | /* end confdefs.h. */ |
f11781c5 AK |
6459 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6460 | # include <stdlib.h> | |
6461 | #else | |
6462 | char *realloc (); | |
6463 | #endif | |
6464 | ||
6465 | int | |
6466 | main () | |
6467 | { | |
6468 | return ! realloc (0, 0); | |
6469 | ; | |
6470 | return 0; | |
6471 | } | |
a946372e | 6472 | _ACEOF |
f11781c5 AK |
6473 | if ac_fn_c_try_run "$LINENO"; then : |
6474 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6475 | else |
f11781c5 AK |
6476 | ac_cv_func_realloc_0_nonnull=no |
6477 | fi | |
6478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6479 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6480 | fi |
6481 | ||
f11781c5 AK |
6482 | fi |
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6484 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6485 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6486 | |
f11781c5 | 6487 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6488 | |
a946372e | 6489 | else |
f11781c5 AK |
6490 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6491 | ||
6492 | case " $LIBOBJS " in | |
6493 | *" realloc.$ac_objext "* ) ;; | |
6494 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6495 | ;; | |
6496 | esac | |
a946372e | 6497 | |
a946372e | 6498 | |
f11781c5 AK |
6499 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6500 | ||
a946372e AK |
6501 | fi |
6502 | ||
a946372e | 6503 | |
f11781c5 AK |
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6505 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6506 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6507 | $as_echo_n "(cached) " >&6 | |
a946372e | 6508 | else |
f11781c5 AK |
6509 | if test "$cross_compiling" = yes; then : |
6510 | ac_cv_func_stat_empty_string_bug=yes | |
6511 | else | |
6512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6513 | /* end confdefs.h. */ | |
6514 | $ac_includes_default | |
6515 | int | |
6516 | main () | |
6517 | { | |
6518 | struct stat sbuf; | |
6519 | return stat ("", &sbuf) == 0; | |
6520 | ; | |
6521 | return 0; | |
6522 | } | |
6523 | _ACEOF | |
6524 | if ac_fn_c_try_run "$LINENO"; then : | |
6525 | ac_cv_func_stat_empty_string_bug=no | |
6526 | else | |
6527 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6528 | fi |
f11781c5 AK |
6529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6530 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6531 | fi |
6532 | ||
8c4e8a18 | 6533 | fi |
f11781c5 AK |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6535 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6536 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6537 | case " $LIBOBJS " in | |
6538 | *" stat.$ac_objext "* ) ;; | |
6539 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6540 | ;; | |
6541 | esac | |
8c4e8a18 FDN |
6542 | |
6543 | ||
6544 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6545 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6546 | _ACEOF |
6547 | ||
6548 | fi | |
6549 | ||
f11781c5 AK |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6551 | $as_echo_n "checking for working strtod... " >&6; } | |
6552 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6553 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6554 | else |
f11781c5 AK |
6555 | if test "$cross_compiling" = yes; then : |
6556 | ac_cv_func_strtod=no | |
6557 | else | |
6558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6559 | /* end confdefs.h. */ | |
66fd4529 | 6560 | |
f11781c5 AK |
6561 | $ac_includes_default |
6562 | #ifndef strtod | |
6563 | double strtod (); | |
6564 | #endif | |
6565 | int | |
6566 | main() | |
6567 | { | |
6568 | { | |
6569 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6570 | char *string = " +69"; | |
6571 | char *term; | |
6572 | double value; | |
6573 | value = strtod (string, &term); | |
6574 | if (value != 69 || term != (string + 4)) | |
6575 | return 1; | |
6576 | } | |
66fd4529 | 6577 | |
f11781c5 AK |
6578 | { |
6579 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6580 | terminating character under some conditions. */ | |
6581 | char *string = "NaN"; | |
6582 | char *term; | |
6583 | strtod (string, &term); | |
6584 | if (term != string && *(term - 1) == 0) | |
6585 | return 1; | |
6586 | } | |
6587 | return 0; | |
6588 | } | |
66fd4529 | 6589 | |
f11781c5 AK |
6590 | _ACEOF |
6591 | if ac_fn_c_try_run "$LINENO"; then : | |
6592 | ac_cv_func_strtod=yes | |
66fd4529 | 6593 | else |
f11781c5 AK |
6594 | ac_cv_func_strtod=no |
6595 | fi | |
6596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6597 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6598 | fi |
6599 | ||
f11781c5 AK |
6600 | fi |
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6602 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6603 | if test $ac_cv_func_strtod = no; then | |
6604 | case " $LIBOBJS " in | |
6605 | *" strtod.$ac_objext "* ) ;; | |
6606 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6607 | ;; | |
6608 | esac | |
71082be4 | 6609 | |
f11781c5 AK |
6610 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6611 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6612 | |
66fd4529 | 6613 | fi |
a946372e | 6614 | |
f11781c5 AK |
6615 | if test $ac_cv_func_pow = no; then |
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6617 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6618 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6619 | $as_echo_n "(cached) " >&6 | |
6620 | else | |
6621 | ac_check_lib_save_LIBS=$LIBS | |
6622 | LIBS="-lm $LIBS" | |
6623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6624 | /* end confdefs.h. */ | |
90c80887 | 6625 | |
f11781c5 AK |
6626 | /* Override any GCC internal prototype to avoid an error. |
6627 | Use char because int might match the return type of a GCC | |
6628 | builtin and then its argument prototype would still apply. */ | |
6629 | #ifdef __cplusplus | |
6630 | extern "C" | |
6631 | #endif | |
6632 | char pow (); | |
6633 | int | |
6634 | main () | |
6635 | { | |
6636 | return pow (); | |
6637 | ; | |
6638 | return 0; | |
6639 | } | |
6640 | _ACEOF | |
6641 | if ac_fn_c_try_link "$LINENO"; then : | |
6642 | ac_cv_lib_m_pow=yes | |
90c80887 | 6643 | else |
f11781c5 | 6644 | ac_cv_lib_m_pow=no |
90c80887 | 6645 | fi |
f11781c5 AK |
6646 | rm -f core conftest.err conftest.$ac_objext \ |
6647 | conftest$ac_exeext conftest.$ac_ext | |
6648 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6649 | fi |
f11781c5 AK |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6651 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6652 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6653 | POW_LIB=-lm | |
90c80887 | 6654 | else |
f11781c5 AK |
6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6656 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6657 | fi |
f11781c5 | 6658 | |
90c80887 AK |
6659 | fi |
6660 | ||
f11781c5 AK |
6661 | fi |
6662 | ||
6663 | for ac_func in vprintf | |
6664 | do : | |
6665 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6666 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6667 | cat >>confdefs.h <<_ACEOF | |
6668 | #define HAVE_VPRINTF 1 | |
6669 | _ACEOF | |
90c80887 | 6670 | |
f11781c5 AK |
6671 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6672 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6673 | |
f11781c5 | 6674 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6675 | |
90c80887 | 6676 | fi |
90c80887 | 6677 | |
f11781c5 AK |
6678 | fi |
6679 | done | |
90c80887 | 6680 | |
90c80887 | 6681 | |
90c80887 | 6682 | |
f11781c5 AK |
6683 | ################################################################################ |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6685 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6686 | # Check whether --enable-static_link was given. | |
6687 | if test "${enable_static_link+set}" = set; then : | |
6688 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6689 | else | |
6690 | STATIC_LINK=no | |
6691 | fi | |
90c80887 | 6692 | |
f11781c5 AK |
6693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6694 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6695 | |
f11781c5 | 6696 | ################################################################################ |
90c80887 | 6697 | |
90c80887 | 6698 | |
f11781c5 AK |
6699 | ################################################################################ |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6701 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6702 | |
f11781c5 AK |
6703 | # Check whether --with-user was given. |
6704 | if test "${with_user+set}" = set; then : | |
6705 | withval=$with_user; OWNER=$withval | |
6706 | fi | |
90c80887 | 6707 | |
f11781c5 AK |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6709 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6710 | |
f11781c5 AK |
6711 | if test x$OWNER != x; then |
6712 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6713 | fi |
a946372e | 6714 | |
f11781c5 AK |
6715 | ################################################################################ |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6717 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6718 | |
f11781c5 AK |
6719 | # Check whether --with-group was given. |
6720 | if test "${with_group+set}" = set; then : | |
6721 | withval=$with_group; GROUP=$withval | |
a946372e | 6722 | fi |
f11781c5 AK |
6723 | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6725 | $as_echo "$GROUP" >&6; } | |
6726 | ||
6727 | if test x$GROUP != x; then | |
6728 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6729 | fi |
f11781c5 AK |
6730 | |
6731 | ################################################################################ | |
6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6733 | $as_echo_n "checking device node uid... " >&6; } | |
6734 | ||
6735 | ||
6736 | # Check whether --with-device-uid was given. | |
6737 | if test "${with_device_uid+set}" = set; then : | |
6738 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6739 | else |
f11781c5 | 6740 | DM_DEVICE_UID=0 |
a946372e AK |
6741 | fi |
6742 | ||
f11781c5 AK |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6744 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6745 | |
f11781c5 AK |
6746 | ################################################################################ |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6748 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6749 | |
a946372e | 6750 | |
f11781c5 AK |
6751 | # Check whether --with-device-gid was given. |
6752 | if test "${with_device_gid+set}" = set; then : | |
6753 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6754 | else |
f11781c5 | 6755 | DM_DEVICE_GID=0 |
a946372e | 6756 | fi |
a946372e | 6757 | |
f11781c5 AK |
6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6759 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6760 | |
f11781c5 AK |
6761 | ################################################################################ |
6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6763 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6764 | |
90c80887 | 6765 | |
f11781c5 AK |
6766 | # Check whether --with-device-mode was given. |
6767 | if test "${with_device_mode+set}" = set; then : | |
6768 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6769 | else | |
6770 | DM_DEVICE_MODE=0600 | |
6771 | fi | |
90c80887 | 6772 | |
f11781c5 AK |
6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6774 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6775 | |
d0df875d ZK |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6777 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6778 | ||
6779 | # Check whether --with-device-nodes-on was given. | |
6780 | if test "${with_device_nodes_on+set}" = set; then : | |
6781 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6782 | else | |
6783 | ADD_NODE=resume | |
6784 | fi | |
6785 | ||
6786 | case "$ADD_NODE" in | |
6787 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6788 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6789 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6790 | esac | |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6792 | $as_echo "on $ADD_NODE" >&6; } | |
6793 | ||
6794 | cat >>confdefs.h <<_ACEOF | |
6795 | #define DEFAULT_DM_ADD_NODE $add_on | |
6796 | _ACEOF | |
6797 | ||
6798 | ||
c64d7cd3 PR |
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 |
6800 | $as_echo_n "checking default name mangling... " >&6; } | |
6801 | ||
6802 | # Check whether --with-default-name-mangling was given. | |
6803 | if test "${with_default_name_mangling+set}" = set; then : | |
6804 | withval=$with_default_name_mangling; MANGLING=$withval | |
6805 | else | |
6806 | MANGLING=auto | |
6807 | fi | |
6808 | ||
6809 | case "$MANGLING" in | |
6810 | auto) mangling=DM_STRING_MANGLING_AUTO;; | |
6811 | disabled) mangling=DM_STRING_MANGLING_NONE;; | |
6812 | hex) mangling=DM_STRING_MANGLING_HEX;; | |
6813 | *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;; | |
6814 | esac | |
6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 | |
6816 | $as_echo "$MANGLING" >&6; } | |
6817 | ||
6818 | cat >>confdefs.h <<_ACEOF | |
6819 | #define DEFAULT_DM_NAME_MANGLING $mangling | |
6820 | _ACEOF | |
6821 | ||
6822 | ||
f11781c5 AK |
6823 | ################################################################################ |
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6825 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6826 | # Check whether --enable-lvm1_fallback was given. | |
6827 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6828 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6829 | else | |
6830 | LVM1_FALLBACK=no | |
6831 | fi | |
90c80887 | 6832 | |
f11781c5 AK |
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6834 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6835 | |
f11781c5 | 6836 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6837 | |
f11781c5 | 6838 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6839 | |
f11781c5 | 6840 | fi |
90c80887 | 6841 | |
f11781c5 AK |
6842 | ################################################################################ |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6844 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6845 | ||
6846 | # Check whether --with-lvm1 was given. | |
6847 | if test "${with_lvm1+set}" = set; then : | |
6848 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6849 | else |
f11781c5 | 6850 | LVM1=internal |
a946372e | 6851 | fi |
f11781c5 AK |
6852 | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6854 | $as_echo "$LVM1" >&6; } | |
6855 | ||
6856 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6857 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6858 | " "$LINENO" 5 | |
6859 | fi; | |
6860 | ||
6861 | if test x$LVM1 = xinternal; then | |
6862 | ||
6863 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6864 | ||
a946372e AK |
6865 | fi |
6866 | ||
6867 | ################################################################################ | |
f11781c5 AK |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6869 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6870 | ||
6871 | # Check whether --with-pool was given. | |
6872 | if test "${with_pool+set}" = set; then : | |
6873 | withval=$with_pool; POOL=$withval | |
a946372e | 6874 | else |
f11781c5 | 6875 | POOL=internal |
a946372e AK |
6876 | fi |
6877 | ||
f11781c5 AK |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6879 | $as_echo "$POOL" >&6; } | |
6880 | ||
6881 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6882 | then as_fn_error $? "--with-pool parameter invalid | |
6883 | " "$LINENO" 5 | |
6884 | fi; | |
6885 | ||
6886 | if test x$POOL = xinternal; then | |
6887 | ||
6888 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6889 | |
a946372e AK |
6890 | fi |
6891 | ||
6892 | ################################################################################ | |
f11781c5 AK |
6893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6894 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6895 | |
f11781c5 AK |
6896 | # Check whether --with-cluster was given. |
6897 | if test "${with_cluster+set}" = set; then : | |
6898 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6899 | fi |
6900 | ||
f11781c5 AK |
6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6902 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6903 | |
f11781c5 AK |
6904 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6905 | then as_fn_error $? "--with-cluster parameter invalid | |
6906 | " "$LINENO" 5 | |
6907 | fi; | |
fddafd51 | 6908 | |
f11781c5 | 6909 | if test x$CLUSTER = xinternal; then |
5556819a | 6910 | |
f11781c5 | 6911 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6912 | |
fddafd51 | 6913 | fi |
f11781c5 AK |
6914 | |
6915 | ################################################################################ | |
6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6917 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6918 | ||
6919 | # Check whether --with-snapshots was given. | |
6920 | if test "${with_snapshots+set}" = set; then : | |
6921 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6922 | else |
f11781c5 | 6923 | SNAPSHOTS=internal |
fddafd51 ZK |
6924 | fi |
6925 | ||
f11781c5 AK |
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6927 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6928 | |
f11781c5 AK |
6929 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6930 | then as_fn_error $? "--with-snapshots parameter invalid | |
6931 | " "$LINENO" 5 | |
6932 | fi; | |
fddafd51 | 6933 | |
f11781c5 AK |
6934 | if test x$SNAPSHOTS = xinternal; then |
6935 | ||
6936 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6937 | ||
6938 | fi | |
6939 | ||
6940 | ################################################################################ | |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6942 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6943 | ||
6944 | # Check whether --with-mirrors was given. | |
6945 | if test "${with_mirrors+set}" = set; then : | |
6946 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6947 | else |
f11781c5 | 6948 | MIRRORS=internal |
fddafd51 ZK |
6949 | fi |
6950 | ||
f11781c5 AK |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6952 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6953 | |
f11781c5 AK |
6954 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6955 | then as_fn_error $? "--with-mirrors parameter invalid | |
6956 | " "$LINENO" 5 | |
6957 | fi; | |
6958 | ||
6959 | if test x$MIRRORS = xinternal; then | |
6960 | ||
6961 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6962 | ||
6963 | fi | |
6964 | ||
cac52ca4 JEB |
6965 | ################################################################################ |
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6967 | $as_echo_n "checking whether to include raid... " >&6; } | |
6968 | ||
6969 | # Check whether --with-raid was given. | |
6970 | if test "${with_raid+set}" = set; then : | |
6971 | withval=$with_raid; RAID=$withval | |
6972 | else | |
6973 | RAID=internal | |
6974 | fi | |
6975 | ||
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6977 | $as_echo "$RAID" >&6; } | |
6978 | ||
6979 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6980 | then as_fn_error $? "--with-raid parameter invalid | |
6981 | " "$LINENO" 5 | |
6982 | fi; | |
6983 | ||
6984 | if test x$RAID = xinternal; then | |
6985 | ||
6986 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6987 | ||
6988 | fi | |
6989 | ||
f11781c5 AK |
6990 | ################################################################################ |
6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6992 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6993 | ||
6994 | # Check whether --with-replicators was given. | |
6995 | if test "${with_replicators+set}" = set; then : | |
6996 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6997 | else |
f11781c5 AK |
6998 | REPLICATORS=none |
6999 | fi | |
fd4728e1 | 7000 | |
f11781c5 AK |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
7002 | $as_echo "$REPLICATORS" >&6; } | |
7003 | ||
7004 | case "$REPLICATORS" in | |
7005 | none|shared) ;; | |
7006 | internal) | |
7007 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
7008 | ;; | |
7009 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 7010 | esac |
f11781c5 | 7011 | |
3ba4a195 ZK |
7012 | ################################################################################ |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
7014 | $as_echo_n "checking whether to include thin provisioning... " >&6; } | |
7015 | ||
7016 | # Check whether --with-thin was given. | |
7017 | if test "${with_thin+set}" = set; then : | |
7018 | withval=$with_thin; THIN=$withval | |
7019 | else | |
7020 | THIN=none | |
7021 | fi | |
7022 | ||
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
7024 | $as_echo "$THIN" >&6; } | |
7025 | ||
7026 | case "$THIN" in | |
7027 | none|shared) ;; | |
7028 | internal) | |
7029 | $as_echo "#define THIN_INTERNAL 1" >>confdefs.h | |
7030 | ;; | |
7031 | *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
7032 | esac | |
7033 | ||
f61cacad ZK |
7034 | case "$THIN" in |
7035 | internal|shared) | |
7036 | ||
7037 | # Check whether --with-thin-check was given. | |
7038 | if test "${with_thin_check+set}" = set; then : | |
7039 | withval=$with_thin_check; THIN_CHECK_CMD=$withval | |
7040 | else | |
7041 | THIN_CHECK_CMD="autodetect" | |
7042 | fi | |
7043 | ||
7044 | # Empty means a config way to ignore thin checking | |
7045 | if test "$THIN_CHECK_CMD" = "autodetect"; then | |
7046 | # Extract the first word of "thin_check", so it can be a program name with args. | |
7047 | set dummy thin_check; ac_word=$2 | |
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7049 | $as_echo_n "checking for $ac_word... " >&6; } | |
7050 | if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then : | |
7051 | $as_echo_n "(cached) " >&6 | |
7052 | else | |
7053 | case $THIN_CHECK_CMD in | |
7054 | [\\/]* | ?:[\\/]*) | |
7055 | ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path. | |
7056 | ;; | |
7057 | *) | |
7058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7059 | for as_dir in $PATH | |
7060 | do | |
7061 | IFS=$as_save_IFS | |
7062 | test -z "$as_dir" && as_dir=. | |
7063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7065 | ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext" | |
7066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7067 | break 2 | |
7068 | fi | |
7069 | done | |
7070 | done | |
7071 | IFS=$as_save_IFS | |
7072 | ||
7073 | ;; | |
7074 | esac | |
7075 | fi | |
7076 | THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD | |
7077 | if test -n "$THIN_CHECK_CMD"; then | |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5 | |
7079 | $as_echo "$THIN_CHECK_CMD" >&6; } | |
7080 | else | |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7082 | $as_echo "no" >&6; } | |
7083 | fi | |
7084 | ||
7085 | ||
7086 | test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5 | |
7087 | fi | |
909887be ZK |
7088 | ;; |
7089 | esac | |
f61cacad ZK |
7090 | |
7091 | ||
7092 | cat >>confdefs.h <<_ACEOF | |
7093 | #define THIN_CHECK_CMD "$THIN_CHECK_CMD" | |
7094 | _ACEOF | |
7095 | ||
f61cacad ZK |
7096 | |
7097 | ||
f11781c5 AK |
7098 | ################################################################################ |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
7100 | $as_echo_n "checking whether to enable readline... " >&6; } | |
7101 | # Check whether --enable-readline was given. | |
7102 | if test "${enable_readline+set}" = set; then : | |
7103 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 7104 | else |
f11781c5 | 7105 | READLINE=maybe |
fd4728e1 ZK |
7106 | fi |
7107 | ||
f11781c5 AK |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
7109 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 7110 | |
f11781c5 AK |
7111 | ################################################################################ |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
7113 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
7114 | # Check whether --enable-realtime was given. | |
7115 | if test "${enable_realtime+set}" = set; then : | |
7116 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 7117 | fi |
d0191583 | 7118 | |
f11781c5 AK |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
7120 | $as_echo "$REALTIME" >&6; } | |
7121 | ||
54b362f9 | 7122 | ################################################################################ |
f11781c5 AK |
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
7124 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
7125 | # Check whether --enable-ocf was given. | |
7126 | if test "${enable_ocf+set}" = set; then : | |
7127 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 7128 | else |
f11781c5 | 7129 | OCF=no |
54b362f9 AK |
7130 | fi |
7131 | ||
f11781c5 AK |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
7133 | $as_echo "$OCF" >&6; } | |
54b362f9 | 7134 | |
606d0858 AK |
7135 | # Check whether --with-ocfdir was given. |
7136 | if test "${with_ocfdir+set}" = set; then : | |
7137 | withval=$with_ocfdir; OCFDIR=$withval | |
7138 | else | |
7139 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
7140 | fi | |
7141 | ||
7142 | ||
f11781c5 AK |
7143 | ################################################################################ |
7144 | pkg_config_init() { | |
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7152 | if test -n "$ac_tool_prefix"; then | |
7153 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7154 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7156 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7157 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7158 | $as_echo_n "(cached) " >&6 |
7159 | else | |
f11781c5 | 7160 | case $PKG_CONFIG in |
54b362f9 | 7161 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7162 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7163 | ;; |
7164 | *) | |
7165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7166 | for as_dir in $PATH | |
7167 | do | |
7168 | IFS=$as_save_IFS | |
7169 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7170 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7172 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7174 | break 2 |
7175 | fi | |
7176 | done | |
f11781c5 | 7177 | done |
54b362f9 AK |
7178 | IFS=$as_save_IFS |
7179 | ||
7180 | ;; | |
7181 | esac | |
7182 | fi | |
f11781c5 AK |
7183 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7184 | if test -n "$PKG_CONFIG"; then | |
7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7186 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7187 | else |
f11781c5 | 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7189 | $as_echo "no" >&6; } |
7190 | fi | |
7191 | ||
7192 | ||
f11781c5 AK |
7193 | fi |
7194 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7195 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7196 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7197 | set dummy pkg-config; ac_word=$2 | |
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7199 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7200 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7201 | $as_echo_n "(cached) " >&6 |
7202 | else | |
f11781c5 | 7203 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7204 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7205 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7206 | ;; |
7207 | *) | |
7208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7209 | for as_dir in $PATH | |
7210 | do | |
7211 | IFS=$as_save_IFS | |
7212 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7213 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7215 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7217 | break 2 |
7218 | fi | |
7219 | done | |
f11781c5 | 7220 | done |
54b362f9 AK |
7221 | IFS=$as_save_IFS |
7222 | ||
7223 | ;; | |
7224 | esac | |
7225 | fi | |
f11781c5 AK |
7226 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7227 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7229 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7230 | else |
f11781c5 | 7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7232 | $as_echo "no" >&6; } |
7233 | fi | |
7234 | ||
f11781c5 AK |
7235 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7236 | PKG_CONFIG="" | |
7237 | else | |
7238 | case $cross_compiling:$ac_tool_warned in | |
7239 | yes:) | |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7242 | ac_tool_warned=yes ;; | |
7243 | esac | |
7244 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7245 | fi | |
d1e8046f | 7246 | else |
f11781c5 | 7247 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7248 | fi |
7249 | ||
f11781c5 AK |
7250 | fi |
7251 | if test -n "$PKG_CONFIG"; then | |
7252 | _pkg_min_version=0.9.0 | |
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7254 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7255 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7257 | $as_echo "yes" >&6; } | |
7258 | else | |
7259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7260 | $as_echo "no" >&6; } | |
7261 | PKG_CONFIG="" | |
7262 | fi | |
7263 | fi | |
d1e8046f | 7264 | |
f11781c5 AK |
7265 | pkg_failed=no |
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7267 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7268 | |
f11781c5 AK |
7269 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7270 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7271 | elif test -n "$PKG_CONFIG"; then | |
7272 | if test -n "$PKG_CONFIG" && \ | |
7273 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7274 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7275 | ac_status=$? | |
7276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7277 | test $ac_status = 0; }; then | |
7278 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7279 | else |
f11781c5 AK |
7280 | pkg_failed=yes |
7281 | fi | |
7282 | else | |
7283 | pkg_failed=untried | |
7284 | fi | |
7285 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7286 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7287 | elif test -n "$PKG_CONFIG"; then | |
7288 | if test -n "$PKG_CONFIG" && \ | |
7289 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7290 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7291 | ac_status=$? |
f11781c5 AK |
7292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7293 | test $ac_status = 0; }; then | |
7294 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7295 | else |
f11781c5 AK |
7296 | pkg_failed=yes |
7297 | fi | |
7298 | else | |
7299 | pkg_failed=untried | |
d1e8046f AK |
7300 | fi |
7301 | ||
d1e8046f | 7302 | |
f11781c5 AK |
7303 | |
7304 | if test $pkg_failed = yes; then | |
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7306 | $as_echo "no" >&6; } | |
7307 | ||
7308 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7309 | _pkg_short_errors_supported=yes | |
7310 | else | |
7311 | _pkg_short_errors_supported=no | |
7312 | fi | |
7313 | if test $_pkg_short_errors_supported = yes; then | |
7314 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7315 | else | |
7316 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7317 | fi | |
7318 | # Put the nasty error message in config.log where it belongs | |
7319 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7320 | ||
7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7322 | $as_echo "pkg-config initialized" >&6; } | |
7323 | elif test $pkg_failed = untried; then | |
7324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7325 | $as_echo "no" >&6; } | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7327 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7328 | else |
f11781c5 AK |
7329 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7330 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7332 | $as_echo "yes" >&6; } | |
d1e8046f | 7333 | |
d1e8046f | 7334 | fi |
f11781c5 AK |
7335 | PKGCONFIG_INIT=1 |
7336 | } | |
d1e8046f | 7337 | |
f11781c5 AK |
7338 | ################################################################################ |
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7340 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7341 | |
f11781c5 AK |
7342 | # Check whether --with-clvmd was given. |
7343 | if test "${with_clvmd+set}" = set; then : | |
7344 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7345 | else |
f11781c5 | 7346 | CLVMD=none |
d1e8046f | 7347 | fi |
d1e8046f | 7348 | |
f11781c5 AK |
7349 | if test x$CLVMD = xyes; then |
7350 | CLVMD=all | |
d1e8046f | 7351 | fi |
f11781c5 AK |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7353 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7354 | |
f11781c5 AK |
7355 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7356 | CLUSTER=internal | |
d1e8046f AK |
7357 | fi |
7358 | ||
f11781c5 AK |
7359 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7360 | pkg_config_init | |
7361 | fi | |
d1e8046f | 7362 | |
f11781c5 AK |
7363 | CLVMD_CMANAGERS="" |
7364 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7365 | |
f11781c5 | 7366 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7367 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7368 | fi |
f11781c5 AK |
7369 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7370 | BUILDCMAN=yes | |
7371 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7372 | CLVMD_NEEDS_QDISKD=yes | |
7373 | fi | |
7374 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7375 | BUILDCOROSYNC=yes | |
7376 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7377 | fi | |
7378 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7379 | BUILDOPENAIS=yes | |
7380 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7381 | fi | |
7382 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7383 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7384 | fi |
7385 | ||
f11781c5 AK |
7386 | soft_bailout() { |
7387 | NOTFOUND=1 | |
7388 | } | |
ad6254c5 | 7389 | |
f11781c5 AK |
7390 | hard_bailout() { |
7391 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7392 | } | |
ad6254c5 | 7393 | |
f11781c5 AK |
7394 | if test x$CLVMD = xall; then |
7395 | bailout=soft_bailout | |
f11781c5 AK |
7396 | BUILDCMAN=yes |
7397 | BUILDCOROSYNC=yes | |
7398 | BUILDOPENAIS=yes | |
a5f46f6a | 7399 | else |
f11781c5 | 7400 | bailout=hard_bailout |
a5f46f6a AK |
7401 | fi |
7402 | ||
f11781c5 AK |
7403 | check_lib_no_libs() { |
7404 | lib_no_libs_arg1=$1 | |
7405 | shift | |
7406 | lib_no_libs_arg2=$1 | |
7407 | shift | |
7408 | lib_no_libs_args=$@ | |
7409 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7411 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7412 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7413 | $as_echo_n "(cached) " >&6 |
7414 | else | |
7415 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7416 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7418 | /* end confdefs.h. */ |
7419 | ||
7420 | /* Override any GCC internal prototype to avoid an error. | |
7421 | Use char because int might match the return type of a GCC | |
7422 | builtin and then its argument prototype would still apply. */ | |
7423 | #ifdef __cplusplus | |
7424 | extern "C" | |
7425 | #endif | |
f11781c5 | 7426 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7427 | int |
7428 | main () | |
7429 | { | |
f11781c5 | 7430 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7431 | ; |
7432 | return 0; | |
7433 | } | |
7434 | _ACEOF | |
f11781c5 AK |
7435 | if ac_fn_c_try_link "$LINENO"; then : |
7436 | eval "$as_ac_Lib=yes" | |
90c80887 | 7437 | else |
f11781c5 | 7438 | eval "$as_ac_Lib=no" |
90c80887 | 7439 | fi |
f11781c5 AK |
7440 | rm -f core conftest.err conftest.$ac_objext \ |
7441 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7442 | LIBS=$ac_check_lib_save_LIBS |
7443 | fi | |
f11781c5 AK |
7444 | eval ac_res=\$$as_ac_Lib |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7446 | $as_echo "$ac_res" >&6; } | |
7447 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7448 | cat >>confdefs.h <<_ACEOF | |
7449 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7450 | _ACEOF | |
7451 | ||
7452 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7453 | ||
90c80887 | 7454 | else |
f11781c5 | 7455 | $bailout |
90c80887 AK |
7456 | fi |
7457 | ||
f11781c5 AK |
7458 | LIBS=$ac_check_lib_save_LIBS |
7459 | } | |
90c80887 | 7460 | |
f11781c5 | 7461 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7462 | |
f11781c5 AK |
7463 | pkg_failed=no |
7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7465 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7466 | |
f11781c5 AK |
7467 | if test -n "$CMAN_CFLAGS"; then |
7468 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7469 | elif test -n "$PKG_CONFIG"; then | |
7470 | if test -n "$PKG_CONFIG" && \ | |
7471 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7472 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7473 | ac_status=$? | |
7474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7475 | test $ac_status = 0; }; then | |
7476 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7477 | else | |
7478 | pkg_failed=yes | |
ad6254c5 | 7479 | fi |
f11781c5 AK |
7480 | else |
7481 | pkg_failed=untried | |
ad6254c5 | 7482 | fi |
f11781c5 AK |
7483 | if test -n "$CMAN_LIBS"; then |
7484 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7485 | elif test -n "$PKG_CONFIG"; then | |
7486 | if test -n "$PKG_CONFIG" && \ | |
7487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7488 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7489 | ac_status=$? |
f11781c5 AK |
7490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7491 | test $ac_status = 0; }; then | |
7492 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7493 | else |
f11781c5 AK |
7494 | pkg_failed=yes |
7495 | fi | |
7496 | else | |
7497 | pkg_failed=untried | |
93bd259b AK |
7498 | fi |
7499 | ||
f11781c5 AK |
7500 | |
7501 | ||
7502 | if test $pkg_failed = yes; then | |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7504 | $as_echo "no" >&6; } | |
7505 | ||
7506 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7507 | _pkg_short_errors_supported=yes | |
7508 | else | |
7509 | _pkg_short_errors_supported=no | |
93bd259b | 7510 | fi |
f11781c5 AK |
7511 | if test $_pkg_short_errors_supported = yes; then |
7512 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7513 | else | |
7514 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7515 | fi | |
7516 | # Put the nasty error message in config.log where it belongs | |
7517 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7518 | |
f11781c5 AK |
7519 | NOTFOUND=0 |
7520 | for ac_header in libcman.h | |
7521 | do : | |
7522 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7523 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7524 | cat >>confdefs.h <<_ACEOF | |
7525 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7526 | _ACEOF |
7527 | ||
f11781c5 AK |
7528 | else |
7529 | $bailout | |
93bd259b AK |
7530 | fi |
7531 | ||
f11781c5 | 7532 | done |
93bd259b | 7533 | |
f11781c5 AK |
7534 | check_lib_no_libs cman cman_init |
7535 | if test $NOTFOUND = 0; then | |
7536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7537 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7538 | CMAN_LIBS="-lcman" | |
7539 | HAVE_CMAN=yes | |
7540 | fi | |
7541 | elif test $pkg_failed = untried; then | |
7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7543 | $as_echo "no" >&6; } | |
7544 | NOTFOUND=0 | |
7545 | for ac_header in libcman.h | |
7546 | do : | |
7547 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7548 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7549 | cat >>confdefs.h <<_ACEOF | |
7550 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7551 | _ACEOF |
93bd259b | 7552 | |
93bd259b | 7553 | else |
f11781c5 | 7554 | $bailout |
93bd259b AK |
7555 | fi |
7556 | ||
f11781c5 AK |
7557 | done |
7558 | ||
7559 | check_lib_no_libs cman cman_init | |
7560 | if test $NOTFOUND = 0; then | |
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7562 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7563 | CMAN_LIBS="-lcman" | |
7564 | HAVE_CMAN=yes | |
7565 | fi | |
7566 | else | |
7567 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7568 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7570 | $as_echo "yes" >&6; } | |
7571 | HAVE_CMAN=yes | |
93bd259b | 7572 | fi |
f11781c5 AK |
7573 | CHECKCONFDB=yes |
7574 | CHECKDLM=yes | |
93bd259b AK |
7575 | fi |
7576 | ||
f11781c5 AK |
7577 | if test x$BUILDCOROSYNC = xyes || \ |
7578 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7579 | |
f11781c5 AK |
7580 | pkg_failed=no |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7582 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7583 | |
f11781c5 AK |
7584 | if test -n "$COROSYNC_CFLAGS"; then |
7585 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7586 | elif test -n "$PKG_CONFIG"; then | |
7587 | if test -n "$PKG_CONFIG" && \ | |
7588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7589 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7590 | ac_status=$? | |
7591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7592 | test $ac_status = 0; }; then | |
7593 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7594 | else |
f11781c5 AK |
7595 | pkg_failed=yes |
7596 | fi | |
7597 | else | |
7598 | pkg_failed=untried | |
7599 | fi | |
7600 | if test -n "$COROSYNC_LIBS"; then | |
7601 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7602 | elif test -n "$PKG_CONFIG"; then | |
7603 | if test -n "$PKG_CONFIG" && \ | |
7604 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7605 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7606 | ac_status=$? |
f11781c5 AK |
7607 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7608 | test $ac_status = 0; }; then | |
7609 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7610 | else |
f11781c5 | 7611 | pkg_failed=yes |
ad6254c5 | 7612 | fi |
f11781c5 AK |
7613 | else |
7614 | pkg_failed=untried | |
ad6254c5 | 7615 | fi |
ad6254c5 | 7616 | |
72b2cb61 | 7617 | |
72b2cb61 | 7618 | |
f11781c5 AK |
7619 | if test $pkg_failed = yes; then |
7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7621 | $as_echo "no" >&6; } | |
19a2c6e0 | 7622 | |
f11781c5 AK |
7623 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7624 | _pkg_short_errors_supported=yes | |
7625 | else | |
7626 | _pkg_short_errors_supported=no | |
ad6254c5 | 7627 | fi |
f11781c5 AK |
7628 | if test $_pkg_short_errors_supported = yes; then |
7629 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7630 | else | |
7631 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7632 | fi | |
7633 | # Put the nasty error message in config.log where it belongs | |
7634 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7635 | |
f11781c5 AK |
7636 | $bailout |
7637 | elif test $pkg_failed = untried; then | |
7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7639 | $as_echo "no" >&6; } | |
7640 | $bailout | |
7641 | else | |
7642 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7643 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7645 | $as_echo "yes" >&6; } | |
7646 | HAVE_COROSYNC=yes | |
7647 | fi | |
7648 | CHECKCONFDB=yes | |
b6d7a484 | 7649 | CHECKCMAP=yes |
ad6254c5 AK |
7650 | fi |
7651 | ||
f11781c5 | 7652 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7653 | |
f11781c5 AK |
7654 | pkg_failed=no |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7656 | $as_echo_n "checking for QUORUM... " >&6; } | |
7657 | ||
7658 | if test -n "$QUORUM_CFLAGS"; then | |
7659 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7660 | elif test -n "$PKG_CONFIG"; then | |
7661 | if test -n "$PKG_CONFIG" && \ | |
7662 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7663 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7664 | ac_status=$? |
f11781c5 AK |
7665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7666 | test $ac_status = 0; }; then | |
7667 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7668 | else |
f11781c5 | 7669 | pkg_failed=yes |
f30875db | 7670 | fi |
f11781c5 AK |
7671 | else |
7672 | pkg_failed=untried | |
f30875db | 7673 | fi |
f11781c5 AK |
7674 | if test -n "$QUORUM_LIBS"; then |
7675 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7676 | elif test -n "$PKG_CONFIG"; then | |
7677 | if test -n "$PKG_CONFIG" && \ | |
7678 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7679 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7680 | ac_status=$? | |
7681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7682 | test $ac_status = 0; }; then | |
7683 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7684 | else |
f11781c5 | 7685 | pkg_failed=yes |
f30875db | 7686 | fi |
f11781c5 AK |
7687 | else |
7688 | pkg_failed=untried | |
7689 | fi | |
7690 | ||
f30875db | 7691 | |
f11781c5 AK |
7692 | |
7693 | if test $pkg_failed = yes; then | |
7694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7695 | $as_echo "no" >&6; } | |
7696 | ||
7697 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7698 | _pkg_short_errors_supported=yes | |
7699 | else | |
7700 | _pkg_short_errors_supported=no | |
f30875db | 7701 | fi |
f11781c5 AK |
7702 | if test $_pkg_short_errors_supported = yes; then |
7703 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7704 | else | |
7705 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7706 | fi | |
7707 | # Put the nasty error message in config.log where it belongs | |
7708 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7709 | |
f11781c5 AK |
7710 | $bailout |
7711 | elif test $pkg_failed = untried; then | |
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7713 | $as_echo "no" >&6; } | |
7714 | $bailout | |
7715 | else | |
7716 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7717 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7719 | $as_echo "yes" >&6; } | |
7720 | HAVE_QUORUM=yes | |
7721 | fi | |
7722 | CHECKCPG=yes | |
7723 | CHECKDLM=yes | |
d0191583 JM |
7724 | fi |
7725 | ||
f11781c5 | 7726 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7727 | |
f11781c5 AK |
7728 | pkg_failed=no |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7730 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7731 | |
f11781c5 AK |
7732 | if test -n "$SALCK_CFLAGS"; then |
7733 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7734 | elif test -n "$PKG_CONFIG"; then | |
7735 | if test -n "$PKG_CONFIG" && \ | |
7736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7737 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7738 | ac_status=$? | |
7739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7740 | test $ac_status = 0; }; then | |
7741 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7742 | else | |
7743 | pkg_failed=yes | |
7744 | fi | |
7745 | else | |
7746 | pkg_failed=untried | |
7747 | fi | |
7748 | if test -n "$SALCK_LIBS"; then | |
7749 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7750 | elif test -n "$PKG_CONFIG"; then | |
7751 | if test -n "$PKG_CONFIG" && \ | |
7752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7753 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7754 | ac_status=$? |
f11781c5 AK |
7755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7756 | test $ac_status = 0; }; then | |
7757 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7758 | else |
f11781c5 | 7759 | pkg_failed=yes |
8a2fc586 | 7760 | fi |
f11781c5 AK |
7761 | else |
7762 | pkg_failed=untried | |
8a2fc586 | 7763 | fi |
d0191583 | 7764 | |
d0191583 | 7765 | |
f8f6ec92 | 7766 | |
f11781c5 AK |
7767 | if test $pkg_failed = yes; then |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7769 | $as_echo "no" >&6; } | |
8a2fc586 | 7770 | |
f11781c5 AK |
7771 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7772 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7773 | else |
f11781c5 AK |
7774 | _pkg_short_errors_supported=no |
7775 | fi | |
7776 | if test $_pkg_short_errors_supported = yes; then | |
7777 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7778 | else | |
7779 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7780 | fi | |
7781 | # Put the nasty error message in config.log where it belongs | |
7782 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7783 | |
f11781c5 AK |
7784 | $bailout |
7785 | elif test $pkg_failed = untried; then | |
7786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7787 | $as_echo "no" >&6; } | |
7788 | $bailout | |
ad6254c5 | 7789 | else |
f11781c5 AK |
7790 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7791 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7793 | $as_echo "yes" >&6; } | |
7794 | HAVE_SALCK=yes | |
ad6254c5 | 7795 | fi |
f11781c5 | 7796 | CHECKCPG=yes |
ad6254c5 | 7797 | fi |
ad6254c5 | 7798 | |
72b2cb61 | 7799 | |
f8f6ec92 | 7800 | |
f11781c5 | 7801 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7802 | |
f11781c5 AK |
7803 | pkg_failed=no |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7805 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7806 | |
f11781c5 AK |
7807 | if test -n "$CONFDB_CFLAGS"; then |
7808 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7809 | elif test -n "$PKG_CONFIG"; then | |
7810 | if test -n "$PKG_CONFIG" && \ | |
7811 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7812 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7813 | ac_status=$? |
f11781c5 AK |
7814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7815 | test $ac_status = 0; }; then | |
7816 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7817 | else |
f11781c5 AK |
7818 | pkg_failed=yes |
7819 | fi | |
7820 | else | |
7821 | pkg_failed=untried | |
7822 | fi | |
7823 | if test -n "$CONFDB_LIBS"; then | |
7824 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7825 | elif test -n "$PKG_CONFIG"; then | |
7826 | if test -n "$PKG_CONFIG" && \ | |
7827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7828 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7829 | ac_status=$? | |
7830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7831 | test $ac_status = 0; }; then | |
7832 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7833 | else | |
7834 | pkg_failed=yes | |
7835 | fi | |
7836 | else | |
7837 | pkg_failed=untried | |
f8f6ec92 ZK |
7838 | fi |
7839 | ||
f8f6ec92 | 7840 | |
66e941e8 | 7841 | |
f11781c5 AK |
7842 | if test $pkg_failed = yes; then |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7844 | $as_echo "no" >&6; } | |
7845 | ||
7846 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7847 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7848 | else |
f11781c5 | 7849 | _pkg_short_errors_supported=no |
66e941e8 | 7850 | fi |
f11781c5 AK |
7851 | if test $_pkg_short_errors_supported = yes; then |
7852 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7853 | else | |
7854 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7855 | fi | |
7856 | # Put the nasty error message in config.log where it belongs | |
7857 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7858 | |
f11781c5 AK |
7859 | HAVE_CONFDB=no |
7860 | elif test $pkg_failed = untried; then | |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7862 | $as_echo "no" >&6; } | |
7863 | HAVE_CONFDB=no | |
7864 | else | |
7865 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7866 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7868 | $as_echo "yes" >&6; } | |
7869 | HAVE_CONFDB=yes | |
66e941e8 | 7870 | fi |
f11781c5 AK |
7871 | |
7872 | for ac_header in corosync/confdb.h | |
7873 | do : | |
7874 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7875 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7876 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7877 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7878 | _ACEOF |
f11781c5 | 7879 | HAVE_CONFDB_H=yes |
66e941e8 | 7880 | else |
f11781c5 | 7881 | HAVE_CONFDB_H=no |
66e941e8 | 7882 | fi |
dd1f2c09 MB |
7883 | |
7884 | done | |
7885 | ||
7886 | ||
f11781c5 AK |
7887 | if test x$HAVE_CONFDB != xyes && \ |
7888 | test x$HAVE_CONFDB_H = xyes; then | |
7889 | check_lib_no_libs confdb confdb_initialize | |
7890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7891 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7892 | CONFDB_LIBS="-lconfdb" | |
7893 | HAVE_CONFDB=yes | |
7894 | fi | |
b6d7a484 AK |
7895 | fi |
7896 | ||
7897 | ||
7898 | if test x$CHECKCMAP = xyes; then | |
7899 | ||
7900 | pkg_failed=no | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5 | |
7902 | $as_echo_n "checking for CMAP... " >&6; } | |
7903 | ||
7904 | if test -n "$CMAP_CFLAGS"; then | |
7905 | pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS" | |
7906 | elif test -n "$PKG_CONFIG"; then | |
7907 | if test -n "$PKG_CONFIG" && \ | |
7908 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7909 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7910 | ac_status=$? | |
7911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7912 | test $ac_status = 0; }; then | |
7913 | pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null` | |
7914 | else | |
7915 | pkg_failed=yes | |
7916 | fi | |
7917 | else | |
7918 | pkg_failed=untried | |
7919 | fi | |
7920 | if test -n "$CMAP_LIBS"; then | |
7921 | pkg_cv_CMAP_LIBS="$CMAP_LIBS" | |
7922 | elif test -n "$PKG_CONFIG"; then | |
7923 | if test -n "$PKG_CONFIG" && \ | |
7924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7925 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7926 | ac_status=$? | |
7927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7928 | test $ac_status = 0; }; then | |
7929 | pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null` | |
7930 | else | |
7931 | pkg_failed=yes | |
7932 | fi | |
7933 | else | |
7934 | pkg_failed=untried | |
7935 | fi | |
7936 | ||
7937 | ||
7938 | ||
7939 | if test $pkg_failed = yes; then | |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7941 | $as_echo "no" >&6; } | |
f11781c5 | 7942 | |
b6d7a484 AK |
7943 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7944 | _pkg_short_errors_supported=yes | |
7945 | else | |
7946 | _pkg_short_errors_supported=no | |
7947 | fi | |
7948 | if test $_pkg_short_errors_supported = yes; then | |
7949 | CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1` | |
7950 | else | |
7951 | CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1` | |
7952 | fi | |
7953 | # Put the nasty error message in config.log where it belongs | |
7954 | echo "$CMAP_PKG_ERRORS" >&5 | |
7955 | ||
7956 | HAVE_CMAP=no | |
7957 | elif test $pkg_failed = untried; then | |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7959 | $as_echo "no" >&6; } | |
7960 | HAVE_CMAP=no | |
7961 | else | |
7962 | CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS | |
7963 | CMAP_LIBS=$pkg_cv_CMAP_LIBS | |
7964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7965 | $as_echo "yes" >&6; } | |
7966 | HAVE_CMAP=yes | |
7967 | fi | |
7968 | ||
7969 | for ac_header in corosync/cmap.h | |
7970 | do : | |
7971 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default" | |
7972 | if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then : | |
7973 | cat >>confdefs.h <<_ACEOF | |
7974 | #define HAVE_COROSYNC_CMAP_H 1 | |
7975 | _ACEOF | |
7976 | HAVE_CMAP_H=yes | |
7977 | else | |
7978 | HAVE_CMAP_H=no | |
7979 | fi | |
7980 | ||
7981 | done | |
7982 | ||
7983 | ||
7984 | if test x$HAVE_CMAP != xyes && \ | |
7985 | test x$HAVE_CMAP_H = xyes; then | |
7986 | check_lib_no_libs cmap cmap_initialize | |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5 | |
7988 | $as_echo "no pkg for cmap, using -lcmap" >&6; } | |
7989 | CMAP_LIBS="-lcmap" | |
7990 | HAVE_CMAP=yes | |
7991 | fi | |
7992 | fi | |
7993 | ||
7994 | if test x$BUILDCOROSYNC = xyes; then | |
7995 | if test x$HAVE_CMAP != xyes && \ | |
7996 | test x$HAVE_CONFDB != xyes && \ | |
f11781c5 | 7997 | test x$CLVMD != xall; then |
b6d7a484 | 7998 | as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5 |
f11781c5 | 7999 | fi |
dd1f2c09 | 8000 | fi |
f11781c5 AK |
8001 | |
8002 | if test x$CHECKCPG = xyes; then | |
8003 | ||
8004 | pkg_failed=no | |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8006 | $as_echo_n "checking for CPG... " >&6; } | |
8007 | ||
8008 | if test -n "$CPG_CFLAGS"; then | |
8009 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8010 | elif test -n "$PKG_CONFIG"; then | |
8011 | if test -n "$PKG_CONFIG" && \ | |
8012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8013 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8014 | ac_status=$? | |
8015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8016 | test $ac_status = 0; }; then | |
8017 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 8018 | else |
f11781c5 AK |
8019 | pkg_failed=yes |
8020 | fi | |
8021 | else | |
8022 | pkg_failed=untried | |
8023 | fi | |
8024 | if test -n "$CPG_LIBS"; then | |
8025 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8026 | elif test -n "$PKG_CONFIG"; then | |
8027 | if test -n "$PKG_CONFIG" && \ | |
8028 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8029 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 8030 | ac_status=$? |
f11781c5 AK |
8031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8032 | test $ac_status = 0; }; then | |
8033 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 8034 | else |
f11781c5 AK |
8035 | pkg_failed=yes |
8036 | fi | |
8037 | else | |
8038 | pkg_failed=untried | |
8039 | fi | |
8040 | ||
8041 | ||
8042 | ||
8043 | if test $pkg_failed = yes; then | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8045 | $as_echo "no" >&6; } | |
8046 | ||
8047 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8048 | _pkg_short_errors_supported=yes | |
8049 | else | |
8050 | _pkg_short_errors_supported=no | |
8051 | fi | |
8052 | if test $_pkg_short_errors_supported = yes; then | |
8053 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8054 | else | |
8055 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8056 | fi | |
8057 | # Put the nasty error message in config.log where it belongs | |
8058 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 8059 | |
f11781c5 AK |
8060 | $bailout |
8061 | elif test $pkg_failed = untried; then | |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8063 | $as_echo "no" >&6; } | |
8064 | $bailout | |
8065 | else | |
8066 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
8067 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8069 | $as_echo "yes" >&6; } | |
8070 | HAVE_CPG=yes | |
8071 | fi | |
dd1f2c09 MB |
8072 | fi |
8073 | ||
f11781c5 | 8074 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 8075 | |
f11781c5 AK |
8076 | pkg_failed=no |
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
8078 | $as_echo_n "checking for DLM... " >&6; } | |
8079 | ||
8080 | if test -n "$DLM_CFLAGS"; then | |
8081 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
8082 | elif test -n "$PKG_CONFIG"; then | |
8083 | if test -n "$PKG_CONFIG" && \ | |
8084 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8085 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8086 | ac_status=$? |
f11781c5 AK |
8087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8088 | test $ac_status = 0; }; then | |
8089 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8090 | else |
f11781c5 AK |
8091 | pkg_failed=yes |
8092 | fi | |
8093 | else | |
8094 | pkg_failed=untried | |
8095 | fi | |
8096 | if test -n "$DLM_LIBS"; then | |
8097 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8098 | elif test -n "$PKG_CONFIG"; then | |
8099 | if test -n "$PKG_CONFIG" && \ | |
8100 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8101 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8102 | ac_status=$? | |
8103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8104 | test $ac_status = 0; }; then | |
8105 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8106 | else | |
8107 | pkg_failed=yes | |
8108 | fi | |
8109 | else | |
8110 | pkg_failed=untried | |
dd1f2c09 MB |
8111 | fi |
8112 | ||
dd1f2c09 | 8113 | |
dd1f2c09 | 8114 | |
f11781c5 AK |
8115 | if test $pkg_failed = yes; then |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8117 | $as_echo "no" >&6; } | |
8118 | ||
8119 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8120 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8121 | else |
f11781c5 | 8122 | _pkg_short_errors_supported=no |
dd1f2c09 | 8123 | fi |
f11781c5 AK |
8124 | if test $_pkg_short_errors_supported = yes; then |
8125 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8126 | else | |
8127 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8128 | fi | |
8129 | # Put the nasty error message in config.log where it belongs | |
8130 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8131 | |
f11781c5 AK |
8132 | NOTFOUND=0 |
8133 | for ac_header in libdlm.h | |
8134 | do : | |
8135 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8136 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8137 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8138 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8139 | _ACEOF |
8140 | ||
f11781c5 AK |
8141 | else |
8142 | $bailout | |
dd1f2c09 | 8143 | fi |
f8f6ec92 ZK |
8144 | |
8145 | done | |
8146 | ||
f11781c5 AK |
8147 | check_lib_no_libs dlm dlm_lock -lpthread |
8148 | if test $NOTFOUND = 0; then | |
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8150 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8151 | DLM_LIBS="-ldlm -lpthread" | |
8152 | HAVE_DLM=yes | |
8153 | fi | |
8154 | elif test $pkg_failed = untried; then | |
8155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8156 | $as_echo "no" >&6; } | |
8157 | NOTFOUND=0 | |
8158 | for ac_header in libdlm.h | |
8159 | do : | |
8160 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8161 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8162 | cat >>confdefs.h <<_ACEOF | |
8163 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8164 | _ACEOF |
8165 | ||
f8f6ec92 | 8166 | else |
f11781c5 | 8167 | $bailout |
ad6254c5 AK |
8168 | fi |
8169 | ||
f11781c5 | 8170 | done |
8b1a3214 | 8171 | |
f11781c5 AK |
8172 | check_lib_no_libs dlm dlm_lock -lpthread |
8173 | if test $NOTFOUND = 0; then | |
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8175 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8176 | DLM_LIBS="-ldlm -lpthread" | |
8177 | HAVE_DLM=yes | |
8178 | fi | |
8b1a3214 | 8179 | else |
f11781c5 AK |
8180 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8181 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8183 | $as_echo "yes" >&6; } | |
8184 | HAVE_DLM=yes | |
8b1a3214 | 8185 | fi |
8b1a3214 AK |
8186 | fi |
8187 | ||
f11781c5 AK |
8188 | if test x$CLVMD = xall; then |
8189 | CLVMD=none | |
8190 | CLVMD_CMANAGERS="" | |
8191 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
8192 | if test x$HAVE_CMAN = xyes && \ |
8193 | test x$HAVE_DLM = xyes; then | |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8195 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8196 | CLVMD="$CLVMD,cman" | |
8197 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8198 | CLVMD_NEEDS_QDISKD=yes | |
8199 | fi | |
8200 | if test x$HAVE_COROSYNC = xyes && \ | |
8201 | test x$HAVE_QUORUM = xyes && \ | |
8202 | test x$HAVE_CPG = xyes && \ | |
b6d7a484 AK |
8203 | test x$HAVE_DLM = xyes; then |
8204 | if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then | |
f11781c5 AK |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 |
8206 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8207 | CLVMD="$CLVMD,corosync" | |
8208 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
b6d7a484 | 8209 | fi |
f11781c5 AK |
8210 | fi |
8211 | if test x$HAVE_COROSYNC = xyes && \ | |
8212 | test x$HAVE_CPG = xyes && \ | |
8213 | test x$HAVE_SALCK = xyes; then | |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8215 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8216 | CLVMD="$CLVMD,openais" | |
8217 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8218 | fi | |
8219 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8220 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8221 | fi | |
8222 | if test x$CLVMD = xnone; then | |
8223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8224 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8225 | fi |
8226 | fi | |
8227 | ||
75fad6ea MB |
8228 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
8229 | if test x$HAVE_CMAP = xyes; then | |
8230 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm" | |
8231 | fi | |
8232 | fi | |
8233 | ||
ad6254c5 | 8234 | ################################################################################ |
f11781c5 | 8235 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8236 | |
f11781c5 AK |
8237 | # Check whether --with-clvmd-pidfile was given. |
8238 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8239 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8240 | else |
f11781c5 | 8241 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8242 | fi |
7a197a62 | 8243 | |
ad6254c5 | 8244 | |
f11781c5 AK |
8245 | cat >>confdefs.h <<_ACEOF |
8246 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8247 | _ACEOF |
ad6254c5 | 8248 | |
ad6254c5 | 8249 | fi |
7a197a62 | 8250 | |
f11781c5 AK |
8251 | ################################################################################ |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8253 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8254 | # Check whether --enable-cmirrord was given. | |
8255 | if test "${enable_cmirrord+set}" = set; then : | |
8256 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8257 | else | |
8258 | CMIRRORD=no | |
8259 | fi | |
8260 | ||
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8262 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8263 | |
f11781c5 | 8264 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8265 | |
f11781c5 AK |
8266 | ################################################################################ |
8267 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8268 | ||
8269 | # Check whether --with-cmirrord-pidfile was given. | |
8270 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8271 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8272 | else |
f11781c5 | 8273 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8274 | fi |
ad6254c5 | 8275 | |
72b2cb61 | 8276 | |
f11781c5 AK |
8277 | cat >>confdefs.h <<_ACEOF |
8278 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8279 | _ACEOF |
8280 | ||
ad6254c5 AK |
8281 | fi |
8282 | ||
f11781c5 AK |
8283 | ################################################################################ |
8284 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8285 | if test x$PKGCONFIG_INIT != x1; then | |
8286 | pkg_config_init | |
8287 | fi | |
ad6254c5 | 8288 | |
62e38da1 JEB |
8289 | |
8290 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h | |
8291 | ||
8292 | ||
f11781c5 AK |
8293 | pkg_failed=no |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8295 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8296 | |
f11781c5 AK |
8297 | if test -n "$SACKPT_CFLAGS"; then |
8298 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8299 | elif test -n "$PKG_CONFIG"; then | |
8300 | if test -n "$PKG_CONFIG" && \ | |
8301 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8302 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8303 | ac_status=$? | |
8304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8305 | test $ac_status = 0; }; then | |
8306 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8307 | else |
f11781c5 AK |
8308 | pkg_failed=yes |
8309 | fi | |
8310 | else | |
8311 | pkg_failed=untried | |
8312 | fi | |
8313 | if test -n "$SACKPT_LIBS"; then | |
8314 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8315 | elif test -n "$PKG_CONFIG"; then | |
8316 | if test -n "$PKG_CONFIG" && \ | |
8317 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8318 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8319 | ac_status=$? |
f11781c5 AK |
8320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8321 | test $ac_status = 0; }; then | |
8322 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8323 | else |
f11781c5 AK |
8324 | pkg_failed=yes |
8325 | fi | |
8326 | else | |
8327 | pkg_failed=untried | |
8328 | fi | |
539f4a77 ZK |
8329 | |
8330 | ||
539f4a77 | 8331 | |
f11781c5 AK |
8332 | if test $pkg_failed = yes; then |
8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8334 | $as_echo "no" >&6; } | |
8335 | ||
8336 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8337 | _pkg_short_errors_supported=yes | |
539f4a77 | 8338 | else |
f11781c5 | 8339 | _pkg_short_errors_supported=no |
539f4a77 | 8340 | fi |
f11781c5 AK |
8341 | if test $_pkg_short_errors_supported = yes; then |
8342 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8343 | else | |
8344 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8345 | fi | |
8346 | # Put the nasty error message in config.log where it belongs | |
8347 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8348 | ||
62e38da1 JEB |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8350 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8351 | |
62e38da1 | 8352 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 AK |
8353 | |
8354 | elif test $pkg_failed = untried; then | |
8355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8356 | $as_echo "no" >&6; } | |
62e38da1 JEB |
8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8358 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8359 | |
62e38da1 | 8360 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 | 8361 | |
539f4a77 | 8362 | else |
f11781c5 AK |
8363 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8364 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8366 | $as_echo "yes" >&6; } | |
62e38da1 | 8367 | HAVE_SACKPT=yes |
539f4a77 | 8368 | fi |
62e38da1 | 8369 | |
f11781c5 | 8370 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8371 | |
f11781c5 AK |
8372 | pkg_failed=no |
8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8374 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8375 | |
f11781c5 AK |
8376 | if test -n "$CPG_CFLAGS"; then |
8377 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8378 | elif test -n "$PKG_CONFIG"; then | |
8379 | if test -n "$PKG_CONFIG" && \ | |
8380 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8381 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8382 | ac_status=$? |
f11781c5 AK |
8383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8384 | test $ac_status = 0; }; then | |
8385 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8386 | else |
f11781c5 AK |
8387 | pkg_failed=yes |
8388 | fi | |
8389 | else | |
8390 | pkg_failed=untried | |
8391 | fi | |
8392 | if test -n "$CPG_LIBS"; then | |
8393 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8394 | elif test -n "$PKG_CONFIG"; then | |
8395 | if test -n "$PKG_CONFIG" && \ | |
8396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8397 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8398 | ac_status=$? | |
8399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8400 | test $ac_status = 0; }; then | |
8401 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8402 | else | |
8403 | pkg_failed=yes | |
8404 | fi | |
8405 | else | |
8406 | pkg_failed=untried | |
8407 | fi | |
8408 | ||
8409 | ||
8410 | ||
8411 | if test $pkg_failed = yes; then | |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8413 | $as_echo "no" >&6; } | |
ad6254c5 | 8414 | |
f11781c5 AK |
8415 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8416 | _pkg_short_errors_supported=yes | |
8417 | else | |
8418 | _pkg_short_errors_supported=no | |
ad6254c5 | 8419 | fi |
f11781c5 AK |
8420 | if test $_pkg_short_errors_supported = yes; then |
8421 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8422 | else | |
8423 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8424 | fi | |
8425 | # Put the nasty error message in config.log where it belongs | |
8426 | echo "$CPG_PKG_ERRORS" >&5 | |
8427 | ||
8428 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8429 | ||
8430 | $CPG_PKG_ERRORS | |
8431 | ||
8432 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8433 | installed software in a non-standard prefix. | |
8434 | ||
8435 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8436 | and CPG_LIBS to avoid the need to call pkg-config. | |
8437 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8438 | |
f11781c5 AK |
8439 | elif test $pkg_failed = untried; then |
8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8441 | $as_echo "no" >&6; } | |
8442 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8443 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8444 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8445 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8446 | path to pkg-config. | |
539f4a77 | 8447 | |
f11781c5 AK |
8448 | Alternatively, you may set the environment variables CPG_CFLAGS |
8449 | and CPG_LIBS to avoid the need to call pkg-config. | |
8450 | See the pkg-config man page for more details. | |
539f4a77 | 8451 | |
f11781c5 AK |
8452 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8453 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8454 | |
539f4a77 | 8455 | else |
f11781c5 AK |
8456 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8457 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8459 | $as_echo "yes" >&6; } | |
bc1024f8 | 8460 | |
f11781c5 AK |
8461 | fi |
8462 | fi | |
8463 | fi | |
8464 | ||
8465 | ################################################################################ | |
8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8467 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8468 | # Check whether --enable-debug was given. | |
8469 | if test "${enable_debug+set}" = set; then : | |
8470 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8471 | else |
f11781c5 AK |
8472 | DEBUG=no |
8473 | fi | |
8474 | ||
8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8476 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8477 | |
f11781c5 AK |
8478 | if test x$DEBUG = xyes; then |
8479 | COPTIMISE_FLAG= | |
8480 | else | |
8481 | CSCOPE_CMD= | |
06e459df JM |
8482 | fi |
8483 | ||
f11781c5 AK |
8484 | ################################################################################ |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8486 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8487 | ||
8488 | # Check whether --with-optimisation was given. | |
8489 | if test "${with_optimisation+set}" = set; then : | |
8490 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8491 | fi |
539f4a77 | 8492 | |
f11781c5 AK |
8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8494 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8495 | |
f11781c5 AK |
8496 | ################################################################################ |
8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8498 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8499 | # Check whether --enable-profiling was given. | |
8500 | if test "${enable_profiling+set}" = set; then : | |
8501 | enableval=$enable_profiling; PROFILING=$enableval | |
8502 | else | |
8503 | PROFILING=no | |
539f4a77 ZK |
8504 | fi |
8505 | ||
f11781c5 AK |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8507 | $as_echo "$PROFILING" >&6; } | |
8508 | ||
8509 | if test "x$PROFILING" = xyes; then | |
8510 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8511 | # Extract the first word of "lcov", so it can be a program name with args. | |
8512 | set dummy lcov; ac_word=$2 | |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8514 | $as_echo_n "checking for $ac_word... " >&6; } | |
8515 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8516 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8517 | else |
f11781c5 AK |
8518 | case $LCOV in |
8519 | [\\/]* | ?:[\\/]*) | |
8520 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8521 | ;; | |
8522 | *) | |
8523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8524 | for as_dir in $PATH | |
8525 | do | |
8526 | IFS=$as_save_IFS | |
8527 | test -z "$as_dir" && as_dir=. | |
8528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8530 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8532 | break 2 | |
8533 | fi | |
8534 | done | |
8535 | done | |
8536 | IFS=$as_save_IFS | |
539f4a77 | 8537 | |
f11781c5 AK |
8538 | ;; |
8539 | esac | |
8540 | fi | |
8541 | LCOV=$ac_cv_path_LCOV | |
8542 | if test -n "$LCOV"; then | |
8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8544 | $as_echo "$LCOV" >&6; } | |
8545 | else | |
8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8547 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8548 | fi |
8549 | ||
bc1024f8 | 8550 | |
f11781c5 AK |
8551 | # Extract the first word of "genhtml", so it can be a program name with args. |
8552 | set dummy genhtml; ac_word=$2 | |
8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8554 | $as_echo_n "checking for $ac_word... " >&6; } | |
8555 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8556 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8557 | else |
f11781c5 AK |
8558 | case $GENHTML in |
8559 | [\\/]* | ?:[\\/]*) | |
8560 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8561 | ;; | |
8562 | *) | |
8563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8564 | for as_dir in $PATH | |
8565 | do | |
8566 | IFS=$as_save_IFS | |
8567 | test -z "$as_dir" && as_dir=. | |
8568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8570 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8572 | break 2 | |
8573 | fi | |
8574 | done | |
8575 | done | |
8576 | IFS=$as_save_IFS | |
8a2fc586 | 8577 | |
f11781c5 AK |
8578 | ;; |
8579 | esac | |
8580 | fi | |
8581 | GENHTML=$ac_cv_path_GENHTML | |
8582 | if test -n "$GENHTML"; then | |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8584 | $as_echo "$GENHTML" >&6; } | |
8585 | else | |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8587 | $as_echo "no" >&6; } | |
8588 | fi | |
8a2fc586 | 8589 | |
8a2fc586 | 8590 | |
f11781c5 AK |
8591 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8592 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8593 | fi | |
8594 | # Extract the first word of "genpng", so it can be a program name with args. | |
8595 | set dummy genpng; ac_word=$2 | |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8597 | $as_echo_n "checking for $ac_word... " >&6; } | |
8598 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8599 | $as_echo_n "(cached) " >&6 | |
8600 | else | |
8601 | case $GENPNG in | |
8602 | [\\/]* | ?:[\\/]*) | |
8603 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8604 | ;; | |
8605 | *) | |
8606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8607 | for as_dir in $PATH | |
8608 | do | |
8609 | IFS=$as_save_IFS | |
8610 | test -z "$as_dir" && as_dir=. | |
8611 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8613 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8615 | break 2 | |
8616 | fi | |
8617 | done | |
8618 | done | |
8619 | IFS=$as_save_IFS | |
ad6254c5 | 8620 | |
f11781c5 | 8621 | ;; |
7a197a62 | 8622 | esac |
f11781c5 AK |
8623 | fi |
8624 | GENPNG=$ac_cv_path_GENPNG | |
8625 | if test -n "$GENPNG"; then | |
8626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8627 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8628 | else |
f11781c5 AK |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8630 | $as_echo "no" >&6; } | |
8631 | fi | |
8632 | ||
8633 | ||
8634 | if test -n "$GENPNG"; then | |
8635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8636 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8637 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8639 | $as_echo "ok" >&6; } | |
8640 | GENHTML="$GENHTML --frames" | |
8641 | else | |
8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8643 | $as_echo "not supported" >&6; } | |
8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8645 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8646 | GENPNG= | |
8647 | fi | |
8648 | fi | |
8649 | fi | |
ad6254c5 | 8650 | |
f11781c5 AK |
8651 | ################################################################################ |
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8653 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8654 | # Check whether --enable-testing was given. | |
8655 | if test "${enable_testing+set}" = set; then : | |
8656 | enableval=$enable_testing; TESTING=$enableval | |
8657 | else | |
8658 | TESTING=no | |
ad6254c5 | 8659 | fi |
7a197a62 | 8660 | |
f11781c5 AK |
8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8662 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8663 | |
f11781c5 | 8664 | if test "$TESTING" = yes; then |
426fc742 PR |
8665 | |
8666 | pkg_failed=no | |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5 | |
8668 | $as_echo_n "checking for CUNIT... " >&6; } | |
8669 | ||
8670 | if test -n "$CUNIT_CFLAGS"; then | |
8671 | pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS" | |
8672 | elif test -n "$PKG_CONFIG"; then | |
8673 | if test -n "$PKG_CONFIG" && \ | |
8674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8675 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8676 | ac_status=$? | |
8677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8678 | test $ac_status = 0; }; then | |
8679 | pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null` | |
8680 | else | |
8681 | pkg_failed=yes | |
8682 | fi | |
8683 | else | |
8684 | pkg_failed=untried | |
8685 | fi | |
8686 | if test -n "$CUNIT_LIBS"; then | |
8687 | pkg_cv_CUNIT_LIBS="$CUNIT_LIBS" | |
8688 | elif test -n "$PKG_CONFIG"; then | |
8689 | if test -n "$PKG_CONFIG" && \ | |
8690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8691 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8692 | ac_status=$? | |
8693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8694 | test $ac_status = 0; }; then | |
8695 | pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null` | |
ad6254c5 | 8696 | else |
426fc742 PR |
8697 | pkg_failed=yes |
8698 | fi | |
8699 | else | |
8700 | pkg_failed=untried | |
ad6254c5 AK |
8701 | fi |
8702 | ||
7a197a62 | 8703 | |
426fc742 PR |
8704 | |
8705 | if test $pkg_failed = yes; then | |
8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8707 | $as_echo "no" >&6; } | |
8708 | ||
8709 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8710 | _pkg_short_errors_supported=yes | |
8711 | else | |
8712 | _pkg_short_errors_supported=no | |
8713 | fi | |
8714 | if test $_pkg_short_errors_supported = yes; then | |
8715 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1` | |
8716 | else | |
8717 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1` | |
8718 | fi | |
8719 | # Put the nasty error message in config.log where it belongs | |
8720 | echo "$CUNIT_PKG_ERRORS" >&5 | |
8721 | ||
8722 | as_fn_error $? "Package requirements (cunit >= 2.0) were not met: | |
8723 | ||
8724 | $CUNIT_PKG_ERRORS | |
8725 | ||
8726 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8727 | installed software in a non-standard prefix. | |
8728 | ||
8729 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8730 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8731 | See the pkg-config man page for more details." "$LINENO" 5 | |
8732 | ||
8733 | elif test $pkg_failed = untried; then | |
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8735 | $as_echo "no" >&6; } | |
8736 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8738 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8739 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8740 | path to pkg-config. | |
8741 | ||
8742 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8743 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8744 | See the pkg-config man page for more details. | |
8745 | ||
8746 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8747 | See \`config.log' for more details" "$LINENO" 5; } | |
8748 | ||
8749 | else | |
8750 | CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS | |
8751 | CUNIT_LIBS=$pkg_cv_CUNIT_LIBS | |
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8753 | $as_echo "yes" >&6; } | |
8754 | ||
8755 | fi | |
f11781c5 | 8756 | fi |
ad6254c5 | 8757 | |
f11781c5 AK |
8758 | ################################################################################ |
8759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8760 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8761 | # Check whether --enable-valgrind_pool was given. | |
8762 | if test "${enable_valgrind_pool+set}" = set; then : | |
8763 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8764 | else | |
8765 | VALGRIND_POOL=no | |
8766 | fi | |
8767 | ||
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8769 | $as_echo "$VALGRIND_POOL" >&6; } | |
8770 | ||
8771 | if test "$VALGRIND_POOL" = yes; then | |
8772 | for ac_header in valgrind/memcheck.h | |
8773 | do : | |
8774 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8775 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8776 | cat >>confdefs.h <<_ACEOF | |
8777 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8778 | _ACEOF | |
ad6254c5 | 8779 | |
ad6254c5 | 8780 | else |
f11781c5 | 8781 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8782 | fi |
8783 | ||
f11781c5 AK |
8784 | done |
8785 | ||
8786 | ||
8787 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8788 | ||
ad6254c5 AK |
8789 | fi |
8790 | ||
8791 | ################################################################################ | |
f11781c5 AK |
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8793 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8794 | # Check whether --enable-devmapper was given. | |
8795 | if test "${enable_devmapper+set}" = set; then : | |
8796 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8797 | fi |
8798 | ||
f11781c5 AK |
8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8800 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8801 | |
f11781c5 | 8802 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8803 | |
f11781c5 AK |
8804 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8805 | ||
8806 | fi | |
8807 | ||
cdd50823 ZK |
8808 | ################################################################################ |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5 | |
8810 | $as_echo_n "checking whether to build LVMetaD... " >&6; } | |
8811 | # Check whether --enable-lvmetad was given. | |
8812 | if test "${enable_lvmetad+set}" = set; then : | |
8813 | enableval=$enable_lvmetad; LVMETAD=$enableval | |
8814 | fi | |
8815 | ||
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5 | |
8817 | $as_echo "$LVMETAD" >&6; } | |
8818 | ||
8819 | BUILD_LVMETAD=$LVMETAD | |
8820 | ||
7126d8c2 AK |
8821 | if test x$BUILD_LVMETAD = xyes; then |
8822 | ||
8823 | $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h | |
8824 | ||
8825 | fi | |
8826 | ||
f11781c5 AK |
8827 | ################################################################################ |
8828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8829 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8830 | # Check whether --enable-udev_sync was given. | |
8831 | if test "${enable_udev_sync+set}" = set; then : | |
8832 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8833 | else |
f11781c5 | 8834 | UDEV_SYNC=no |
7a197a62 | 8835 | fi |
ad6254c5 | 8836 | |
f11781c5 AK |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8838 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8839 | |
f11781c5 | 8840 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8841 | if test x$PKGCONFIG_INIT != x1; then |
8842 | pkg_config_init | |
8843 | fi | |
7a197a62 | 8844 | |
d93275eb PR |
8845 | pkg_failed=no |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8847 | $as_echo_n "checking for UDEV... " >&6; } | |
8848 | ||
8849 | if test -n "$UDEV_CFLAGS"; then | |
8850 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8851 | elif test -n "$PKG_CONFIG"; then | |
8852 | if test -n "$PKG_CONFIG" && \ | |
8853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8854 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8855 | ac_status=$? | |
8856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8857 | test $ac_status = 0; }; then | |
8858 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8859 | else |
d93275eb | 8860 | pkg_failed=yes |
f11781c5 | 8861 | fi |
d93275eb PR |
8862 | else |
8863 | pkg_failed=untried | |
f11781c5 | 8864 | fi |
d93275eb PR |
8865 | if test -n "$UDEV_LIBS"; then |
8866 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8867 | elif test -n "$PKG_CONFIG"; then | |
8868 | if test -n "$PKG_CONFIG" && \ | |
8869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8870 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8871 | ac_status=$? | |
8872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8873 | test $ac_status = 0; }; then | |
8874 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8875 | else |
d93275eb | 8876 | pkg_failed=yes |
68f2de6d | 8877 | fi |
d93275eb PR |
8878 | else |
8879 | pkg_failed=untried | |
8880 | fi | |
8881 | ||
8882 | ||
8883 | ||
8884 | if test $pkg_failed = yes; then | |
8885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8886 | $as_echo "no" >&6; } | |
8887 | ||
8888 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8889 | _pkg_short_errors_supported=yes | |
8890 | else | |
8891 | _pkg_short_errors_supported=no | |
8892 | fi | |
8893 | if test $_pkg_short_errors_supported = yes; then | |
8894 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8895 | else | |
8896 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8897 | fi | |
8898 | # Put the nasty error message in config.log where it belongs | |
8899 | echo "$UDEV_PKG_ERRORS" >&5 | |
8900 | ||
8901 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8902 | ||
8903 | $UDEV_PKG_ERRORS | |
8904 | ||
8905 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8906 | installed software in a non-standard prefix. | |
8907 | ||
8908 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8909 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8910 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8911 | |
d93275eb PR |
8912 | elif test $pkg_failed = untried; then |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8914 | $as_echo "no" >&6; } | |
8915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8917 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8918 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8919 | path to pkg-config. | |
8920 | ||
8921 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8922 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8923 | See the pkg-config man page for more details. | |
8924 | ||
8925 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8926 | See \`config.log' for more details" "$LINENO" 5; } | |
8927 | ||
8928 | else | |
8929 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8930 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8932 | $as_echo "yes" >&6; } | |
8933 | UDEV_PC="libudev" | |
8934 | fi | |
68f2de6d | 8935 | |
f11781c5 | 8936 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8937 | |
f11781c5 AK |
8938 | fi |
8939 | ||
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8941 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8942 | # Check whether --enable-udev_rules was given. | |
8943 | if test "${enable_udev_rules+set}" = set; then : | |
8944 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8945 | else |
f11781c5 | 8946 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8947 | fi |
8948 | ||
f11781c5 AK |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8950 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8951 | |
b559a1e6 PR |
8952 | if test x$UDEV_RULES = xyes; then |
8953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5 | |
8954 | $as_echo_n "checking whether udev supports builtin blkid... " >&6; } | |
8955 | udev_version=$(udevadm info --version 2>/dev/null) | |
8956 | if test -n "$udev_version" && test "$udev_version" -ge 176; then | |
8957 | UDEV_HAS_BUILTIN_BLKID=yes | |
8958 | else | |
8959 | UDEV_HAS_BUILTIN_BLKID=no | |
8960 | fi | |
8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 | |
8962 | $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
8963 | fi | |
8964 | ||
a5f46f6a | 8965 | ################################################################################ |
f11781c5 AK |
8966 | # Check whether --enable-compat was given. |
8967 | if test "${enable_compat+set}" = set; then : | |
8968 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8969 | else | |
8970 | DM_COMPAT=no | |
8971 | fi | |
a5f46f6a | 8972 | |
f11781c5 | 8973 | |
2061c0ec AK |
8974 | if test x$DM_COMPAT = xyes; then |
8975 | as_fn_error $? "--enable-compat is not currently supported. | |
8976 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
8977 | ioctl protocol is supported. | |
8978 | " "$LINENO" 5 | |
8979 | fi | |
8980 | ||
f11781c5 AK |
8981 | ################################################################################ |
8982 | # Check whether --enable-units-compat was given. | |
8983 | if test "${enable_units_compat+set}" = set; then : | |
8984 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8985 | else |
f11781c5 | 8986 | UNITS_COMPAT=no |
a5f46f6a AK |
8987 | fi |
8988 | ||
8989 | ||
f11781c5 | 8990 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8991 | |
f11781c5 AK |
8992 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8993 | ||
8994 | fi | |
8995 | ||
8996 | ################################################################################ | |
8997 | # Check whether --enable-ioctl was given. | |
8998 | if test "${enable_ioctl+set}" = set; then : | |
8999 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
9000 | fi |
9001 | ||
a5f46f6a | 9002 | |
ad6254c5 | 9003 | ################################################################################ |
f11781c5 AK |
9004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
9005 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
9006 | # Check whether --enable-o_direct was given. | |
9007 | if test "${enable_o_direct+set}" = set; then : | |
9008 | enableval=$enable_o_direct; ODIRECT=$enableval | |
9009 | fi | |
ad6254c5 | 9010 | |
f11781c5 AK |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
9012 | $as_echo "$ODIRECT" >&6; } | |
9013 | ||
9014 | if test x$ODIRECT = xyes; then | |
9015 | ||
9016 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 9017 | |
ad6254c5 | 9018 | fi |
ad6254c5 | 9019 | |
f11781c5 AK |
9020 | ################################################################################ |
9021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
9022 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9023 | # Check whether --enable-applib was given. | |
9024 | if test "${enable_applib+set}" = set; then : | |
9025 | enableval=$enable_applib; APPLIB=$enableval | |
9026 | else | |
9027 | APPLIB=no | |
ad6254c5 | 9028 | fi |
7a197a62 | 9029 | |
f11781c5 AK |
9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
9031 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 9032 | |
f11781c5 AK |
9033 | test x$APPLIB = xyes \ |
9034 | && LVM2APP_LIB=-llvm2app \ | |
9035 | || LVM2APP_LIB= | |
ad6254c5 | 9036 | |
f11781c5 AK |
9037 | ################################################################################ |
9038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
9039 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
9040 | # Check whether --enable-cmdlib was given. | |
9041 | if test "${enable_cmdlib+set}" = set; then : | |
9042 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
9043 | else | |
9044 | CMDLIB=no | |
ad6254c5 | 9045 | fi |
7a197a62 | 9046 | |
f11781c5 AK |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
9048 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 9049 | |
f11781c5 AK |
9050 | test x$CMDLIB = xyes \ |
9051 | && LVM2CMD_LIB=-llvm2cmd \ | |
9052 | || LVM2CMD_LIB= | |
9053 | ||
9054 | ################################################################################ | |
9055 | # Check whether --enable-pkgconfig was given. | |
9056 | if test "${enable_pkgconfig+set}" = set; then : | |
9057 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 9058 | else |
f11781c5 | 9059 | PKGCONFIG=no |
ad6254c5 | 9060 | fi |
ad6254c5 | 9061 | |
ad6254c5 | 9062 | |
f11781c5 AK |
9063 | ################################################################################ |
9064 | # Check whether --enable-write_install was given. | |
9065 | if test "${enable_write_install+set}" = set; then : | |
9066 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 9067 | else |
f11781c5 | 9068 | WRITE_INSTALL=no |
ad6254c5 AK |
9069 | fi |
9070 | ||
ad6254c5 | 9071 | |
f11781c5 AK |
9072 | ################################################################################ |
9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
9074 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
9075 | # Check whether --enable-fsadm was given. | |
9076 | if test "${enable_fsadm+set}" = set; then : | |
9077 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
9078 | fi |
9079 | ||
f11781c5 AK |
9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
9081 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 9082 | |
f11781c5 AK |
9083 | ################################################################################ |
9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
9085 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
9086 | # Check whether --enable-dmeventd was given. | |
9087 | if test "${enable_dmeventd+set}" = set; then : | |
9088 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9089 | fi | |
ad6254c5 | 9090 | |
f11781c5 AK |
9091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9092 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9093 | |
f11781c5 | 9094 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9095 | |
f11781c5 AK |
9096 | if test x$DMEVENTD = xyes; then |
9097 | if test x$MIRRORS != xinternal; then | |
9098 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9099 | " "$LINENO" 5 | |
9100 | fi | |
9101 | if test x$CMDLIB = xno; then | |
9102 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9103 | " "$LINENO" 5 | |
9104 | fi | |
9105 | fi | |
ad6254c5 | 9106 | |
f11781c5 | 9107 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9108 | |
f11781c5 | 9109 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9110 | |
f11781c5 | 9111 | fi |
ad6254c5 | 9112 | |
3d962ed6 AK |
9113 | ################################################################################ |
9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install veritysetup" >&5 | |
9115 | $as_echo_n "checking whether to install veritysetup... " >&6; } | |
9116 | ||
9117 | # Check whether --with-veritysetup was given. | |
9118 | if test "${with_veritysetup+set}" = set; then : | |
9119 | withval=$with_veritysetup; VERITYSETUP=$withval | |
9120 | fi | |
9121 | ||
9122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERITYSETUP" >&5 | |
9123 | $as_echo "$VERITYSETUP" >&6; } | |
9124 | ||
9125 | if test x$VERITYSETUP != xno -a x$VERITYSETUP != x; then | |
9126 | if test x$PKGCONFIG_INIT != x1; then | |
9127 | pkg_config_init | |
9128 | fi | |
9129 | ||
9130 | if test -z "$VERITYSETUP_CFLAGS" && test x$VERITYSETUP = xyes -o x$VERITYSETUP = xopenssl; then | |
9131 | ||
9132 | pkg_failed=no | |
9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 | |
9134 | $as_echo_n "checking for OPENSSL... " >&6; } | |
9135 | ||
9136 | if test -n "$OPENSSL_CFLAGS"; then | |
9137 | pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" | |
9138 | elif test -n "$PKG_CONFIG"; then | |
9139 | if test -n "$PKG_CONFIG" && \ | |
9140 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | |
9141 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | |
9142 | ac_status=$? | |
9143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9144 | test $ac_status = 0; }; then | |
9145 | pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` | |
9146 | else | |
9147 | pkg_failed=yes | |
9148 | fi | |
9149 | else | |
9150 | pkg_failed=untried | |
9151 | fi | |
9152 | if test -n "$OPENSSL_LIBS"; then | |
9153 | pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" | |
9154 | elif test -n "$PKG_CONFIG"; then | |
9155 | if test -n "$PKG_CONFIG" && \ | |
9156 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 | |
9157 | ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 | |
9158 | ac_status=$? | |
9159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9160 | test $ac_status = 0; }; then | |
9161 | pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` | |
9162 | else | |
9163 | pkg_failed=yes | |
9164 | fi | |
9165 | else | |
9166 | pkg_failed=untried | |
9167 | fi | |
9168 | ||
9169 | ||
9170 | ||
9171 | if test $pkg_failed = yes; then | |
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9173 | $as_echo "no" >&6; } | |
9174 | ||
9175 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9176 | _pkg_short_errors_supported=yes | |
9177 | else | |
9178 | _pkg_short_errors_supported=no | |
9179 | fi | |
9180 | if test $_pkg_short_errors_supported = yes; then | |
9181 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` | |
9182 | else | |
9183 | OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` | |
9184 | fi | |
9185 | # Put the nasty error message in config.log where it belongs | |
9186 | echo "$OPENSSL_PKG_ERRORS" >&5 | |
9187 | ||
9188 | ||
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_get_digestbyname in -lcrypto" >&5 | |
9190 | $as_echo_n "checking for EVP_get_digestbyname in -lcrypto... " >&6; } | |
9191 | if test "${ac_cv_lib_crypto_EVP_get_digestbyname+set}" = set; then : | |
9192 | $as_echo_n "(cached) " >&6 | |
9193 | else | |
9194 | ac_check_lib_save_LIBS=$LIBS | |
9195 | LIBS="-lcrypto $LIBS" | |
9196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9197 | /* end confdefs.h. */ | |
9198 | ||
9199 | /* Override any GCC internal prototype to avoid an error. | |
9200 | Use char because int might match the return type of a GCC | |
9201 | builtin and then its argument prototype would still apply. */ | |
9202 | #ifdef __cplusplus | |
9203 | extern "C" | |
9204 | #endif | |
9205 | char EVP_get_digestbyname (); | |
9206 | int | |
9207 | main () | |
9208 | { | |
9209 | return EVP_get_digestbyname (); | |
9210 | ; | |
9211 | return 0; | |
9212 | } | |
9213 | _ACEOF | |
9214 | if ac_fn_c_try_link "$LINENO"; then : | |
9215 | ac_cv_lib_crypto_EVP_get_digestbyname=yes | |
9216 | else | |
9217 | ac_cv_lib_crypto_EVP_get_digestbyname=no | |
9218 | fi | |
9219 | rm -f core conftest.err conftest.$ac_objext \ | |
9220 | conftest$ac_exeext conftest.$ac_ext | |
9221 | LIBS=$ac_check_lib_save_LIBS | |
9222 | fi | |
9223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_get_digestbyname" >&5 | |
9224 | $as_echo "$ac_cv_lib_crypto_EVP_get_digestbyname" >&6; } | |
9225 | if test "x$ac_cv_lib_crypto_EVP_get_digestbyname" = x""yes; then : | |
9226 | ||
9227 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" | |
9228 | if test "x$ac_cv_header_openssl_evp_h" = x""yes; then : | |
9229 | ||
9230 | ||
9231 | $as_echo "#define CRYPT_OPENSSL 1" >>confdefs.h | |
9232 | ||
9233 | VERITYSETUP_CFLAGS= | |
9234 | VERITYSETUP_LIBS="-lcrypto" | |
9235 | ||
9236 | fi | |
9237 | ||
9238 | ||
9239 | ||
9240 | fi | |
9241 | ||
9242 | ||
9243 | elif test $pkg_failed = untried; then | |
9244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9245 | $as_echo "no" >&6; } | |
9246 | ||
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_get_digestbyname in -lcrypto" >&5 | |
9248 | $as_echo_n "checking for EVP_get_digestbyname in -lcrypto... " >&6; } | |
9249 | if test "${ac_cv_lib_crypto_EVP_get_digestbyname+set}" = set; then : | |
9250 | $as_echo_n "(cached) " >&6 | |
9251 | else | |
9252 | ac_check_lib_save_LIBS=$LIBS | |
9253 | LIBS="-lcrypto $LIBS" | |
9254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9255 | /* end confdefs.h. */ | |
9256 | ||
9257 | /* Override any GCC internal prototype to avoid an error. | |
9258 | Use char because int might match the return type of a GCC | |
9259 | builtin and then its argument prototype would still apply. */ | |
9260 | #ifdef __cplusplus | |
9261 | extern "C" | |
9262 | #endif | |
9263 | char EVP_get_digestbyname (); | |
9264 | int | |
9265 | main () | |
9266 | { | |
9267 | return EVP_get_digestbyname (); | |
9268 | ; | |
9269 | return 0; | |
9270 | } | |
9271 | _ACEOF | |
9272 | if ac_fn_c_try_link "$LINENO"; then : | |
9273 | ac_cv_lib_crypto_EVP_get_digestbyname=yes | |
9274 | else | |
9275 | ac_cv_lib_crypto_EVP_get_digestbyname=no | |
9276 | fi | |
9277 | rm -f core conftest.err conftest.$ac_objext \ | |
9278 | conftest$ac_exeext conftest.$ac_ext | |
9279 | LIBS=$ac_check_lib_save_LIBS | |
9280 | fi | |
9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_get_digestbyname" >&5 | |
9282 | $as_echo "$ac_cv_lib_crypto_EVP_get_digestbyname" >&6; } | |
9283 | if test "x$ac_cv_lib_crypto_EVP_get_digestbyname" = x""yes; then : | |
9284 | ||
9285 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" | |
9286 | if test "x$ac_cv_header_openssl_evp_h" = x""yes; then : | |
9287 | ||
9288 | ||
9289 | $as_echo "#define CRYPT_OPENSSL 1" >>confdefs.h | |
9290 | ||
9291 | VERITYSETUP_CFLAGS= | |
9292 | VERITYSETUP_LIBS="-lcrypto" | |
9293 | ||
9294 | fi | |
9295 | ||
9296 | ||
9297 | ||
9298 | fi | |
9299 | ||
9300 | ||
9301 | else | |
9302 | OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS | |
9303 | OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS | |
9304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9305 | $as_echo "yes" >&6; } | |
9306 | ||
9307 | ||
9308 | $as_echo "#define CRYPT_OPENSSL 1" >>confdefs.h | |
9309 | ||
9310 | VERITYSETUP_CFLAGS="$OPENSSL_CFLAGS" | |
9311 | VERITYSETUP_LIBS="`echo "$OPENSSL_LIBS" | sed 's/-lssl\>//'`" | |
9312 | ||
9313 | fi | |
9314 | fi | |
9315 | ||
9316 | if test -z "$VERITYSETUP_CFLAGS" && test x$VERITYSETUP = xyes -o x$VERITYSETUP = xnss; then | |
9317 | ||
9318 | pkg_failed=no | |
9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5 | |
9320 | $as_echo_n "checking for NSS... " >&6; } | |
9321 | ||
9322 | if test -n "$NSS_CFLAGS"; then | |
9323 | pkg_cv_NSS_CFLAGS="$NSS_CFLAGS" | |
9324 | elif test -n "$PKG_CONFIG"; then | |
9325 | if test -n "$PKG_CONFIG" && \ | |
9326 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 | |
9327 | ($PKG_CONFIG --exists --print-errors "nss") 2>&5 | |
9328 | ac_status=$? | |
9329 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9330 | test $ac_status = 0; }; then | |
9331 | pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null` | |
9332 | else | |
9333 | pkg_failed=yes | |
9334 | fi | |
9335 | else | |
9336 | pkg_failed=untried | |
9337 | fi | |
9338 | if test -n "$NSS_LIBS"; then | |
9339 | pkg_cv_NSS_LIBS="$NSS_LIBS" | |
9340 | elif test -n "$PKG_CONFIG"; then | |
9341 | if test -n "$PKG_CONFIG" && \ | |
9342 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 | |
9343 | ($PKG_CONFIG --exists --print-errors "nss") 2>&5 | |
9344 | ac_status=$? | |
9345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9346 | test $ac_status = 0; }; then | |
9347 | pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null` | |
9348 | else | |
9349 | pkg_failed=yes | |
9350 | fi | |
9351 | else | |
9352 | pkg_failed=untried | |
9353 | fi | |
9354 | ||
9355 | ||
9356 | ||
9357 | if test $pkg_failed = yes; then | |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9359 | $as_echo "no" >&6; } | |
9360 | ||
9361 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9362 | _pkg_short_errors_supported=yes | |
9363 | else | |
9364 | _pkg_short_errors_supported=no | |
9365 | fi | |
9366 | if test $_pkg_short_errors_supported = yes; then | |
9367 | NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss" 2>&1` | |
9368 | else | |
9369 | NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss" 2>&1` | |
9370 | fi | |
9371 | # Put the nasty error message in config.log where it belongs | |
9372 | echo "$NSS_PKG_ERRORS" >&5 | |
9373 | ||
9374 | true | |
9375 | elif test $pkg_failed = untried; then | |
9376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9377 | $as_echo "no" >&6; } | |
9378 | true | |
9379 | else | |
9380 | NSS_CFLAGS=$pkg_cv_NSS_CFLAGS | |
9381 | NSS_LIBS=$pkg_cv_NSS_LIBS | |
9382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9383 | $as_echo "yes" >&6; } | |
9384 | ||
9385 | ||
9386 | $as_echo "#define CRYPT_NSS 1" >>confdefs.h | |
9387 | ||
9388 | VERITYSETUP_CFLAGS="$NSS_CFLAGS" | |
9389 | VERITYSETUP_LIBS="`echo "$NSS_LIBS" | sed 's/-lsmime3\>//' | sed 's/-lssl3\>//'`" | |
9390 | ||
9391 | fi | |
9392 | fi | |
9393 | ||
9394 | if test -z "$VERITYSETUP_CFLAGS" && test x$VERITYSETUP = xyes -o x$VERITYSETUP = xgcrypt; then | |
9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_map_name in -lgcrypt" >&5 | |
9396 | $as_echo_n "checking for gcry_md_map_name in -lgcrypt... " >&6; } | |
9397 | if test "${ac_cv_lib_gcrypt_gcry_md_map_name+set}" = set; then : | |
9398 | $as_echo_n "(cached) " >&6 | |
9399 | else | |
9400 | ac_check_lib_save_LIBS=$LIBS | |
9401 | LIBS="-lgcrypt $LIBS" | |
9402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9403 | /* end confdefs.h. */ | |
9404 | ||
9405 | /* Override any GCC internal prototype to avoid an error. | |
9406 | Use char because int might match the return type of a GCC | |
9407 | builtin and then its argument prototype would still apply. */ | |
9408 | #ifdef __cplusplus | |
9409 | extern "C" | |
9410 | #endif | |
9411 | char gcry_md_map_name (); | |
9412 | int | |
9413 | main () | |
9414 | { | |
9415 | return gcry_md_map_name (); | |
9416 | ; | |
9417 | return 0; | |
9418 | } | |
9419 | _ACEOF | |
9420 | if ac_fn_c_try_link "$LINENO"; then : | |
9421 | ac_cv_lib_gcrypt_gcry_md_map_name=yes | |
9422 | else | |
9423 | ac_cv_lib_gcrypt_gcry_md_map_name=no | |
9424 | fi | |
9425 | rm -f core conftest.err conftest.$ac_objext \ | |
9426 | conftest$ac_exeext conftest.$ac_ext | |
9427 | LIBS=$ac_check_lib_save_LIBS | |
9428 | fi | |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_map_name" >&5 | |
9430 | $as_echo "$ac_cv_lib_gcrypt_gcry_md_map_name" >&6; } | |
9431 | if test "x$ac_cv_lib_gcrypt_gcry_md_map_name" = x""yes; then : | |
9432 | ||
9433 | ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" | |
9434 | if test "x$ac_cv_header_gcrypt_h" = x""yes; then : | |
9435 | ||
9436 | ||
9437 | $as_echo "#define CRYPT_GCRYPT 1" >>confdefs.h | |
9438 | ||
9439 | VERITYSETUP_CFLAGS= | |
9440 | VERITYSETUP_LIBS="-lgcrypt" | |
9441 | ||
9442 | fi | |
9443 | ||
9444 | ||
9445 | ||
9446 | fi | |
9447 | ||
9448 | fi | |
9449 | ||
9450 | if test -z "$VERITYSETUP_LIBS"; then | |
9451 | as_fn_error $? "No cryptographic library for veritysetup found" "$LINENO" 5 | |
9452 | fi | |
9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5 | |
9454 | $as_echo_n "checking for poptGetContext in -lpopt... " >&6; } | |
9455 | if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then : | |
9456 | $as_echo_n "(cached) " >&6 | |
9457 | else | |
9458 | ac_check_lib_save_LIBS=$LIBS | |
9459 | LIBS="-lpopt $LIBS" | |
9460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9461 | /* end confdefs.h. */ | |
9462 | ||
9463 | /* Override any GCC internal prototype to avoid an error. | |
9464 | Use char because int might match the return type of a GCC | |
9465 | builtin and then its argument prototype would still apply. */ | |
9466 | #ifdef __cplusplus | |
9467 | extern "C" | |
9468 | #endif | |
9469 | char poptGetContext (); | |
9470 | int | |
9471 | main () | |
9472 | { | |
9473 | return poptGetContext (); | |
9474 | ; | |
9475 | return 0; | |
9476 | } | |
9477 | _ACEOF | |
9478 | if ac_fn_c_try_link "$LINENO"; then : | |
9479 | ac_cv_lib_popt_poptGetContext=yes | |
9480 | else | |
9481 | ac_cv_lib_popt_poptGetContext=no | |
9482 | fi | |
9483 | rm -f core conftest.err conftest.$ac_objext \ | |
9484 | conftest$ac_exeext conftest.$ac_ext | |
9485 | LIBS=$ac_check_lib_save_LIBS | |
9486 | fi | |
9487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5 | |
9488 | $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; } | |
9489 | if test "x$ac_cv_lib_popt_poptGetContext" = x""yes; then : | |
9490 | true | |
9491 | else | |
9492 | ||
9493 | as_fn_error $? "popt library was not found" "$LINENO" 5 | |
9494 | ||
9495 | fi | |
9496 | ||
9497 | ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default" | |
9498 | if test "x$ac_cv_header_popt_h" = x""yes; then : | |
9499 | true | |
9500 | else | |
9501 | ||
9502 | as_fn_error $? "popt.h was not found" "$LINENO" 5 | |
9503 | ||
9504 | fi | |
9505 | ||
9506 | ||
9507 | VERITYSETUP_LIBS="$VERITYSETUP_LIBS -lpopt" | |
9508 | ||
9509 | ||
9510 | VERITYSETUP=yes | |
9511 | fi | |
9512 | ||
9513 | ||
f11781c5 | 9514 | ################################################################################ |
ad6254c5 | 9515 | |
f11781c5 AK |
9516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9517 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9518 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9519 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9520 | else |
f11781c5 AK |
9521 | ac_check_lib_save_LIBS=$LIBS |
9522 | LIBS="-lc $LIBS" | |
9523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9524 | /* end confdefs.h. */ |
f11781c5 AK |
9525 | |
9526 | /* Override any GCC internal prototype to avoid an error. | |
9527 | Use char because int might match the return type of a GCC | |
9528 | builtin and then its argument prototype would still apply. */ | |
9529 | #ifdef __cplusplus | |
9530 | extern "C" | |
9531 | #endif | |
9532 | char getline (); | |
9533 | int | |
9534 | main () | |
9535 | { | |
9536 | return getline (); | |
9537 | ; | |
9538 | return 0; | |
9539 | } | |
ad6254c5 | 9540 | _ACEOF |
f11781c5 AK |
9541 | if ac_fn_c_try_link "$LINENO"; then : |
9542 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9543 | else |
f11781c5 AK |
9544 | ac_cv_lib_c_getline=no |
9545 | fi | |
9546 | rm -f core conftest.err conftest.$ac_objext \ | |
9547 | conftest$ac_exeext conftest.$ac_ext | |
9548 | LIBS=$ac_check_lib_save_LIBS | |
9549 | fi | |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9551 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9552 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9553 | ||
9554 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9555 | |
ad6254c5 | 9556 | fi |
7a197a62 | 9557 | |
ad6254c5 | 9558 | |
f11781c5 AK |
9559 | ################################################################################ |
9560 | ||
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9562 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9563 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9564 | $as_echo_n "(cached) " >&6 | |
9565 | else | |
9566 | ac_check_lib_save_LIBS=$LIBS | |
9567 | LIBS="-lc $LIBS" | |
9568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9569 | /* end confdefs.h. */ |
f11781c5 AK |
9570 | |
9571 | /* Override any GCC internal prototype to avoid an error. | |
9572 | Use char because int might match the return type of a GCC | |
9573 | builtin and then its argument prototype would still apply. */ | |
9574 | #ifdef __cplusplus | |
9575 | extern "C" | |
9576 | #endif | |
9577 | char canonicalize_file_name (); | |
9578 | int | |
9579 | main () | |
9580 | { | |
9581 | return canonicalize_file_name (); | |
9582 | ; | |
9583 | return 0; | |
9584 | } | |
ad6254c5 | 9585 | _ACEOF |
f11781c5 AK |
9586 | if ac_fn_c_try_link "$LINENO"; then : |
9587 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9588 | else |
f11781c5 AK |
9589 | ac_cv_lib_c_canonicalize_file_name=no |
9590 | fi | |
9591 | rm -f core conftest.err conftest.$ac_objext \ | |
9592 | conftest$ac_exeext conftest.$ac_ext | |
9593 | LIBS=$ac_check_lib_save_LIBS | |
9594 | fi | |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9596 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9597 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9598 | ||
9599 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9600 | |
ad6254c5 | 9601 | fi |
7a197a62 | 9602 | |
ad6254c5 | 9603 | |
f11781c5 AK |
9604 | ################################################################################ |
9605 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9606 | then exec_prefix=""; | |
9607 | fi; | |
7a197a62 | 9608 | |
f11781c5 AK |
9609 | ################################################################################ |
9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9611 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9612 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9613 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9614 | else |
f11781c5 AK |
9615 | ac_check_lib_save_LIBS=$LIBS |
9616 | LIBS="-ldl $LIBS" | |
9617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9618 | /* end confdefs.h. */ | |
ad6254c5 | 9619 | |
f11781c5 AK |
9620 | /* Override any GCC internal prototype to avoid an error. |
9621 | Use char because int might match the return type of a GCC | |
9622 | builtin and then its argument prototype would still apply. */ | |
9623 | #ifdef __cplusplus | |
9624 | extern "C" | |
9625 | #endif | |
9626 | char dlopen (); | |
9627 | int | |
9628 | main () | |
9629 | { | |
9630 | return dlopen (); | |
9631 | ; | |
9632 | return 0; | |
9633 | } | |
ad6254c5 | 9634 | _ACEOF |
f11781c5 AK |
9635 | if ac_fn_c_try_link "$LINENO"; then : |
9636 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9637 | else |
f11781c5 | 9638 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9639 | fi |
f11781c5 AK |
9640 | rm -f core conftest.err conftest.$ac_objext \ |
9641 | conftest$ac_exeext conftest.$ac_ext | |
9642 | LIBS=$ac_check_lib_save_LIBS | |
9643 | fi | |
9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9645 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9646 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9647 | |
ad6254c5 | 9648 | |
f11781c5 | 9649 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9650 | |
f11781c5 AK |
9651 | DL_LIBS="-ldl" |
9652 | HAVE_LIBDL=yes | |
9653 | else | |
795ca3e5 | 9654 | |
f11781c5 AK |
9655 | DL_LIBS= |
9656 | HAVE_LIBDL=no | |
9657 | fi | |
8106cdd5 | 9658 | |
ad6254c5 | 9659 | |
f11781c5 AK |
9660 | ################################################################################ |
9661 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9662 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9663 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9664 | \) -a "x$STATIC_LINK" = xyes ]; |
9665 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9666 | " "$LINENO" 5 | |
9667 | fi | |
ad6254c5 | 9668 | |
f11781c5 AK |
9669 | ################################################################################ |
9670 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9672 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9673 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9674 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9675 | else |
f11781c5 AK |
9676 | ac_check_lib_save_LIBS=$LIBS |
9677 | LIBS="-lpthread $LIBS" | |
9678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9679 | /* end confdefs.h. */ |
8a2fc586 | 9680 | |
f11781c5 AK |
9681 | /* Override any GCC internal prototype to avoid an error. |
9682 | Use char because int might match the return type of a GCC | |
9683 | builtin and then its argument prototype would still apply. */ | |
9684 | #ifdef __cplusplus | |
9685 | extern "C" | |
ad6254c5 | 9686 | #endif |
f11781c5 AK |
9687 | char pthread_mutex_lock (); |
9688 | int | |
9689 | main () | |
9690 | { | |
9691 | return pthread_mutex_lock (); | |
9692 | ; | |
9693 | return 0; | |
9694 | } | |
9695 | _ACEOF | |
9696 | if ac_fn_c_try_link "$LINENO"; then : | |
9697 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9698 | else | |
9699 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9700 | fi | |
9701 | rm -f core conftest.err conftest.$ac_objext \ | |
9702 | conftest$ac_exeext conftest.$ac_ext | |
9703 | LIBS=$ac_check_lib_save_LIBS | |
9704 | fi | |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9706 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9707 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9708 | PTHREAD_LIBS="-lpthread" | |
9709 | else | |
9710 | hard_bailout | |
9711 | fi | |
9712 | ||
9713 | fi | |
9714 | ||
9715 | ################################################################################ | |
9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9717 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9718 | # Check whether --enable-selinux was given. | |
9719 | if test "${enable_selinux+set}" = set; then : | |
9720 | enableval=$enable_selinux; SELINUX=$enableval | |
9721 | fi | |
9722 | ||
9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9724 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9725 | |
f11781c5 AK |
9726 | ################################################################################ |
9727 | if test x$SELINUX = xyes; then | |
9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9729 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9730 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9731 | $as_echo_n "(cached) " >&6 | |
9732 | else | |
9733 | ac_check_lib_save_LIBS=$LIBS | |
9734 | LIBS="-lsepol $LIBS" | |
9735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9736 | /* end confdefs.h. */ | |
8a2fc586 | 9737 | |
7a197a62 AK |
9738 | /* Override any GCC internal prototype to avoid an error. |
9739 | Use char because int might match the return type of a GCC | |
9740 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9741 | #ifdef __cplusplus |
9742 | extern "C" | |
ad6254c5 | 9743 | #endif |
f11781c5 | 9744 | char sepol_check_context (); |
ad6254c5 AK |
9745 | int |
9746 | main () | |
9747 | { | |
f11781c5 | 9748 | return sepol_check_context (); |
ad6254c5 AK |
9749 | ; |
9750 | return 0; | |
9751 | } | |
9752 | _ACEOF | |
f11781c5 AK |
9753 | if ac_fn_c_try_link "$LINENO"; then : |
9754 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9755 | else |
f11781c5 AK |
9756 | ac_cv_lib_sepol_sepol_check_context=no |
9757 | fi | |
9758 | rm -f core conftest.err conftest.$ac_objext \ | |
9759 | conftest$ac_exeext conftest.$ac_ext | |
9760 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9761 | fi |
f11781c5 AK |
9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9763 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9764 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9765 | |
80992638 | 9766 | |
f11781c5 AK |
9767 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9768 | ||
9769 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9770 | fi |
795ca3e5 | 9771 | |
f11781c5 AK |
9772 | |
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9774 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9775 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9776 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9777 | else |
f11781c5 AK |
9778 | ac_check_lib_save_LIBS=$LIBS |
9779 | LIBS="-lselinux $LIBS" | |
9780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9781 | /* end confdefs.h. */ |
80992638 | 9782 | |
7a197a62 AK |
9783 | /* Override any GCC internal prototype to avoid an error. |
9784 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9785 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9786 | #ifdef __cplusplus |
9787 | extern "C" | |
9788 | #endif | |
f11781c5 | 9789 | char is_selinux_enabled (); |
ad6254c5 AK |
9790 | int |
9791 | main () | |
9792 | { | |
f11781c5 | 9793 | return is_selinux_enabled (); |
ad6254c5 AK |
9794 | ; |
9795 | return 0; | |
9796 | } | |
9797 | _ACEOF | |
f11781c5 AK |
9798 | if ac_fn_c_try_link "$LINENO"; then : |
9799 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9800 | else |
f11781c5 | 9801 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9802 | fi |
f11781c5 AK |
9803 | rm -f core conftest.err conftest.$ac_objext \ |
9804 | conftest$ac_exeext conftest.$ac_ext | |
9805 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9806 | fi |
f11781c5 AK |
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9808 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9809 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9810 | |
f11781c5 AK |
9811 | for ac_header in selinux/selinux.h |
9812 | do : | |
9813 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9814 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9815 | cat >>confdefs.h <<_ACEOF | |
9816 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9817 | _ACEOF |
795ca3e5 | 9818 | |
25fbec5b | 9819 | else |
f11781c5 | 9820 | hard_bailout |
795ca3e5 | 9821 | fi |
795ca3e5 | 9822 | |
f11781c5 | 9823 | done |
795ca3e5 | 9824 | |
f11781c5 AK |
9825 | for ac_header in selinux/label.h |
9826 | do : | |
9827 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9828 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9829 | cat >>confdefs.h <<_ACEOF | |
9830 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9831 | _ACEOF |
ad6254c5 | 9832 | |
ad6254c5 | 9833 | fi |
7a197a62 | 9834 | |
f11781c5 | 9835 | done |
7a197a62 | 9836 | |
ad6254c5 | 9837 | |
f11781c5 | 9838 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9839 | |
f11781c5 AK |
9840 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9841 | SELINUX_PC="libselinux" | |
9842 | HAVE_SELINUX=yes | |
ad6254c5 | 9843 | else |
8106cdd5 | 9844 | |
f11781c5 AK |
9845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9846 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9847 | SELINUX_LIBS= | |
9848 | SELINUX_PC= | |
9849 | HAVE_SELINUX=no | |
795ca3e5 | 9850 | fi |
ad6254c5 | 9851 | |
795ca3e5 AK |
9852 | fi |
9853 | ||
f11781c5 AK |
9854 | ################################################################################ |
9855 | if test x$REALTIME = xyes; then | |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9857 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9858 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9859 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9860 | else |
f11781c5 AK |
9861 | ac_check_lib_save_LIBS=$LIBS |
9862 | LIBS="-lrt $LIBS" | |
9863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9864 | /* end confdefs.h. */ |
ad6254c5 | 9865 | |
f11781c5 AK |
9866 | /* Override any GCC internal prototype to avoid an error. |
9867 | Use char because int might match the return type of a GCC | |
9868 | builtin and then its argument prototype would still apply. */ | |
9869 | #ifdef __cplusplus | |
9870 | extern "C" | |
9871 | #endif | |
9872 | char clock_gettime (); | |
ad6254c5 AK |
9873 | int |
9874 | main () | |
9875 | { | |
f11781c5 | 9876 | return clock_gettime (); |
ad6254c5 AK |
9877 | ; |
9878 | return 0; | |
9879 | } | |
9880 | _ACEOF | |
f11781c5 AK |
9881 | if ac_fn_c_try_link "$LINENO"; then : |
9882 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9883 | else |
f11781c5 | 9884 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9885 | fi |
f11781c5 AK |
9886 | rm -f core conftest.err conftest.$ac_objext \ |
9887 | conftest$ac_exeext conftest.$ac_ext | |
9888 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9889 | fi |
f11781c5 AK |
9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9891 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9892 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9893 | HAVE_REALTIME=yes | |
9894 | else | |
9895 | HAVE_REALTIME=no | |
8106cdd5 | 9896 | fi |
ad6254c5 | 9897 | |
ad6254c5 | 9898 | |
f11781c5 | 9899 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9900 | |
f11781c5 | 9901 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9902 | |
f11781c5 AK |
9903 | LIBS="-lrt $LIBS" |
9904 | else | |
9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9906 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9907 | fi | |
9908 | fi | |
9909 | ||
9910 | ################################################################################ | |
9911 | for ac_header in getopt.h | |
9912 | do : | |
9913 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9914 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9915 | cat >>confdefs.h <<_ACEOF | |
9916 | #define HAVE_GETOPT_H 1 | |
9917 | _ACEOF | |
9918 | ||
9919 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9920 | |
ad6254c5 | 9921 | fi |
7a197a62 | 9922 | |
f11781c5 | 9923 | done |
ad6254c5 | 9924 | |
7a197a62 | 9925 | |
f11781c5 AK |
9926 | ################################################################################ |
9927 | if test x$READLINE != xno; then | |
9928 | lvm_saved_libs=$LIBS | |
9929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9930 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9931 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9932 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9933 | else |
f11781c5 AK |
9934 | ac_func_search_save_LIBS=$LIBS |
9935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9936 | /* end confdefs.h. */ | |
ad6254c5 | 9937 | |
f11781c5 AK |
9938 | /* Override any GCC internal prototype to avoid an error. |
9939 | Use char because int might match the return type of a GCC | |
9940 | builtin and then its argument prototype would still apply. */ | |
9941 | #ifdef __cplusplus | |
9942 | extern "C" | |
9943 | #endif | |
9944 | char tgetent (); | |
9945 | int | |
9946 | main () | |
9947 | { | |
9948 | return tgetent (); | |
9949 | ; | |
9950 | return 0; | |
9951 | } | |
ad6254c5 | 9952 | _ACEOF |
f11781c5 AK |
9953 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9954 | if test -z "$ac_lib"; then | |
9955 | ac_res="none required" | |
9956 | else | |
9957 | ac_res=-l$ac_lib | |
9958 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9959 | fi | |
9960 | if ac_fn_c_try_link "$LINENO"; then : | |
9961 | ac_cv_search_tgetent=$ac_res | |
9962 | fi | |
9963 | rm -f core conftest.err conftest.$ac_objext \ | |
9964 | conftest$ac_exeext | |
9965 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9966 | break | |
9967 | fi | |
9968 | done | |
9969 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9970 | |
80992638 | 9971 | else |
f11781c5 | 9972 | ac_cv_search_tgetent=no |
b896caa1 | 9973 | fi |
f11781c5 AK |
9974 | rm conftest.$ac_ext |
9975 | LIBS=$ac_func_search_save_LIBS | |
9976 | fi | |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9978 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9979 | ac_res=$ac_cv_search_tgetent | |
9980 | if test "$ac_res" != no; then : | |
9981 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9982 | READLINE_LIBS=$ac_cv_search_tgetent | |
9983 | else | |
ad6254c5 | 9984 | |
f11781c5 AK |
9985 | if test "$READLINE" = yes; then |
9986 | as_fn_error $? "termcap could not be found which is required for the | |
9987 | --enable-readline option (which is enabled by default). Either disable readline | |
9988 | support with --disable-readline or download and install termcap from: | |
9989 | ftp.gnu.org/gnu/termcap | |
9990 | Note: if you are using precompiled packages you will also need the development | |
9991 | package as well (which may be called termcap-devel or something similar). | |
9992 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9993 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9994 | fi | |
9995 | fi | |
b896caa1 | 9996 | |
f11781c5 AK |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9998 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9999 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 10000 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 10001 | else |
f11781c5 AK |
10002 | ac_check_lib_save_LIBS=$LIBS |
10003 | LIBS="-lreadline $LIBS" | |
10004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 10005 | /* end confdefs.h. */ |
8a2fc586 | 10006 | |
f11781c5 AK |
10007 | /* Override any GCC internal prototype to avoid an error. |
10008 | Use char because int might match the return type of a GCC | |
10009 | builtin and then its argument prototype would still apply. */ | |
10010 | #ifdef __cplusplus | |
10011 | extern "C" | |
ad6254c5 | 10012 | #endif |
f11781c5 AK |
10013 | char readline (); |
10014 | int | |
10015 | main () | |
10016 | { | |
10017 | return readline (); | |
10018 | ; | |
10019 | return 0; | |
10020 | } | |
10021 | _ACEOF | |
10022 | if ac_fn_c_try_link "$LINENO"; then : | |
10023 | ac_cv_lib_readline_readline=yes | |
10024 | else | |
10025 | ac_cv_lib_readline_readline=no | |
10026 | fi | |
10027 | rm -f core conftest.err conftest.$ac_objext \ | |
10028 | conftest$ac_exeext conftest.$ac_ext | |
10029 | LIBS=$ac_check_lib_save_LIBS | |
10030 | fi | |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
10032 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
10033 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
10034 | ||
8a2fc586 | 10035 | |
f11781c5 AK |
10036 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
10037 | ||
10038 | LIBS=$lvm_saved_libs | |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
10040 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
10041 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
10042 | $as_echo_n "(cached) " >&6 | |
10043 | else | |
10044 | ac_check_lib_save_LIBS=$LIBS | |
10045 | LIBS="-lreadline $LIBS" | |
10046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10047 | /* end confdefs.h. */ | |
8a2fc586 | 10048 | |
7a197a62 AK |
10049 | /* Override any GCC internal prototype to avoid an error. |
10050 | Use char because int might match the return type of a GCC | |
10051 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
10052 | #ifdef __cplusplus |
10053 | extern "C" | |
ad6254c5 | 10054 | #endif |
f11781c5 | 10055 | char rl_line_buffer (); |
ad6254c5 AK |
10056 | int |
10057 | main () | |
10058 | { | |
f11781c5 | 10059 | return rl_line_buffer (); |
ad6254c5 AK |
10060 | ; |
10061 | return 0; | |
10062 | } | |
10063 | _ACEOF | |
f11781c5 AK |
10064 | if ac_fn_c_try_link "$LINENO"; then : |
10065 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 10066 | else |
f11781c5 AK |
10067 | ac_cv_lib_readline_rl_line_buffer=no |
10068 | fi | |
10069 | rm -f core conftest.err conftest.$ac_objext \ | |
10070 | conftest$ac_exeext conftest.$ac_ext | |
10071 | LIBS=$ac_check_lib_save_LIBS | |
10072 | fi | |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
10074 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
10075 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
10076 | READLINE_LIBS="-lreadline" | |
10077 | else | |
10078 | ||
10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
10080 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
10081 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 10082 | |
ad6254c5 | 10083 | fi |
7a197a62 | 10084 | |
f11781c5 AK |
10085 | else |
10086 | ||
10087 | READLINE_LIBS= | |
10088 | if test "$READLINE" = yes; then | |
10089 | as_fn_error $? "GNU Readline could not be found which is required for the | |
10090 | --enable-readline option (which is enabled by default). Either disable readline | |
10091 | support with --disable-readline or download and install readline from: | |
10092 | ftp.gnu.org/gnu/readline | |
10093 | Note: if you are using precompiled packages you will also need the development | |
10094 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
10095 | fi | |
ad6254c5 | 10096 | fi |
f11781c5 AK |
10097 | |
10098 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
10099 | for ac_func in rl_completion_matches | |
10100 | do : | |
10101 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
10102 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 10103 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10104 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
10105 | _ACEOF |
10106 | ||
ad6254c5 AK |
10107 | fi |
10108 | done | |
10109 | ||
f11781c5 | 10110 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
10111 | fi |
10112 | ||
f11781c5 AK |
10113 | ################################################################################ |
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
10115 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
10116 | # Check whether --enable-nls was given. | |
10117 | if test "${enable_nls+set}" = set; then : | |
10118 | enableval=$enable_nls; INTL=$enableval | |
10119 | else | |
10120 | INTL=no | |
10121 | fi | |
d911ec67 | 10122 | |
f11781c5 AK |
10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
10124 | $as_echo "$INTL" >&6; } | |
10125 | ||
10126 | if test x$INTL = xyes; then | |
10127 | # FIXME - Move this - can be device-mapper too | |
10128 | INTL_PACKAGE="lvm2" | |
10129 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10130 | set dummy msgfmt; ac_word=$2 | |
10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10132 | $as_echo_n "checking for $ac_word... " >&6; } | |
10133 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 10134 | $as_echo_n "(cached) " >&6 |
d911ec67 | 10135 | else |
f11781c5 AK |
10136 | case $MSGFMT in |
10137 | [\\/]* | ?:[\\/]*) | |
10138 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10139 | ;; | |
10140 | *) | |
10141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10142 | for as_dir in $PATH | |
10143 | do | |
10144 | IFS=$as_save_IFS | |
10145 | test -z "$as_dir" && as_dir=. | |
10146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10148 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
10149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10150 | break 2 | |
10151 | fi | |
10152 | done | |
10153 | done | |
10154 | IFS=$as_save_IFS | |
10155 | ||
10156 | ;; | |
d911ec67 | 10157 | esac |
f11781c5 AK |
10158 | fi |
10159 | MSGFMT=$ac_cv_path_MSGFMT | |
10160 | if test -n "$MSGFMT"; then | |
10161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
10162 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 10163 | else |
f11781c5 AK |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10165 | $as_echo "no" >&6; } | |
10166 | fi | |
d911ec67 | 10167 | |
f11781c5 AK |
10168 | |
10169 | if [ "x$MSGFMT" == x ]; | |
10170 | then as_fn_error $? "msgfmt not found in path $PATH | |
10171 | " "$LINENO" 5 | |
10172 | fi; | |
10173 | ||
10174 | ||
10175 | # Check whether --with-localedir was given. | |
10176 | if test "${with_localedir+set}" = set; then : | |
10177 | withval=$with_localedir; LOCALEDIR=$withval | |
10178 | else | |
10179 | LOCALEDIR='${prefix}/share/locale' | |
10180 | fi | |
10181 | ||
10182 | fi | |
10183 | ||
10184 | ################################################################################ | |
10185 | ||
10186 | # Check whether --with-confdir was given. | |
10187 | if test "${with_confdir+set}" = set; then : | |
10188 | withval=$with_confdir; CONFDIR=$withval | |
10189 | else | |
10190 | CONFDIR="/etc" | |
10191 | fi | |
10192 | ||
10193 | ||
10194 | ||
10195 | # Check whether --with-staticdir was given. | |
10196 | if test "${with_staticdir+set}" = set; then : | |
10197 | withval=$with_staticdir; STATICDIR=$withval | |
10198 | else | |
10199 | STATICDIR='${exec_prefix}/sbin' | |
10200 | fi | |
10201 | ||
10202 | ||
10203 | ||
10204 | # Check whether --with-usrlibdir was given. | |
10205 | if test "${with_usrlibdir+set}" = set; then : | |
10206 | withval=$with_usrlibdir; usrlibdir=$withval | |
10207 | else | |
10208 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
10209 | fi |
10210 | ||
d911ec67 | 10211 | |
d911ec67 | 10212 | |
f11781c5 AK |
10213 | # Check whether --with-usrsbindir was given. |
10214 | if test "${with_usrsbindir+set}" = set; then : | |
10215 | withval=$with_usrsbindir; usrsbindir=$withval | |
10216 | else | |
10217 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
10218 | fi |
10219 | ||
d911ec67 | 10220 | |
f11781c5 | 10221 | ################################################################################ |
d911ec67 | 10222 | |
f11781c5 AK |
10223 | # Check whether --with-udev_prefix was given. |
10224 | if test "${with_udev_prefix+set}" = set; then : | |
10225 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 10226 | else |
f11781c5 | 10227 | udev_prefix='${exec_prefix}' |
d911ec67 | 10228 | fi |
d911ec67 | 10229 | |
f11781c5 AK |
10230 | |
10231 | ||
10232 | # Check whether --with-udevdir was given. | |
10233 | if test "${with_udevdir+set}" = set; then : | |
10234 | withval=$with_udevdir; udevdir=$withval | |
10235 | else | |
10236 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 10237 | fi |
f11781c5 AK |
10238 | |
10239 | ||
e587cb6a PR |
10240 | ################################################################################ |
10241 | ||
10242 | # Check whether --with-systemdsystemunitdir was given. | |
10243 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
10244 | withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval | |
10245 | else | |
10246 | pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | |
10247 | fi | |
10248 | ||
10249 | ||
10250 | if test -n "$pkg_systemdsystemunitdir"; then | |
10251 | systemdsystemunitdir=$pkg_systemdsystemunitdir; | |
10252 | fi | |
10253 | ||
10254 | if test -z "$systemdsystemunitdir"; then | |
10255 | systemdsystemunitdir='/lib/systemd/system'; | |
10256 | fi | |
4417a8bd PR |
10257 | ################################################################################ |
10258 | ||
10259 | # Check whether --with-tmpfilesdir was given. | |
10260 | if test "${with_tmpfilesdir+set}" = set; then : | |
10261 | withval=$with_tmpfilesdir; tmpfilesdir=$withval | |
10262 | else | |
10263 | tmpfilesdir='${sysconfdir}/tmpfiles.d' | |
10264 | fi | |
10265 | ||
f11781c5 AK |
10266 | ################################################################################ |
10267 | if test x$READLINE = xyes; then | |
10268 | for ac_header in readline/readline.h readline/history.h | |
10269 | do : | |
10270 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10271 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10272 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
10273 | cat >>confdefs.h <<_ACEOF |
10274 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10275 | _ACEOF | |
10276 | ||
10277 | else | |
f11781c5 | 10278 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
10279 | fi |
10280 | ||
10281 | done | |
10282 | ||
10283 | fi | |
10284 | ||
f11781c5 AK |
10285 | if test x$CLVMD != xnone; then |
10286 | 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 | |
10287 | do : | |
10288 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10289 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10290 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10291 | cat >>confdefs.h <<_ACEOF | |
10292 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 10293 | _ACEOF |
ad6254c5 | 10294 | |
f11781c5 AK |
10295 | else |
10296 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 10297 | fi |
7a197a62 | 10298 | |
f11781c5 | 10299 | done |
ad6254c5 | 10300 | |
f11781c5 AK |
10301 | for ac_func in dup2 getmntent memmove select socket |
10302 | do : | |
10303 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10304 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10305 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10306 | cat >>confdefs.h <<_ACEOF | |
10307 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 10308 | _ACEOF |
ad6254c5 | 10309 | |
f11781c5 AK |
10310 | else |
10311 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 10312 | fi |
f11781c5 | 10313 | done |
7a197a62 | 10314 | |
f11781c5 AK |
10315 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
10316 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
10318 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
10319 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
10320 | $as_echo_n "(cached) " >&6 | |
10321 | else | |
10322 | ac_func_search_save_LIBS=$LIBS | |
10323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10324 | /* end confdefs.h. */ | |
ad6254c5 | 10325 | |
f11781c5 AK |
10326 | /* Override any GCC internal prototype to avoid an error. |
10327 | Use char because int might match the return type of a GCC | |
10328 | builtin and then its argument prototype would still apply. */ | |
10329 | #ifdef __cplusplus | |
10330 | extern "C" | |
10331 | #endif | |
10332 | char getmntent (); | |
10333 | int | |
10334 | main () | |
10335 | { | |
10336 | return getmntent (); | |
10337 | ; | |
10338 | return 0; | |
10339 | } | |
10340 | _ACEOF | |
10341 | for ac_lib in '' sun seq gen; do | |
10342 | if test -z "$ac_lib"; then | |
10343 | ac_res="none required" | |
10344 | else | |
10345 | ac_res=-l$ac_lib | |
10346 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10347 | fi | |
10348 | if ac_fn_c_try_link "$LINENO"; then : | |
10349 | ac_cv_search_getmntent=$ac_res | |
10350 | fi | |
10351 | rm -f core conftest.err conftest.$ac_objext \ | |
10352 | conftest$ac_exeext | |
10353 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
10354 | break | |
10355 | fi | |
10356 | done | |
10357 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 10358 | |
ad6254c5 | 10359 | else |
f11781c5 | 10360 | ac_cv_search_getmntent=no |
795ca3e5 | 10361 | fi |
f11781c5 AK |
10362 | rm conftest.$ac_ext |
10363 | LIBS=$ac_func_search_save_LIBS | |
10364 | fi | |
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
10366 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
10367 | ac_res=$ac_cv_search_getmntent | |
10368 | if test "$ac_res" != no; then : | |
10369 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10370 | ac_cv_func_getmntent=yes | |
10371 | ||
10372 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 10373 | |
f11781c5 AK |
10374 | else |
10375 | ac_cv_func_getmntent=no | |
8106cdd5 | 10376 | fi |
f11781c5 AK |
10377 | |
10378 | ||
10379 | for ac_header in sys/select.h sys/socket.h | |
10380 | do : | |
10381 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10382 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10383 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 10384 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10385 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10386 | _ACEOF |
795ca3e5 | 10387 | |
795ca3e5 AK |
10388 | fi |
10389 | ||
ad6254c5 | 10390 | done |
80992638 | 10391 | |
f11781c5 AK |
10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
10393 | $as_echo_n "checking types of arguments for select... " >&6; } | |
10394 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 10395 | $as_echo_n "(cached) " >&6 |
83912faa | 10396 | else |
f11781c5 AK |
10397 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
10398 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
10399 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
10400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
10401 | /* end confdefs.h. */ |
10402 | $ac_includes_default | |
f11781c5 AK |
10403 | #ifdef HAVE_SYS_SELECT_H |
10404 | # include <sys/select.h> | |
10405 | #endif | |
10406 | #ifdef HAVE_SYS_SOCKET_H | |
10407 | # include <sys/socket.h> | |
10408 | #endif | |
10409 | ||
10410 | int | |
10411 | main () | |
10412 | { | |
10413 | extern int select ($ac_arg1, | |
10414 | $ac_arg234, $ac_arg234, $ac_arg234, | |
10415 | $ac_arg5); | |
10416 | ; | |
10417 | return 0; | |
10418 | } | |
ad6254c5 | 10419 | _ACEOF |
f11781c5 AK |
10420 | if ac_fn_c_try_compile "$LINENO"; then : |
10421 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
10422 | fi | |
10423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10424 | done | |
10425 | done | |
10426 | done | |
10427 | # Provide a safe default value. | |
10428 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 10429 | |
ad6254c5 | 10430 | fi |
f11781c5 AK |
10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
10432 | $as_echo "$ac_cv_func_select_args" >&6; } | |
10433 | ac_save_IFS=$IFS; IFS=',' | |
10434 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10435 | IFS=$ac_save_IFS | |
10436 | shift | |
7a197a62 | 10437 | |
f11781c5 AK |
10438 | cat >>confdefs.h <<_ACEOF |
10439 | #define SELECT_TYPE_ARG1 $1 | |
10440 | _ACEOF | |
ad6254c5 | 10441 | |
f11781c5 AK |
10442 | |
10443 | cat >>confdefs.h <<_ACEOF | |
10444 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 10445 | _ACEOF |
f11781c5 AK |
10446 | |
10447 | ||
10448 | cat >>confdefs.h <<_ACEOF | |
10449 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 10450 | _ACEOF |
ad6254c5 | 10451 | |
f11781c5 AK |
10452 | rm -f conftest* |
10453 | ||
ad6254c5 | 10454 | fi |
7a197a62 | 10455 | |
f11781c5 AK |
10456 | if test x$CLUSTER != xnone; then |
10457 | for ac_header in sys/socket.h sys/un.h | |
10458 | do : | |
10459 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10460 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10461 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10462 | cat >>confdefs.h <<_ACEOF | |
10463 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10464 | _ACEOF | |
ad6254c5 | 10465 | |
f11781c5 AK |
10466 | else |
10467 | as_fn_error $? "bailing out" "$LINENO" 5 | |
10468 | fi | |
10469 | ||
10470 | done | |
10471 | ||
10472 | for ac_func in socket | |
10473 | do : | |
10474 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
10475 | if test "x$ac_cv_func_socket" = x""yes; then : | |
10476 | cat >>confdefs.h <<_ACEOF | |
10477 | #define HAVE_SOCKET 1 | |
10478 | _ACEOF | |
7a197a62 | 10479 | |
80992638 | 10480 | else |
f11781c5 | 10481 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 10482 | fi |
f11781c5 | 10483 | done |
83912faa | 10484 | |
69792976 | 10485 | fi |
f11781c5 AK |
10486 | |
10487 | if test x$DMEVENTD = xyes; then | |
10488 | for ac_header in arpa/inet.h | |
10489 | do : | |
10490 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
10491 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 10492 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10493 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 10494 | _ACEOF |
69792976 | 10495 | |
69792976 | 10496 | else |
f11781c5 | 10497 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
10498 | fi |
10499 | ||
ad6254c5 | 10500 | done |
69792976 | 10501 | |
ad6254c5 AK |
10502 | fi |
10503 | ||
f11781c5 AK |
10504 | if test x$HAVE_LIBDL = xyes; then |
10505 | for ac_header in dlfcn.h | |
10506 | do : | |
10507 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
10508 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
10509 | cat >>confdefs.h <<_ACEOF | |
10510 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 10511 | _ACEOF |
a5f46f6a | 10512 | |
f11781c5 AK |
10513 | else |
10514 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
10515 | fi |
10516 | ||
f11781c5 | 10517 | done |
a5f46f6a | 10518 | |
a5f46f6a AK |
10519 | fi |
10520 | ||
f11781c5 AK |
10521 | if test x$INTL = xyes; then |
10522 | for ac_header in libintl.h | |
10523 | do : | |
10524 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10525 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10526 | cat >>confdefs.h <<_ACEOF | |
10527 | #define HAVE_LIBINTL_H 1 | |
10528 | _ACEOF | |
a5f46f6a | 10529 | |
a5f46f6a | 10530 | else |
f11781c5 | 10531 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10532 | fi |
f11781c5 AK |
10533 | |
10534 | done | |
a5f46f6a AK |
10535 | |
10536 | fi | |
f11781c5 AK |
10537 | |
10538 | if test x$UDEV_SYNC = xyes; then | |
10539 | for ac_header in sys/ipc.h sys/sem.h | |
10540 | do : | |
10541 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10542 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10543 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10544 | cat >>confdefs.h <<_ACEOF |
10545 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10546 | _ACEOF | |
10547 | ||
10548 | else | |
f11781c5 | 10549 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10550 | fi |
10551 | ||
10552 | done | |
10553 | ||
10554 | fi | |
10555 | ||
a653923f AK |
10556 | ################################################################################ |
10557 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10558 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10560 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10561 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10562 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10563 | else |
10564 | case $MODPROBE_CMD in | |
10565 | [\\/]* | ?:[\\/]*) | |
10566 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10567 | ;; | |
10568 | *) | |
10569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10570 | for as_dir in $PATH | |
10571 | do | |
10572 | IFS=$as_save_IFS | |
10573 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10574 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10576 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10578 | break 2 |
10579 | fi | |
10580 | done | |
f11781c5 | 10581 | done |
7a197a62 | 10582 | IFS=$as_save_IFS |
72b2cb61 AK |
10583 | |
10584 | ;; | |
10585 | esac | |
10586 | fi | |
10587 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10588 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10590 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10591 | else |
f11781c5 | 10592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10593 | $as_echo "no" >&6; } |
72b2cb61 AK |
10594 | fi |
10595 | ||
a653923f | 10596 | |
7a197a62 | 10597 | |
a653923f | 10598 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10599 | |
10600 | cat >>confdefs.h <<_ACEOF | |
10601 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10602 | _ACEOF | |
10603 | ||
a653923f AK |
10604 | fi |
10605 | ||
b5c2529b | 10606 | |
a9b601e2 ZK |
10607 | lvm_exec_prefix=$exec_prefix |
10608 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10609 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 | 10610 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
a9b601e2 | 10611 | |
b5c2529b | 10612 | cat >>confdefs.h <<_ACEOF |
d2c11605 | 10613 | #define LVM_PATH "$LVM_PATH" |
b5c2529b ZK |
10614 | _ACEOF |
10615 | ||
10616 | ||
10617 | if test "$CLVMD" != none; then | |
10618 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 10619 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b ZK |
10620 | test "$prefix" != NONE && clvmd_prefix=$prefix |
10621 | ||
10622 | cat >>confdefs.h <<_ACEOF | |
d2c11605 | 10623 | #define CLVMD_PATH "$CLVMD_PATH" |
b5c2529b ZK |
10624 | _ACEOF |
10625 | ||
10626 | fi | |
10627 | ||
80992638 | 10628 | ################################################################################ |
93bd259b AK |
10629 | if test "$BUILD_DMEVENTD" = yes; then |
10630 | ||
10631 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10632 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10633 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10634 | else |
71082be4 | 10635 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10636 | fi |
10637 | ||
93bd259b | 10638 | |
71082be4 ZK |
10639 | cat >>confdefs.h <<_ACEOF |
10640 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10641 | _ACEOF | |
93bd259b | 10642 | |
71082be4 | 10643 | fi |
93bd259b AK |
10644 | |
10645 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10646 | |
10647 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10648 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10649 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10650 | else |
71082be4 | 10651 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10652 | fi |
10653 | ||
93bd259b | 10654 | |
71082be4 ZK |
10655 | cat >>confdefs.h <<_ACEOF |
10656 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10657 | _ACEOF | |
3399ae32 | 10658 | |
71082be4 | 10659 | fi |
3399ae32 | 10660 | |
8bae0a1e AK |
10661 | |
10662 | ||
8bae0a1e | 10663 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10664 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10665 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10666 | else | |
10667 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10668 | fi | |
10669 | ||
10670 | cat >>confdefs.h <<_ACEOF | |
10671 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10672 | _ACEOF | |
10673 | ||
10674 | ||
71082be4 | 10675 | ################################################################################ |
3399ae32 AK |
10676 | |
10677 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10678 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10679 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10680 | else |
71082be4 | 10681 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10682 | fi |
10683 | ||
71082be4 | 10684 | |
3399ae32 AK |
10685 | cat >>confdefs.h <<_ACEOF |
10686 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10687 | _ACEOF | |
10688 | ||
10689 | ||
10690 | ||
3399ae32 | 10691 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10692 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10693 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10694 | else |
71082be4 | 10695 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10696 | fi |
10697 | ||
71082be4 | 10698 | |
3399ae32 AK |
10699 | cat >>confdefs.h <<_ACEOF |
10700 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10701 | _ACEOF | |
10702 | ||
10703 | ||
10704 | ||
3399ae32 | 10705 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10706 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10707 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10708 | else |
71082be4 | 10709 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10710 | fi |
10711 | ||
71082be4 | 10712 | |
3399ae32 AK |
10713 | cat >>confdefs.h <<_ACEOF |
10714 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10715 | _ACEOF | |
10716 | ||
10717 | ||
10718 | ||
3399ae32 | 10719 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10720 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10721 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10722 | else |
71082be4 | 10723 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10724 | fi |
10725 | ||
71082be4 | 10726 | |
3399ae32 AK |
10727 | cat >>confdefs.h <<_ACEOF |
10728 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10729 | _ACEOF | |
10730 | ||
10731 | ||
10732 | ||
3399ae32 | 10733 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10734 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10735 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10736 | else |
71082be4 | 10737 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10738 | fi |
10739 | ||
71082be4 | 10740 | |
3399ae32 AK |
10741 | cat >>confdefs.h <<_ACEOF |
10742 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10743 | _ACEOF | |
10744 | ||
10745 | ||
fea55602 DW |
10746 | ################################################################################ |
10747 | ||
10748 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10749 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10750 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10751 | else | |
10752 | DEFAULT_DATA_ALIGNMENT=1 | |
10753 | fi | |
10754 | ||
10755 | ||
10756 | cat >>confdefs.h <<_ACEOF | |
10757 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10758 | _ACEOF | |
10759 | ||
10760 | ||
93bd259b | 10761 | ################################################################################ |
f11781c5 | 10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10763 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10764 | |
10765 | # Check whether --with-interface was given. | |
f11781c5 | 10766 | if test "${with_interface+set}" = set; then : |
71082be4 | 10767 | withval=$with_interface; interface=$withval |
93bd259b | 10768 | else |
71082be4 | 10769 | interface=ioctl |
93bd259b AK |
10770 | fi |
10771 | ||
10772 | if [ "x$interface" != xioctl ]; | |
10773 | then | |
f11781c5 | 10774 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10775 | fi |
f11781c5 | 10776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10777 | $as_echo "$interface" >&6; } |
93bd259b AK |
10778 | |
10779 | ################################################################################ | |
db8b5af9 | 10780 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10781 | |
10782 | cat >>confdefs.h <<_ACEOF | |
10783 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10784 | _ACEOF | |
10785 | ||
10786 | ||
db8b5af9 | 10787 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10788 | |
db8b5af9 | 10789 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10790 | |
db8b5af9 | 10791 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10792 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10793 | VER=`echo "$VER" | $AWK '{print $1}'` |
10794 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10795 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10796 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10797 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10798 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10799 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10800 | |
80992638 | 10801 | ################################################################################ |
fae0c576 | 10802 | |
83912faa | 10803 | |
795ca3e5 AK |
10804 | |
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
5a52dca9 | 10810 | |
8ef2b021 | 10811 | |
199e490e | 10812 | |
69792976 AK |
10813 | |
10814 | ||
10815 | ||
d0191583 | 10816 | |
69792976 | 10817 | |
8106cdd5 AK |
10818 | |
10819 | ||
10820 | ||
10821 | ||
10822 | ||
d68a82ec | 10823 | |
036f273a | 10824 | |
7d1552c9 | 10825 | |
8106cdd5 | 10826 | |
0a62c911 | 10827 | |
8106cdd5 | 10828 | |
4a7f3eb2 | 10829 | |
4922197a AK |
10830 | |
10831 | ||
d8ac0fbc | 10832 | |
1a9ea74d | 10833 | |
8a2fc586 AK |
10834 | |
10835 | ||
d0191583 | 10836 | |
93bd259b AK |
10837 | |
10838 | ||
10839 | ||
10840 | ||
10841 | ||
d0191583 JM |
10842 | |
10843 | ||
10844 | ||
10845 | ||
10846 | ||
8a2fc586 | 10847 | |
19a2c6e0 | 10848 | |
f7f0854e ZK |
10849 | |
10850 | ||
3ceb7608 | 10851 | |
8ce0cbda | 10852 | |
8b1a3214 | 10853 | |
ec6a6fbe AK |
10854 | |
10855 | ||
10856 | ||
10857 | ||
e2997b73 AK |
10858 | |
10859 | ||
10860 | ||
10861 | ||
10862 | ||
10863 | ||
a946372e AK |
10864 | |
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
ec6a6fbe | 10875 | |
cac52ca4 | 10876 | |
d3c8211f | 10877 | |
7e3fe830 | 10878 | |
a5f46f6a AK |
10879 | |
10880 | ||
10881 | ||
572fefeb | 10882 | |
90c80887 | 10883 | |
3399ae32 AK |
10884 | |
10885 | ||
10886 | ||
10887 | ||
10888 | ||
90c80887 | 10889 | |
bf456146 | 10890 | |
e1b8a236 | 10891 | |
0878503f | 10892 | |
8fea97b7 | 10893 | |
54b362f9 | 10894 | |
b1f08e51 | 10895 | |
d1e8046f | 10896 | |
fea55602 | 10897 | |
c89bc357 | 10898 | |
6e5c1f75 | 10899 | |
3ba4a195 | 10900 | |
d2c11605 ZK |
10901 | |
10902 | ||
cdd50823 | 10903 | |
426fc742 PR |
10904 | |
10905 | ||
b6d7a484 AK |
10906 | |
10907 | ||
bf09a320 | 10908 | |
e587cb6a | 10909 | |
b559a1e6 | 10910 | |
4417a8bd | 10911 | |
f61cacad | 10912 | |
68f2de6d AK |
10913 | |
10914 | ||
80992638 | 10915 | ################################################################################ |
6bbbcf42 | 10916 | 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 verity/Makefile" |
7a197a62 | 10917 | |
ad6254c5 | 10918 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10919 | # This file is a shell script that caches the results of configure |
10920 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10921 | # scripts and configure runs, see configure's option --config-cache. |
10922 | # It is not useful on other systems. If it contains results you don't | |
10923 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10924 | # |
ad6254c5 AK |
10925 | # config.status only pays attention to the cache file if you give it |
10926 | # the --recheck option to rerun configure. | |
795ca3e5 | 10927 | # |
ad6254c5 AK |
10928 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10929 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10930 | # following values. | |
10931 | ||
10932 | _ACEOF | |
10933 | ||
795ca3e5 AK |
10934 | # The following way of writing the cache mishandles newlines in values, |
10935 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10936 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10937 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10938 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10939 | ( |
10940 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10941 | eval ac_val=\$$ac_var | |
10942 | case $ac_val in #( | |
10943 | *${as_nl}*) | |
10944 | case $ac_var in #( | |
f11781c5 | 10945 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10946 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10947 | esac |
10948 | case $ac_var in #( | |
10949 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10950 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10951 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10952 | esac ;; |
10953 | esac | |
10954 | done | |
10955 | ||
ad6254c5 | 10956 | (set) 2>&1 | |
7a197a62 AK |
10957 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10958 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10959 | # `set' does not quote correctly, so add quotes: double-quote |
10960 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10961 | sed -n \ |
8a2fc586 AK |
10962 | "s/'/'\\\\''/g; |
10963 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10964 | ;; #( |
ad6254c5 AK |
10965 | *) |
10966 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10967 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10968 | ;; |
7a197a62 AK |
10969 | esac | |
10970 | sort | |
10971 | ) | | |
ad6254c5 | 10972 | sed ' |
7a197a62 | 10973 | /^ac_cv_env_/b end |
ad6254c5 | 10974 | t clear |
7a197a62 | 10975 | :clear |
ad6254c5 AK |
10976 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10977 | t end | |
7a197a62 AK |
10978 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10979 | :end' >>confcache | |
10980 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10981 | if test -w "$cache_file"; then | |
10982 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10984 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10985 | cat confcache >$cache_file |
795ca3e5 | 10986 | else |
f11781c5 | 10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10988 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10989 | fi |
10990 | fi | |
10991 | rm -f confcache | |
10992 | ||
795ca3e5 AK |
10993 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10994 | # Let make expand exec_prefix. | |
10995 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10996 | ||
72b2cb61 | 10997 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10998 | |
10999 | ac_libobjs= | |
11000 | ac_ltlibobjs= | |
f11781c5 | 11001 | U= |
ad6254c5 AK |
11002 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
11003 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 11004 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 11005 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
11006 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11007 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
11008 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
11009 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
11010 | done |
11011 | LIBOBJS=$ac_libobjs | |
80992638 | 11012 | |
ad6254c5 AK |
11013 | LTLIBOBJS=$ac_ltlibobjs |
11014 | ||
11015 | ||
11016 | ||
11017 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 11018 | ac_write_fail=0 |
ad6254c5 AK |
11019 | ac_clean_files_save=$ac_clean_files |
11020 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 11022 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
11023 | as_write_fail=0 |
11024 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
11025 | #! $SHELL |
11026 | # Generated by $as_me. | |
795ca3e5 | 11027 | # Run this file to recreate the current configuration. |
795ca3e5 | 11028 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
11029 | # configure, is in config.log if it exists. |
11030 | ||
11031 | debug=false | |
11032 | ac_cs_recheck=false | |
11033 | ac_cs_silent=false | |
ad6254c5 | 11034 | |
f11781c5 AK |
11035 | SHELL=\${CONFIG_SHELL-$SHELL} |
11036 | export SHELL | |
11037 | _ASEOF | |
11038 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11039 | ## -------------------- ## | |
11040 | ## M4sh Initialization. ## | |
11041 | ## -------------------- ## | |
ad6254c5 | 11042 | |
25fbec5b AK |
11043 | # Be more Bourne compatible |
11044 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 11045 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
11046 | emulate sh |
11047 | NULLCMD=: | |
ec6a6fbe | 11048 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
11049 | # is contrary to our usage. Disable this feature. |
11050 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
11051 | setopt NO_GLOB_SUBST |
11052 | else | |
f11781c5 AK |
11053 | case `(set -o) 2>/dev/null` in #( |
11054 | *posix*) : | |
11055 | set -o posix ;; #( | |
11056 | *) : | |
11057 | ;; | |
25fbec5b | 11058 | esac |
7a197a62 | 11059 | fi |
25fbec5b AK |
11060 | |
11061 | ||
ec6a6fbe AK |
11062 | as_nl=' |
11063 | ' | |
11064 | export as_nl | |
11065 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11066 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11067 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11068 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
11069 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
11070 | # but without wasting forks for bash or zsh. | |
11071 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11072 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11073 | as_echo='print -r --' | |
11074 | as_echo_n='print -rn --' | |
11075 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
11076 | as_echo='printf %s\n' |
11077 | as_echo_n='printf %s' | |
11078 | else | |
11079 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11080 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11081 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 11082 | else |
ec6a6fbe AK |
11083 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
11084 | as_echo_n_body='eval | |
11085 | arg=$1; | |
f11781c5 | 11086 | case $arg in #( |
ec6a6fbe AK |
11087 | *"$as_nl"*) |
11088 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11089 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11090 | esac; | |
11091 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11092 | ' | |
11093 | export as_echo_n_body | |
11094 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 11095 | fi |
ec6a6fbe AK |
11096 | export as_echo_body |
11097 | as_echo='sh -c $as_echo_body as_echo' | |
11098 | fi | |
11099 | ||
11100 | # The user is always right. | |
11101 | if test "${PATH_SEPARATOR+set}" != set; then | |
11102 | PATH_SEPARATOR=: | |
11103 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11104 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11105 | PATH_SEPARATOR=';' | |
11106 | } | |
ad6254c5 AK |
11107 | fi |
11108 | ||
ad6254c5 | 11109 | |
7a197a62 AK |
11110 | # IFS |
11111 | # We need space, tab and new line, in precisely that order. Quoting is | |
11112 | # there to prevent editors from complaining about space-tab. | |
11113 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11114 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
11115 | IFS=" "" $as_nl" |
11116 | ||
11117 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 11118 | case $0 in #(( |
7a197a62 AK |
11119 | *[\\/]* ) as_myself=$0 ;; |
11120 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11121 | for as_dir in $PATH | |
11122 | do | |
11123 | IFS=$as_save_IFS | |
11124 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
11125 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
11126 | done | |
7a197a62 AK |
11127 | IFS=$as_save_IFS |
11128 | ||
11129 | ;; | |
11130 | esac | |
11131 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11132 | # in which case we are not to be found in the path. | |
11133 | if test "x$as_myself" = x; then | |
11134 | as_myself=$0 | |
11135 | fi | |
11136 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 11137 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 11138 | exit 1 |
7a197a62 AK |
11139 | fi |
11140 | ||
f11781c5 AK |
11141 | # Unset variables that we do not need and which cause bugs (e.g. in |
11142 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11143 | # suppresses any "Segmentation fault" message there. '((' could | |
11144 | # trigger a bug in pdksh 5.2.14. | |
11145 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
11146 | do eval test x\${$as_var+set} = xset \ | |
11147 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 11148 | done |
ad6254c5 AK |
11149 | PS1='$ ' |
11150 | PS2='> ' | |
11151 | PS4='+ ' | |
11152 | ||
11153 | # NLS nuisances. | |
ec6a6fbe AK |
11154 | LC_ALL=C |
11155 | export LC_ALL | |
11156 | LANGUAGE=C | |
11157 | export LANGUAGE | |
8106cdd5 | 11158 | |
f11781c5 AK |
11159 | # CDPATH. |
11160 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11161 | ||
11162 | ||
11163 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
11164 | # ---------------------------------------- | |
11165 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
11166 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
11167 | # script with STATUS, using 1 if that was 0. | |
11168 | as_fn_error () | |
11169 | { | |
11170 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
11171 | if test "$4"; then | |
11172 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11173 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
11174 | fi | |
11175 | $as_echo "$as_me: error: $2" >&2 | |
11176 | as_fn_exit $as_status | |
11177 | } # as_fn_error | |
11178 | ||
11179 | ||
11180 | # as_fn_set_status STATUS | |
11181 | # ----------------------- | |
11182 | # Set $? to STATUS, without forking. | |
11183 | as_fn_set_status () | |
11184 | { | |
11185 | return $1 | |
11186 | } # as_fn_set_status | |
11187 | ||
11188 | # as_fn_exit STATUS | |
11189 | # ----------------- | |
11190 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
11191 | as_fn_exit () | |
11192 | { | |
11193 | set +e | |
11194 | as_fn_set_status $1 | |
11195 | exit $1 | |
11196 | } # as_fn_exit | |
11197 | ||
11198 | # as_fn_unset VAR | |
11199 | # --------------- | |
11200 | # Portably unset VAR. | |
11201 | as_fn_unset () | |
11202 | { | |
11203 | { eval $1=; unset $1;} | |
11204 | } | |
11205 | as_unset=as_fn_unset | |
11206 | # as_fn_append VAR VALUE | |
11207 | # ---------------------- | |
11208 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
11209 | # advantage of any shell optimizations that allow amortized linear growth over | |
11210 | # repeated appends, instead of the typical quadratic growth present in naive | |
11211 | # implementations. | |
11212 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
11213 | eval 'as_fn_append () | |
11214 | { | |
11215 | eval $1+=\$2 | |
11216 | }' | |
11217 | else | |
11218 | as_fn_append () | |
11219 | { | |
11220 | eval $1=\$$1\$2 | |
11221 | } | |
11222 | fi # as_fn_append | |
11223 | ||
11224 | # as_fn_arith ARG... | |
11225 | # ------------------ | |
11226 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
11227 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
11228 | # must be portable across $(()) and expr. | |
11229 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
11230 | eval 'as_fn_arith () | |
11231 | { | |
11232 | as_val=$(( $* )) | |
11233 | }' | |
11234 | else | |
11235 | as_fn_arith () | |
11236 | { | |
11237 | as_val=`expr "$@" || test $? -eq 1` | |
11238 | } | |
11239 | fi # as_fn_arith | |
11240 | ||
11241 | ||
7a197a62 AK |
11242 | if expr a : '\(a\)' >/dev/null 2>&1 && |
11243 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
11244 | as_expr=expr |
11245 | else | |
11246 | as_expr=false | |
11247 | fi | |
8106cdd5 | 11248 | |
7a197a62 | 11249 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
11250 | as_basename=basename |
11251 | else | |
11252 | as_basename=false | |
11253 | fi | |
11254 | ||
f11781c5 AK |
11255 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11256 | as_dirname=dirname | |
11257 | else | |
11258 | as_dirname=false | |
11259 | fi | |
ad6254c5 | 11260 | |
7a197a62 | 11261 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
11262 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11263 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 11264 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11265 | $as_echo X/"$0" | |
7a197a62 AK |
11266 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11267 | s//\1/ | |
11268 | q | |
11269 | } | |
11270 | /^X\/\(\/\/\)$/{ | |
11271 | s//\1/ | |
11272 | q | |
11273 | } | |
11274 | /^X\/\(\/\).*/{ | |
11275 | s//\1/ | |
11276 | q | |
11277 | } | |
11278 | s/.*/./; q'` | |
ad6254c5 | 11279 | |
f11781c5 AK |
11280 | # Avoid depending upon Character Ranges. |
11281 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11282 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11283 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11284 | as_cr_digits='0123456789' | |
11285 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
11286 | |
11287 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 11288 | case `echo -n x` in #((((( |
7a197a62 | 11289 | -n*) |
f11781c5 | 11290 | case `echo 'xy\c'` in |
7a197a62 | 11291 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
11292 | xy) ECHO_C='\c';; |
11293 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
11294 | ECHO_T=' ';; | |
7a197a62 AK |
11295 | esac;; |
11296 | *) | |
11297 | ECHO_N='-n';; | |
ad6254c5 | 11298 | esac |
80992638 | 11299 | |
ad6254c5 | 11300 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
11301 | if test -d conf$$.dir; then |
11302 | rm -f conf$$.dir/conf$$.file | |
11303 | else | |
11304 | rm -f conf$$.dir | |
ec6a6fbe AK |
11305 | mkdir conf$$.dir 2>/dev/null |
11306 | fi | |
11307 | if (echo >conf$$.file) 2>/dev/null; then | |
11308 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11309 | as_ln_s='ln -s' | |
11310 | # ... but there are two gotchas: | |
11311 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
11312 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
11313 | # In both cases, we have to default to `cp -p'. | |
11314 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
11315 | as_ln_s='cp -p' | |
11316 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11317 | as_ln_s=ln | |
11318 | else | |
ad6254c5 | 11319 | as_ln_s='cp -p' |
ec6a6fbe | 11320 | fi |
ad6254c5 AK |
11321 | else |
11322 | as_ln_s='cp -p' | |
11323 | fi | |
7a197a62 AK |
11324 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11325 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 11326 | |
f11781c5 AK |
11327 | |
11328 | # as_fn_mkdir_p | |
11329 | # ------------- | |
11330 | # Create "$as_dir" as a directory, including parents if necessary. | |
11331 | as_fn_mkdir_p () | |
11332 | { | |
11333 | ||
11334 | case $as_dir in #( | |
11335 | -*) as_dir=./$as_dir;; | |
11336 | esac | |
11337 | test -d "$as_dir" || eval $as_mkdir_p || { | |
11338 | as_dirs= | |
11339 | while :; do | |
11340 | case $as_dir in #( | |
11341 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11342 | *) as_qdir=$as_dir;; | |
11343 | esac | |
11344 | as_dirs="'$as_qdir' $as_dirs" | |
11345 | as_dir=`$as_dirname -- "$as_dir" || | |
11346 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11347 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11348 | X"$as_dir" : 'X\(//\)$' \| \ | |
11349 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11350 | $as_echo X"$as_dir" | | |
11351 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11352 | s//\1/ | |
11353 | q | |
11354 | } | |
11355 | /^X\(\/\/\)[^/].*/{ | |
11356 | s//\1/ | |
11357 | q | |
11358 | } | |
11359 | /^X\(\/\/\)$/{ | |
11360 | s//\1/ | |
11361 | q | |
11362 | } | |
11363 | /^X\(\/\).*/{ | |
11364 | s//\1/ | |
11365 | q | |
11366 | } | |
11367 | s/.*/./; q'` | |
11368 | test -d "$as_dir" && break | |
11369 | done | |
11370 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11371 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
11372 | ||
11373 | ||
11374 | } # as_fn_mkdir_p | |
ad6254c5 | 11375 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 11376 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 11377 | else |
8a2fc586 | 11378 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11379 | as_mkdir_p=false |
11380 | fi | |
11381 | ||
25fbec5b AK |
11382 | if test -x / >/dev/null 2>&1; then |
11383 | as_test_x='test -x' | |
7a197a62 | 11384 | else |
25fbec5b AK |
11385 | if ls -dL / >/dev/null 2>&1; then |
11386 | as_ls_L_option=L | |
11387 | else | |
11388 | as_ls_L_option= | |
11389 | fi | |
11390 | as_test_x=' | |
11391 | eval sh -c '\'' | |
11392 | if test -d "$1"; then | |
ec6a6fbe | 11393 | test -d "$1/."; |
25fbec5b | 11394 | else |
f11781c5 | 11395 | case $1 in #( |
ec6a6fbe | 11396 | -*)set "./$1";; |
25fbec5b | 11397 | esac; |
f11781c5 | 11398 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
11399 | ???[sx]*):;;*)false;;esac;fi |
11400 | '\'' sh | |
11401 | ' | |
7a197a62 | 11402 | fi |
25fbec5b | 11403 | as_executable_p=$as_test_x |
ad6254c5 AK |
11404 | |
11405 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11406 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11407 | |
11408 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11409 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11410 | |
11411 | ||
ad6254c5 | 11412 | exec 6>&1 |
f11781c5 AK |
11413 | ## ----------------------------------- ## |
11414 | ## Main body of $CONFIG_STATUS script. ## | |
11415 | ## ----------------------------------- ## | |
11416 | _ASEOF | |
11417 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 11418 | |
f11781c5 AK |
11419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11420 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 11421 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11422 | # values after options handling. |
11423 | ac_log=" | |
ad6254c5 | 11424 | This file was extended by $as_me, which was |
f11781c5 | 11425 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
11426 | |
11427 | CONFIG_FILES = $CONFIG_FILES | |
11428 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11429 | CONFIG_LINKS = $CONFIG_LINKS | |
11430 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11431 | $ $0 $@ | |
11432 | ||
7a197a62 AK |
11433 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11434 | " | |
11435 | ||
ad6254c5 AK |
11436 | _ACEOF |
11437 | ||
ec6a6fbe AK |
11438 | case $ac_config_files in *" |
11439 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11440 | esac | |
11441 | ||
11442 | case $ac_config_headers in *" | |
11443 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11444 | esac | |
11445 | ||
11446 | ||
11447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 11448 | # Files that config.status was made for. |
68f2de6d AK |
11449 | config_files="$ac_config_files" |
11450 | config_headers="$ac_config_headers" | |
ad6254c5 | 11451 | |
7a197a62 | 11452 | _ACEOF |
ad6254c5 | 11453 | |
ec6a6fbe | 11454 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 11455 | ac_cs_usage="\ |
f11781c5 AK |
11456 | \`$as_me' instantiates files and other configuration actions |
11457 | from templates according to the current configuration. Unless the files | |
11458 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 11459 | |
f11781c5 | 11460 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
11461 | |
11462 | -h, --help print this help, then exit | |
25fbec5b | 11463 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 11464 | --config print configuration, then exit |
ec6a6fbe AK |
11465 | -q, --quiet, --silent |
11466 | do not print progress messages | |
ad6254c5 AK |
11467 | -d, --debug don't remove temporary files |
11468 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
11469 | --file=FILE[:TEMPLATE] |
11470 | instantiate the configuration file FILE | |
11471 | --header=FILE[:TEMPLATE] | |
11472 | instantiate the configuration header FILE | |
ad6254c5 AK |
11473 | |
11474 | Configuration files: | |
11475 | $config_files | |
11476 | ||
72b2cb61 AK |
11477 | Configuration headers: |
11478 | $config_headers | |
11479 | ||
f11781c5 | 11480 | Report bugs to the package provider." |
ad6254c5 | 11481 | |
7a197a62 | 11482 | _ACEOF |
ec6a6fbe | 11483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 11484 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
11485 | ac_cs_version="\\ |
11486 | config.status | |
f11781c5 AK |
11487 | configured by $0, generated by GNU Autoconf 2.66, |
11488 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 11489 | |
f11781c5 | 11490 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
11491 | This config.status script is free software; the Free Software Foundation |
11492 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11493 | |
11494 | ac_pwd='$ac_pwd' | |
11495 | srcdir='$srcdir' | |
11496 | INSTALL='$INSTALL' | |
fddafd51 | 11497 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
11498 | AWK='$AWK' |
11499 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
11500 | _ACEOF |
11501 | ||
ec6a6fbe AK |
11502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11503 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
11504 | ac_need_defaults=: |
11505 | while test $# != 0 | |
11506 | do | |
11507 | case $1 in | |
11508 | --*=*) | |
7a197a62 AK |
11509 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11510 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11511 | ac_shift=: |
11512 | ;; | |
7a197a62 | 11513 | *) |
ad6254c5 AK |
11514 | ac_option=$1 |
11515 | ac_optarg=$2 | |
11516 | ac_shift=shift | |
11517 | ;; | |
ad6254c5 AK |
11518 | esac |
11519 | ||
11520 | case $ac_option in | |
11521 | # Handling of the options. | |
ad6254c5 AK |
11522 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11523 | ac_cs_recheck=: ;; | |
7a197a62 | 11524 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 11525 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
11526 | --config | --confi | --conf | --con | --co | --c ) |
11527 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 11528 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11529 | debug=: ;; |
11530 | --file | --fil | --fi | --f ) | |
11531 | $ac_shift | |
ec6a6fbe AK |
11532 | case $ac_optarg in |
11533 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11534 | esac | |
f11781c5 | 11535 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11536 | ac_need_defaults=false;; |
11537 | --header | --heade | --head | --hea ) | |
11538 | $ac_shift | |
ec6a6fbe AK |
11539 | case $ac_optarg in |
11540 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11541 | esac | |
f11781c5 | 11542 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11543 | ac_need_defaults=false;; |
7a197a62 AK |
11544 | --he | --h) |
11545 | # Conflict between --help and --header | |
f11781c5 AK |
11546 | as_fn_error $? "ambiguous option: \`$1' |
11547 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11548 | --help | --hel | -h ) |
ec6a6fbe | 11549 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11550 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11551 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11552 | ac_cs_silent=: ;; | |
11553 | ||
11554 | # This is an error. | |
f11781c5 AK |
11555 | -*) as_fn_error $? "unrecognized option: \`$1' |
11556 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11557 | |
f11781c5 | 11558 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11559 | ac_need_defaults=false ;; |
ad6254c5 AK |
11560 | |
11561 | esac | |
11562 | shift | |
11563 | done | |
11564 | ||
11565 | ac_configure_extra_args= | |
11566 | ||
11567 | if $ac_cs_silent; then | |
11568 | exec 6>/dev/null | |
11569 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11570 | fi | |
11571 | ||
11572 | _ACEOF | |
ec6a6fbe | 11573 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11574 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11575 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11576 | shift | |
11577 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11578 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11579 | export CONFIG_SHELL |
ec6a6fbe | 11580 | exec "\$@" |
ad6254c5 AK |
11581 | fi |
11582 | ||
11583 | _ACEOF | |
ec6a6fbe | 11584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11585 | exec 5>>config.log |
11586 | { | |
11587 | echo | |
11588 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11589 | ## Running $as_me. ## | |
11590 | _ASBOX | |
ec6a6fbe | 11591 | $as_echo "$ac_log" |
7a197a62 | 11592 | } >&5 |
ad6254c5 | 11593 | |
7a197a62 | 11594 | _ACEOF |
ec6a6fbe | 11595 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11596 | _ACEOF |
ad6254c5 | 11597 | |
ec6a6fbe | 11598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11599 | |
11600 | # Handling of arguments. | |
ad6254c5 AK |
11601 | for ac_config_target in $ac_config_targets |
11602 | do | |
7a197a62 AK |
11603 | case $ac_config_target in |
11604 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11605 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11606 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11607 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11608 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11609 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11610 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11611 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11612 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11613 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 11614 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
11615 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11616 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
2bc1d759 | 11617 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; |
cdd50823 | 11618 | "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;; |
7a197a62 | 11619 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11620 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11621 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11622 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11623 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11624 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11625 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11626 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11627 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11628 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11629 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
40dbaac8 | 11630 | "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;; |
7a197a62 | 11631 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
3ba4a195 | 11632 | "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;; |
7126d8c2 AK |
11633 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; |
11634 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
11635 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
93bd259b AK |
11636 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11637 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11638 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11639 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11640 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11641 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11642 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11643 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
a30491b2 | 11644 | "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;; |
dac3c36f | 11645 | "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;; |
da532741 | 11646 | "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;; |
595eaf92 | 11647 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
11648 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11649 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
4417a8bd | 11650 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; |
7a197a62 | 11651 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11652 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11653 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
9493f1df | 11654 | "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;; |
7a197a62 | 11655 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11656 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11657 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11658 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11659 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
6bbbcf42 | 11660 | "verity/Makefile") CONFIG_FILES="$CONFIG_FILES verity/Makefile" ;; |
7a197a62 | 11661 | |
f11781c5 | 11662 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11663 | esac |
ad6254c5 AK |
11664 | done |
11665 | ||
7a197a62 | 11666 | |
ad6254c5 AK |
11667 | # If the user did not use the arguments to specify the items to instantiate, |
11668 | # then the envvar interface is used. Set only those that are not. | |
11669 | # We use the long form for the default assignment because of an extremely | |
11670 | # bizarre bug on SunOS 4.1.3. | |
11671 | if $ac_need_defaults; then | |
11672 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11673 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11674 | fi |
11675 | ||
11676 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11677 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11678 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11679 | # Hook for its removal unless debugging. |
11680 | # Note that there is a small window in which the directory will not be cleaned: | |
11681 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11682 | $debug || |
11683 | { | |
7a197a62 AK |
11684 | tmp= |
11685 | trap 'exit_status=$? | |
11686 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11687 | ' 0 | |
f11781c5 | 11688 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11689 | } |
ad6254c5 AK |
11690 | # Create a (secure) tmp directory for tmp files. |
11691 | ||
11692 | { | |
7a197a62 | 11693 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11694 | test -n "$tmp" && test -d "$tmp" |
11695 | } || | |
11696 | { | |
7a197a62 AK |
11697 | tmp=./conf$$-$RANDOM |
11698 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11699 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11700 | |
ec6a6fbe AK |
11701 | # Set up the scripts for CONFIG_FILES section. |
11702 | # No need to generate them if there are no CONFIG_FILES. | |
11703 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11704 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11705 | |
68f2de6d | 11706 | |
f11781c5 AK |
11707 | ac_cr=`echo X | tr X '\015'` |
11708 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11709 | # But we know of no other shell where ac_cr would be empty at this | |
11710 | # point, so we can use a bashism as a fallback. | |
11711 | if test "x$ac_cr" = x; then | |
11712 | eval ac_cr=\$\'\\r\' | |
11713 | fi | |
ec6a6fbe AK |
11714 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11715 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11716 | ac_cs_awk_cr='\\r' | |
11717 | else | |
11718 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11719 | fi |
7a197a62 | 11720 | |
ec6a6fbe | 11721 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11722 | _ACEOF |
7a197a62 | 11723 | |
8106cdd5 | 11724 | |
ec6a6fbe AK |
11725 | { |
11726 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11727 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11728 | echo "_ACEOF" | |
11729 | } >conf$$subs.sh || | |
f11781c5 AK |
11730 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11731 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11732 | ac_delim='%!_!# ' |
11733 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11734 | . ./conf$$subs.sh || |
f11781c5 | 11735 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11736 | |
11737 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11738 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11739 | break |
11740 | elif $ac_last_try; then | |
f11781c5 | 11741 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11742 | else |
11743 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11744 | fi | |
11745 | done | |
ec6a6fbe AK |
11746 | rm -f conf$$subs.sh |
11747 | ||
11748 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11749 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11750 | _ACEOF | |
11751 | sed -n ' | |
11752 | h | |
11753 | s/^/S["/; s/!.*/"]=/ | |
11754 | p | |
11755 | g | |
11756 | s/^[^!]*!// | |
11757 | :repl | |
11758 | t repl | |
11759 | s/'"$ac_delim"'$// | |
11760 | t delim | |
11761 | :nl | |
11762 | h | |
f11781c5 | 11763 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11764 | t more1 |
11765 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11766 | p | |
11767 | n | |
11768 | b repl | |
11769 | :more1 | |
11770 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11771 | p | |
11772 | g | |
11773 | s/.\{148\}// | |
11774 | t nl | |
11775 | :delim | |
11776 | h | |
f11781c5 | 11777 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11778 | t more2 |
11779 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11780 | p | |
11781 | b | |
11782 | :more2 | |
11783 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11784 | p | |
11785 | g | |
11786 | s/.\{148\}// | |
11787 | t delim | |
11788 | ' <conf$$subs.awk | sed ' | |
11789 | /^[^""]/{ | |
11790 | N | |
11791 | s/\n// | |
11792 | } | |
11793 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11794 | rm -f conf$$subs.awk | |
11795 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11796 | _ACAWK | |
11797 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11798 | for (key in S) S_is_set[key] = 1 | |
11799 | FS = "\a" | |
7a197a62 | 11800 | |
ec6a6fbe AK |
11801 | } |
11802 | { | |
11803 | line = $ 0 | |
11804 | nfields = split(line, field, "@") | |
11805 | substed = 0 | |
11806 | len = length(field[1]) | |
11807 | for (i = 2; i < nfields; i++) { | |
11808 | key = field[i] | |
11809 | keylen = length(key) | |
11810 | if (S_is_set[key]) { | |
11811 | value = S[key] | |
11812 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11813 | len += length(value) + length(field[++i]) | |
11814 | substed = 1 | |
11815 | } else | |
11816 | len += 1 + keylen | |
11817 | } | |
11818 | ||
11819 | print line | |
11820 | } | |
fddafd51 | 11821 | |
ec6a6fbe | 11822 | _ACAWK |
1995c9ff | 11823 | _ACEOF |
ec6a6fbe AK |
11824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11825 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11826 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11827 | else | |
11828 | cat | |
11829 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11830 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11831 | _ACEOF |
11832 | ||
f11781c5 AK |
11833 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11834 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11835 | # trailing colons and then remove the whole line if VPATH becomes empty |
11836 | # (actually we leave an empty line to preserve line numbers). | |
11837 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11838 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11839 | h | |
11840 | s/// | |
11841 | s/^/:/ | |
11842 | s/[ ]*$/:/ | |
11843 | s/:\$(srcdir):/:/g | |
11844 | s/:\${srcdir}:/:/g | |
11845 | s/:@srcdir@:/:/g | |
11846 | s/^:*// | |
7a197a62 | 11847 | s/:*$// |
f11781c5 AK |
11848 | x |
11849 | s/\(=[ ]*\).*/\1/ | |
11850 | G | |
11851 | s/\n// | |
7a197a62 AK |
11852 | s/^[^=]*=[ ]*$// |
11853 | }' | |
11854 | fi | |
11855 | ||
ec6a6fbe | 11856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11857 | fi # test -n "$CONFIG_FILES" |
11858 | ||
ec6a6fbe AK |
11859 | # Set up the scripts for CONFIG_HEADERS section. |
11860 | # No need to generate them if there are no CONFIG_HEADERS. | |
11861 | # This happens for instance with `./config.status Makefile'. | |
11862 | if test -n "$CONFIG_HEADERS"; then | |
11863 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11864 | BEGIN { | |
11865 | _ACEOF | |
11866 | ||
11867 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11868 | # here-document in config.status, that substitutes the proper values into | |
11869 | # config.h.in to produce config.h. | |
11870 | ||
11871 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11872 | # handling of long lines. | |
11873 | ac_delim='%!_!# ' | |
11874 | for ac_last_try in false false :; do | |
11875 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11876 | if test -z "$ac_t"; then | |
11877 | break | |
11878 | elif $ac_last_try; then | |
f11781c5 | 11879 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11880 | else |
11881 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11882 | fi | |
11883 | done | |
11884 | ||
11885 | # For the awk script, D is an array of macro values keyed by name, | |
11886 | # likewise P contains macro parameters if any. Preserve backslash | |
11887 | # newline sequences. | |
11888 | ||
11889 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11890 | sed -n ' | |
11891 | s/.\{148\}/&'"$ac_delim"'/g | |
11892 | t rset | |
11893 | :rset | |
11894 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11895 | t def | |
11896 | d | |
11897 | :def | |
11898 | s/\\$// | |
11899 | t bsnl | |
11900 | s/["\\]/\\&/g | |
11901 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11902 | D["\1"]=" \3"/p | |
11903 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11904 | d | |
11905 | :bsnl | |
11906 | s/["\\]/\\&/g | |
11907 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11908 | D["\1"]=" \3\\\\\\n"\\/p | |
11909 | t cont | |
11910 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11911 | t cont | |
11912 | d | |
11913 | :cont | |
11914 | n | |
11915 | s/.\{148\}/&'"$ac_delim"'/g | |
11916 | t clear | |
11917 | :clear | |
11918 | s/\\$// | |
11919 | t bsnlc | |
11920 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11921 | d | |
11922 | :bsnlc | |
11923 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11924 | b cont | |
11925 | ' <confdefs.h | sed ' | |
11926 | s/'"$ac_delim"'/"\\\ | |
11927 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11928 | ||
11929 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11930 | for (key in D) D_is_set[key] = 1 | |
11931 | FS = "\a" | |
11932 | } | |
11933 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11934 | line = \$ 0 | |
11935 | split(line, arg, " ") | |
11936 | if (arg[1] == "#") { | |
11937 | defundef = arg[2] | |
11938 | mac1 = arg[3] | |
11939 | } else { | |
11940 | defundef = substr(arg[1], 2) | |
11941 | mac1 = arg[2] | |
11942 | } | |
11943 | split(mac1, mac2, "(") #) | |
11944 | macro = mac2[1] | |
11945 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11946 | if (D_is_set[macro]) { | |
11947 | # Preserve the white space surrounding the "#". | |
11948 | print prefix "define", macro P[macro] D[macro] | |
11949 | next | |
11950 | } else { | |
11951 | # Replace #undef with comments. This is necessary, for example, | |
11952 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11953 | # on some systems where configure will not decide to define it. | |
11954 | if (defundef == "undef") { | |
11955 | print "/*", prefix defundef, macro, "*/" | |
11956 | next | |
11957 | } | |
11958 | } | |
11959 | } | |
11960 | { print } | |
11961 | _ACAWK | |
11962 | _ACEOF | |
11963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11964 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11965 | fi # test -n "$CONFIG_HEADERS" |
11966 | ||
7a197a62 | 11967 | |
ec6a6fbe AK |
11968 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11969 | shift | |
11970 | for ac_tag | |
7a197a62 AK |
11971 | do |
11972 | case $ac_tag in | |
11973 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11974 | esac | |
11975 | case $ac_mode$ac_tag in | |
11976 | :[FHL]*:*);; | |
f11781c5 | 11977 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11978 | :[FH]-) ac_tag=-:-;; |
11979 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11980 | esac | |
11981 | ac_save_IFS=$IFS | |
11982 | IFS=: | |
11983 | set x $ac_tag | |
11984 | IFS=$ac_save_IFS | |
11985 | shift | |
11986 | ac_file=$1 | |
11987 | shift | |
11988 | ||
11989 | case $ac_mode in | |
11990 | :L) ac_source=$1;; | |
11991 | :[FH]) | |
11992 | ac_file_inputs= | |
11993 | for ac_f | |
11994 | do | |
11995 | case $ac_f in | |
11996 | -) ac_f="$tmp/stdin";; | |
11997 | *) # Look for the file first in the build tree, then in the source tree | |
11998 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11999 | # because $ac_f cannot contain `:'. | |
12000 | test -f "$ac_f" || | |
12001 | case $ac_f in | |
12002 | [\\/$]*) false;; | |
12003 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12004 | esac || | |
f11781c5 | 12005 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 12006 | esac |
ec6a6fbe | 12007 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 12008 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
12009 | done |
12010 | ||
12011 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12012 | # use $as_me), people would be surprised to read: | |
12013 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
12014 | configure_input='Generated from '` |
12015 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12016 | `' by configure.' | |
7a197a62 AK |
12017 | if test x"$ac_file" != x-; then |
12018 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 12020 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 12021 | fi |
ec6a6fbe AK |
12022 | # Neutralize special characters interpreted by sed in replacement strings. |
12023 | case $configure_input in #( | |
12024 | *\&* | *\|* | *\\* ) | |
12025 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12026 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12027 | *) ac_sed_conf_input=$configure_input;; | |
12028 | esac | |
7a197a62 AK |
12029 | |
12030 | case $ac_tag in | |
ec6a6fbe | 12031 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 12032 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
12033 | esac |
12034 | ;; | |
80992638 | 12035 | esac |
8106cdd5 | 12036 | |
7a197a62 | 12037 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 12038 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
12039 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
12040 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 12041 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 12042 | $as_echo X"$ac_file" | |
7a197a62 AK |
12043 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12044 | s//\1/ | |
12045 | q | |
12046 | } | |
12047 | /^X\(\/\/\)[^/].*/{ | |
12048 | s//\1/ | |
12049 | q | |
12050 | } | |
12051 | /^X\(\/\/\)$/{ | |
12052 | s//\1/ | |
12053 | q | |
12054 | } | |
12055 | /^X\(\/\).*/{ | |
12056 | s//\1/ | |
12057 | q | |
12058 | } | |
12059 | s/.*/./; q'` | |
f11781c5 | 12060 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
12061 | ac_builddir=. |
12062 | ||
7a197a62 AK |
12063 | case "$ac_dir" in |
12064 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12065 | *) | |
ec6a6fbe | 12066 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 12067 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 12068 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
12069 | case $ac_top_builddir_sub in |
12070 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12071 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12072 | esac ;; | |
12073 | esac | |
12074 | ac_abs_top_builddir=$ac_pwd | |
12075 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12076 | # for backward compatibility: | |
12077 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
12078 | |
12079 | case $srcdir in | |
7a197a62 | 12080 | .) # We are building in place. |
ad6254c5 | 12081 | ac_srcdir=. |
7a197a62 AK |
12082 | ac_top_srcdir=$ac_top_builddir_sub |
12083 | ac_abs_top_srcdir=$ac_pwd ;; | |
12084 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 12085 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
12086 | ac_top_srcdir=$srcdir |
12087 | ac_abs_top_srcdir=$srcdir ;; | |
12088 | *) # Relative name. | |
12089 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12090 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12091 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 12092 | esac |
7a197a62 | 12093 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 12094 | |
ad6254c5 | 12095 | |
7a197a62 AK |
12096 | case $ac_mode in |
12097 | :F) | |
12098 | # | |
12099 | # CONFIG_FILE | |
12100 | # | |
ad6254c5 AK |
12101 | |
12102 | case $INSTALL in | |
12103 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 12104 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 12105 | esac |
fddafd51 ZK |
12106 | ac_MKDIR_P=$MKDIR_P |
12107 | case $MKDIR_P in | |
12108 | [\\/$]* | ?:[\\/]* ) ;; | |
12109 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
12110 | esac | |
7a197a62 | 12111 | _ACEOF |
795ca3e5 | 12112 | |
ec6a6fbe | 12113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12114 | # If the template does not know about datarootdir, expand it. |
12115 | # FIXME: This hack should be removed a few years after 2.60. | |
12116 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
12117 | ac_sed_dataroot=' |
12118 | /datarootdir/ { | |
7a197a62 AK |
12119 | p |
12120 | q | |
12121 | } | |
12122 | /@datadir@/p | |
12123 | /@docdir@/p | |
12124 | /@infodir@/p | |
12125 | /@localedir@/p | |
f11781c5 | 12126 | /@mandir@/p' |
ec6a6fbe | 12127 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
12128 | *datarootdir*) ac_datarootdir_seen=yes;; |
12129 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 12131 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 12132 | _ACEOF |
ec6a6fbe | 12133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
12134 | ac_datarootdir_hack=' |
12135 | s&@datadir@&$datadir&g | |
12136 | s&@docdir@&$docdir&g | |
12137 | s&@infodir@&$infodir&g | |
12138 | s&@localedir@&$localedir&g | |
12139 | s&@mandir@&$mandir&g | |
f11781c5 | 12140 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
12141 | esac |
12142 | _ACEOF | |
12143 | ||
12144 | # Neutralize VPATH when `$srcdir' = `.'. | |
12145 | # Shell code in configure.ac might set extrasub. | |
12146 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
12147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12148 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
12149 | $extrasub |
12150 | _ACEOF | |
ec6a6fbe | 12151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
12152 | :t |
12153 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 12154 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 12155 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 12156 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
12157 | s&@srcdir@&$ac_srcdir&;t t |
12158 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12159 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12160 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12161 | s&@builddir@&$ac_builddir&;t t | |
12162 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12163 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12164 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 12165 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 12166 | $ac_datarootdir_hack |
ec6a6fbe AK |
12167 | " |
12168 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 12169 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
12170 | |
12171 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
12172 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
12173 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12175 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 12176 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 12177 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
12178 | |
12179 | rm -f "$tmp/stdin" | |
72b2cb61 | 12180 | case $ac_file in |
ec6a6fbe AK |
12181 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
12182 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
12183 | esac \ | |
f11781c5 | 12184 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
12185 | ;; |
12186 | :H) | |
12187 | # | |
12188 | # CONFIG_HEADER | |
12189 | # | |
72b2cb61 | 12190 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
12191 | { |
12192 | $as_echo "/* $configure_input */" \ | |
12193 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
12194 | } >"$tmp/config.h" \ | |
f11781c5 | 12195 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 12196 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 12197 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 12198 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 12199 | else |
ec6a6fbe AK |
12200 | rm -f "$ac_file" |
12201 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 12202 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
12203 | fi |
12204 | else | |
ec6a6fbe AK |
12205 | $as_echo "/* $configure_input */" \ |
12206 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 12207 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 12208 | fi |
7a197a62 AK |
12209 | ;; |
12210 | ||
12211 | ||
12212 | esac | |
12213 | ||
12214 | done # for ac_tag | |
795ca3e5 | 12215 | |
795ca3e5 | 12216 | |
f11781c5 | 12217 | as_fn_exit 0 |
ad6254c5 | 12218 | _ACEOF |
ad6254c5 AK |
12219 | ac_clean_files=$ac_clean_files_save |
12220 | ||
ec6a6fbe | 12221 | test $ac_write_fail = 0 || |
f11781c5 | 12222 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 12223 | |
ad6254c5 AK |
12224 | |
12225 | # configure is writing to config.log, and then calls config.status. | |
12226 | # config.status does its own redirection, appending to config.log. | |
12227 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12228 | # by configure, so config.status won't be able to write to it; its | |
12229 | # output is simply discarded. So we exec the FD to /dev/null, | |
12230 | # effectively closing config.log, so it can be properly (re)opened and | |
12231 | # appended to by config.status. When coming back to configure, we | |
12232 | # need to make the FD available again. | |
12233 | if test "$no_create" != yes; then | |
12234 | ac_cs_success=: | |
12235 | ac_config_status_args= | |
12236 | test "$silent" = yes && | |
12237 | ac_config_status_args="$ac_config_status_args --quiet" | |
12238 | exec 5>/dev/null | |
12239 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12240 | exec 5>>config.log | |
12241 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12242 | # would make configure fail if this is the last instruction. | |
f11781c5 | 12243 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 12244 | fi |
ec6a6fbe | 12245 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
12247 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
12248 | fi | |
795ca3e5 | 12249 | |
2dc95e1c AK |
12250 | |
12251 | if test x$ODIRECT != xyes; then | |
f11781c5 | 12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 12253 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 12254 | fi |