]>
Commit | Line | Data |
---|---|---|
fe000966 DM |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.67 for pve-cluster 1.0. | |
4 | # | |
5 | # Report bugs to <support@proxmox.com>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
10 | # Foundation, Inc. | |
11 | # | |
12 | # | |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | case $0 in #(( | |
95 | *[\\/]* ) as_myself=$0 ;; | |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
102 | done | |
103 | IFS=$as_save_IFS | |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
114 | exit 1 | |
115 | fi | |
116 | ||
117 | # Unset variables that we do not need and which cause bugs (e.g. in | |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
124 | done | |
125 | PS1='$ ' | |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
130 | LC_ALL=C | |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
134 | ||
135 | # CDPATH. | |
136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
137 | ||
138 | if test "x$CONFIG_SHELL" = x; then | |
139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
140 | emulate sh | |
141 | NULLCMD=: | |
142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
143 | # is contrary to our usage. Disable this feature. | |
144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
145 | setopt NO_GLOB_SUBST | |
146 | else | |
147 | case \`(set -o) 2>/dev/null\` in #( | |
148 | *posix*) : | |
149 | set -o posix ;; #( | |
150 | *) : | |
151 | ;; | |
152 | esac | |
153 | fi | |
154 | " | |
155 | as_required="as_fn_return () { (exit \$1); } | |
156 | as_fn_success () { as_fn_return 0; } | |
157 | as_fn_failure () { as_fn_return 1; } | |
158 | as_fn_ret_success () { return 0; } | |
159 | as_fn_ret_failure () { return 1; } | |
160 | ||
161 | exitcode=0 | |
162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
167 | ||
168 | else | |
169 | exitcode=1; echo positional parameters were not saved. | |
170 | fi | |
171 | test x\$exitcode = x0 || exit 1" | |
172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
176 | test \$(( 1 + 1 )) = 2 || exit 1" | |
177 | if (eval "$as_required") 2>/dev/null; then : | |
178 | as_have_required=yes | |
179 | else | |
180 | as_have_required=no | |
181 | fi | |
182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
183 | ||
184 | else | |
185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
186 | as_found=false | |
187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
188 | do | |
189 | IFS=$as_save_IFS | |
190 | test -z "$as_dir" && as_dir=. | |
191 | as_found=: | |
192 | case $as_dir in #( | |
193 | /*) | |
194 | for as_base in sh bash ksh sh5; do | |
195 | # Try only shells that exist, to save several forks. | |
196 | as_shell=$as_dir/$as_base | |
197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | CONFIG_SHELL=$as_shell as_have_required=yes | |
200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
201 | break 2 | |
202 | fi | |
203 | fi | |
204 | done;; | |
205 | esac | |
206 | as_found=false | |
207 | done | |
208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
210 | CONFIG_SHELL=$SHELL as_have_required=yes | |
211 | fi; } | |
212 | IFS=$as_save_IFS | |
213 | ||
214 | ||
215 | if test "x$CONFIG_SHELL" != x; then : | |
216 | # We cannot yet assume a decent shell, so we have to provide a | |
217 | # neutralization value for shells without unset; and this also | |
218 | # works around shells that cannot unset nonexistent variables. | |
219 | BASH_ENV=/dev/null | |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
224 | fi | |
225 | ||
226 | if test x$as_have_required = xno; then : | |
227 | $as_echo "$0: This script requires a shell more modern than all" | |
228 | $as_echo "$0: the shells that I found on your system." | |
229 | if test x${ZSH_VERSION+set} = xset ; then | |
230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
232 | else | |
233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
234 | $0: support@proxmox.com about your system, including any | |
235 | $0: error possibly output before this message. Then install | |
236 | $0: a modern shell, or manually run the script under such a | |
237 | $0: shell if you do have one." | |
238 | fi | |
239 | exit 1 | |
240 | fi | |
241 | fi | |
242 | fi | |
243 | SHELL=${CONFIG_SHELL-/bin/sh} | |
244 | export SHELL | |
245 | # Unset more variables known to interfere with behavior of common tools. | |
246 | CLICOLOR_FORCE= GREP_OPTIONS= | |
247 | unset CLICOLOR_FORCE GREP_OPTIONS | |
248 | ||
249 | ## --------------------- ## | |
250 | ## M4sh Shell Functions. ## | |
251 | ## --------------------- ## | |
252 | # as_fn_unset VAR | |
253 | # --------------- | |
254 | # Portably unset VAR. | |
255 | as_fn_unset () | |
256 | { | |
257 | { eval $1=; unset $1;} | |
258 | } | |
259 | as_unset=as_fn_unset | |
260 | ||
261 | # as_fn_set_status STATUS | |
262 | # ----------------------- | |
263 | # Set $? to STATUS, without forking. | |
264 | as_fn_set_status () | |
265 | { | |
266 | return $1 | |
267 | } # as_fn_set_status | |
268 | ||
269 | # as_fn_exit STATUS | |
270 | # ----------------- | |
271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
272 | as_fn_exit () | |
273 | { | |
274 | set +e | |
275 | as_fn_set_status $1 | |
276 | exit $1 | |
277 | } # as_fn_exit | |
278 | ||
279 | # as_fn_mkdir_p | |
280 | # ------------- | |
281 | # Create "$as_dir" as a directory, including parents if necessary. | |
282 | as_fn_mkdir_p () | |
283 | { | |
284 | ||
285 | case $as_dir in #( | |
286 | -*) as_dir=./$as_dir;; | |
287 | esac | |
288 | test -d "$as_dir" || eval $as_mkdir_p || { | |
289 | as_dirs= | |
290 | while :; do | |
291 | case $as_dir in #( | |
292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
293 | *) as_qdir=$as_dir;; | |
294 | esac | |
295 | as_dirs="'$as_qdir' $as_dirs" | |
296 | as_dir=`$as_dirname -- "$as_dir" || | |
297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
298 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
299 | X"$as_dir" : 'X\(//\)$' \| \ | |
300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
301 | $as_echo X"$as_dir" | | |
302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
303 | s//\1/ | |
304 | q | |
305 | } | |
306 | /^X\(\/\/\)[^/].*/{ | |
307 | s//\1/ | |
308 | q | |
309 | } | |
310 | /^X\(\/\/\)$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\).*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | s/.*/./; q'` | |
319 | test -d "$as_dir" && break | |
320 | done | |
321 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
322 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
323 | ||
324 | ||
325 | } # as_fn_mkdir_p | |
326 | # as_fn_append VAR VALUE | |
327 | # ---------------------- | |
328 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
329 | # advantage of any shell optimizations that allow amortized linear growth over | |
330 | # repeated appends, instead of the typical quadratic growth present in naive | |
331 | # implementations. | |
332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
333 | eval 'as_fn_append () | |
334 | { | |
335 | eval $1+=\$2 | |
336 | }' | |
337 | else | |
338 | as_fn_append () | |
339 | { | |
340 | eval $1=\$$1\$2 | |
341 | } | |
342 | fi # as_fn_append | |
343 | ||
344 | # as_fn_arith ARG... | |
345 | # ------------------ | |
346 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
348 | # must be portable across $(()) and expr. | |
349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
350 | eval 'as_fn_arith () | |
351 | { | |
352 | as_val=$(( $* )) | |
353 | }' | |
354 | else | |
355 | as_fn_arith () | |
356 | { | |
357 | as_val=`expr "$@" || test $? -eq 1` | |
358 | } | |
359 | fi # as_fn_arith | |
360 | ||
361 | ||
362 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
363 | # ---------------------------------------- | |
364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
366 | # script with STATUS, using 1 if that was 0. | |
367 | as_fn_error () | |
368 | { | |
369 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
370 | if test "$4"; then | |
371 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
373 | fi | |
374 | $as_echo "$as_me: error: $2" >&2 | |
375 | as_fn_exit $as_status | |
376 | } # as_fn_error | |
377 | ||
378 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
380 | as_expr=expr | |
381 | else | |
382 | as_expr=false | |
383 | fi | |
384 | ||
385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
386 | as_basename=basename | |
387 | else | |
388 | as_basename=false | |
389 | fi | |
390 | ||
391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
392 | as_dirname=dirname | |
393 | else | |
394 | as_dirname=false | |
395 | fi | |
396 | ||
397 | as_me=`$as_basename -- "$0" || | |
398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
399 | X"$0" : 'X\(//\)$' \| \ | |
400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
401 | $as_echo X/"$0" | | |
402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
403 | s//\1/ | |
404 | q | |
405 | } | |
406 | /^X\/\(\/\/\)$/{ | |
407 | s//\1/ | |
408 | q | |
409 | } | |
410 | /^X\/\(\/\).*/{ | |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | s/.*/./; q'` | |
415 | ||
416 | # Avoid depending upon Character Ranges. | |
417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
420 | as_cr_digits='0123456789' | |
421 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
422 | ||
423 | ||
424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
429 | sed -n ' | |
430 | p | |
431 | /[$]LINENO/= | |
432 | ' <$as_myself | | |
433 | sed ' | |
434 | s/[$]LINENO.*/&-/ | |
435 | t lineno | |
436 | b | |
437 | :lineno | |
438 | N | |
439 | :loop | |
440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
441 | t loop | |
442 | s/-\n.*// | |
443 | ' >$as_me.lineno && | |
444 | chmod +x "$as_me.lineno" || | |
445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
446 | ||
447 | # Don't try to exec as it changes $[0], causing all sort of problems | |
448 | # (the dirname of $[0] is not the place where we might find the | |
449 | # original and so on. Autoconf is especially sensitive to this). | |
450 | . "./$as_me.lineno" | |
451 | # Exit status is that of the last command. | |
452 | exit | |
453 | } | |
454 | ||
455 | ECHO_C= ECHO_N= ECHO_T= | |
456 | case `echo -n x` in #((((( | |
457 | -n*) | |
458 | case `echo 'xy\c'` in | |
459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
460 | xy) ECHO_C='\c';; | |
461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
462 | ECHO_T=' ';; | |
463 | esac;; | |
464 | *) | |
465 | ECHO_N='-n';; | |
466 | esac | |
467 | ||
468 | rm -f conf$$ conf$$.exe conf$$.file | |
469 | if test -d conf$$.dir; then | |
470 | rm -f conf$$.dir/conf$$.file | |
471 | else | |
472 | rm -f conf$$.dir | |
473 | mkdir conf$$.dir 2>/dev/null | |
474 | fi | |
475 | if (echo >conf$$.file) 2>/dev/null; then | |
476 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
477 | as_ln_s='ln -s' | |
478 | # ... but there are two gotchas: | |
479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
481 | # In both cases, we have to default to `cp -p'. | |
482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
483 | as_ln_s='cp -p' | |
484 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s=ln | |
486 | else | |
487 | as_ln_s='cp -p' | |
488 | fi | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
493 | rmdir conf$$.dir 2>/dev/null | |
494 | ||
495 | if mkdir -p . 2>/dev/null; then | |
496 | as_mkdir_p='mkdir -p "$as_dir"' | |
497 | else | |
498 | test -d ./-p && rmdir ./-p | |
499 | as_mkdir_p=false | |
500 | fi | |
501 | ||
502 | if test -x / >/dev/null 2>&1; then | |
503 | as_test_x='test -x' | |
504 | else | |
505 | if ls -dL / >/dev/null 2>&1; then | |
506 | as_ls_L_option=L | |
507 | else | |
508 | as_ls_L_option= | |
509 | fi | |
510 | as_test_x=' | |
511 | eval sh -c '\'' | |
512 | if test -d "$1"; then | |
513 | test -d "$1/."; | |
514 | else | |
515 | case $1 in #( | |
516 | -*)set "./$1";; | |
517 | esac; | |
518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
519 | ???[sx]*):;;*)false;;esac;fi | |
520 | '\'' sh | |
521 | ' | |
522 | fi | |
523 | as_executable_p=$as_test_x | |
524 | ||
525 | # Sed expression to map a string onto a valid CPP name. | |
526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
527 | ||
528 | # Sed expression to map a string onto a valid variable name. | |
529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | ||
532 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
533 | exec 6>&1 | |
534 | ||
535 | # Name of the host. | |
536 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
537 | # so uname gets run too. | |
538 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
539 | ||
540 | # | |
541 | # Initializations. | |
542 | # | |
543 | ac_default_prefix=/usr/local | |
544 | ac_clean_files= | |
545 | ac_config_libobj_dir=. | |
546 | LIBOBJS= | |
547 | cross_compiling=no | |
548 | subdirs= | |
549 | MFLAGS= | |
550 | MAKEFLAGS= | |
551 | ||
552 | # Identity of this package. | |
553 | PACKAGE_NAME='pve-cluster' | |
554 | PACKAGE_TARNAME='pve-cluster' | |
555 | PACKAGE_VERSION='1.0' | |
556 | PACKAGE_STRING='pve-cluster 1.0' | |
557 | PACKAGE_BUGREPORT='support@proxmox.com' | |
558 | PACKAGE_URL='' | |
559 | ||
560 | ac_unique_file="src/memdb.c" | |
561 | ac_default_prefix=/usr | |
562 | # Factoring default headers for most tests. | |
563 | ac_includes_default="\ | |
564 | #include <stdio.h> | |
565 | #ifdef HAVE_SYS_TYPES_H | |
566 | # include <sys/types.h> | |
567 | #endif | |
568 | #ifdef HAVE_SYS_STAT_H | |
569 | # include <sys/stat.h> | |
570 | #endif | |
571 | #ifdef STDC_HEADERS | |
572 | # include <stdlib.h> | |
573 | # include <stddef.h> | |
574 | #else | |
575 | # ifdef HAVE_STDLIB_H | |
576 | # include <stdlib.h> | |
577 | # endif | |
578 | #endif | |
579 | #ifdef HAVE_STRING_H | |
580 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
581 | # include <memory.h> | |
582 | # endif | |
583 | # include <string.h> | |
584 | #endif | |
585 | #ifdef HAVE_STRINGS_H | |
586 | # include <strings.h> | |
587 | #endif | |
588 | #ifdef HAVE_INTTYPES_H | |
589 | # include <inttypes.h> | |
590 | #endif | |
591 | #ifdef HAVE_STDINT_H | |
592 | # include <stdint.h> | |
593 | #endif | |
594 | #ifdef HAVE_UNISTD_H | |
595 | # include <unistd.h> | |
596 | #endif" | |
597 | ||
598 | ac_subst_vars='am__EXEEXT_FALSE | |
599 | am__EXEEXT_TRUE | |
600 | LTLIBOBJS | |
601 | LIBOBJS | |
602 | EGREP | |
603 | GREP | |
604 | CPP | |
605 | SQLITE3_LIBS | |
606 | SQLITE3_CFLAGS | |
607 | QB_LIBS | |
608 | QB_CFLAGS | |
609 | COROSYNC_LIBS | |
610 | COROSYNC_CFLAGS | |
611 | FUSE_LIBS | |
612 | FUSE_CFLAGS | |
613 | GLIB_LIBS | |
614 | GLIB_CFLAGS | |
615 | LIBRRD_LIBS | |
616 | LIBRRD_CFLAGS | |
617 | CHECK_LIBS | |
618 | CHECK_CFLAGS | |
619 | PKG_CONFIG_LIBDIR | |
620 | PKG_CONFIG_PATH | |
621 | PKG_CONFIG | |
622 | RANLIB | |
623 | am__fastdepCC_FALSE | |
624 | am__fastdepCC_TRUE | |
625 | CCDEPMODE | |
626 | AMDEPBACKSLASH | |
627 | AMDEP_FALSE | |
628 | AMDEP_TRUE | |
629 | am__quote | |
630 | am__include | |
631 | DEPDIR | |
632 | OBJEXT | |
633 | EXEEXT | |
634 | ac_ct_CC | |
635 | CPPFLAGS | |
636 | LDFLAGS | |
637 | CFLAGS | |
638 | CC | |
639 | MAINT | |
640 | MAINTAINER_MODE_FALSE | |
641 | MAINTAINER_MODE_TRUE | |
642 | am__untar | |
643 | am__tar | |
644 | AMTAR | |
645 | am__leading_dot | |
646 | SET_MAKE | |
647 | AWK | |
648 | mkdir_p | |
649 | MKDIR_P | |
650 | INSTALL_STRIP_PROGRAM | |
651 | STRIP | |
652 | install_sh | |
653 | MAKEINFO | |
654 | AUTOHEADER | |
655 | AUTOMAKE | |
656 | AUTOCONF | |
657 | ACLOCAL | |
658 | VERSION | |
659 | PACKAGE | |
660 | CYGPATH_W | |
661 | am__isrc | |
662 | INSTALL_DATA | |
663 | INSTALL_SCRIPT | |
664 | INSTALL_PROGRAM | |
665 | target_alias | |
666 | host_alias | |
667 | build_alias | |
668 | LIBS | |
669 | ECHO_T | |
670 | ECHO_N | |
671 | ECHO_C | |
672 | DEFS | |
673 | mandir | |
674 | localedir | |
675 | libdir | |
676 | psdir | |
677 | pdfdir | |
678 | dvidir | |
679 | htmldir | |
680 | infodir | |
681 | docdir | |
682 | oldincludedir | |
683 | includedir | |
684 | localstatedir | |
685 | sharedstatedir | |
686 | sysconfdir | |
687 | datadir | |
688 | datarootdir | |
689 | libexecdir | |
690 | sbindir | |
691 | bindir | |
692 | program_transform_name | |
693 | prefix | |
694 | exec_prefix | |
695 | PACKAGE_URL | |
696 | PACKAGE_BUGREPORT | |
697 | PACKAGE_STRING | |
698 | PACKAGE_VERSION | |
699 | PACKAGE_TARNAME | |
700 | PACKAGE_NAME | |
701 | PATH_SEPARATOR | |
702 | SHELL' | |
703 | ac_subst_files='' | |
704 | ac_user_opts=' | |
705 | enable_option_checking | |
706 | enable_maintainer_mode | |
707 | enable_dependency_tracking | |
708 | ' | |
709 | ac_precious_vars='build_alias | |
710 | host_alias | |
711 | target_alias | |
712 | CC | |
713 | CFLAGS | |
714 | LDFLAGS | |
715 | LIBS | |
716 | CPPFLAGS | |
717 | PKG_CONFIG | |
718 | PKG_CONFIG_PATH | |
719 | PKG_CONFIG_LIBDIR | |
720 | CHECK_CFLAGS | |
721 | CHECK_LIBS | |
722 | LIBRRD_CFLAGS | |
723 | LIBRRD_LIBS | |
724 | GLIB_CFLAGS | |
725 | GLIB_LIBS | |
726 | FUSE_CFLAGS | |
727 | FUSE_LIBS | |
728 | COROSYNC_CFLAGS | |
729 | COROSYNC_LIBS | |
730 | QB_CFLAGS | |
731 | QB_LIBS | |
732 | SQLITE3_CFLAGS | |
733 | SQLITE3_LIBS | |
734 | CPP' | |
735 | ||
736 | ||
737 | # Initialize some variables set by options. | |
738 | ac_init_help= | |
739 | ac_init_version=false | |
740 | ac_unrecognized_opts= | |
741 | ac_unrecognized_sep= | |
742 | # The variables have the same names as the options, with | |
743 | # dashes changed to underlines. | |
744 | cache_file=/dev/null | |
745 | exec_prefix=NONE | |
746 | no_create= | |
747 | no_recursion= | |
748 | prefix=NONE | |
749 | program_prefix=NONE | |
750 | program_suffix=NONE | |
751 | program_transform_name=s,x,x, | |
752 | silent= | |
753 | site= | |
754 | srcdir= | |
755 | verbose= | |
756 | x_includes=NONE | |
757 | x_libraries=NONE | |
758 | ||
759 | # Installation directory options. | |
760 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
761 | # and all the variables that are supposed to be based on exec_prefix | |
762 | # by default will actually change. | |
763 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
764 | # (The list follows the same order as the GNU Coding Standards.) | |
765 | bindir='${exec_prefix}/bin' | |
766 | sbindir='${exec_prefix}/sbin' | |
767 | libexecdir='${exec_prefix}/libexec' | |
768 | datarootdir='${prefix}/share' | |
769 | datadir='${datarootdir}' | |
770 | sysconfdir='${prefix}/etc' | |
771 | sharedstatedir='${prefix}/com' | |
772 | localstatedir='${prefix}/var' | |
773 | includedir='${prefix}/include' | |
774 | oldincludedir='/usr/include' | |
775 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
776 | infodir='${datarootdir}/info' | |
777 | htmldir='${docdir}' | |
778 | dvidir='${docdir}' | |
779 | pdfdir='${docdir}' | |
780 | psdir='${docdir}' | |
781 | libdir='${exec_prefix}/lib' | |
782 | localedir='${datarootdir}/locale' | |
783 | mandir='${datarootdir}/man' | |
784 | ||
785 | ac_prev= | |
786 | ac_dashdash= | |
787 | for ac_option | |
788 | do | |
789 | # If the previous option needs an argument, assign it. | |
790 | if test -n "$ac_prev"; then | |
791 | eval $ac_prev=\$ac_option | |
792 | ac_prev= | |
793 | continue | |
794 | fi | |
795 | ||
796 | case $ac_option in | |
797 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
798 | *=) ac_optarg= ;; | |
799 | *) ac_optarg=yes ;; | |
800 | esac | |
801 | ||
802 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
803 | ||
804 | case $ac_dashdash$ac_option in | |
805 | --) | |
806 | ac_dashdash=yes ;; | |
807 | ||
808 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
809 | ac_prev=bindir ;; | |
810 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
811 | bindir=$ac_optarg ;; | |
812 | ||
813 | -build | --build | --buil | --bui | --bu) | |
814 | ac_prev=build_alias ;; | |
815 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
816 | build_alias=$ac_optarg ;; | |
817 | ||
818 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
819 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
820 | ac_prev=cache_file ;; | |
821 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
822 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
823 | cache_file=$ac_optarg ;; | |
824 | ||
825 | --config-cache | -C) | |
826 | cache_file=config.cache ;; | |
827 | ||
828 | -datadir | --datadir | --datadi | --datad) | |
829 | ac_prev=datadir ;; | |
830 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
831 | datadir=$ac_optarg ;; | |
832 | ||
833 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
834 | | --dataroo | --dataro | --datar) | |
835 | ac_prev=datarootdir ;; | |
836 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
837 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
838 | datarootdir=$ac_optarg ;; | |
839 | ||
840 | -disable-* | --disable-*) | |
841 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
842 | # Reject names that are not valid shell variable names. | |
843 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
844 | as_fn_error $? "invalid feature name: $ac_useropt" | |
845 | ac_useropt_orig=$ac_useropt | |
846 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
847 | case $ac_user_opts in | |
848 | *" | |
849 | "enable_$ac_useropt" | |
850 | "*) ;; | |
851 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
852 | ac_unrecognized_sep=', ';; | |
853 | esac | |
854 | eval enable_$ac_useropt=no ;; | |
855 | ||
856 | -docdir | --docdir | --docdi | --doc | --do) | |
857 | ac_prev=docdir ;; | |
858 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
859 | docdir=$ac_optarg ;; | |
860 | ||
861 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
862 | ac_prev=dvidir ;; | |
863 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
864 | dvidir=$ac_optarg ;; | |
865 | ||
866 | -enable-* | --enable-*) | |
867 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
868 | # Reject names that are not valid shell variable names. | |
869 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
870 | as_fn_error $? "invalid feature name: $ac_useropt" | |
871 | ac_useropt_orig=$ac_useropt | |
872 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
873 | case $ac_user_opts in | |
874 | *" | |
875 | "enable_$ac_useropt" | |
876 | "*) ;; | |
877 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
878 | ac_unrecognized_sep=', ';; | |
879 | esac | |
880 | eval enable_$ac_useropt=\$ac_optarg ;; | |
881 | ||
882 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
883 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
884 | | --exec | --exe | --ex) | |
885 | ac_prev=exec_prefix ;; | |
886 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
887 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
888 | | --exec=* | --exe=* | --ex=*) | |
889 | exec_prefix=$ac_optarg ;; | |
890 | ||
891 | -gas | --gas | --ga | --g) | |
892 | # Obsolete; use --with-gas. | |
893 | with_gas=yes ;; | |
894 | ||
895 | -help | --help | --hel | --he | -h) | |
896 | ac_init_help=long ;; | |
897 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
898 | ac_init_help=recursive ;; | |
899 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
900 | ac_init_help=short ;; | |
901 | ||
902 | -host | --host | --hos | --ho) | |
903 | ac_prev=host_alias ;; | |
904 | -host=* | --host=* | --hos=* | --ho=*) | |
905 | host_alias=$ac_optarg ;; | |
906 | ||
907 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
908 | ac_prev=htmldir ;; | |
909 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
910 | | --ht=*) | |
911 | htmldir=$ac_optarg ;; | |
912 | ||
913 | -includedir | --includedir | --includedi | --included | --include \ | |
914 | | --includ | --inclu | --incl | --inc) | |
915 | ac_prev=includedir ;; | |
916 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
917 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
918 | includedir=$ac_optarg ;; | |
919 | ||
920 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
921 | ac_prev=infodir ;; | |
922 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
923 | infodir=$ac_optarg ;; | |
924 | ||
925 | -libdir | --libdir | --libdi | --libd) | |
926 | ac_prev=libdir ;; | |
927 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
928 | libdir=$ac_optarg ;; | |
929 | ||
930 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
931 | | --libexe | --libex | --libe) | |
932 | ac_prev=libexecdir ;; | |
933 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
934 | | --libexe=* | --libex=* | --libe=*) | |
935 | libexecdir=$ac_optarg ;; | |
936 | ||
937 | -localedir | --localedir | --localedi | --localed | --locale) | |
938 | ac_prev=localedir ;; | |
939 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
940 | localedir=$ac_optarg ;; | |
941 | ||
942 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
943 | | --localstate | --localstat | --localsta | --localst | --locals) | |
944 | ac_prev=localstatedir ;; | |
945 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
946 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
947 | localstatedir=$ac_optarg ;; | |
948 | ||
949 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
950 | ac_prev=mandir ;; | |
951 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
952 | mandir=$ac_optarg ;; | |
953 | ||
954 | -nfp | --nfp | --nf) | |
955 | # Obsolete; use --without-fp. | |
956 | with_fp=no ;; | |
957 | ||
958 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
959 | | --no-cr | --no-c | -n) | |
960 | no_create=yes ;; | |
961 | ||
962 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
963 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
964 | no_recursion=yes ;; | |
965 | ||
966 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
967 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
968 | | --oldin | --oldi | --old | --ol | --o) | |
969 | ac_prev=oldincludedir ;; | |
970 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
971 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
972 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
973 | oldincludedir=$ac_optarg ;; | |
974 | ||
975 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
976 | ac_prev=prefix ;; | |
977 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
978 | prefix=$ac_optarg ;; | |
979 | ||
980 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
981 | | --program-pre | --program-pr | --program-p) | |
982 | ac_prev=program_prefix ;; | |
983 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
984 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
985 | program_prefix=$ac_optarg ;; | |
986 | ||
987 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
988 | | --program-suf | --program-su | --program-s) | |
989 | ac_prev=program_suffix ;; | |
990 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
991 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
992 | program_suffix=$ac_optarg ;; | |
993 | ||
994 | -program-transform-name | --program-transform-name \ | |
995 | | --program-transform-nam | --program-transform-na \ | |
996 | | --program-transform-n | --program-transform- \ | |
997 | | --program-transform | --program-transfor \ | |
998 | | --program-transfo | --program-transf \ | |
999 | | --program-trans | --program-tran \ | |
1000 | | --progr-tra | --program-tr | --program-t) | |
1001 | ac_prev=program_transform_name ;; | |
1002 | -program-transform-name=* | --program-transform-name=* \ | |
1003 | | --program-transform-nam=* | --program-transform-na=* \ | |
1004 | | --program-transform-n=* | --program-transform-=* \ | |
1005 | | --program-transform=* | --program-transfor=* \ | |
1006 | | --program-transfo=* | --program-transf=* \ | |
1007 | | --program-trans=* | --program-tran=* \ | |
1008 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1009 | program_transform_name=$ac_optarg ;; | |
1010 | ||
1011 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1012 | ac_prev=pdfdir ;; | |
1013 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1014 | pdfdir=$ac_optarg ;; | |
1015 | ||
1016 | -psdir | --psdir | --psdi | --psd | --ps) | |
1017 | ac_prev=psdir ;; | |
1018 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1019 | psdir=$ac_optarg ;; | |
1020 | ||
1021 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1022 | | -silent | --silent | --silen | --sile | --sil) | |
1023 | silent=yes ;; | |
1024 | ||
1025 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1026 | ac_prev=sbindir ;; | |
1027 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1028 | | --sbi=* | --sb=*) | |
1029 | sbindir=$ac_optarg ;; | |
1030 | ||
1031 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1032 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1033 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1034 | | --sha | --sh) | |
1035 | ac_prev=sharedstatedir ;; | |
1036 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1037 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1038 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1039 | | --sha=* | --sh=*) | |
1040 | sharedstatedir=$ac_optarg ;; | |
1041 | ||
1042 | -site | --site | --sit) | |
1043 | ac_prev=site ;; | |
1044 | -site=* | --site=* | --sit=*) | |
1045 | site=$ac_optarg ;; | |
1046 | ||
1047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1048 | ac_prev=srcdir ;; | |
1049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1050 | srcdir=$ac_optarg ;; | |
1051 | ||
1052 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1053 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1054 | ac_prev=sysconfdir ;; | |
1055 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1056 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1057 | sysconfdir=$ac_optarg ;; | |
1058 | ||
1059 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1060 | ac_prev=target_alias ;; | |
1061 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1062 | target_alias=$ac_optarg ;; | |
1063 | ||
1064 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1065 | verbose=yes ;; | |
1066 | ||
1067 | -version | --version | --versio | --versi | --vers | -V) | |
1068 | ac_init_version=: ;; | |
1069 | ||
1070 | -with-* | --with-*) | |
1071 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1072 | # Reject names that are not valid shell variable names. | |
1073 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1074 | as_fn_error $? "invalid package name: $ac_useropt" | |
1075 | ac_useropt_orig=$ac_useropt | |
1076 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1077 | case $ac_user_opts in | |
1078 | *" | |
1079 | "with_$ac_useropt" | |
1080 | "*) ;; | |
1081 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1082 | ac_unrecognized_sep=', ';; | |
1083 | esac | |
1084 | eval with_$ac_useropt=\$ac_optarg ;; | |
1085 | ||
1086 | -without-* | --without-*) | |
1087 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1088 | # Reject names that are not valid shell variable names. | |
1089 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1090 | as_fn_error $? "invalid package name: $ac_useropt" | |
1091 | ac_useropt_orig=$ac_useropt | |
1092 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1093 | case $ac_user_opts in | |
1094 | *" | |
1095 | "with_$ac_useropt" | |
1096 | "*) ;; | |
1097 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1098 | ac_unrecognized_sep=', ';; | |
1099 | esac | |
1100 | eval with_$ac_useropt=no ;; | |
1101 | ||
1102 | --x) | |
1103 | # Obsolete; use --with-x. | |
1104 | with_x=yes ;; | |
1105 | ||
1106 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1107 | | --x-incl | --x-inc | --x-in | --x-i) | |
1108 | ac_prev=x_includes ;; | |
1109 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1110 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1111 | x_includes=$ac_optarg ;; | |
1112 | ||
1113 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1114 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1115 | ac_prev=x_libraries ;; | |
1116 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1117 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1118 | x_libraries=$ac_optarg ;; | |
1119 | ||
1120 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1121 | Try \`$0 --help' for more information" | |
1122 | ;; | |
1123 | ||
1124 | *=*) | |
1125 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1126 | # Reject names that are not valid shell variable names. | |
1127 | case $ac_envvar in #( | |
1128 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1129 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1130 | esac | |
1131 | eval $ac_envvar=\$ac_optarg | |
1132 | export $ac_envvar ;; | |
1133 | ||
1134 | *) | |
1135 | # FIXME: should be removed in autoconf 3.0. | |
1136 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1137 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1138 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1139 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1140 | ;; | |
1141 | ||
1142 | esac | |
1143 | done | |
1144 | ||
1145 | if test -n "$ac_prev"; then | |
1146 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1147 | as_fn_error $? "missing argument to $ac_option" | |
1148 | fi | |
1149 | ||
1150 | if test -n "$ac_unrecognized_opts"; then | |
1151 | case $enable_option_checking in | |
1152 | no) ;; | |
1153 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1154 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1155 | esac | |
1156 | fi | |
1157 | ||
1158 | # Check all directory arguments for consistency. | |
1159 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1160 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1161 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1162 | libdir localedir mandir | |
1163 | do | |
1164 | eval ac_val=\$$ac_var | |
1165 | # Remove trailing slashes. | |
1166 | case $ac_val in | |
1167 | */ ) | |
1168 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1169 | eval $ac_var=\$ac_val;; | |
1170 | esac | |
1171 | # Be sure to have absolute directory names. | |
1172 | case $ac_val in | |
1173 | [\\/$]* | ?:[\\/]* ) continue;; | |
1174 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1175 | esac | |
1176 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1177 | done | |
1178 | ||
1179 | # There might be people who depend on the old broken behavior: `$host' | |
1180 | # used to hold the argument of --host etc. | |
1181 | # FIXME: To remove some day. | |
1182 | build=$build_alias | |
1183 | host=$host_alias | |
1184 | target=$target_alias | |
1185 | ||
1186 | # FIXME: To remove some day. | |
1187 | if test "x$host_alias" != x; then | |
1188 | if test "x$build_alias" = x; then | |
1189 | cross_compiling=maybe | |
1190 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1191 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1192 | elif test "x$build_alias" != "x$host_alias"; then | |
1193 | cross_compiling=yes | |
1194 | fi | |
1195 | fi | |
1196 | ||
1197 | ac_tool_prefix= | |
1198 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1199 | ||
1200 | test "$silent" = yes && exec 6>/dev/null | |
1201 | ||
1202 | ||
1203 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1204 | ac_ls_di=`ls -di .` && | |
1205 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1206 | as_fn_error $? "working directory cannot be determined" | |
1207 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1208 | as_fn_error $? "pwd does not report name of working directory" | |
1209 | ||
1210 | ||
1211 | # Find the source files, if location was not specified. | |
1212 | if test -z "$srcdir"; then | |
1213 | ac_srcdir_defaulted=yes | |
1214 | # Try the directory containing this script, then the parent directory. | |
1215 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1216 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1217 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1218 | X"$as_myself" : 'X\(//\)$' \| \ | |
1219 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1220 | $as_echo X"$as_myself" | | |
1221 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1222 | s//\1/ | |
1223 | q | |
1224 | } | |
1225 | /^X\(\/\/\)[^/].*/{ | |
1226 | s//\1/ | |
1227 | q | |
1228 | } | |
1229 | /^X\(\/\/\)$/{ | |
1230 | s//\1/ | |
1231 | q | |
1232 | } | |
1233 | /^X\(\/\).*/{ | |
1234 | s//\1/ | |
1235 | q | |
1236 | } | |
1237 | s/.*/./; q'` | |
1238 | srcdir=$ac_confdir | |
1239 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1240 | srcdir=.. | |
1241 | fi | |
1242 | else | |
1243 | ac_srcdir_defaulted=no | |
1244 | fi | |
1245 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1246 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1247 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1248 | fi | |
1249 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1250 | ac_abs_confdir=`( | |
1251 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1252 | pwd)` | |
1253 | # When building in place, set srcdir=. | |
1254 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1255 | srcdir=. | |
1256 | fi | |
1257 | # Remove unnecessary trailing slashes from srcdir. | |
1258 | # Double slashes in file names in object file debugging info | |
1259 | # mess up M-x gdb in Emacs. | |
1260 | case $srcdir in | |
1261 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1262 | esac | |
1263 | for ac_var in $ac_precious_vars; do | |
1264 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1265 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1266 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1267 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1268 | done | |
1269 | ||
1270 | # | |
1271 | # Report the --help message. | |
1272 | # | |
1273 | if test "$ac_init_help" = "long"; then | |
1274 | # Omit some internal or obsolete options to make the list less imposing. | |
1275 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1276 | cat <<_ACEOF | |
1277 | \`configure' configures pve-cluster 1.0 to adapt to many kinds of systems. | |
1278 | ||
1279 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1280 | ||
1281 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1282 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1283 | ||
1284 | Defaults for the options are specified in brackets. | |
1285 | ||
1286 | Configuration: | |
1287 | -h, --help display this help and exit | |
1288 | --help=short display options specific to this package | |
1289 | --help=recursive display the short help of all the included packages | |
1290 | -V, --version display version information and exit | |
1291 | -q, --quiet, --silent do not print \`checking ...' messages | |
1292 | --cache-file=FILE cache test results in FILE [disabled] | |
1293 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1294 | -n, --no-create do not create output files | |
1295 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1296 | ||
1297 | Installation directories: | |
1298 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1299 | [$ac_default_prefix] | |
1300 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1301 | [PREFIX] | |
1302 | ||
1303 | By default, \`make install' will install all the files in | |
1304 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1305 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1306 | for instance \`--prefix=\$HOME'. | |
1307 | ||
1308 | For better control, use the options below. | |
1309 | ||
1310 | Fine tuning of the installation directories: | |
1311 | --bindir=DIR user executables [EPREFIX/bin] | |
1312 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1313 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1314 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1315 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1316 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1317 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1318 | --includedir=DIR C header files [PREFIX/include] | |
1319 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1320 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1321 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1322 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1323 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1324 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1325 | --docdir=DIR documentation root [DATAROOTDIR/doc/pve-cluster] | |
1326 | --htmldir=DIR html documentation [DOCDIR] | |
1327 | --dvidir=DIR dvi documentation [DOCDIR] | |
1328 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1329 | --psdir=DIR ps documentation [DOCDIR] | |
1330 | _ACEOF | |
1331 | ||
1332 | cat <<\_ACEOF | |
1333 | ||
1334 | Program names: | |
1335 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1336 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1337 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1338 | _ACEOF | |
1339 | fi | |
1340 | ||
1341 | if test -n "$ac_init_help"; then | |
1342 | case $ac_init_help in | |
1343 | short | recursive ) echo "Configuration of pve-cluster 1.0:";; | |
1344 | esac | |
1345 | cat <<\_ACEOF | |
1346 | ||
1347 | Optional Features: | |
1348 | --disable-option-checking ignore unrecognized --enable/--with options | |
1349 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1350 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1351 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1352 | (and sometimes confusing) to the casual installer | |
1353 | --disable-dependency-tracking speeds up one-time build | |
1354 | --enable-dependency-tracking do not reject slow dependency extractors | |
1355 | ||
1356 | Some influential environment variables: | |
1357 | CC C compiler command | |
1358 | CFLAGS C compiler flags | |
1359 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1360 | nonstandard directory <lib dir> | |
1361 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1362 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1363 | you have headers in a nonstandard directory <include dir> | |
1364 | PKG_CONFIG path to pkg-config utility | |
1365 | PKG_CONFIG_PATH | |
1366 | directories to add to pkg-config's search path | |
1367 | PKG_CONFIG_LIBDIR | |
1368 | path overriding pkg-config's built-in search path | |
1369 | CHECK_CFLAGS | |
1370 | C compiler flags for CHECK, overriding pkg-config | |
1371 | CHECK_LIBS linker flags for CHECK, overriding pkg-config | |
1372 | LIBRRD_CFLAGS | |
1373 | C compiler flags for LIBRRD, overriding pkg-config | |
1374 | LIBRRD_LIBS linker flags for LIBRRD, overriding pkg-config | |
1375 | GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config | |
1376 | GLIB_LIBS linker flags for GLIB, overriding pkg-config | |
1377 | FUSE_CFLAGS C compiler flags for FUSE, overriding pkg-config | |
1378 | FUSE_LIBS linker flags for FUSE, overriding pkg-config | |
1379 | COROSYNC_CFLAGS | |
1380 | C compiler flags for COROSYNC, overriding pkg-config | |
1381 | COROSYNC_LIBS | |
1382 | linker flags for COROSYNC, overriding pkg-config | |
1383 | QB_CFLAGS C compiler flags for QB, overriding pkg-config | |
1384 | QB_LIBS linker flags for QB, overriding pkg-config | |
1385 | SQLITE3_CFLAGS | |
1386 | C compiler flags for SQLITE3, overriding pkg-config | |
1387 | SQLITE3_LIBS | |
1388 | linker flags for SQLITE3, overriding pkg-config | |
1389 | CPP C preprocessor | |
1390 | ||
1391 | Use these variables to override the choices made by `configure' or to help | |
1392 | it to find libraries and programs with nonstandard names/locations. | |
1393 | ||
1394 | Report bugs to <support@proxmox.com>. | |
1395 | _ACEOF | |
1396 | ac_status=$? | |
1397 | fi | |
1398 | ||
1399 | if test "$ac_init_help" = "recursive"; then | |
1400 | # If there are subdirs, report their specific --help. | |
1401 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1402 | test -d "$ac_dir" || | |
1403 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1404 | continue | |
1405 | ac_builddir=. | |
1406 | ||
1407 | case "$ac_dir" in | |
1408 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1409 | *) | |
1410 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1411 | # A ".." for each directory in $ac_dir_suffix. | |
1412 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1413 | case $ac_top_builddir_sub in | |
1414 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1415 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1416 | esac ;; | |
1417 | esac | |
1418 | ac_abs_top_builddir=$ac_pwd | |
1419 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1420 | # for backward compatibility: | |
1421 | ac_top_builddir=$ac_top_build_prefix | |
1422 | ||
1423 | case $srcdir in | |
1424 | .) # We are building in place. | |
1425 | ac_srcdir=. | |
1426 | ac_top_srcdir=$ac_top_builddir_sub | |
1427 | ac_abs_top_srcdir=$ac_pwd ;; | |
1428 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1429 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1430 | ac_top_srcdir=$srcdir | |
1431 | ac_abs_top_srcdir=$srcdir ;; | |
1432 | *) # Relative name. | |
1433 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1434 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1435 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1436 | esac | |
1437 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1438 | ||
1439 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1440 | # Check for guested configure. | |
1441 | if test -f "$ac_srcdir/configure.gnu"; then | |
1442 | echo && | |
1443 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1444 | elif test -f "$ac_srcdir/configure"; then | |
1445 | echo && | |
1446 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1447 | else | |
1448 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1449 | fi || ac_status=$? | |
1450 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1451 | done | |
1452 | fi | |
1453 | ||
1454 | test -n "$ac_init_help" && exit $ac_status | |
1455 | if $ac_init_version; then | |
1456 | cat <<\_ACEOF | |
1457 | pve-cluster configure 1.0 | |
1458 | generated by GNU Autoconf 2.67 | |
1459 | ||
1460 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1461 | This configure script is free software; the Free Software Foundation | |
1462 | gives unlimited permission to copy, distribute and modify it. | |
1463 | _ACEOF | |
1464 | exit | |
1465 | fi | |
1466 | ||
1467 | ## ------------------------ ## | |
1468 | ## Autoconf initialization. ## | |
1469 | ## ------------------------ ## | |
1470 | ||
1471 | # ac_fn_c_try_compile LINENO | |
1472 | # -------------------------- | |
1473 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1474 | ac_fn_c_try_compile () | |
1475 | { | |
1476 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1477 | rm -f conftest.$ac_objext | |
1478 | if { { ac_try="$ac_compile" | |
1479 | case "(($ac_try" in | |
1480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1481 | *) ac_try_echo=$ac_try;; | |
1482 | esac | |
1483 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1484 | $as_echo "$ac_try_echo"; } >&5 | |
1485 | (eval "$ac_compile") 2>conftest.err | |
1486 | ac_status=$? | |
1487 | if test -s conftest.err; then | |
1488 | grep -v '^ *+' conftest.err >conftest.er1 | |
1489 | cat conftest.er1 >&5 | |
1490 | mv -f conftest.er1 conftest.err | |
1491 | fi | |
1492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1493 | test $ac_status = 0; } && { | |
1494 | test -z "$ac_c_werror_flag" || | |
1495 | test ! -s conftest.err | |
1496 | } && test -s conftest.$ac_objext; then : | |
1497 | ac_retval=0 | |
1498 | else | |
1499 | $as_echo "$as_me: failed program was:" >&5 | |
1500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1501 | ||
1502 | ac_retval=1 | |
1503 | fi | |
1504 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1505 | as_fn_set_status $ac_retval | |
1506 | ||
1507 | } # ac_fn_c_try_compile | |
1508 | ||
1509 | # ac_fn_c_try_link LINENO | |
1510 | # ----------------------- | |
1511 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1512 | ac_fn_c_try_link () | |
1513 | { | |
1514 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1516 | if { { ac_try="$ac_link" | |
1517 | case "(($ac_try" in | |
1518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1519 | *) ac_try_echo=$ac_try;; | |
1520 | esac | |
1521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1522 | $as_echo "$ac_try_echo"; } >&5 | |
1523 | (eval "$ac_link") 2>conftest.err | |
1524 | ac_status=$? | |
1525 | if test -s conftest.err; then | |
1526 | grep -v '^ *+' conftest.err >conftest.er1 | |
1527 | cat conftest.er1 >&5 | |
1528 | mv -f conftest.er1 conftest.err | |
1529 | fi | |
1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1531 | test $ac_status = 0; } && { | |
1532 | test -z "$ac_c_werror_flag" || | |
1533 | test ! -s conftest.err | |
1534 | } && test -s conftest$ac_exeext && { | |
1535 | test "$cross_compiling" = yes || | |
1536 | $as_test_x conftest$ac_exeext | |
1537 | }; then : | |
1538 | ac_retval=0 | |
1539 | else | |
1540 | $as_echo "$as_me: failed program was:" >&5 | |
1541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1542 | ||
1543 | ac_retval=1 | |
1544 | fi | |
1545 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1546 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1547 | # interfere with the next link command; also delete a directory that is | |
1548 | # left behind by Apple's compiler. We do this before executing the actions. | |
1549 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1550 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1551 | as_fn_set_status $ac_retval | |
1552 | ||
1553 | } # ac_fn_c_try_link | |
1554 | ||
1555 | # ac_fn_c_try_cpp LINENO | |
1556 | # ---------------------- | |
1557 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1558 | ac_fn_c_try_cpp () | |
1559 | { | |
1560 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1561 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1562 | case "(($ac_try" in | |
1563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1564 | *) ac_try_echo=$ac_try;; | |
1565 | esac | |
1566 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1567 | $as_echo "$ac_try_echo"; } >&5 | |
1568 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1569 | ac_status=$? | |
1570 | if test -s conftest.err; then | |
1571 | grep -v '^ *+' conftest.err >conftest.er1 | |
1572 | cat conftest.er1 >&5 | |
1573 | mv -f conftest.er1 conftest.err | |
1574 | fi | |
1575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1576 | test $ac_status = 0; } > conftest.i && { | |
1577 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1578 | test ! -s conftest.err | |
1579 | }; then : | |
1580 | ac_retval=0 | |
1581 | else | |
1582 | $as_echo "$as_me: failed program was:" >&5 | |
1583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1584 | ||
1585 | ac_retval=1 | |
1586 | fi | |
1587 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1588 | as_fn_set_status $ac_retval | |
1589 | ||
1590 | } # ac_fn_c_try_cpp | |
1591 | ||
1592 | # ac_fn_c_try_run LINENO | |
1593 | # ---------------------- | |
1594 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1595 | # that executables *can* be run. | |
1596 | ac_fn_c_try_run () | |
1597 | { | |
1598 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1599 | if { { ac_try="$ac_link" | |
1600 | case "(($ac_try" in | |
1601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1602 | *) ac_try_echo=$ac_try;; | |
1603 | esac | |
1604 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1605 | $as_echo "$ac_try_echo"; } >&5 | |
1606 | (eval "$ac_link") 2>&5 | |
1607 | ac_status=$? | |
1608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1609 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1610 | { { case "(($ac_try" in | |
1611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1612 | *) ac_try_echo=$ac_try;; | |
1613 | esac | |
1614 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1615 | $as_echo "$ac_try_echo"; } >&5 | |
1616 | (eval "$ac_try") 2>&5 | |
1617 | ac_status=$? | |
1618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1619 | test $ac_status = 0; }; }; then : | |
1620 | ac_retval=0 | |
1621 | else | |
1622 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1623 | $as_echo "$as_me: failed program was:" >&5 | |
1624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1625 | ||
1626 | ac_retval=$ac_status | |
1627 | fi | |
1628 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1629 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1630 | as_fn_set_status $ac_retval | |
1631 | ||
1632 | } # ac_fn_c_try_run | |
1633 | ||
1634 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1635 | # ------------------------------------------------------- | |
1636 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1637 | # the include files in INCLUDES and setting the cache variable VAR | |
1638 | # accordingly. | |
1639 | ac_fn_c_check_header_mongrel () | |
1640 | { | |
1641 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1642 | if eval "test \"\${$3+set}\"" = set; then : | |
1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1644 | $as_echo_n "checking for $2... " >&6; } | |
1645 | if eval "test \"\${$3+set}\"" = set; then : | |
1646 | $as_echo_n "(cached) " >&6 | |
1647 | fi | |
1648 | eval ac_res=\$$3 | |
1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1650 | $as_echo "$ac_res" >&6; } | |
1651 | else | |
1652 | # Is the header compilable? | |
1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1654 | $as_echo_n "checking $2 usability... " >&6; } | |
1655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1656 | /* end confdefs.h. */ | |
1657 | $4 | |
1658 | #include <$2> | |
1659 | _ACEOF | |
1660 | if ac_fn_c_try_compile "$LINENO"; then : | |
1661 | ac_header_compiler=yes | |
1662 | else | |
1663 | ac_header_compiler=no | |
1664 | fi | |
1665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1667 | $as_echo "$ac_header_compiler" >&6; } | |
1668 | ||
1669 | # Is the header present? | |
1670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1671 | $as_echo_n "checking $2 presence... " >&6; } | |
1672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1673 | /* end confdefs.h. */ | |
1674 | #include <$2> | |
1675 | _ACEOF | |
1676 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1677 | ac_header_preproc=yes | |
1678 | else | |
1679 | ac_header_preproc=no | |
1680 | fi | |
1681 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1683 | $as_echo "$ac_header_preproc" >&6; } | |
1684 | ||
1685 | # So? What about this header? | |
1686 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1687 | yes:no: ) | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1689 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1691 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1692 | ;; | |
1693 | no:yes:* ) | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1695 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1697 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1699 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1701 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1703 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1704 | ( $as_echo "## ---------------------------------- ## | |
1705 | ## Report this to support@proxmox.com ## | |
1706 | ## ---------------------------------- ##" | |
1707 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1708 | ;; | |
1709 | esac | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1711 | $as_echo_n "checking for $2... " >&6; } | |
1712 | if eval "test \"\${$3+set}\"" = set; then : | |
1713 | $as_echo_n "(cached) " >&6 | |
1714 | else | |
1715 | eval "$3=\$ac_header_compiler" | |
1716 | fi | |
1717 | eval ac_res=\$$3 | |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1719 | $as_echo "$ac_res" >&6; } | |
1720 | fi | |
1721 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1722 | ||
1723 | } # ac_fn_c_check_header_mongrel | |
1724 | ||
1725 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1726 | # ------------------------------------------------------- | |
1727 | # Tests whether HEADER exists and can be compiled using the include files in | |
1728 | # INCLUDES, setting the cache variable VAR accordingly. | |
1729 | ac_fn_c_check_header_compile () | |
1730 | { | |
1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1733 | $as_echo_n "checking for $2... " >&6; } | |
1734 | if eval "test \"\${$3+set}\"" = set; then : | |
1735 | $as_echo_n "(cached) " >&6 | |
1736 | else | |
1737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1738 | /* end confdefs.h. */ | |
1739 | $4 | |
1740 | #include <$2> | |
1741 | _ACEOF | |
1742 | if ac_fn_c_try_compile "$LINENO"; then : | |
1743 | eval "$3=yes" | |
1744 | else | |
1745 | eval "$3=no" | |
1746 | fi | |
1747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1748 | fi | |
1749 | eval ac_res=\$$3 | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1751 | $as_echo "$ac_res" >&6; } | |
1752 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1753 | ||
1754 | } # ac_fn_c_check_header_compile | |
1755 | ||
1756 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1757 | # ------------------------------------------- | |
1758 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1759 | # variable VAR accordingly. | |
1760 | ac_fn_c_check_type () | |
1761 | { | |
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1764 | $as_echo_n "checking for $2... " >&6; } | |
1765 | if eval "test \"\${$3+set}\"" = set; then : | |
1766 | $as_echo_n "(cached) " >&6 | |
1767 | else | |
1768 | eval "$3=no" | |
1769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1770 | /* end confdefs.h. */ | |
1771 | $4 | |
1772 | int | |
1773 | main () | |
1774 | { | |
1775 | if (sizeof ($2)) | |
1776 | return 0; | |
1777 | ; | |
1778 | return 0; | |
1779 | } | |
1780 | _ACEOF | |
1781 | if ac_fn_c_try_compile "$LINENO"; then : | |
1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1783 | /* end confdefs.h. */ | |
1784 | $4 | |
1785 | int | |
1786 | main () | |
1787 | { | |
1788 | if (sizeof (($2))) | |
1789 | return 0; | |
1790 | ; | |
1791 | return 0; | |
1792 | } | |
1793 | _ACEOF | |
1794 | if ac_fn_c_try_compile "$LINENO"; then : | |
1795 | ||
1796 | else | |
1797 | eval "$3=yes" | |
1798 | fi | |
1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1800 | fi | |
1801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1802 | fi | |
1803 | eval ac_res=\$$3 | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1805 | $as_echo "$ac_res" >&6; } | |
1806 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1807 | ||
1808 | } # ac_fn_c_check_type | |
1809 | ||
1810 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1811 | # ---------------------------------------------------- | |
1812 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1813 | # INCLUDES, setting cache variable VAR accordingly. | |
1814 | ac_fn_c_check_member () | |
1815 | { | |
1816 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1818 | $as_echo_n "checking for $2.$3... " >&6; } | |
1819 | if eval "test \"\${$4+set}\"" = set; then : | |
1820 | $as_echo_n "(cached) " >&6 | |
1821 | else | |
1822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1823 | /* end confdefs.h. */ | |
1824 | $5 | |
1825 | int | |
1826 | main () | |
1827 | { | |
1828 | static $2 ac_aggr; | |
1829 | if (ac_aggr.$3) | |
1830 | return 0; | |
1831 | ; | |
1832 | return 0; | |
1833 | } | |
1834 | _ACEOF | |
1835 | if ac_fn_c_try_compile "$LINENO"; then : | |
1836 | eval "$4=yes" | |
1837 | else | |
1838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1839 | /* end confdefs.h. */ | |
1840 | $5 | |
1841 | int | |
1842 | main () | |
1843 | { | |
1844 | static $2 ac_aggr; | |
1845 | if (sizeof ac_aggr.$3) | |
1846 | return 0; | |
1847 | ; | |
1848 | return 0; | |
1849 | } | |
1850 | _ACEOF | |
1851 | if ac_fn_c_try_compile "$LINENO"; then : | |
1852 | eval "$4=yes" | |
1853 | else | |
1854 | eval "$4=no" | |
1855 | fi | |
1856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1857 | fi | |
1858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1859 | fi | |
1860 | eval ac_res=\$$4 | |
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1862 | $as_echo "$ac_res" >&6; } | |
1863 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1864 | ||
1865 | } # ac_fn_c_check_member | |
1866 | ||
1867 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
1868 | # ------------------------------------ | |
1869 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
1870 | # accordingly. | |
1871 | ac_fn_c_find_uintX_t () | |
1872 | { | |
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
1875 | $as_echo_n "checking for uint$2_t... " >&6; } | |
1876 | if eval "test \"\${$3+set}\"" = set; then : | |
1877 | $as_echo_n "(cached) " >&6 | |
1878 | else | |
1879 | eval "$3=no" | |
1880 | # Order is important - never check a type that is potentially smaller | |
1881 | # than half of the expected target width. | |
1882 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
1883 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
1884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1885 | /* end confdefs.h. */ | |
1886 | $ac_includes_default | |
1887 | int | |
1888 | main () | |
1889 | { | |
1890 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | |
1891 | test_array [0] = 0 | |
1892 | ||
1893 | ; | |
1894 | return 0; | |
1895 | } | |
1896 | _ACEOF | |
1897 | if ac_fn_c_try_compile "$LINENO"; then : | |
1898 | case $ac_type in #( | |
1899 | uint$2_t) : | |
1900 | eval "$3=yes" ;; #( | |
1901 | *) : | |
1902 | eval "$3=\$ac_type" ;; | |
1903 | esac | |
1904 | fi | |
1905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1906 | if eval test \"x\$"$3"\" = x"no"; then : | |
1907 | ||
1908 | else | |
1909 | break | |
1910 | fi | |
1911 | done | |
1912 | fi | |
1913 | eval ac_res=\$$3 | |
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1915 | $as_echo "$ac_res" >&6; } | |
1916 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1917 | ||
1918 | } # ac_fn_c_find_uintX_t | |
1919 | ||
1920 | # ac_fn_c_check_func LINENO FUNC VAR | |
1921 | # ---------------------------------- | |
1922 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1923 | ac_fn_c_check_func () | |
1924 | { | |
1925 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1927 | $as_echo_n "checking for $2... " >&6; } | |
1928 | if eval "test \"\${$3+set}\"" = set; then : | |
1929 | $as_echo_n "(cached) " >&6 | |
1930 | else | |
1931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1932 | /* end confdefs.h. */ | |
1933 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1935 | #define $2 innocuous_$2 | |
1936 | ||
1937 | /* System header to define __stub macros and hopefully few prototypes, | |
1938 | which can conflict with char $2 (); below. | |
1939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1940 | <limits.h> exists even on freestanding compilers. */ | |
1941 | ||
1942 | #ifdef __STDC__ | |
1943 | # include <limits.h> | |
1944 | #else | |
1945 | # include <assert.h> | |
1946 | #endif | |
1947 | ||
1948 | #undef $2 | |
1949 | ||
1950 | /* Override any GCC internal prototype to avoid an error. | |
1951 | Use char because int might match the return type of a GCC | |
1952 | builtin and then its argument prototype would still apply. */ | |
1953 | #ifdef __cplusplus | |
1954 | extern "C" | |
1955 | #endif | |
1956 | char $2 (); | |
1957 | /* The GNU C library defines this for functions which it implements | |
1958 | to always fail with ENOSYS. Some functions are actually named | |
1959 | something starting with __ and the normal name is an alias. */ | |
1960 | #if defined __stub_$2 || defined __stub___$2 | |
1961 | choke me | |
1962 | #endif | |
1963 | ||
1964 | int | |
1965 | main () | |
1966 | { | |
1967 | return $2 (); | |
1968 | ; | |
1969 | return 0; | |
1970 | } | |
1971 | _ACEOF | |
1972 | if ac_fn_c_try_link "$LINENO"; then : | |
1973 | eval "$3=yes" | |
1974 | else | |
1975 | eval "$3=no" | |
1976 | fi | |
1977 | rm -f core conftest.err conftest.$ac_objext \ | |
1978 | conftest$ac_exeext conftest.$ac_ext | |
1979 | fi | |
1980 | eval ac_res=\$$3 | |
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1982 | $as_echo "$ac_res" >&6; } | |
1983 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1984 | ||
1985 | } # ac_fn_c_check_func | |
1986 | cat >config.log <<_ACEOF | |
1987 | This file contains any messages produced by compilers while | |
1988 | running configure, to aid debugging if configure makes a mistake. | |
1989 | ||
1990 | It was created by pve-cluster $as_me 1.0, which was | |
1991 | generated by GNU Autoconf 2.67. Invocation command line was | |
1992 | ||
1993 | $ $0 $@ | |
1994 | ||
1995 | _ACEOF | |
1996 | exec 5>>config.log | |
1997 | { | |
1998 | cat <<_ASUNAME | |
1999 | ## --------- ## | |
2000 | ## Platform. ## | |
2001 | ## --------- ## | |
2002 | ||
2003 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2004 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2005 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2006 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2007 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2008 | ||
2009 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2010 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2011 | ||
2012 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2013 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2014 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2015 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2016 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2017 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2018 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2019 | ||
2020 | _ASUNAME | |
2021 | ||
2022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2023 | for as_dir in $PATH | |
2024 | do | |
2025 | IFS=$as_save_IFS | |
2026 | test -z "$as_dir" && as_dir=. | |
2027 | $as_echo "PATH: $as_dir" | |
2028 | done | |
2029 | IFS=$as_save_IFS | |
2030 | ||
2031 | } >&5 | |
2032 | ||
2033 | cat >&5 <<_ACEOF | |
2034 | ||
2035 | ||
2036 | ## ----------- ## | |
2037 | ## Core tests. ## | |
2038 | ## ----------- ## | |
2039 | ||
2040 | _ACEOF | |
2041 | ||
2042 | ||
2043 | # Keep a trace of the command line. | |
2044 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2045 | # Strip out --silent because we don't want to record it for future runs. | |
2046 | # Also quote any args containing shell meta-characters. | |
2047 | # Make two passes to allow for proper duplicate-argument suppression. | |
2048 | ac_configure_args= | |
2049 | ac_configure_args0= | |
2050 | ac_configure_args1= | |
2051 | ac_must_keep_next=false | |
2052 | for ac_pass in 1 2 | |
2053 | do | |
2054 | for ac_arg | |
2055 | do | |
2056 | case $ac_arg in | |
2057 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2058 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2059 | | -silent | --silent | --silen | --sile | --sil) | |
2060 | continue ;; | |
2061 | *\'*) | |
2062 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2063 | esac | |
2064 | case $ac_pass in | |
2065 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2066 | 2) | |
2067 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2068 | if test $ac_must_keep_next = true; then | |
2069 | ac_must_keep_next=false # Got value, back to normal. | |
2070 | else | |
2071 | case $ac_arg in | |
2072 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2073 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2074 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2075 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2076 | case "$ac_configure_args0 " in | |
2077 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2078 | esac | |
2079 | ;; | |
2080 | -* ) ac_must_keep_next=true ;; | |
2081 | esac | |
2082 | fi | |
2083 | as_fn_append ac_configure_args " '$ac_arg'" | |
2084 | ;; | |
2085 | esac | |
2086 | done | |
2087 | done | |
2088 | { ac_configure_args0=; unset ac_configure_args0;} | |
2089 | { ac_configure_args1=; unset ac_configure_args1;} | |
2090 | ||
2091 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2092 | # config.log. We remove comments because anyway the quotes in there | |
2093 | # would cause problems or look ugly. | |
2094 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2095 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2096 | trap 'exit_status=$? | |
2097 | # Save into config.log some information that might help in debugging. | |
2098 | { | |
2099 | echo | |
2100 | ||
2101 | $as_echo "## ---------------- ## | |
2102 | ## Cache variables. ## | |
2103 | ## ---------------- ##" | |
2104 | echo | |
2105 | # The following way of writing the cache mishandles newlines in values, | |
2106 | ( | |
2107 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2108 | eval ac_val=\$$ac_var | |
2109 | case $ac_val in #( | |
2110 | *${as_nl}*) | |
2111 | case $ac_var in #( | |
2112 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2113 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2114 | esac | |
2115 | case $ac_var in #( | |
2116 | _ | IFS | as_nl) ;; #( | |
2117 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2118 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2119 | esac ;; | |
2120 | esac | |
2121 | done | |
2122 | (set) 2>&1 | | |
2123 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2124 | *${as_nl}ac_space=\ *) | |
2125 | sed -n \ | |
2126 | "s/'\''/'\''\\\\'\'''\''/g; | |
2127 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2128 | ;; #( | |
2129 | *) | |
2130 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2131 | ;; | |
2132 | esac | | |
2133 | sort | |
2134 | ) | |
2135 | echo | |
2136 | ||
2137 | $as_echo "## ----------------- ## | |
2138 | ## Output variables. ## | |
2139 | ## ----------------- ##" | |
2140 | echo | |
2141 | for ac_var in $ac_subst_vars | |
2142 | do | |
2143 | eval ac_val=\$$ac_var | |
2144 | case $ac_val in | |
2145 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2146 | esac | |
2147 | $as_echo "$ac_var='\''$ac_val'\''" | |
2148 | done | sort | |
2149 | echo | |
2150 | ||
2151 | if test -n "$ac_subst_files"; then | |
2152 | $as_echo "## ------------------- ## | |
2153 | ## File substitutions. ## | |
2154 | ## ------------------- ##" | |
2155 | echo | |
2156 | for ac_var in $ac_subst_files | |
2157 | do | |
2158 | eval ac_val=\$$ac_var | |
2159 | case $ac_val in | |
2160 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2161 | esac | |
2162 | $as_echo "$ac_var='\''$ac_val'\''" | |
2163 | done | sort | |
2164 | echo | |
2165 | fi | |
2166 | ||
2167 | if test -s confdefs.h; then | |
2168 | $as_echo "## ----------- ## | |
2169 | ## confdefs.h. ## | |
2170 | ## ----------- ##" | |
2171 | echo | |
2172 | cat confdefs.h | |
2173 | echo | |
2174 | fi | |
2175 | test "$ac_signal" != 0 && | |
2176 | $as_echo "$as_me: caught signal $ac_signal" | |
2177 | $as_echo "$as_me: exit $exit_status" | |
2178 | } >&5 | |
2179 | rm -f core *.core core.conftest.* && | |
2180 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2181 | exit $exit_status | |
2182 | ' 0 | |
2183 | for ac_signal in 1 2 13 15; do | |
2184 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2185 | done | |
2186 | ac_signal=0 | |
2187 | ||
2188 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2189 | rm -f -r conftest* confdefs.h | |
2190 | ||
2191 | $as_echo "/* confdefs.h */" > confdefs.h | |
2192 | ||
2193 | # Predefined preprocessor variables. | |
2194 | ||
2195 | cat >>confdefs.h <<_ACEOF | |
2196 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2197 | _ACEOF | |
2198 | ||
2199 | cat >>confdefs.h <<_ACEOF | |
2200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2201 | _ACEOF | |
2202 | ||
2203 | cat >>confdefs.h <<_ACEOF | |
2204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2205 | _ACEOF | |
2206 | ||
2207 | cat >>confdefs.h <<_ACEOF | |
2208 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2209 | _ACEOF | |
2210 | ||
2211 | cat >>confdefs.h <<_ACEOF | |
2212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2213 | _ACEOF | |
2214 | ||
2215 | cat >>confdefs.h <<_ACEOF | |
2216 | #define PACKAGE_URL "$PACKAGE_URL" | |
2217 | _ACEOF | |
2218 | ||
2219 | ||
2220 | # Let the site file select an alternate cache file if it wants to. | |
2221 | # Prefer an explicitly selected file to automatically selected ones. | |
2222 | ac_site_file1=NONE | |
2223 | ac_site_file2=NONE | |
2224 | if test -n "$CONFIG_SITE"; then | |
2225 | # We do not want a PATH search for config.site. | |
2226 | case $CONFIG_SITE in #(( | |
2227 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2228 | */*) ac_site_file1=$CONFIG_SITE;; | |
2229 | *) ac_site_file1=./$CONFIG_SITE;; | |
2230 | esac | |
2231 | elif test "x$prefix" != xNONE; then | |
2232 | ac_site_file1=$prefix/share/config.site | |
2233 | ac_site_file2=$prefix/etc/config.site | |
2234 | else | |
2235 | ac_site_file1=$ac_default_prefix/share/config.site | |
2236 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2237 | fi | |
2238 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2239 | do | |
2240 | test "x$ac_site_file" = xNONE && continue | |
2241 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2243 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2244 | sed 's/^/| /' "$ac_site_file" >&5 | |
2245 | . "$ac_site_file" \ | |
2246 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2248 | as_fn_error $? "failed to load site script $ac_site_file | |
2249 | See \`config.log' for more details" "$LINENO" 5 ; } | |
2250 | fi | |
2251 | done | |
2252 | ||
2253 | if test -r "$cache_file"; then | |
2254 | # Some versions of bash will fail to source /dev/null (special files | |
2255 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2256 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2258 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2259 | case $cache_file in | |
2260 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2261 | *) . "./$cache_file";; | |
2262 | esac | |
2263 | fi | |
2264 | else | |
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2266 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2267 | >$cache_file | |
2268 | fi | |
2269 | ||
2270 | # Check that the precious variables saved in the cache have kept the same | |
2271 | # value. | |
2272 | ac_cache_corrupted=false | |
2273 | for ac_var in $ac_precious_vars; do | |
2274 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2275 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2276 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2277 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2278 | case $ac_old_set,$ac_new_set in | |
2279 | set,) | |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2281 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2282 | ac_cache_corrupted=: ;; | |
2283 | ,set) | |
2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2285 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2286 | ac_cache_corrupted=: ;; | |
2287 | ,);; | |
2288 | *) | |
2289 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2290 | # differences in whitespace do not lead to failure. | |
2291 | ac_old_val_w=`echo x $ac_old_val` | |
2292 | ac_new_val_w=`echo x $ac_new_val` | |
2293 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2295 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2296 | ac_cache_corrupted=: | |
2297 | else | |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2299 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2300 | eval $ac_var=\$ac_old_val | |
2301 | fi | |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2303 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2305 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2306 | fi;; | |
2307 | esac | |
2308 | # Pass precious variables to config.status. | |
2309 | if test "$ac_new_set" = set; then | |
2310 | case $ac_new_val in | |
2311 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2312 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2313 | esac | |
2314 | case " $ac_configure_args " in | |
2315 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2316 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2317 | esac | |
2318 | fi | |
2319 | done | |
2320 | if $ac_cache_corrupted; then | |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2322 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2324 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2325 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2326 | fi | |
2327 | ## -------------------- ## | |
2328 | ## Main body of script. ## | |
2329 | ## -------------------- ## | |
2330 | ||
2331 | ac_ext=c | |
2332 | ac_cpp='$CPP $CPPFLAGS' | |
2333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2336 | ||
2337 | ||
2338 | am__api_version='1.11' | |
2339 | ||
2340 | ac_aux_dir= | |
2341 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2342 | if test -f "$ac_dir/install-sh"; then | |
2343 | ac_aux_dir=$ac_dir | |
2344 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2345 | break | |
2346 | elif test -f "$ac_dir/install.sh"; then | |
2347 | ac_aux_dir=$ac_dir | |
2348 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2349 | break | |
2350 | elif test -f "$ac_dir/shtool"; then | |
2351 | ac_aux_dir=$ac_dir | |
2352 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2353 | break | |
2354 | fi | |
2355 | done | |
2356 | if test -z "$ac_aux_dir"; then | |
2357 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2358 | fi | |
2359 | ||
2360 | # These three variables are undocumented and unsupported, | |
2361 | # and are intended to be withdrawn in a future Autoconf release. | |
2362 | # They can cause serious problems if a builder's source tree is in a directory | |
2363 | # whose full name contains unusual characters. | |
2364 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2365 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2366 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2367 | ||
2368 | ||
2369 | # Find a good install program. We prefer a C program (faster), | |
2370 | # so one script is as good as another. But avoid the broken or | |
2371 | # incompatible versions: | |
2372 | # SysV /etc/install, /usr/sbin/install | |
2373 | # SunOS /usr/etc/install | |
2374 | # IRIX /sbin/install | |
2375 | # AIX /bin/install | |
2376 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2377 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2378 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2379 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2380 | # OS/2's system install, which has a completely different semantic | |
2381 | # ./install, which can be erroneously created by make from ./install.sh. | |
2382 | # Reject install programs that cannot install multiple files. | |
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2384 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2385 | if test -z "$INSTALL"; then | |
2386 | if test "${ac_cv_path_install+set}" = set; then : | |
2387 | $as_echo_n "(cached) " >&6 | |
2388 | else | |
2389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2390 | for as_dir in $PATH | |
2391 | do | |
2392 | IFS=$as_save_IFS | |
2393 | test -z "$as_dir" && as_dir=. | |
2394 | # Account for people who put trailing slashes in PATH elements. | |
2395 | case $as_dir/ in #(( | |
2396 | ./ | .// | /[cC]/* | \ | |
2397 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2398 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2399 | /usr/ucb/* ) ;; | |
2400 | *) | |
2401 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2402 | # Don't use installbsd from OSF since it installs stuff as root | |
2403 | # by default. | |
2404 | for ac_prog in ginstall scoinst install; do | |
2405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2406 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2407 | if test $ac_prog = install && | |
2408 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2409 | # AIX install. It has an incompatible calling convention. | |
2410 | : | |
2411 | elif test $ac_prog = install && | |
2412 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2413 | # program-specific install script used by HP pwplus--don't use. | |
2414 | : | |
2415 | else | |
2416 | rm -rf conftest.one conftest.two conftest.dir | |
2417 | echo one > conftest.one | |
2418 | echo two > conftest.two | |
2419 | mkdir conftest.dir | |
2420 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2421 | test -s conftest.one && test -s conftest.two && | |
2422 | test -s conftest.dir/conftest.one && | |
2423 | test -s conftest.dir/conftest.two | |
2424 | then | |
2425 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2426 | break 3 | |
2427 | fi | |
2428 | fi | |
2429 | fi | |
2430 | done | |
2431 | done | |
2432 | ;; | |
2433 | esac | |
2434 | ||
2435 | done | |
2436 | IFS=$as_save_IFS | |
2437 | ||
2438 | rm -rf conftest.one conftest.two conftest.dir | |
2439 | ||
2440 | fi | |
2441 | if test "${ac_cv_path_install+set}" = set; then | |
2442 | INSTALL=$ac_cv_path_install | |
2443 | else | |
2444 | # As a last resort, use the slow shell script. Don't cache a | |
2445 | # value for INSTALL within a source directory, because that will | |
2446 | # break other packages using the cache if that directory is | |
2447 | # removed, or if the value is a relative name. | |
2448 | INSTALL=$ac_install_sh | |
2449 | fi | |
2450 | fi | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2452 | $as_echo "$INSTALL" >&6; } | |
2453 | ||
2454 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2455 | # It thinks the first close brace ends the variable substitution. | |
2456 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2457 | ||
2458 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2459 | ||
2460 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2461 | ||
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2463 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2464 | # Just in case | |
2465 | sleep 1 | |
2466 | echo timestamp > conftest.file | |
2467 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2468 | # name. Accept space and tab only in the latter. | |
2469 | am_lf=' | |
2470 | ' | |
2471 | case `pwd` in | |
2472 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2473 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; | |
2474 | esac | |
2475 | case $srcdir in | |
2476 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2477 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; | |
2478 | esac | |
2479 | ||
2480 | # Do `set' in a subshell so we don't clobber the current shell's | |
2481 | # arguments. Must try -L first in case configure is actually a | |
2482 | # symlink; some systems play weird games with the mod time of symlinks | |
2483 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2484 | # directory). | |
2485 | if ( | |
2486 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2487 | if test "$*" = "X"; then | |
2488 | # -L didn't work. | |
2489 | set X `ls -t "$srcdir/configure" conftest.file` | |
2490 | fi | |
2491 | rm -f conftest.file | |
2492 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2493 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2494 | ||
2495 | # If neither matched, then we have a broken ls. This can happen | |
2496 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2497 | # broken ls alias from the environment. This has actually | |
2498 | # happened. Such a system could not be considered "sane". | |
2499 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2500 | alias in your environment" "$LINENO" 5 | |
2501 | fi | |
2502 | ||
2503 | test "$2" = conftest.file | |
2504 | ) | |
2505 | then | |
2506 | # Ok. | |
2507 | : | |
2508 | else | |
2509 | as_fn_error $? "newly created file is older than distributed files! | |
2510 | Check your system clock" "$LINENO" 5 | |
2511 | fi | |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2513 | $as_echo "yes" >&6; } | |
2514 | test "$program_prefix" != NONE && | |
2515 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2516 | # Use a double $ so make ignores it. | |
2517 | test "$program_suffix" != NONE && | |
2518 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2519 | # Double any \ or $. | |
2520 | # By default was `s,x,x', remove it if useless. | |
2521 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2522 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2523 | ||
2524 | # expand $ac_aux_dir to an absolute path | |
2525 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2526 | ||
2527 | if test x"${MISSING+set}" != xset; then | |
2528 | case $am_aux_dir in | |
2529 | *\ * | *\ *) | |
2530 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2531 | *) | |
2532 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2533 | esac | |
2534 | fi | |
2535 | # Use eval to expand $SHELL | |
2536 | if eval "$MISSING --run true"; then | |
2537 | am_missing_run="$MISSING --run " | |
2538 | else | |
2539 | am_missing_run= | |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2541 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2542 | fi | |
2543 | ||
2544 | if test x"${install_sh}" != xset; then | |
2545 | case $am_aux_dir in | |
2546 | *\ * | *\ *) | |
2547 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2548 | *) | |
2549 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2550 | esac | |
2551 | fi | |
2552 | ||
2553 | # Installed binaries are usually stripped using `strip' when the user | |
2554 | # run `make install-strip'. However `strip' might not be the right | |
2555 | # tool to use in cross-compilation environments, therefore Automake | |
2556 | # will honor the `STRIP' environment variable to overrule this program. | |
2557 | if test "$cross_compiling" != no; then | |
2558 | if test -n "$ac_tool_prefix"; then | |
2559 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2560 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2562 | $as_echo_n "checking for $ac_word... " >&6; } | |
2563 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2564 | $as_echo_n "(cached) " >&6 | |
2565 | else | |
2566 | if test -n "$STRIP"; then | |
2567 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2568 | else | |
2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2570 | for as_dir in $PATH | |
2571 | do | |
2572 | IFS=$as_save_IFS | |
2573 | test -z "$as_dir" && as_dir=. | |
2574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2576 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2578 | break 2 | |
2579 | fi | |
2580 | done | |
2581 | done | |
2582 | IFS=$as_save_IFS | |
2583 | ||
2584 | fi | |
2585 | fi | |
2586 | STRIP=$ac_cv_prog_STRIP | |
2587 | if test -n "$STRIP"; then | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2589 | $as_echo "$STRIP" >&6; } | |
2590 | else | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2592 | $as_echo "no" >&6; } | |
2593 | fi | |
2594 | ||
2595 | ||
2596 | fi | |
2597 | if test -z "$ac_cv_prog_STRIP"; then | |
2598 | ac_ct_STRIP=$STRIP | |
2599 | # Extract the first word of "strip", so it can be a program name with args. | |
2600 | set dummy strip; ac_word=$2 | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2602 | $as_echo_n "checking for $ac_word... " >&6; } | |
2603 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2604 | $as_echo_n "(cached) " >&6 | |
2605 | else | |
2606 | if test -n "$ac_ct_STRIP"; then | |
2607 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2608 | else | |
2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2610 | for as_dir in $PATH | |
2611 | do | |
2612 | IFS=$as_save_IFS | |
2613 | test -z "$as_dir" && as_dir=. | |
2614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2616 | ac_cv_prog_ac_ct_STRIP="strip" | |
2617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2618 | break 2 | |
2619 | fi | |
2620 | done | |
2621 | done | |
2622 | IFS=$as_save_IFS | |
2623 | ||
2624 | fi | |
2625 | fi | |
2626 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2627 | if test -n "$ac_ct_STRIP"; then | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2629 | $as_echo "$ac_ct_STRIP" >&6; } | |
2630 | else | |
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2632 | $as_echo "no" >&6; } | |
2633 | fi | |
2634 | ||
2635 | if test "x$ac_ct_STRIP" = x; then | |
2636 | STRIP=":" | |
2637 | else | |
2638 | case $cross_compiling:$ac_tool_warned in | |
2639 | yes:) | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2642 | ac_tool_warned=yes ;; | |
2643 | esac | |
2644 | STRIP=$ac_ct_STRIP | |
2645 | fi | |
2646 | else | |
2647 | STRIP="$ac_cv_prog_STRIP" | |
2648 | fi | |
2649 | ||
2650 | fi | |
2651 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2652 | ||
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2654 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2655 | if test -z "$MKDIR_P"; then | |
2656 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
2657 | $as_echo_n "(cached) " >&6 | |
2658 | else | |
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2660 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2661 | do | |
2662 | IFS=$as_save_IFS | |
2663 | test -z "$as_dir" && as_dir=. | |
2664 | for ac_prog in mkdir gmkdir; do | |
2665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2666 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2667 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2668 | 'mkdir (GNU coreutils) '* | \ | |
2669 | 'mkdir (coreutils) '* | \ | |
2670 | 'mkdir (fileutils) '4.1*) | |
2671 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2672 | break 3;; | |
2673 | esac | |
2674 | done | |
2675 | done | |
2676 | done | |
2677 | IFS=$as_save_IFS | |
2678 | ||
2679 | fi | |
2680 | ||
2681 | test -d ./--version && rmdir ./--version | |
2682 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2683 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2684 | else | |
2685 | # As a last resort, use the slow shell script. Don't cache a | |
2686 | # value for MKDIR_P within a source directory, because that will | |
2687 | # break other packages using the cache if that directory is | |
2688 | # removed, or if the value is a relative name. | |
2689 | MKDIR_P="$ac_install_sh -d" | |
2690 | fi | |
2691 | fi | |
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2693 | $as_echo "$MKDIR_P" >&6; } | |
2694 | ||
2695 | mkdir_p="$MKDIR_P" | |
2696 | case $mkdir_p in | |
2697 | [\\/$]* | ?:[\\/]*) ;; | |
2698 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2699 | esac | |
2700 | ||
2701 | for ac_prog in gawk mawk nawk awk | |
2702 | do | |
2703 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2704 | set dummy $ac_prog; ac_word=$2 | |
2705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2706 | $as_echo_n "checking for $ac_word... " >&6; } | |
2707 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2708 | $as_echo_n "(cached) " >&6 | |
2709 | else | |
2710 | if test -n "$AWK"; then | |
2711 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2712 | else | |
2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2714 | for as_dir in $PATH | |
2715 | do | |
2716 | IFS=$as_save_IFS | |
2717 | test -z "$as_dir" && as_dir=. | |
2718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2720 | ac_cv_prog_AWK="$ac_prog" | |
2721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2722 | break 2 | |
2723 | fi | |
2724 | done | |
2725 | done | |
2726 | IFS=$as_save_IFS | |
2727 | ||
2728 | fi | |
2729 | fi | |
2730 | AWK=$ac_cv_prog_AWK | |
2731 | if test -n "$AWK"; then | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2733 | $as_echo "$AWK" >&6; } | |
2734 | else | |
2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2736 | $as_echo "no" >&6; } | |
2737 | fi | |
2738 | ||
2739 | ||
2740 | test -n "$AWK" && break | |
2741 | done | |
2742 | ||
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2744 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2745 | set x ${MAKE-make} | |
2746 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2747 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
2748 | $as_echo_n "(cached) " >&6 | |
2749 | else | |
2750 | cat >conftest.make <<\_ACEOF | |
2751 | SHELL = /bin/sh | |
2752 | all: | |
2753 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2754 | _ACEOF | |
2755 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2756 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2757 | *@@@%%%=?*=@@@%%%*) | |
2758 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2759 | *) | |
2760 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2761 | esac | |
2762 | rm -f conftest.make | |
2763 | fi | |
2764 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2766 | $as_echo "yes" >&6; } | |
2767 | SET_MAKE= | |
2768 | else | |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2770 | $as_echo "no" >&6; } | |
2771 | SET_MAKE="MAKE=${MAKE-make}" | |
2772 | fi | |
2773 | ||
2774 | rm -rf .tst 2>/dev/null | |
2775 | mkdir .tst 2>/dev/null | |
2776 | if test -d .tst; then | |
2777 | am__leading_dot=. | |
2778 | else | |
2779 | am__leading_dot=_ | |
2780 | fi | |
2781 | rmdir .tst 2>/dev/null | |
2782 | ||
2783 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2784 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2785 | # is not polluted with repeated "-I." | |
2786 | am__isrc=' -I$(srcdir)' | |
2787 | # test to see if srcdir already configured | |
2788 | if test -f $srcdir/config.status; then | |
2789 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2790 | fi | |
2791 | fi | |
2792 | ||
2793 | # test whether we have cygpath | |
2794 | if test -z "$CYGPATH_W"; then | |
2795 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2796 | CYGPATH_W='cygpath -w' | |
2797 | else | |
2798 | CYGPATH_W=echo | |
2799 | fi | |
2800 | fi | |
2801 | ||
2802 | ||
2803 | # Define the identity of the package. | |
2804 | PACKAGE='pve-cluster' | |
2805 | VERSION='1.0' | |
2806 | ||
2807 | ||
2808 | cat >>confdefs.h <<_ACEOF | |
2809 | #define PACKAGE "$PACKAGE" | |
2810 | _ACEOF | |
2811 | ||
2812 | ||
2813 | cat >>confdefs.h <<_ACEOF | |
2814 | #define VERSION "$VERSION" | |
2815 | _ACEOF | |
2816 | ||
2817 | # Some tools Automake needs. | |
2818 | ||
2819 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2820 | ||
2821 | ||
2822 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2823 | ||
2824 | ||
2825 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2826 | ||
2827 | ||
2828 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2829 | ||
2830 | ||
2831 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2832 | ||
2833 | # We need awk for the "check" target. The system "awk" is bad on | |
2834 | # some platforms. | |
2835 | # Always define AMTAR for backward compatibility. | |
2836 | ||
2837 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2838 | ||
2839 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2840 | ||
2841 | ||
2842 | ||
2843 | ||
2844 | ||
2845 | ||
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2847 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2848 | # Check whether --enable-maintainer-mode was given. | |
2849 | if test "${enable_maintainer_mode+set}" = set; then : | |
2850 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2851 | else | |
2852 | USE_MAINTAINER_MODE=no | |
2853 | fi | |
2854 | ||
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2856 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2857 | if test $USE_MAINTAINER_MODE = yes; then | |
2858 | MAINTAINER_MODE_TRUE= | |
2859 | MAINTAINER_MODE_FALSE='#' | |
2860 | else | |
2861 | MAINTAINER_MODE_TRUE='#' | |
2862 | MAINTAINER_MODE_FALSE= | |
2863 | fi | |
2864 | ||
2865 | MAINT=$MAINTAINER_MODE_TRUE | |
2866 | ||
2867 | ||
2868 | ||
2869 | ||
2870 | ||
2871 | ac_config_headers="$ac_config_headers config.h" | |
2872 | ||
2873 | ||
2874 | ||
2875 | ||
2876 | # Checks for programs. | |
2877 | ac_ext=c | |
2878 | ac_cpp='$CPP $CPPFLAGS' | |
2879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2882 | if test -n "$ac_tool_prefix"; then | |
2883 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2884 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2886 | $as_echo_n "checking for $ac_word... " >&6; } | |
2887 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2888 | $as_echo_n "(cached) " >&6 | |
2889 | else | |
2890 | if test -n "$CC"; then | |
2891 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2892 | else | |
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2894 | for as_dir in $PATH | |
2895 | do | |
2896 | IFS=$as_save_IFS | |
2897 | test -z "$as_dir" && as_dir=. | |
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2899 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2900 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2902 | break 2 | |
2903 | fi | |
2904 | done | |
2905 | done | |
2906 | IFS=$as_save_IFS | |
2907 | ||
2908 | fi | |
2909 | fi | |
2910 | CC=$ac_cv_prog_CC | |
2911 | if test -n "$CC"; then | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2913 | $as_echo "$CC" >&6; } | |
2914 | else | |
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2916 | $as_echo "no" >&6; } | |
2917 | fi | |
2918 | ||
2919 | ||
2920 | fi | |
2921 | if test -z "$ac_cv_prog_CC"; then | |
2922 | ac_ct_CC=$CC | |
2923 | # Extract the first word of "gcc", so it can be a program name with args. | |
2924 | set dummy gcc; ac_word=$2 | |
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2926 | $as_echo_n "checking for $ac_word... " >&6; } | |
2927 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2928 | $as_echo_n "(cached) " >&6 | |
2929 | else | |
2930 | if test -n "$ac_ct_CC"; then | |
2931 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2932 | else | |
2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2934 | for as_dir in $PATH | |
2935 | do | |
2936 | IFS=$as_save_IFS | |
2937 | test -z "$as_dir" && as_dir=. | |
2938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2940 | ac_cv_prog_ac_ct_CC="gcc" | |
2941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2942 | break 2 | |
2943 | fi | |
2944 | done | |
2945 | done | |
2946 | IFS=$as_save_IFS | |
2947 | ||
2948 | fi | |
2949 | fi | |
2950 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2951 | if test -n "$ac_ct_CC"; then | |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2953 | $as_echo "$ac_ct_CC" >&6; } | |
2954 | else | |
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2956 | $as_echo "no" >&6; } | |
2957 | fi | |
2958 | ||
2959 | if test "x$ac_ct_CC" = x; then | |
2960 | CC="" | |
2961 | else | |
2962 | case $cross_compiling:$ac_tool_warned in | |
2963 | yes:) | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2965 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2966 | ac_tool_warned=yes ;; | |
2967 | esac | |
2968 | CC=$ac_ct_CC | |
2969 | fi | |
2970 | else | |
2971 | CC="$ac_cv_prog_CC" | |
2972 | fi | |
2973 | ||
2974 | if test -z "$CC"; then | |
2975 | if test -n "$ac_tool_prefix"; then | |
2976 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2977 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2979 | $as_echo_n "checking for $ac_word... " >&6; } | |
2980 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2981 | $as_echo_n "(cached) " >&6 | |
2982 | else | |
2983 | if test -n "$CC"; then | |
2984 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2985 | else | |
2986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2987 | for as_dir in $PATH | |
2988 | do | |
2989 | IFS=$as_save_IFS | |
2990 | test -z "$as_dir" && as_dir=. | |
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2993 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2995 | break 2 | |
2996 | fi | |
2997 | done | |
2998 | done | |
2999 | IFS=$as_save_IFS | |
3000 | ||
3001 | fi | |
3002 | fi | |
3003 | CC=$ac_cv_prog_CC | |
3004 | if test -n "$CC"; then | |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3006 | $as_echo "$CC" >&6; } | |
3007 | else | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3009 | $as_echo "no" >&6; } | |
3010 | fi | |
3011 | ||
3012 | ||
3013 | fi | |
3014 | fi | |
3015 | if test -z "$CC"; then | |
3016 | # Extract the first word of "cc", so it can be a program name with args. | |
3017 | set dummy cc; ac_word=$2 | |
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3019 | $as_echo_n "checking for $ac_word... " >&6; } | |
3020 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3021 | $as_echo_n "(cached) " >&6 | |
3022 | else | |
3023 | if test -n "$CC"; then | |
3024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3025 | else | |
3026 | ac_prog_rejected=no | |
3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3028 | for as_dir in $PATH | |
3029 | do | |
3030 | IFS=$as_save_IFS | |
3031 | test -z "$as_dir" && as_dir=. | |
3032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3034 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3035 | ac_prog_rejected=yes | |
3036 | continue | |
3037 | fi | |
3038 | ac_cv_prog_CC="cc" | |
3039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3040 | break 2 | |
3041 | fi | |
3042 | done | |
3043 | done | |
3044 | IFS=$as_save_IFS | |
3045 | ||
3046 | if test $ac_prog_rejected = yes; then | |
3047 | # We found a bogon in the path, so make sure we never use it. | |
3048 | set dummy $ac_cv_prog_CC | |
3049 | shift | |
3050 | if test $# != 0; then | |
3051 | # We chose a different compiler from the bogus one. | |
3052 | # However, it has the same basename, so the bogon will be chosen | |
3053 | # first if we set CC to just the basename; use the full file name. | |
3054 | shift | |
3055 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3056 | fi | |
3057 | fi | |
3058 | fi | |
3059 | fi | |
3060 | CC=$ac_cv_prog_CC | |
3061 | if test -n "$CC"; then | |
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3063 | $as_echo "$CC" >&6; } | |
3064 | else | |
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3066 | $as_echo "no" >&6; } | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | fi | |
3071 | if test -z "$CC"; then | |
3072 | if test -n "$ac_tool_prefix"; then | |
3073 | for ac_prog in cl.exe | |
3074 | do | |
3075 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3076 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3078 | $as_echo_n "checking for $ac_word... " >&6; } | |
3079 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3080 | $as_echo_n "(cached) " >&6 | |
3081 | else | |
3082 | if test -n "$CC"; then | |
3083 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3084 | else | |
3085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3086 | for as_dir in $PATH | |
3087 | do | |
3088 | IFS=$as_save_IFS | |
3089 | test -z "$as_dir" && as_dir=. | |
3090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3092 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3094 | break 2 | |
3095 | fi | |
3096 | done | |
3097 | done | |
3098 | IFS=$as_save_IFS | |
3099 | ||
3100 | fi | |
3101 | fi | |
3102 | CC=$ac_cv_prog_CC | |
3103 | if test -n "$CC"; then | |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3105 | $as_echo "$CC" >&6; } | |
3106 | else | |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3108 | $as_echo "no" >&6; } | |
3109 | fi | |
3110 | ||
3111 | ||
3112 | test -n "$CC" && break | |
3113 | done | |
3114 | fi | |
3115 | if test -z "$CC"; then | |
3116 | ac_ct_CC=$CC | |
3117 | for ac_prog in cl.exe | |
3118 | do | |
3119 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3120 | set dummy $ac_prog; ac_word=$2 | |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3122 | $as_echo_n "checking for $ac_word... " >&6; } | |
3123 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3124 | $as_echo_n "(cached) " >&6 | |
3125 | else | |
3126 | if test -n "$ac_ct_CC"; then | |
3127 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3128 | else | |
3129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3130 | for as_dir in $PATH | |
3131 | do | |
3132 | IFS=$as_save_IFS | |
3133 | test -z "$as_dir" && as_dir=. | |
3134 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3136 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3138 | break 2 | |
3139 | fi | |
3140 | done | |
3141 | done | |
3142 | IFS=$as_save_IFS | |
3143 | ||
3144 | fi | |
3145 | fi | |
3146 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3147 | if test -n "$ac_ct_CC"; then | |
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3149 | $as_echo "$ac_ct_CC" >&6; } | |
3150 | else | |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3152 | $as_echo "no" >&6; } | |
3153 | fi | |
3154 | ||
3155 | ||
3156 | test -n "$ac_ct_CC" && break | |
3157 | done | |
3158 | ||
3159 | if test "x$ac_ct_CC" = x; then | |
3160 | CC="" | |
3161 | else | |
3162 | case $cross_compiling:$ac_tool_warned in | |
3163 | yes:) | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3165 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3166 | ac_tool_warned=yes ;; | |
3167 | esac | |
3168 | CC=$ac_ct_CC | |
3169 | fi | |
3170 | fi | |
3171 | ||
3172 | fi | |
3173 | ||
3174 | ||
3175 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3176 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3177 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3178 | See \`config.log' for more details" "$LINENO" 5 ; } | |
3179 | ||
3180 | # Provide some information about the compiler. | |
3181 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3182 | set X $ac_compile | |
3183 | ac_compiler=$2 | |
3184 | for ac_option in --version -v -V -qversion; do | |
3185 | { { ac_try="$ac_compiler $ac_option >&5" | |
3186 | case "(($ac_try" in | |
3187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3188 | *) ac_try_echo=$ac_try;; | |
3189 | esac | |
3190 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3191 | $as_echo "$ac_try_echo"; } >&5 | |
3192 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3193 | ac_status=$? | |
3194 | if test -s conftest.err; then | |
3195 | sed '10a\ | |
3196 | ... rest of stderr output deleted ... | |
3197 | 10q' conftest.err >conftest.er1 | |
3198 | cat conftest.er1 >&5 | |
3199 | fi | |
3200 | rm -f conftest.er1 conftest.err | |
3201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3202 | test $ac_status = 0; } | |
3203 | done | |
3204 | ||
3205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3206 | /* end confdefs.h. */ | |
3207 | ||
3208 | int | |
3209 | main () | |
3210 | { | |
3211 | ||
3212 | ; | |
3213 | return 0; | |
3214 | } | |
3215 | _ACEOF | |
3216 | ac_clean_files_save=$ac_clean_files | |
3217 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3218 | # Try to create an executable without -o first, disregard a.out. | |
3219 | # It will help us diagnose broken compilers, and finding out an intuition | |
3220 | # of exeext. | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3222 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3223 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3224 | ||
3225 | # The possible output files: | |
3226 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3227 | ||
3228 | ac_rmfiles= | |
3229 | for ac_file in $ac_files | |
3230 | do | |
3231 | case $ac_file in | |
3232 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3233 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3234 | esac | |
3235 | done | |
3236 | rm -f $ac_rmfiles | |
3237 | ||
3238 | if { { ac_try="$ac_link_default" | |
3239 | case "(($ac_try" in | |
3240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3241 | *) ac_try_echo=$ac_try;; | |
3242 | esac | |
3243 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3244 | $as_echo "$ac_try_echo"; } >&5 | |
3245 | (eval "$ac_link_default") 2>&5 | |
3246 | ac_status=$? | |
3247 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3248 | test $ac_status = 0; }; then : | |
3249 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3250 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3251 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3252 | # so that the user can short-circuit this test for compilers unknown to | |
3253 | # Autoconf. | |
3254 | for ac_file in $ac_files '' | |
3255 | do | |
3256 | test -f "$ac_file" || continue | |
3257 | case $ac_file in | |
3258 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3259 | ;; | |
3260 | [ab].out ) | |
3261 | # We found the default executable, but exeext='' is most | |
3262 | # certainly right. | |
3263 | break;; | |
3264 | *.* ) | |
3265 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3266 | then :; else | |
3267 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3268 | fi | |
3269 | # We set ac_cv_exeext here because the later test for it is not | |
3270 | # safe: cross compilers may not add the suffix if given an `-o' | |
3271 | # argument, so we may need to know it at that point already. | |
3272 | # Even if this section looks crufty: it has the advantage of | |
3273 | # actually working. | |
3274 | break;; | |
3275 | * ) | |
3276 | break;; | |
3277 | esac | |
3278 | done | |
3279 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3280 | ||
3281 | else | |
3282 | ac_file='' | |
3283 | fi | |
3284 | if test -z "$ac_file"; then : | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3286 | $as_echo "no" >&6; } | |
3287 | $as_echo "$as_me: failed program was:" >&5 | |
3288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3289 | ||
3290 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3291 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3292 | as_fn_error 77 "C compiler cannot create executables | |
3293 | See \`config.log' for more details" "$LINENO" 5 ; } | |
3294 | else | |
3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3296 | $as_echo "yes" >&6; } | |
3297 | fi | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3299 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3301 | $as_echo "$ac_file" >&6; } | |
3302 | ac_exeext=$ac_cv_exeext | |
3303 | ||
3304 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3305 | ac_clean_files=$ac_clean_files_save | |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3307 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3308 | if { { ac_try="$ac_link" | |
3309 | case "(($ac_try" in | |
3310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3311 | *) ac_try_echo=$ac_try;; | |
3312 | esac | |
3313 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3314 | $as_echo "$ac_try_echo"; } >&5 | |
3315 | (eval "$ac_link") 2>&5 | |
3316 | ac_status=$? | |
3317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3318 | test $ac_status = 0; }; then : | |
3319 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3320 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3321 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3322 | # `rm'. | |
3323 | for ac_file in conftest.exe conftest conftest.*; do | |
3324 | test -f "$ac_file" || continue | |
3325 | case $ac_file in | |
3326 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3327 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3328 | break;; | |
3329 | * ) break;; | |
3330 | esac | |
3331 | done | |
3332 | else | |
3333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3335 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3336 | See \`config.log' for more details" "$LINENO" 5 ; } | |
3337 | fi | |
3338 | rm -f conftest conftest$ac_cv_exeext | |
3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3340 | $as_echo "$ac_cv_exeext" >&6; } | |
3341 | ||
3342 | rm -f conftest.$ac_ext | |
3343 | EXEEXT=$ac_cv_exeext | |
3344 | ac_exeext=$EXEEXT | |
3345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3346 | /* end confdefs.h. */ | |
3347 | #include <stdio.h> | |
3348 | int | |
3349 | main () | |
3350 | { | |
3351 | FILE *f = fopen ("conftest.out", "w"); | |
3352 | return ferror (f) || fclose (f) != 0; | |
3353 | ||
3354 | ; | |
3355 | return 0; | |
3356 | } | |
3357 | _ACEOF | |
3358 | ac_clean_files="$ac_clean_files conftest.out" | |
3359 | # Check that the compiler produces executables we can run. If not, either | |
3360 | # the compiler is broken, or we cross compile. | |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3362 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3363 | if test "$cross_compiling" != yes; then | |
3364 | { { ac_try="$ac_link" | |
3365 | case "(($ac_try" in | |
3366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3367 | *) ac_try_echo=$ac_try;; | |
3368 | esac | |
3369 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3370 | $as_echo "$ac_try_echo"; } >&5 | |
3371 | (eval "$ac_link") 2>&5 | |
3372 | ac_status=$? | |
3373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3374 | test $ac_status = 0; } | |
3375 | if { ac_try='./conftest$ac_cv_exeext' | |
3376 | { { case "(($ac_try" in | |
3377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3378 | *) ac_try_echo=$ac_try;; | |
3379 | esac | |
3380 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3381 | $as_echo "$ac_try_echo"; } >&5 | |
3382 | (eval "$ac_try") 2>&5 | |
3383 | ac_status=$? | |
3384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3385 | test $ac_status = 0; }; }; then | |
3386 | cross_compiling=no | |
3387 | else | |
3388 | if test "$cross_compiling" = maybe; then | |
3389 | cross_compiling=yes | |
3390 | else | |
3391 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3392 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3393 | as_fn_error $? "cannot run C compiled programs. | |
3394 | If you meant to cross compile, use \`--host'. | |
3395 | See \`config.log' for more details" "$LINENO" 5 ; } | |
3396 | fi | |
3397 | fi | |
3398 | fi | |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3400 | $as_echo "$cross_compiling" >&6; } | |
3401 | ||
3402 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3403 | ac_clean_files=$ac_clean_files_save | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3405 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3406 | if test "${ac_cv_objext+set}" = set; then : | |
3407 | $as_echo_n "(cached) " >&6 | |
3408 | else | |
3409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3410 | /* end confdefs.h. */ | |
3411 | ||
3412 | int | |
3413 | main () | |
3414 | { | |
3415 | ||
3416 | ; | |
3417 | return 0; | |
3418 | } | |
3419 | _ACEOF | |
3420 | rm -f conftest.o conftest.obj | |
3421 | if { { ac_try="$ac_compile" | |
3422 | case "(($ac_try" in | |
3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3424 | *) ac_try_echo=$ac_try;; | |
3425 | esac | |
3426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3427 | $as_echo "$ac_try_echo"; } >&5 | |
3428 | (eval "$ac_compile") 2>&5 | |
3429 | ac_status=$? | |
3430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3431 | test $ac_status = 0; }; then : | |
3432 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3433 | test -f "$ac_file" || continue; | |
3434 | case $ac_file in | |
3435 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3436 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3437 | break;; | |
3438 | esac | |
3439 | done | |
3440 | else | |
3441 | $as_echo "$as_me: failed program was:" >&5 | |
3442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3443 | ||
3444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3446 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3447 | See \`config.log' for more details" "$LINENO" 5 ; } | |
3448 | fi | |
3449 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3450 | fi | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3452 | $as_echo "$ac_cv_objext" >&6; } | |
3453 | OBJEXT=$ac_cv_objext | |
3454 | ac_objext=$OBJEXT | |
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3456 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3457 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3458 | $as_echo_n "(cached) " >&6 | |
3459 | else | |
3460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3461 | /* end confdefs.h. */ | |
3462 | ||
3463 | int | |
3464 | main () | |
3465 | { | |
3466 | #ifndef __GNUC__ | |
3467 | choke me | |
3468 | #endif | |
3469 | ||
3470 | ; | |
3471 | return 0; | |
3472 | } | |
3473 | _ACEOF | |
3474 | if ac_fn_c_try_compile "$LINENO"; then : | |
3475 | ac_compiler_gnu=yes | |
3476 | else | |
3477 | ac_compiler_gnu=no | |
3478 | fi | |
3479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3480 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3481 | ||
3482 | fi | |
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3484 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3485 | if test $ac_compiler_gnu = yes; then | |
3486 | GCC=yes | |
3487 | else | |
3488 | GCC= | |
3489 | fi | |
3490 | ac_test_CFLAGS=${CFLAGS+set} | |
3491 | ac_save_CFLAGS=$CFLAGS | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3493 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3494 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3495 | $as_echo_n "(cached) " >&6 | |
3496 | else | |
3497 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3498 | ac_c_werror_flag=yes | |
3499 | ac_cv_prog_cc_g=no | |
3500 | CFLAGS="-g" | |
3501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3502 | /* end confdefs.h. */ | |
3503 | ||
3504 | int | |
3505 | main () | |
3506 | { | |
3507 | ||
3508 | ; | |
3509 | return 0; | |
3510 | } | |
3511 | _ACEOF | |
3512 | if ac_fn_c_try_compile "$LINENO"; then : | |
3513 | ac_cv_prog_cc_g=yes | |
3514 | else | |
3515 | CFLAGS="" | |
3516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3517 | /* end confdefs.h. */ | |
3518 | ||
3519 | int | |
3520 | main () | |
3521 | { | |
3522 | ||
3523 | ; | |
3524 | return 0; | |
3525 | } | |
3526 | _ACEOF | |
3527 | if ac_fn_c_try_compile "$LINENO"; then : | |
3528 | ||
3529 | else | |
3530 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3531 | CFLAGS="-g" | |
3532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3533 | /* end confdefs.h. */ | |
3534 | ||
3535 | int | |
3536 | main () | |
3537 | { | |
3538 | ||
3539 | ; | |
3540 | return 0; | |
3541 | } | |
3542 | _ACEOF | |
3543 | if ac_fn_c_try_compile "$LINENO"; then : | |
3544 | ac_cv_prog_cc_g=yes | |
3545 | fi | |
3546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3547 | fi | |
3548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3549 | fi | |
3550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3551 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3552 | fi | |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3554 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3555 | if test "$ac_test_CFLAGS" = set; then | |
3556 | CFLAGS=$ac_save_CFLAGS | |
3557 | elif test $ac_cv_prog_cc_g = yes; then | |
3558 | if test "$GCC" = yes; then | |
3559 | CFLAGS="-g -O2" | |
3560 | else | |
3561 | CFLAGS="-g" | |
3562 | fi | |
3563 | else | |
3564 | if test "$GCC" = yes; then | |
3565 | CFLAGS="-O2" | |
3566 | else | |
3567 | CFLAGS= | |
3568 | fi | |
3569 | fi | |
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3571 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3572 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3573 | $as_echo_n "(cached) " >&6 | |
3574 | else | |
3575 | ac_cv_prog_cc_c89=no | |
3576 | ac_save_CC=$CC | |
3577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3578 | /* end confdefs.h. */ | |
3579 | #include <stdarg.h> | |
3580 | #include <stdio.h> | |
3581 | #include <sys/types.h> | |
3582 | #include <sys/stat.h> | |
3583 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3584 | struct buf { int x; }; | |
3585 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3586 | static char *e (p, i) | |
3587 | char **p; | |
3588 | int i; | |
3589 | { | |
3590 | return p[i]; | |
3591 | } | |
3592 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3593 | { | |
3594 | char *s; | |
3595 | va_list v; | |
3596 | va_start (v,p); | |
3597 | s = g (p, va_arg (v,int)); | |
3598 | va_end (v); | |
3599 | return s; | |
3600 | } | |
3601 | ||
3602 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3603 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3604 | These don't provoke an error unfortunately, instead are silently treated | |
3605 | as 'x'. The following induces an error, until -std is added to get | |
3606 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3607 | array size at least. It's necessary to write '\x00'==0 to get something | |
3608 | that's true only with -std. */ | |
3609 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3610 | ||
3611 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3612 | inside strings and character constants. */ | |
3613 | #define FOO(x) 'x' | |
3614 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3615 | ||
3616 | int test (int i, double x); | |
3617 | struct s1 {int (*f) (int a);}; | |
3618 | struct s2 {int (*f) (double a);}; | |
3619 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3620 | int argc; | |
3621 | char **argv; | |
3622 | int | |
3623 | main () | |
3624 | { | |
3625 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3626 | ; | |
3627 | return 0; | |
3628 | } | |
3629 | _ACEOF | |
3630 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3631 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3632 | do | |
3633 | CC="$ac_save_CC $ac_arg" | |
3634 | if ac_fn_c_try_compile "$LINENO"; then : | |
3635 | ac_cv_prog_cc_c89=$ac_arg | |
3636 | fi | |
3637 | rm -f core conftest.err conftest.$ac_objext | |
3638 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3639 | done | |
3640 | rm -f conftest.$ac_ext | |
3641 | CC=$ac_save_CC | |
3642 | ||
3643 | fi | |
3644 | # AC_CACHE_VAL | |
3645 | case "x$ac_cv_prog_cc_c89" in | |
3646 | x) | |
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3648 | $as_echo "none needed" >&6; } ;; | |
3649 | xno) | |
3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3651 | $as_echo "unsupported" >&6; } ;; | |
3652 | *) | |
3653 | CC="$CC $ac_cv_prog_cc_c89" | |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3655 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3656 | esac | |
3657 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3658 | ||
3659 | fi | |
3660 | ||
3661 | ac_ext=c | |
3662 | ac_cpp='$CPP $CPPFLAGS' | |
3663 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3664 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3665 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3666 | DEPDIR="${am__leading_dot}deps" | |
3667 | ||
3668 | ac_config_commands="$ac_config_commands depfiles" | |
3669 | ||
3670 | ||
3671 | am_make=${MAKE-make} | |
3672 | cat > confinc << 'END' | |
3673 | am__doit: | |
3674 | @echo this is the am__doit target | |
3675 | .PHONY: am__doit | |
3676 | END | |
3677 | # If we don't find an include directive, just comment out the code. | |
3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3679 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3680 | am__include="#" | |
3681 | am__quote= | |
3682 | _am_result=none | |
3683 | # First try GNU make style include. | |
3684 | echo "include confinc" > confmf | |
3685 | # Ignore all kinds of additional output from `make'. | |
3686 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3687 | *the\ am__doit\ target*) | |
3688 | am__include=include | |
3689 | am__quote= | |
3690 | _am_result=GNU | |
3691 | ;; | |
3692 | esac | |
3693 | # Now try BSD make style include. | |
3694 | if test "$am__include" = "#"; then | |
3695 | echo '.include "confinc"' > confmf | |
3696 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3697 | *the\ am__doit\ target*) | |
3698 | am__include=.include | |
3699 | am__quote="\"" | |
3700 | _am_result=BSD | |
3701 | ;; | |
3702 | esac | |
3703 | fi | |
3704 | ||
3705 | ||
3706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3707 | $as_echo "$_am_result" >&6; } | |
3708 | rm -f confinc confmf | |
3709 | ||
3710 | # Check whether --enable-dependency-tracking was given. | |
3711 | if test "${enable_dependency_tracking+set}" = set; then : | |
3712 | enableval=$enable_dependency_tracking; | |
3713 | fi | |
3714 | ||
3715 | if test "x$enable_dependency_tracking" != xno; then | |
3716 | am_depcomp="$ac_aux_dir/depcomp" | |
3717 | AMDEPBACKSLASH='\' | |
3718 | fi | |
3719 | if test "x$enable_dependency_tracking" != xno; then | |
3720 | AMDEP_TRUE= | |
3721 | AMDEP_FALSE='#' | |
3722 | else | |
3723 | AMDEP_TRUE='#' | |
3724 | AMDEP_FALSE= | |
3725 | fi | |
3726 | ||
3727 | ||
3728 | ||
3729 | depcc="$CC" am_compiler_list= | |
3730 | ||
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3732 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3733 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3734 | $as_echo_n "(cached) " >&6 | |
3735 | else | |
3736 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3737 | # We make a subdir and do the tests there. Otherwise we can end up | |
3738 | # making bogus files that we don't know about and never remove. For | |
3739 | # instance it was reported that on HP-UX the gcc test will end up | |
3740 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3741 | # in D'. | |
3742 | mkdir conftest.dir | |
3743 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3744 | # using a relative directory. | |
3745 | cp "$am_depcomp" conftest.dir | |
3746 | cd conftest.dir | |
3747 | # We will build objects and dependencies in a subdirectory because | |
3748 | # it helps to detect inapplicable dependency modes. For instance | |
3749 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3750 | # side effect of compilation, but ICC will put the dependencies in | |
3751 | # the current directory while Tru64 will put them in the object | |
3752 | # directory. | |
3753 | mkdir sub | |
3754 | ||
3755 | am_cv_CC_dependencies_compiler_type=none | |
3756 | if test "$am_compiler_list" = ""; then | |
3757 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3758 | fi | |
3759 | am__universal=false | |
3760 | case " $depcc " in #( | |
3761 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3762 | esac | |
3763 | ||
3764 | for depmode in $am_compiler_list; do | |
3765 | # Setup a source with many dependencies, because some compilers | |
3766 | # like to wrap large dependency lists on column 80 (with \), and | |
3767 | # we should not choose a depcomp mode which is confused by this. | |
3768 | # | |
3769 | # We need to recreate these files for each test, as the compiler may | |
3770 | # overwrite some of them when testing with obscure command lines. | |
3771 | # This happens at least with the AIX C compiler. | |
3772 | : > sub/conftest.c | |
3773 | for i in 1 2 3 4 5 6; do | |
3774 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3775 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3776 | # Solaris 8's {/usr,}/bin/sh. | |
3777 | touch sub/conftst$i.h | |
3778 | done | |
3779 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3780 | ||
3781 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3782 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3783 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3784 | # versions had trouble with output in subdirs | |
3785 | am__obj=sub/conftest.${OBJEXT-o} | |
3786 | am__minus_obj="-o $am__obj" | |
3787 | case $depmode in | |
3788 | gcc) | |
3789 | # This depmode causes a compiler race in universal mode. | |
3790 | test "$am__universal" = false || continue | |
3791 | ;; | |
3792 | nosideeffect) | |
3793 | # after this tag, mechanisms are not by side-effect, so they'll | |
3794 | # only be used when explicitly requested | |
3795 | if test "x$enable_dependency_tracking" = xyes; then | |
3796 | continue | |
3797 | else | |
3798 | break | |
3799 | fi | |
3800 | ;; | |
3801 | msvisualcpp | msvcmsys) | |
3802 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3803 | # not run yet. These depmodes are late enough in the game, and | |
3804 | # so weak that their functioning should not be impacted. | |
3805 | am__obj=conftest.${OBJEXT-o} | |
3806 | am__minus_obj= | |
3807 | ;; | |
3808 | none) break ;; | |
3809 | esac | |
3810 | if depmode=$depmode \ | |
3811 | source=sub/conftest.c object=$am__obj \ | |
3812 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3813 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3814 | >/dev/null 2>conftest.err && | |
3815 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3816 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3817 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3818 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3819 | # icc doesn't choke on unknown options, it will just issue warnings | |
3820 | # or remarks (even with -Werror). So we grep stderr for any message | |
3821 | # that says an option was ignored or not supported. | |
3822 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3823 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3824 | # The diagnosis changed in icc 8.0: | |
3825 | # icc: Command line remark: option '-MP' not supported | |
3826 | if (grep 'ignoring option' conftest.err || | |
3827 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3828 | am_cv_CC_dependencies_compiler_type=$depmode | |
3829 | break | |
3830 | fi | |
3831 | fi | |
3832 | done | |
3833 | ||
3834 | cd .. | |
3835 | rm -rf conftest.dir | |
3836 | else | |
3837 | am_cv_CC_dependencies_compiler_type=none | |
3838 | fi | |
3839 | ||
3840 | fi | |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3842 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3843 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3844 | ||
3845 | if | |
3846 | test "x$enable_dependency_tracking" != xno \ | |
3847 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3848 | am__fastdepCC_TRUE= | |
3849 | am__fastdepCC_FALSE='#' | |
3850 | else | |
3851 | am__fastdepCC_TRUE='#' | |
3852 | am__fastdepCC_FALSE= | |
3853 | fi | |
3854 | ||
3855 | ||
3856 | if test -n "$ac_tool_prefix"; then | |
3857 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3858 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3860 | $as_echo_n "checking for $ac_word... " >&6; } | |
3861 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
3862 | $as_echo_n "(cached) " >&6 | |
3863 | else | |
3864 | if test -n "$RANLIB"; then | |
3865 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3866 | else | |
3867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3868 | for as_dir in $PATH | |
3869 | do | |
3870 | IFS=$as_save_IFS | |
3871 | test -z "$as_dir" && as_dir=. | |
3872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3874 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3876 | break 2 | |
3877 | fi | |
3878 | done | |
3879 | done | |
3880 | IFS=$as_save_IFS | |
3881 | ||
3882 | fi | |
3883 | fi | |
3884 | RANLIB=$ac_cv_prog_RANLIB | |
3885 | if test -n "$RANLIB"; then | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3887 | $as_echo "$RANLIB" >&6; } | |
3888 | else | |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3890 | $as_echo "no" >&6; } | |
3891 | fi | |
3892 | ||
3893 | ||
3894 | fi | |
3895 | if test -z "$ac_cv_prog_RANLIB"; then | |
3896 | ac_ct_RANLIB=$RANLIB | |
3897 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3898 | set dummy ranlib; ac_word=$2 | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3900 | $as_echo_n "checking for $ac_word... " >&6; } | |
3901 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
3903 | else | |
3904 | if test -n "$ac_ct_RANLIB"; then | |
3905 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3906 | else | |
3907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3908 | for as_dir in $PATH | |
3909 | do | |
3910 | IFS=$as_save_IFS | |
3911 | test -z "$as_dir" && as_dir=. | |
3912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3914 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3916 | break 2 | |
3917 | fi | |
3918 | done | |
3919 | done | |
3920 | IFS=$as_save_IFS | |
3921 | ||
3922 | fi | |
3923 | fi | |
3924 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3925 | if test -n "$ac_ct_RANLIB"; then | |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3927 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3928 | else | |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3930 | $as_echo "no" >&6; } | |
3931 | fi | |
3932 | ||
3933 | if test "x$ac_ct_RANLIB" = x; then | |
3934 | RANLIB=":" | |
3935 | else | |
3936 | case $cross_compiling:$ac_tool_warned in | |
3937 | yes:) | |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3939 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3940 | ac_tool_warned=yes ;; | |
3941 | esac | |
3942 | RANLIB=$ac_ct_RANLIB | |
3943 | fi | |
3944 | else | |
3945 | RANLIB="$ac_cv_prog_RANLIB" | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | # Checks for libraries. | |
3950 | ||
3951 | ||
3952 | ||
3953 | ||
3954 | ||
3955 | ||
3956 | ||
3957 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
3958 | if test -n "$ac_tool_prefix"; then | |
3959 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
3960 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3962 | $as_echo_n "checking for $ac_word... " >&6; } | |
3963 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
3964 | $as_echo_n "(cached) " >&6 | |
3965 | else | |
3966 | case $PKG_CONFIG in | |
3967 | [\\/]* | ?:[\\/]*) | |
3968 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
3969 | ;; | |
3970 | *) | |
3971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3972 | for as_dir in $PATH | |
3973 | do | |
3974 | IFS=$as_save_IFS | |
3975 | test -z "$as_dir" && as_dir=. | |
3976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3978 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
3979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3980 | break 2 | |
3981 | fi | |
3982 | done | |
3983 | done | |
3984 | IFS=$as_save_IFS | |
3985 | ||
3986 | ;; | |
3987 | esac | |
3988 | fi | |
3989 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
3990 | if test -n "$PKG_CONFIG"; then | |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
3992 | $as_echo "$PKG_CONFIG" >&6; } | |
3993 | else | |
3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3995 | $as_echo "no" >&6; } | |
3996 | fi | |
3997 | ||
3998 | ||
3999 | fi | |
4000 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4001 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4002 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4003 | set dummy pkg-config; ac_word=$2 | |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4005 | $as_echo_n "checking for $ac_word... " >&6; } | |
4006 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
4007 | $as_echo_n "(cached) " >&6 | |
4008 | else | |
4009 | case $ac_pt_PKG_CONFIG in | |
4010 | [\\/]* | ?:[\\/]*) | |
4011 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4012 | ;; | |
4013 | *) | |
4014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4015 | for as_dir in $PATH | |
4016 | do | |
4017 | IFS=$as_save_IFS | |
4018 | test -z "$as_dir" && as_dir=. | |
4019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4021 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4023 | break 2 | |
4024 | fi | |
4025 | done | |
4026 | done | |
4027 | IFS=$as_save_IFS | |
4028 | ||
4029 | ;; | |
4030 | esac | |
4031 | fi | |
4032 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4033 | if test -n "$ac_pt_PKG_CONFIG"; then | |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
4035 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
4036 | else | |
4037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4038 | $as_echo "no" >&6; } | |
4039 | fi | |
4040 | ||
4041 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4042 | PKG_CONFIG="" | |
4043 | else | |
4044 | case $cross_compiling:$ac_tool_warned in | |
4045 | yes:) | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4047 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4048 | ac_tool_warned=yes ;; | |
4049 | esac | |
4050 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4051 | fi | |
4052 | else | |
4053 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4054 | fi | |
4055 | ||
4056 | fi | |
4057 | if test -n "$PKG_CONFIG"; then | |
4058 | _pkg_min_version=0.9.0 | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4060 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
4061 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4063 | $as_echo "yes" >&6; } | |
4064 | else | |
4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4066 | $as_echo "no" >&6; } | |
4067 | PKG_CONFIG="" | |
4068 | fi | |
4069 | fi | |
4070 | ||
4071 | pkg_failed=no | |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 | |
4073 | $as_echo_n "checking for CHECK... " >&6; } | |
4074 | ||
4075 | if test -n "$CHECK_CFLAGS"; then | |
4076 | pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" | |
4077 | elif test -n "$PKG_CONFIG"; then | |
4078 | if test -n "$PKG_CONFIG" && \ | |
4079 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 | |
4080 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 | |
4081 | ac_status=$? | |
4082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4083 | test $ac_status = 0; }; then | |
4084 | pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` | |
4085 | else | |
4086 | pkg_failed=yes | |
4087 | fi | |
4088 | else | |
4089 | pkg_failed=untried | |
4090 | fi | |
4091 | if test -n "$CHECK_LIBS"; then | |
4092 | pkg_cv_CHECK_LIBS="$CHECK_LIBS" | |
4093 | elif test -n "$PKG_CONFIG"; then | |
4094 | if test -n "$PKG_CONFIG" && \ | |
4095 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 | |
4096 | ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 | |
4097 | ac_status=$? | |
4098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4099 | test $ac_status = 0; }; then | |
4100 | pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` | |
4101 | else | |
4102 | pkg_failed=yes | |
4103 | fi | |
4104 | else | |
4105 | pkg_failed=untried | |
4106 | fi | |
4107 | ||
4108 | ||
4109 | ||
4110 | if test $pkg_failed = yes; then | |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4112 | $as_echo "no" >&6; } | |
4113 | ||
4114 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4115 | _pkg_short_errors_supported=yes | |
4116 | else | |
4117 | _pkg_short_errors_supported=no | |
4118 | fi | |
4119 | if test $_pkg_short_errors_supported = yes; then | |
4120 | CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.4" 2>&1` | |
4121 | else | |
4122 | CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.4" 2>&1` | |
4123 | fi | |
4124 | # Put the nasty error message in config.log where it belongs | |
4125 | echo "$CHECK_PKG_ERRORS" >&5 | |
4126 | ||
4127 | as_fn_error $? "check not found" "$LINENO" 5 | |
4128 | elif test $pkg_failed = untried; then | |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4130 | $as_echo "no" >&6; } | |
4131 | as_fn_error $? "check not found" "$LINENO" 5 | |
4132 | else | |
4133 | CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS | |
4134 | CHECK_LIBS=$pkg_cv_CHECK_LIBS | |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4136 | $as_echo "yes" >&6; } | |
4137 | HAVE_CHECK="yes" | |
4138 | fi | |
4139 | ||
4140 | ||
4141 | pkg_failed=no | |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRRD" >&5 | |
4143 | $as_echo_n "checking for LIBRRD... " >&6; } | |
4144 | ||
4145 | if test -n "$LIBRRD_CFLAGS"; then | |
4146 | pkg_cv_LIBRRD_CFLAGS="$LIBRRD_CFLAGS" | |
4147 | elif test -n "$PKG_CONFIG"; then | |
4148 | if test -n "$PKG_CONFIG" && \ | |
4149 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librrd >= 1.4.3\""; } >&5 | |
4150 | ($PKG_CONFIG --exists --print-errors "librrd >= 1.4.3") 2>&5 | |
4151 | ac_status=$? | |
4152 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4153 | test $ac_status = 0; }; then | |
4154 | pkg_cv_LIBRRD_CFLAGS=`$PKG_CONFIG --cflags "librrd >= 1.4.3" 2>/dev/null` | |
4155 | else | |
4156 | pkg_failed=yes | |
4157 | fi | |
4158 | else | |
4159 | pkg_failed=untried | |
4160 | fi | |
4161 | if test -n "$LIBRRD_LIBS"; then | |
4162 | pkg_cv_LIBRRD_LIBS="$LIBRRD_LIBS" | |
4163 | elif test -n "$PKG_CONFIG"; then | |
4164 | if test -n "$PKG_CONFIG" && \ | |
4165 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librrd >= 1.4.3\""; } >&5 | |
4166 | ($PKG_CONFIG --exists --print-errors "librrd >= 1.4.3") 2>&5 | |
4167 | ac_status=$? | |
4168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4169 | test $ac_status = 0; }; then | |
4170 | pkg_cv_LIBRRD_LIBS=`$PKG_CONFIG --libs "librrd >= 1.4.3" 2>/dev/null` | |
4171 | else | |
4172 | pkg_failed=yes | |
4173 | fi | |
4174 | else | |
4175 | pkg_failed=untried | |
4176 | fi | |
4177 | ||
4178 | ||
4179 | ||
4180 | if test $pkg_failed = yes; then | |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4182 | $as_echo "no" >&6; } | |
4183 | ||
4184 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4185 | _pkg_short_errors_supported=yes | |
4186 | else | |
4187 | _pkg_short_errors_supported=no | |
4188 | fi | |
4189 | if test $_pkg_short_errors_supported = yes; then | |
4190 | LIBRRD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librrd >= 1.4.3" 2>&1` | |
4191 | else | |
4192 | LIBRRD_PKG_ERRORS=`$PKG_CONFIG --print-errors "librrd >= 1.4.3" 2>&1` | |
4193 | fi | |
4194 | # Put the nasty error message in config.log where it belongs | |
4195 | echo "$LIBRRD_PKG_ERRORS" >&5 | |
4196 | ||
4197 | as_fn_error $? "librrd not found" "$LINENO" 5 | |
4198 | elif test $pkg_failed = untried; then | |
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4200 | $as_echo "no" >&6; } | |
4201 | as_fn_error $? "librrd not found" "$LINENO" 5 | |
4202 | else | |
4203 | LIBRRD_CFLAGS=$pkg_cv_LIBRRD_CFLAGS | |
4204 | LIBRRD_LIBS=$pkg_cv_LIBRRD_LIBS | |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4206 | $as_echo "yes" >&6; } | |
4207 | HAVE_LIBRRD="yes" | |
4208 | fi | |
4209 | ||
4210 | ||
4211 | ||
4212 | ||
4213 | pkg_failed=no | |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 | |
4215 | $as_echo_n "checking for GLIB... " >&6; } | |
4216 | ||
4217 | if test -n "$GLIB_CFLAGS"; then | |
4218 | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" | |
4219 | elif test -n "$PKG_CONFIG"; then | |
4220 | if test -n "$PKG_CONFIG" && \ | |
4221 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0\""; } >&5 | |
4222 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0") 2>&5 | |
4223 | ac_status=$? | |
4224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4225 | test $ac_status = 0; }; then | |
4226 | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0" 2>/dev/null` | |
4227 | else | |
4228 | pkg_failed=yes | |
4229 | fi | |
4230 | else | |
4231 | pkg_failed=untried | |
4232 | fi | |
4233 | if test -n "$GLIB_LIBS"; then | |
4234 | pkg_cv_GLIB_LIBS="$GLIB_LIBS" | |
4235 | elif test -n "$PKG_CONFIG"; then | |
4236 | if test -n "$PKG_CONFIG" && \ | |
4237 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0\""; } >&5 | |
4238 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0") 2>&5 | |
4239 | ac_status=$? | |
4240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4241 | test $ac_status = 0; }; then | |
4242 | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0" 2>/dev/null` | |
4243 | else | |
4244 | pkg_failed=yes | |
4245 | fi | |
4246 | else | |
4247 | pkg_failed=untried | |
4248 | fi | |
4249 | ||
4250 | ||
4251 | ||
4252 | if test $pkg_failed = yes; then | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4254 | $as_echo "no" >&6; } | |
4255 | ||
4256 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4257 | _pkg_short_errors_supported=yes | |
4258 | else | |
4259 | _pkg_short_errors_supported=no | |
4260 | fi | |
4261 | if test $_pkg_short_errors_supported = yes; then | |
4262 | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0" 2>&1` | |
4263 | else | |
4264 | GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.2.0 gthread-2.0 >= 2.2.0" 2>&1` | |
4265 | fi | |
4266 | # Put the nasty error message in config.log where it belongs | |
4267 | echo "$GLIB_PKG_ERRORS" >&5 | |
4268 | ||
4269 | as_fn_error $? "glib not found" "$LINENO" 5 | |
4270 | elif test $pkg_failed = untried; then | |
4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4272 | $as_echo "no" >&6; } | |
4273 | as_fn_error $? "glib not found" "$LINENO" 5 | |
4274 | else | |
4275 | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS | |
4276 | GLIB_LIBS=$pkg_cv_GLIB_LIBS | |
4277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4278 | $as_echo "yes" >&6; } | |
4279 | HAVE_GLIB="yes" | |
4280 | fi | |
4281 | ||
4282 | ||
4283 | ||
4284 | ||
4285 | pkg_failed=no | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSE" >&5 | |
4287 | $as_echo_n "checking for FUSE... " >&6; } | |
4288 | ||
4289 | if test -n "$FUSE_CFLAGS"; then | |
4290 | pkg_cv_FUSE_CFLAGS="$FUSE_CFLAGS" | |
4291 | elif test -n "$PKG_CONFIG"; then | |
4292 | if test -n "$PKG_CONFIG" && \ | |
4293 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.7.4\""; } >&5 | |
4294 | ($PKG_CONFIG --exists --print-errors "fuse >= 2.7.4") 2>&5 | |
4295 | ac_status=$? | |
4296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4297 | test $ac_status = 0; }; then | |
4298 | pkg_cv_FUSE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.7.4" 2>/dev/null` | |
4299 | else | |
4300 | pkg_failed=yes | |
4301 | fi | |
4302 | else | |
4303 | pkg_failed=untried | |
4304 | fi | |
4305 | if test -n "$FUSE_LIBS"; then | |
4306 | pkg_cv_FUSE_LIBS="$FUSE_LIBS" | |
4307 | elif test -n "$PKG_CONFIG"; then | |
4308 | if test -n "$PKG_CONFIG" && \ | |
4309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.7.4\""; } >&5 | |
4310 | ($PKG_CONFIG --exists --print-errors "fuse >= 2.7.4") 2>&5 | |
4311 | ac_status=$? | |
4312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4313 | test $ac_status = 0; }; then | |
4314 | pkg_cv_FUSE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.7.4" 2>/dev/null` | |
4315 | else | |
4316 | pkg_failed=yes | |
4317 | fi | |
4318 | else | |
4319 | pkg_failed=untried | |
4320 | fi | |
4321 | ||
4322 | ||
4323 | ||
4324 | if test $pkg_failed = yes; then | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4326 | $as_echo "no" >&6; } | |
4327 | ||
4328 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4329 | _pkg_short_errors_supported=yes | |
4330 | else | |
4331 | _pkg_short_errors_supported=no | |
4332 | fi | |
4333 | if test $_pkg_short_errors_supported = yes; then | |
4334 | FUSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fuse >= 2.7.4" 2>&1` | |
4335 | else | |
4336 | FUSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fuse >= 2.7.4" 2>&1` | |
4337 | fi | |
4338 | # Put the nasty error message in config.log where it belongs | |
4339 | echo "$FUSE_PKG_ERRORS" >&5 | |
4340 | ||
4341 | as_fn_error $? "fuse not found" "$LINENO" 5 | |
4342 | elif test $pkg_failed = untried; then | |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4344 | $as_echo "no" >&6; } | |
4345 | as_fn_error $? "fuse not found" "$LINENO" 5 | |
4346 | else | |
4347 | FUSE_CFLAGS=$pkg_cv_FUSE_CFLAGS | |
4348 | FUSE_LIBS=$pkg_cv_FUSE_LIBS | |
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4350 | $as_echo "yes" >&6; } | |
4351 | HAVE_FUSE="yes" | |
4352 | fi | |
4353 | ||
4354 | ||
4355 | ||
4356 | ||
4357 | pkg_failed=no | |
4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
4359 | $as_echo_n "checking for COROSYNC... " >&6; } | |
4360 | ||
4361 | if test -n "$COROSYNC_CFLAGS"; then | |
4362 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
4363 | elif test -n "$PKG_CONFIG"; then | |
4364 | if test -n "$PKG_CONFIG" && \ | |
4365 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb\""; } >&5 | |
4366 | ($PKG_CONFIG --exists --print-errors "libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb") 2>&5 | |
4367 | ac_status=$? | |
4368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4369 | test $ac_status = 0; }; then | |
4370 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb" 2>/dev/null` | |
4371 | else | |
4372 | pkg_failed=yes | |
4373 | fi | |
4374 | else | |
4375 | pkg_failed=untried | |
4376 | fi | |
4377 | if test -n "$COROSYNC_LIBS"; then | |
4378 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
4379 | elif test -n "$PKG_CONFIG"; then | |
4380 | if test -n "$PKG_CONFIG" && \ | |
4381 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb\""; } >&5 | |
4382 | ($PKG_CONFIG --exists --print-errors "libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb") 2>&5 | |
4383 | ac_status=$? | |
4384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4385 | test $ac_status = 0; }; then | |
4386 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb" 2>/dev/null` | |
4387 | else | |
4388 | pkg_failed=yes | |
4389 | fi | |
4390 | else | |
4391 | pkg_failed=untried | |
4392 | fi | |
4393 | ||
4394 | ||
4395 | ||
4396 | if test $pkg_failed = yes; then | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4398 | $as_echo "no" >&6; } | |
4399 | ||
4400 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4401 | _pkg_short_errors_supported=yes | |
4402 | else | |
4403 | _pkg_short_errors_supported=no | |
4404 | fi | |
4405 | if test $_pkg_short_errors_supported = yes; then | |
4406 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb" 2>&1` | |
4407 | else | |
4408 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum >= 1.2.8 libcpg >= 1.2.8 libconfdb" 2>&1` | |
4409 | fi | |
4410 | # Put the nasty error message in config.log where it belongs | |
4411 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
4412 | ||
4413 | as_fn_error $? "corosync not found" "$LINENO" 5 | |
4414 | elif test $pkg_failed = untried; then | |
4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4416 | $as_echo "no" >&6; } | |
4417 | as_fn_error $? "corosync not found" "$LINENO" 5 | |
4418 | else | |
4419 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
4420 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4422 | $as_echo "yes" >&6; } | |
4423 | HAVE_COROSYNC="yes" | |
4424 | fi | |
4425 | ||
4426 | ||
4427 | ||
4428 | ||
4429 | pkg_failed=no | |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QB" >&5 | |
4431 | $as_echo_n "checking for QB... " >&6; } | |
4432 | ||
4433 | if test -n "$QB_CFLAGS"; then | |
4434 | pkg_cv_QB_CFLAGS="$QB_CFLAGS" | |
4435 | elif test -n "$PKG_CONFIG"; then | |
4436 | if test -n "$PKG_CONFIG" && \ | |
4437 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5 | |
4438 | ($PKG_CONFIG --exists --print-errors "libqb") 2>&5 | |
4439 | ac_status=$? | |
4440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4441 | test $ac_status = 0; }; then | |
4442 | pkg_cv_QB_CFLAGS=`$PKG_CONFIG --cflags "libqb" 2>/dev/null` | |
4443 | else | |
4444 | pkg_failed=yes | |
4445 | fi | |
4446 | else | |
4447 | pkg_failed=untried | |
4448 | fi | |
4449 | if test -n "$QB_LIBS"; then | |
4450 | pkg_cv_QB_LIBS="$QB_LIBS" | |
4451 | elif test -n "$PKG_CONFIG"; then | |
4452 | if test -n "$PKG_CONFIG" && \ | |
4453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqb\""; } >&5 | |
4454 | ($PKG_CONFIG --exists --print-errors "libqb") 2>&5 | |
4455 | ac_status=$? | |
4456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4457 | test $ac_status = 0; }; then | |
4458 | pkg_cv_QB_LIBS=`$PKG_CONFIG --libs "libqb" 2>/dev/null` | |
4459 | else | |
4460 | pkg_failed=yes | |
4461 | fi | |
4462 | else | |
4463 | pkg_failed=untried | |
4464 | fi | |
4465 | ||
4466 | ||
4467 | ||
4468 | if test $pkg_failed = yes; then | |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4470 | $as_echo "no" >&6; } | |
4471 | ||
4472 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4473 | _pkg_short_errors_supported=yes | |
4474 | else | |
4475 | _pkg_short_errors_supported=no | |
4476 | fi | |
4477 | if test $_pkg_short_errors_supported = yes; then | |
4478 | QB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libqb" 2>&1` | |
4479 | else | |
4480 | QB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libqb" 2>&1` | |
4481 | fi | |
4482 | # Put the nasty error message in config.log where it belongs | |
4483 | echo "$QB_PKG_ERRORS" >&5 | |
4484 | ||
4485 | as_fn_error $? "libqb not found" "$LINENO" 5 | |
4486 | elif test $pkg_failed = untried; then | |
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4488 | $as_echo "no" >&6; } | |
4489 | as_fn_error $? "libqb not found" "$LINENO" 5 | |
4490 | else | |
4491 | QB_CFLAGS=$pkg_cv_QB_CFLAGS | |
4492 | QB_LIBS=$pkg_cv_QB_LIBS | |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4494 | $as_echo "yes" >&6; } | |
4495 | HAVE_QB="yes" | |
4496 | fi | |
4497 | ||
4498 | ||
4499 | ||
4500 | ||
4501 | pkg_failed=no | |
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5 | |
4503 | $as_echo_n "checking for SQLITE3... " >&6; } | |
4504 | ||
4505 | if test -n "$SQLITE3_CFLAGS"; then | |
4506 | pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS" | |
4507 | elif test -n "$PKG_CONFIG"; then | |
4508 | if test -n "$PKG_CONFIG" && \ | |
4509 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
4510 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
4511 | ac_status=$? | |
4512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4513 | test $ac_status = 0; }; then | |
4514 | pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
4515 | else | |
4516 | pkg_failed=yes | |
4517 | fi | |
4518 | else | |
4519 | pkg_failed=untried | |
4520 | fi | |
4521 | if test -n "$SQLITE3_LIBS"; then | |
4522 | pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS" | |
4523 | elif test -n "$PKG_CONFIG"; then | |
4524 | if test -n "$PKG_CONFIG" && \ | |
4525 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
4526 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
4527 | ac_status=$? | |
4528 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4529 | test $ac_status = 0; }; then | |
4530 | pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
4531 | else | |
4532 | pkg_failed=yes | |
4533 | fi | |
4534 | else | |
4535 | pkg_failed=untried | |
4536 | fi | |
4537 | ||
4538 | ||
4539 | ||
4540 | if test $pkg_failed = yes; then | |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4542 | $as_echo "no" >&6; } | |
4543 | ||
4544 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
4545 | _pkg_short_errors_supported=yes | |
4546 | else | |
4547 | _pkg_short_errors_supported=no | |
4548 | fi | |
4549 | if test $_pkg_short_errors_supported = yes; then | |
4550 | SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sqlite3" 2>&1` | |
4551 | else | |
4552 | SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors "sqlite3" 2>&1` | |
4553 | fi | |
4554 | # Put the nasty error message in config.log where it belongs | |
4555 | echo "$SQLITE3_PKG_ERRORS" >&5 | |
4556 | ||
4557 | as_fn_error $? "sqlite3 not found" "$LINENO" 5 | |
4558 | elif test $pkg_failed = untried; then | |
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4560 | $as_echo "no" >&6; } | |
4561 | as_fn_error $? "sqlite3 not found" "$LINENO" 5 | |
4562 | else | |
4563 | SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS | |
4564 | SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS | |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4566 | $as_echo "yes" >&6; } | |
4567 | HAVE_SQLITE3="yes" | |
4568 | fi | |
4569 | ||
4570 | ||
4571 | ||
4572 | # Checks for header files. | |
4573 | ||
4574 | ac_header_dirent=no | |
4575 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4576 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4578 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4579 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4580 | $as_echo_n "(cached) " >&6 | |
4581 | else | |
4582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4583 | /* end confdefs.h. */ | |
4584 | #include <sys/types.h> | |
4585 | #include <$ac_hdr> | |
4586 | ||
4587 | int | |
4588 | main () | |
4589 | { | |
4590 | if ((DIR *) 0) | |
4591 | return 0; | |
4592 | ; | |
4593 | return 0; | |
4594 | } | |
4595 | _ACEOF | |
4596 | if ac_fn_c_try_compile "$LINENO"; then : | |
4597 | eval "$as_ac_Header=yes" | |
4598 | else | |
4599 | eval "$as_ac_Header=no" | |
4600 | fi | |
4601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4602 | fi | |
4603 | eval ac_res=\$$as_ac_Header | |
4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4605 | $as_echo "$ac_res" >&6; } | |
4606 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4607 | cat >>confdefs.h <<_ACEOF | |
4608 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4609 | _ACEOF | |
4610 | ||
4611 | ac_header_dirent=$ac_hdr; break | |
4612 | fi | |
4613 | ||
4614 | done | |
4615 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4616 | if test $ac_header_dirent = dirent.h; then | |
4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4618 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4619 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4620 | $as_echo_n "(cached) " >&6 | |
4621 | else | |
4622 | ac_func_search_save_LIBS=$LIBS | |
4623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4624 | /* end confdefs.h. */ | |
4625 | ||
4626 | /* Override any GCC internal prototype to avoid an error. | |
4627 | Use char because int might match the return type of a GCC | |
4628 | builtin and then its argument prototype would still apply. */ | |
4629 | #ifdef __cplusplus | |
4630 | extern "C" | |
4631 | #endif | |
4632 | char opendir (); | |
4633 | int | |
4634 | main () | |
4635 | { | |
4636 | return opendir (); | |
4637 | ; | |
4638 | return 0; | |
4639 | } | |
4640 | _ACEOF | |
4641 | for ac_lib in '' dir; do | |
4642 | if test -z "$ac_lib"; then | |
4643 | ac_res="none required" | |
4644 | else | |
4645 | ac_res=-l$ac_lib | |
4646 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4647 | fi | |
4648 | if ac_fn_c_try_link "$LINENO"; then : | |
4649 | ac_cv_search_opendir=$ac_res | |
4650 | fi | |
4651 | rm -f core conftest.err conftest.$ac_objext \ | |
4652 | conftest$ac_exeext | |
4653 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4654 | break | |
4655 | fi | |
4656 | done | |
4657 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4658 | ||
4659 | else | |
4660 | ac_cv_search_opendir=no | |
4661 | fi | |
4662 | rm conftest.$ac_ext | |
4663 | LIBS=$ac_func_search_save_LIBS | |
4664 | fi | |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4666 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4667 | ac_res=$ac_cv_search_opendir | |
4668 | if test "$ac_res" != no; then : | |
4669 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4670 | ||
4671 | fi | |
4672 | ||
4673 | else | |
4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4675 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4676 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4677 | $as_echo_n "(cached) " >&6 | |
4678 | else | |
4679 | ac_func_search_save_LIBS=$LIBS | |
4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4681 | /* end confdefs.h. */ | |
4682 | ||
4683 | /* Override any GCC internal prototype to avoid an error. | |
4684 | Use char because int might match the return type of a GCC | |
4685 | builtin and then its argument prototype would still apply. */ | |
4686 | #ifdef __cplusplus | |
4687 | extern "C" | |
4688 | #endif | |
4689 | char opendir (); | |
4690 | int | |
4691 | main () | |
4692 | { | |
4693 | return opendir (); | |
4694 | ; | |
4695 | return 0; | |
4696 | } | |
4697 | _ACEOF | |
4698 | for ac_lib in '' x; do | |
4699 | if test -z "$ac_lib"; then | |
4700 | ac_res="none required" | |
4701 | else | |
4702 | ac_res=-l$ac_lib | |
4703 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4704 | fi | |
4705 | if ac_fn_c_try_link "$LINENO"; then : | |
4706 | ac_cv_search_opendir=$ac_res | |
4707 | fi | |
4708 | rm -f core conftest.err conftest.$ac_objext \ | |
4709 | conftest$ac_exeext | |
4710 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4711 | break | |
4712 | fi | |
4713 | done | |
4714 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4715 | ||
4716 | else | |
4717 | ac_cv_search_opendir=no | |
4718 | fi | |
4719 | rm conftest.$ac_ext | |
4720 | LIBS=$ac_func_search_save_LIBS | |
4721 | fi | |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4723 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4724 | ac_res=$ac_cv_search_opendir | |
4725 | if test "$ac_res" != no; then : | |
4726 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4727 | ||
4728 | fi | |
4729 | ||
4730 | fi | |
4731 | ||
4732 | ac_ext=c | |
4733 | ac_cpp='$CPP $CPPFLAGS' | |
4734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4738 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4739 | # On Suns, sometimes $CPP names a directory. | |
4740 | if test -n "$CPP" && test -d "$CPP"; then | |
4741 | CPP= | |
4742 | fi | |
4743 | if test -z "$CPP"; then | |
4744 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
4745 | $as_echo_n "(cached) " >&6 | |
4746 | else | |
4747 | # Double quotes because CPP needs to be expanded | |
4748 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4749 | do | |
4750 | ac_preproc_ok=false | |
4751 | for ac_c_preproc_warn_flag in '' yes | |
4752 | do | |
4753 | # Use a header file that comes with gcc, so configuring glibc | |
4754 | # with a fresh cross-compiler works. | |
4755 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4756 | # <limits.h> exists even on freestanding compilers. | |
4757 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4758 | # not just through cpp. "Syntax error" is here to catch this case. | |
4759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4760 | /* end confdefs.h. */ | |
4761 | #ifdef __STDC__ | |
4762 | # include <limits.h> | |
4763 | #else | |
4764 | # include <assert.h> | |
4765 | #endif | |
4766 | Syntax error | |
4767 | _ACEOF | |
4768 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4769 | ||
4770 | else | |
4771 | # Broken: fails on valid input. | |
4772 | continue | |
4773 | fi | |
4774 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4775 | ||
4776 | # OK, works on sane cases. Now check whether nonexistent headers | |
4777 | # can be detected and how. | |
4778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4779 | /* end confdefs.h. */ | |
4780 | #include <ac_nonexistent.h> | |
4781 | _ACEOF | |
4782 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4783 | # Broken: success on invalid input. | |
4784 | continue | |
4785 | else | |
4786 | # Passes both tests. | |
4787 | ac_preproc_ok=: | |
4788 | break | |
4789 | fi | |
4790 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4791 | ||
4792 | done | |
4793 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4794 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4795 | if $ac_preproc_ok; then : | |
4796 | break | |
4797 | fi | |
4798 | ||
4799 | done | |
4800 | ac_cv_prog_CPP=$CPP | |
4801 | ||
4802 | fi | |
4803 | CPP=$ac_cv_prog_CPP | |
4804 | else | |
4805 | ac_cv_prog_CPP=$CPP | |
4806 | fi | |
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4808 | $as_echo "$CPP" >&6; } | |
4809 | ac_preproc_ok=false | |
4810 | for ac_c_preproc_warn_flag in '' yes | |
4811 | do | |
4812 | # Use a header file that comes with gcc, so configuring glibc | |
4813 | # with a fresh cross-compiler works. | |
4814 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4815 | # <limits.h> exists even on freestanding compilers. | |
4816 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4817 | # not just through cpp. "Syntax error" is here to catch this case. | |
4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4819 | /* end confdefs.h. */ | |
4820 | #ifdef __STDC__ | |
4821 | # include <limits.h> | |
4822 | #else | |
4823 | # include <assert.h> | |
4824 | #endif | |
4825 | Syntax error | |
4826 | _ACEOF | |
4827 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4828 | ||
4829 | else | |
4830 | # Broken: fails on valid input. | |
4831 | continue | |
4832 | fi | |
4833 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4834 | ||
4835 | # OK, works on sane cases. Now check whether nonexistent headers | |
4836 | # can be detected and how. | |
4837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4838 | /* end confdefs.h. */ | |
4839 | #include <ac_nonexistent.h> | |
4840 | _ACEOF | |
4841 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4842 | # Broken: success on invalid input. | |
4843 | continue | |
4844 | else | |
4845 | # Passes both tests. | |
4846 | ac_preproc_ok=: | |
4847 | break | |
4848 | fi | |
4849 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4850 | ||
4851 | done | |
4852 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4853 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4854 | if $ac_preproc_ok; then : | |
4855 | ||
4856 | else | |
4857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4858 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4859 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4860 | See \`config.log' for more details" "$LINENO" 5 ; } | |
4861 | fi | |
4862 | ||
4863 | ac_ext=c | |
4864 | ac_cpp='$CPP $CPPFLAGS' | |
4865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4868 | ||
4869 | ||
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4871 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4872 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4873 | $as_echo_n "(cached) " >&6 | |
4874 | else | |
4875 | if test -z "$GREP"; then | |
4876 | ac_path_GREP_found=false | |
4877 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4879 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4880 | do | |
4881 | IFS=$as_save_IFS | |
4882 | test -z "$as_dir" && as_dir=. | |
4883 | for ac_prog in grep ggrep; do | |
4884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4885 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4886 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4887 | # Check for GNU ac_path_GREP and select it if it is found. | |
4888 | # Check for GNU $ac_path_GREP | |
4889 | case `"$ac_path_GREP" --version 2>&1` in | |
4890 | *GNU*) | |
4891 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4892 | *) | |
4893 | ac_count=0 | |
4894 | $as_echo_n 0123456789 >"conftest.in" | |
4895 | while : | |
4896 | do | |
4897 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4898 | mv "conftest.tmp" "conftest.in" | |
4899 | cp "conftest.in" "conftest.nl" | |
4900 | $as_echo 'GREP' >> "conftest.nl" | |
4901 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4902 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4903 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4904 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4905 | # Best one so far, save it but keep looking for a better one | |
4906 | ac_cv_path_GREP="$ac_path_GREP" | |
4907 | ac_path_GREP_max=$ac_count | |
4908 | fi | |
4909 | # 10*(2^10) chars as input seems more than enough | |
4910 | test $ac_count -gt 10 && break | |
4911 | done | |
4912 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4913 | esac | |
4914 | ||
4915 | $ac_path_GREP_found && break 3 | |
4916 | done | |
4917 | done | |
4918 | done | |
4919 | IFS=$as_save_IFS | |
4920 | if test -z "$ac_cv_path_GREP"; then | |
4921 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4922 | fi | |
4923 | else | |
4924 | ac_cv_path_GREP=$GREP | |
4925 | fi | |
4926 | ||
4927 | fi | |
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4929 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4930 | GREP="$ac_cv_path_GREP" | |
4931 | ||
4932 | ||
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4934 | $as_echo_n "checking for egrep... " >&6; } | |
4935 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4936 | $as_echo_n "(cached) " >&6 | |
4937 | else | |
4938 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4939 | then ac_cv_path_EGREP="$GREP -E" | |
4940 | else | |
4941 | if test -z "$EGREP"; then | |
4942 | ac_path_EGREP_found=false | |
4943 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4945 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4946 | do | |
4947 | IFS=$as_save_IFS | |
4948 | test -z "$as_dir" && as_dir=. | |
4949 | for ac_prog in egrep; do | |
4950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4951 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4952 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4953 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4954 | # Check for GNU $ac_path_EGREP | |
4955 | case `"$ac_path_EGREP" --version 2>&1` in | |
4956 | *GNU*) | |
4957 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4958 | *) | |
4959 | ac_count=0 | |
4960 | $as_echo_n 0123456789 >"conftest.in" | |
4961 | while : | |
4962 | do | |
4963 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4964 | mv "conftest.tmp" "conftest.in" | |
4965 | cp "conftest.in" "conftest.nl" | |
4966 | $as_echo 'EGREP' >> "conftest.nl" | |
4967 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4968 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4969 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4970 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4971 | # Best one so far, save it but keep looking for a better one | |
4972 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4973 | ac_path_EGREP_max=$ac_count | |
4974 | fi | |
4975 | # 10*(2^10) chars as input seems more than enough | |
4976 | test $ac_count -gt 10 && break | |
4977 | done | |
4978 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4979 | esac | |
4980 | ||
4981 | $ac_path_EGREP_found && break 3 | |
4982 | done | |
4983 | done | |
4984 | done | |
4985 | IFS=$as_save_IFS | |
4986 | if test -z "$ac_cv_path_EGREP"; then | |
4987 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4988 | fi | |
4989 | else | |
4990 | ac_cv_path_EGREP=$EGREP | |
4991 | fi | |
4992 | ||
4993 | fi | |
4994 | fi | |
4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4996 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4997 | EGREP="$ac_cv_path_EGREP" | |
4998 | ||
4999 | ||
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5001 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5002 | if test "${ac_cv_header_stdc+set}" = set; then : | |
5003 | $as_echo_n "(cached) " >&6 | |
5004 | else | |
5005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5006 | /* end confdefs.h. */ | |
5007 | #include <stdlib.h> | |
5008 | #include <stdarg.h> | |
5009 | #include <string.h> | |
5010 | #include <float.h> | |
5011 | ||
5012 | int | |
5013 | main () | |
5014 | { | |
5015 | ||
5016 | ; | |
5017 | return 0; | |
5018 | } | |
5019 | _ACEOF | |
5020 | if ac_fn_c_try_compile "$LINENO"; then : | |
5021 | ac_cv_header_stdc=yes | |
5022 | else | |
5023 | ac_cv_header_stdc=no | |
5024 | fi | |
5025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5026 | ||
5027 | if test $ac_cv_header_stdc = yes; then | |
5028 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5030 | /* end confdefs.h. */ | |
5031 | #include <string.h> | |
5032 | ||
5033 | _ACEOF | |
5034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5035 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5036 | ||
5037 | else | |
5038 | ac_cv_header_stdc=no | |
5039 | fi | |
5040 | rm -f conftest* | |
5041 | ||
5042 | fi | |
5043 | ||
5044 | if test $ac_cv_header_stdc = yes; then | |
5045 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5047 | /* end confdefs.h. */ | |
5048 | #include <stdlib.h> | |
5049 | ||
5050 | _ACEOF | |
5051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5052 | $EGREP "free" >/dev/null 2>&1; then : | |
5053 | ||
5054 | else | |
5055 | ac_cv_header_stdc=no | |
5056 | fi | |
5057 | rm -f conftest* | |
5058 | ||
5059 | fi | |
5060 | ||
5061 | if test $ac_cv_header_stdc = yes; then | |
5062 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5063 | if test "$cross_compiling" = yes; then : | |
5064 | : | |
5065 | else | |
5066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5067 | /* end confdefs.h. */ | |
5068 | #include <ctype.h> | |
5069 | #include <stdlib.h> | |
5070 | #if ((' ' & 0x0FF) == 0x020) | |
5071 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5072 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5073 | #else | |
5074 | # define ISLOWER(c) \ | |
5075 | (('a' <= (c) && (c) <= 'i') \ | |
5076 | || ('j' <= (c) && (c) <= 'r') \ | |
5077 | || ('s' <= (c) && (c) <= 'z')) | |
5078 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5079 | #endif | |
5080 | ||
5081 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5082 | int | |
5083 | main () | |
5084 | { | |
5085 | int i; | |
5086 | for (i = 0; i < 256; i++) | |
5087 | if (XOR (islower (i), ISLOWER (i)) | |
5088 | || toupper (i) != TOUPPER (i)) | |
5089 | return 2; | |
5090 | return 0; | |
5091 | } | |
5092 | _ACEOF | |
5093 | if ac_fn_c_try_run "$LINENO"; then : | |
5094 | ||
5095 | else | |
5096 | ac_cv_header_stdc=no | |
5097 | fi | |
5098 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5099 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5100 | fi | |
5101 | ||
5102 | fi | |
5103 | fi | |
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5105 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5106 | if test $ac_cv_header_stdc = yes; then | |
5107 | ||
5108 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5109 | ||
5110 | fi | |
5111 | ||
5112 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5113 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5114 | inttypes.h stdint.h unistd.h | |
5115 | do : | |
5116 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5117 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5118 | " | |
5119 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5120 | cat >>confdefs.h <<_ACEOF | |
5121 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5122 | _ACEOF | |
5123 | ||
5124 | fi | |
5125 | ||
5126 | done | |
5127 | ||
5128 | ||
5129 | for ac_header in fcntl.h stdlib.h string.h sys/file.h sys/mount.h sys/statvfs.h syslog.h unistd.h | |
5130 | do : | |
5131 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5132 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5133 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5134 | cat >>confdefs.h <<_ACEOF | |
5135 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5136 | _ACEOF | |
5137 | ||
5138 | fi | |
5139 | ||
5140 | done | |
5141 | ||
5142 | ||
5143 | # Checks for typedefs, structures, and compiler characteristics. | |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5145 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5146 | if test "${ac_cv_c_const+set}" = set; then : | |
5147 | $as_echo_n "(cached) " >&6 | |
5148 | else | |
5149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5150 | /* end confdefs.h. */ | |
5151 | ||
5152 | int | |
5153 | main () | |
5154 | { | |
5155 | /* FIXME: Include the comments suggested by Paul. */ | |
5156 | #ifndef __cplusplus | |
5157 | /* Ultrix mips cc rejects this. */ | |
5158 | typedef int charset[2]; | |
5159 | const charset cs; | |
5160 | /* SunOS 4.1.1 cc rejects this. */ | |
5161 | char const *const *pcpcc; | |
5162 | char **ppc; | |
5163 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5164 | struct point {int x, y;}; | |
5165 | static struct point const zero = {0,0}; | |
5166 | /* AIX XL C 1.02.0.0 rejects this. | |
5167 | It does not let you subtract one const X* pointer from another in | |
5168 | an arm of an if-expression whose if-part is not a constant | |
5169 | expression */ | |
5170 | const char *g = "string"; | |
5171 | pcpcc = &g + (g ? g-g : 0); | |
5172 | /* HPUX 7.0 cc rejects these. */ | |
5173 | ++pcpcc; | |
5174 | ppc = (char**) pcpcc; | |
5175 | pcpcc = (char const *const *) ppc; | |
5176 | { /* SCO 3.2v4 cc rejects this. */ | |
5177 | char *t; | |
5178 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5179 | ||
5180 | *t++ = 0; | |
5181 | if (s) return 0; | |
5182 | } | |
5183 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5184 | int x[] = {25, 17}; | |
5185 | const int *foo = &x[0]; | |
5186 | ++foo; | |
5187 | } | |
5188 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5189 | typedef const int *iptr; | |
5190 | iptr p = 0; | |
5191 | ++p; | |
5192 | } | |
5193 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5194 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5195 | struct s { int j; const int *ap[3]; }; | |
5196 | struct s *b; b->j = 5; | |
5197 | } | |
5198 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5199 | const int foo = 10; | |
5200 | if (!foo) return 0; | |
5201 | } | |
5202 | return !cs[0] && !zero.x; | |
5203 | #endif | |
5204 | ||
5205 | ; | |
5206 | return 0; | |
5207 | } | |
5208 | _ACEOF | |
5209 | if ac_fn_c_try_compile "$LINENO"; then : | |
5210 | ac_cv_c_const=yes | |
5211 | else | |
5212 | ac_cv_c_const=no | |
5213 | fi | |
5214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5215 | fi | |
5216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
5217 | $as_echo "$ac_cv_c_const" >&6; } | |
5218 | if test $ac_cv_c_const = no; then | |
5219 | ||
5220 | $as_echo "#define const /**/" >>confdefs.h | |
5221 | ||
5222 | fi | |
5223 | ||
5224 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5225 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5226 | ||
5227 | else | |
5228 | ||
5229 | cat >>confdefs.h <<_ACEOF | |
5230 | #define mode_t int | |
5231 | _ACEOF | |
5232 | ||
5233 | fi | |
5234 | ||
5235 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
5236 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
5237 | ||
5238 | else | |
5239 | ||
5240 | cat >>confdefs.h <<_ACEOF | |
5241 | #define off_t long int | |
5242 | _ACEOF | |
5243 | ||
5244 | fi | |
5245 | ||
5246 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
5247 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
5248 | ||
5249 | else | |
5250 | ||
5251 | cat >>confdefs.h <<_ACEOF | |
5252 | #define size_t unsigned int | |
5253 | _ACEOF | |
5254 | ||
5255 | fi | |
5256 | ||
5257 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5258 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
5259 | ||
5260 | else | |
5261 | ||
5262 | cat >>confdefs.h <<_ACEOF | |
5263 | #define ssize_t int | |
5264 | _ACEOF | |
5265 | ||
5266 | fi | |
5267 | ||
5268 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
5269 | if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : | |
5270 | ||
5271 | cat >>confdefs.h <<_ACEOF | |
5272 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
5273 | _ACEOF | |
5274 | ||
5275 | ||
5276 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
5277 | ||
5278 | else | |
5279 | case " $LIBOBJS " in | |
5280 | *" fileblocks.$ac_objext "* ) ;; | |
5281 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
5282 | ;; | |
5283 | esac | |
5284 | ||
5285 | fi | |
5286 | ||
5287 | ||
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
5289 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
5290 | if test "${ac_cv_header_time+set}" = set; then : | |
5291 | $as_echo_n "(cached) " >&6 | |
5292 | else | |
5293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5294 | /* end confdefs.h. */ | |
5295 | #include <sys/types.h> | |
5296 | #include <sys/time.h> | |
5297 | #include <time.h> | |
5298 | ||
5299 | int | |
5300 | main () | |
5301 | { | |
5302 | if ((struct tm *) 0) | |
5303 | return 0; | |
5304 | ; | |
5305 | return 0; | |
5306 | } | |
5307 | _ACEOF | |
5308 | if ac_fn_c_try_compile "$LINENO"; then : | |
5309 | ac_cv_header_time=yes | |
5310 | else | |
5311 | ac_cv_header_time=no | |
5312 | fi | |
5313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5314 | fi | |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
5316 | $as_echo "$ac_cv_header_time" >&6; } | |
5317 | if test $ac_cv_header_time = yes; then | |
5318 | ||
5319 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
5320 | ||
5321 | fi | |
5322 | ||
5323 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | |
5324 | case $ac_cv_c_uint32_t in #( | |
5325 | no|yes) ;; #( | |
5326 | *) | |
5327 | ||
5328 | $as_echo "#define _UINT32_T 1" >>confdefs.h | |
5329 | ||
5330 | ||
5331 | cat >>confdefs.h <<_ACEOF | |
5332 | #define uint32_t $ac_cv_c_uint32_t | |
5333 | _ACEOF | |
5334 | ;; | |
5335 | esac | |
5336 | ||
5337 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5338 | case $ac_cv_c_uint64_t in #( | |
5339 | no|yes) ;; #( | |
5340 | *) | |
5341 | ||
5342 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5343 | ||
5344 | ||
5345 | cat >>confdefs.h <<_ACEOF | |
5346 | #define uint64_t $ac_cv_c_uint64_t | |
5347 | _ACEOF | |
5348 | ;; | |
5349 | esac | |
5350 | ||
5351 | ||
5352 | # Checks for library functions. | |
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 | |
5354 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5355 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5356 | $as_echo_n "(cached) " >&6 | |
5357 | else | |
5358 | if test "$cross_compiling" = yes; then : | |
5359 | ac_cv_func_closedir_void=yes | |
5360 | else | |
5361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5362 | /* end confdefs.h. */ | |
5363 | $ac_includes_default | |
5364 | #include <$ac_header_dirent> | |
5365 | #ifndef __cplusplus | |
5366 | int closedir (); | |
5367 | #endif | |
5368 | ||
5369 | int | |
5370 | main () | |
5371 | { | |
5372 | return closedir (opendir (".")) != 0; | |
5373 | ; | |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5377 | if ac_fn_c_try_run "$LINENO"; then : | |
5378 | ac_cv_func_closedir_void=no | |
5379 | else | |
5380 | ac_cv_func_closedir_void=yes | |
5381 | fi | |
5382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5383 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5384 | fi | |
5385 | ||
5386 | fi | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5388 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5389 | if test $ac_cv_func_closedir_void = yes; then | |
5390 | ||
5391 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h | |
5392 | ||
5393 | fi | |
5394 | ||
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5396 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5397 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5398 | $as_echo_n "(cached) " >&6 | |
5399 | else | |
5400 | rm -f conftest.sym conftest.file | |
5401 | echo >conftest.file | |
5402 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5403 | if test "$cross_compiling" = yes; then : | |
5404 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5405 | else | |
5406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5407 | /* end confdefs.h. */ | |
5408 | $ac_includes_default | |
5409 | int | |
5410 | main () | |
5411 | { | |
5412 | struct stat sbuf; | |
5413 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5414 | That is better in the sense that it means we will not | |
5415 | have to compile and use the lstat wrapper. */ | |
5416 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5417 | ; | |
5418 | return 0; | |
5419 | } | |
5420 | _ACEOF | |
5421 | if ac_fn_c_try_run "$LINENO"; then : | |
5422 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
5423 | else | |
5424 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5425 | fi | |
5426 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5427 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5428 | fi | |
5429 | ||
5430 | else | |
5431 | # If the `ln -s' command failed, then we probably don't even | |
5432 | # have an lstat function. | |
5433 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5434 | fi | |
5435 | rm -f conftest.sym conftest.file | |
5436 | ||
5437 | fi | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5439 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
5440 | ||
5441 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
5442 | ||
5443 | cat >>confdefs.h <<_ACEOF | |
5444 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5445 | _ACEOF | |
5446 | ||
5447 | ||
5448 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then | |
5449 | case " $LIBOBJS " in | |
5450 | *" lstat.$ac_objext "* ) ;; | |
5451 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
5452 | ;; | |
5453 | esac | |
5454 | ||
5455 | fi | |
5456 | ||
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 | |
5458 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
5459 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | if test "$cross_compiling" = yes; then : | |
5463 | ac_cv_func_lstat_empty_string_bug=yes | |
5464 | else | |
5465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5466 | /* end confdefs.h. */ | |
5467 | $ac_includes_default | |
5468 | int | |
5469 | main () | |
5470 | { | |
5471 | struct stat sbuf; | |
5472 | return lstat ("", &sbuf) == 0; | |
5473 | ; | |
5474 | return 0; | |
5475 | } | |
5476 | _ACEOF | |
5477 | if ac_fn_c_try_run "$LINENO"; then : | |
5478 | ac_cv_func_lstat_empty_string_bug=no | |
5479 | else | |
5480 | ac_cv_func_lstat_empty_string_bug=yes | |
5481 | fi | |
5482 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5483 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5484 | fi | |
5485 | ||
5486 | fi | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
5488 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
5489 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
5490 | case " $LIBOBJS " in | |
5491 | *" lstat.$ac_objext "* ) ;; | |
5492 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
5493 | ;; | |
5494 | esac | |
5495 | ||
5496 | ||
5497 | cat >>confdefs.h <<_ACEOF | |
5498 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
5499 | _ACEOF | |
5500 | ||
5501 | fi | |
5502 | ||
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5504 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5505 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5506 | $as_echo_n "(cached) " >&6 | |
5507 | else | |
5508 | rm -f conftest.sym conftest.file | |
5509 | echo >conftest.file | |
5510 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5511 | if test "$cross_compiling" = yes; then : | |
5512 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5513 | else | |
5514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5515 | /* end confdefs.h. */ | |
5516 | $ac_includes_default | |
5517 | int | |
5518 | main () | |
5519 | { | |
5520 | struct stat sbuf; | |
5521 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5522 | That is better in the sense that it means we will not | |
5523 | have to compile and use the lstat wrapper. */ | |
5524 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5525 | ; | |
5526 | return 0; | |
5527 | } | |
5528 | _ACEOF | |
5529 | if ac_fn_c_try_run "$LINENO"; then : | |
5530 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
5531 | else | |
5532 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5533 | fi | |
5534 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5535 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5536 | fi | |
5537 | ||
5538 | else | |
5539 | # If the `ln -s' command failed, then we probably don't even | |
5540 | # have an lstat function. | |
5541 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
5542 | fi | |
5543 | rm -f conftest.sym conftest.file | |
5544 | ||
5545 | fi | |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5547 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
5548 | ||
5549 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
5550 | ||
5551 | cat >>confdefs.h <<_ACEOF | |
5552 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5553 | _ACEOF | |
5554 | ||
5555 | ||
5556 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then | |
5557 | case " $LIBOBJS " in | |
5558 | *" lstat.$ac_objext "* ) ;; | |
5559 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
5560 | ;; | |
5561 | esac | |
5562 | ||
5563 | fi | |
5564 | ||
5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | |
5566 | $as_echo_n "checking for working memcmp... " >&6; } | |
5567 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
5568 | $as_echo_n "(cached) " >&6 | |
5569 | else | |
5570 | if test "$cross_compiling" = yes; then : | |
5571 | ac_cv_func_memcmp_working=no | |
5572 | else | |
5573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5574 | /* end confdefs.h. */ | |
5575 | $ac_includes_default | |
5576 | int | |
5577 | main () | |
5578 | { | |
5579 | ||
5580 | /* Some versions of memcmp are not 8-bit clean. */ | |
5581 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
5582 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
5583 | return 1; | |
5584 | ||
5585 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
5586 | or more and with at least one buffer not starting on a 4-byte boundary. | |
5587 | William Lewis provided this test program. */ | |
5588 | { | |
5589 | char foo[21]; | |
5590 | char bar[21]; | |
5591 | int i; | |
5592 | for (i = 0; i < 4; i++) | |
5593 | { | |
5594 | char *a = foo + i; | |
5595 | char *b = bar + i; | |
5596 | strcpy (a, "--------01111111"); | |
5597 | strcpy (b, "--------10000000"); | |
5598 | if (memcmp (a, b, 16) >= 0) | |
5599 | return 1; | |
5600 | } | |
5601 | return 0; | |
5602 | } | |
5603 | ||
5604 | ; | |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
5608 | if ac_fn_c_try_run "$LINENO"; then : | |
5609 | ac_cv_func_memcmp_working=yes | |
5610 | else | |
5611 | ac_cv_func_memcmp_working=no | |
5612 | fi | |
5613 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5614 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5615 | fi | |
5616 | ||
5617 | fi | |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 | |
5619 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
5620 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
5621 | *" memcmp.$ac_objext "* ) ;; | |
5622 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
5623 | ;; | |
5624 | esac | |
5625 | ||
5626 | ||
5627 | for ac_header in sys/select.h sys/socket.h | |
5628 | do : | |
5629 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5630 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5631 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5632 | cat >>confdefs.h <<_ACEOF | |
5633 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5634 | _ACEOF | |
5635 | ||
5636 | fi | |
5637 | ||
5638 | done | |
5639 | ||
5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 | |
5641 | $as_echo_n "checking types of arguments for select... " >&6; } | |
5642 | if test "${ac_cv_func_select_args+set}" = set; then : | |
5643 | $as_echo_n "(cached) " >&6 | |
5644 | else | |
5645 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | |
5646 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
5647 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
5648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5649 | /* end confdefs.h. */ | |
5650 | $ac_includes_default | |
5651 | #ifdef HAVE_SYS_SELECT_H | |
5652 | # include <sys/select.h> | |
5653 | #endif | |
5654 | #ifdef HAVE_SYS_SOCKET_H | |
5655 | # include <sys/socket.h> | |
5656 | #endif | |
5657 | ||
5658 | int | |
5659 | main () | |
5660 | { | |
5661 | extern int select ($ac_arg1, | |
5662 | $ac_arg234, $ac_arg234, $ac_arg234, | |
5663 | $ac_arg5); | |
5664 | ; | |
5665 | return 0; | |
5666 | } | |
5667 | _ACEOF | |
5668 | if ac_fn_c_try_compile "$LINENO"; then : | |
5669 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
5670 | fi | |
5671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5672 | done | |
5673 | done | |
5674 | done | |
5675 | # Provide a safe default value. | |
5676 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
5677 | ||
5678 | fi | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 | |
5680 | $as_echo "$ac_cv_func_select_args" >&6; } | |
5681 | ac_save_IFS=$IFS; IFS=',' | |
5682 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
5683 | IFS=$ac_save_IFS | |
5684 | shift | |
5685 | ||
5686 | cat >>confdefs.h <<_ACEOF | |
5687 | #define SELECT_TYPE_ARG1 $1 | |
5688 | _ACEOF | |
5689 | ||
5690 | ||
5691 | cat >>confdefs.h <<_ACEOF | |
5692 | #define SELECT_TYPE_ARG234 ($2) | |
5693 | _ACEOF | |
5694 | ||
5695 | ||
5696 | cat >>confdefs.h <<_ACEOF | |
5697 | #define SELECT_TYPE_ARG5 ($3) | |
5698 | _ACEOF | |
5699 | ||
5700 | rm -f conftest* | |
5701 | ||
5702 | for ac_func in memset mkdir rmdir select strdup strerror | |
5703 | do : | |
5704 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5705 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5706 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5707 | cat >>confdefs.h <<_ACEOF | |
5708 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5709 | _ACEOF | |
5710 | ||
5711 | fi | |
5712 | done | |
5713 | ||
5714 | ||
5715 | ac_config_files="$ac_config_files Makefile src/Makefile PVE/Makefile" | |
5716 | ||
5717 | cat >confcache <<\_ACEOF | |
5718 | # This file is a shell script that caches the results of configure | |
5719 | # tests run on this system so they can be shared between configure | |
5720 | # scripts and configure runs, see configure's option --config-cache. | |
5721 | # It is not useful on other systems. If it contains results you don't | |
5722 | # want to keep, you may remove or edit it. | |
5723 | # | |
5724 | # config.status only pays attention to the cache file if you give it | |
5725 | # the --recheck option to rerun configure. | |
5726 | # | |
5727 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
5728 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5729 | # following values. | |
5730 | ||
5731 | _ACEOF | |
5732 | ||
5733 | # The following way of writing the cache mishandles newlines in values, | |
5734 | # but we know of no workaround that is simple, portable, and efficient. | |
5735 | # So, we kill variables containing newlines. | |
5736 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5737 | # and sets the high bit in the cache file unless we assign to the vars. | |
5738 | ( | |
5739 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5740 | eval ac_val=\$$ac_var | |
5741 | case $ac_val in #( | |
5742 | *${as_nl}*) | |
5743 | case $ac_var in #( | |
5744 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
5745 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5746 | esac | |
5747 | case $ac_var in #( | |
5748 | _ | IFS | as_nl) ;; #( | |
5749 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
5750 | *) { eval $ac_var=; unset $ac_var;} ;; | |
5751 | esac ;; | |
5752 | esac | |
5753 | done | |
5754 | ||
5755 | (set) 2>&1 | | |
5756 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
5757 | *${as_nl}ac_space=\ *) | |
5758 | # `set' does not quote correctly, so add quotes: double-quote | |
5759 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
5760 | sed -n \ | |
5761 | "s/'/'\\\\''/g; | |
5762 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5763 | ;; #( | |
5764 | *) | |
5765 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5766 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
5767 | ;; | |
5768 | esac | | |
5769 | sort | |
5770 | ) | | |
5771 | sed ' | |
5772 | /^ac_cv_env_/b end | |
5773 | t clear | |
5774 | :clear | |
5775 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5776 | t end | |
5777 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5778 | :end' >>confcache | |
5779 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5780 | if test -w "$cache_file"; then | |
5781 | test "x$cache_file" != "x/dev/null" && | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
5783 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
5784 | cat confcache >$cache_file | |
5785 | else | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
5787 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
5788 | fi | |
5789 | fi | |
5790 | rm -f confcache | |
5791 | ||
5792 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5793 | # Let make expand exec_prefix. | |
5794 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5795 | ||
5796 | DEFS=-DHAVE_CONFIG_H | |
5797 | ||
5798 | ac_libobjs= | |
5799 | ac_ltlibobjs= | |
5800 | U= | |
5801 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5802 | # 1. Remove the extension, and $U if already installed. | |
5803 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
5804 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
5805 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
5806 | # will be set to the directory where LIBOBJS objects are built. | |
5807 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5808 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
5809 | done | |
5810 | LIBOBJS=$ac_libobjs | |
5811 | ||
5812 | LTLIBOBJS=$ac_ltlibobjs | |
5813 | ||
5814 | ||
5815 | if test -n "$EXEEXT"; then | |
5816 | am__EXEEXT_TRUE= | |
5817 | am__EXEEXT_FALSE='#' | |
5818 | else | |
5819 | am__EXEEXT_TRUE='#' | |
5820 | am__EXEEXT_FALSE= | |
5821 | fi | |
5822 | ||
5823 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
5824 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
5825 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5826 | fi | |
5827 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5828 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
5829 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5830 | fi | |
5831 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5832 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
5833 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
5834 | fi | |
5835 | ||
5836 | : ${CONFIG_STATUS=./config.status} | |
5837 | ac_write_fail=0 | |
5838 | ac_clean_files_save=$ac_clean_files | |
5839 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
5841 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5842 | as_write_fail=0 | |
5843 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
5844 | #! $SHELL | |
5845 | # Generated by $as_me. | |
5846 | # Run this file to recreate the current configuration. | |
5847 | # Compiler output produced by configure, useful for debugging | |
5848 | # configure, is in config.log if it exists. | |
5849 | ||
5850 | debug=false | |
5851 | ac_cs_recheck=false | |
5852 | ac_cs_silent=false | |
5853 | ||
5854 | SHELL=\${CONFIG_SHELL-$SHELL} | |
5855 | export SHELL | |
5856 | _ASEOF | |
5857 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
5858 | ## -------------------- ## | |
5859 | ## M4sh Initialization. ## | |
5860 | ## -------------------- ## | |
5861 | ||
5862 | # Be more Bourne compatible | |
5863 | DUALCASE=1; export DUALCASE # for MKS sh | |
5864 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
5865 | emulate sh | |
5866 | NULLCMD=: | |
5867 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
5868 | # is contrary to our usage. Disable this feature. | |
5869 | alias -g '${1+"$@"}'='"$@"' | |
5870 | setopt NO_GLOB_SUBST | |
5871 | else | |
5872 | case `(set -o) 2>/dev/null` in #( | |
5873 | *posix*) : | |
5874 | set -o posix ;; #( | |
5875 | *) : | |
5876 | ;; | |
5877 | esac | |
5878 | fi | |
5879 | ||
5880 | ||
5881 | as_nl=' | |
5882 | ' | |
5883 | export as_nl | |
5884 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
5885 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5886 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
5887 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
5888 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
5889 | # but without wasting forks for bash or zsh. | |
5890 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
5891 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5892 | as_echo='print -r --' | |
5893 | as_echo_n='print -rn --' | |
5894 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5895 | as_echo='printf %s\n' | |
5896 | as_echo_n='printf %s' | |
5897 | else | |
5898 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
5899 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
5900 | as_echo_n='/usr/ucb/echo -n' | |
5901 | else | |
5902 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
5903 | as_echo_n_body='eval | |
5904 | arg=$1; | |
5905 | case $arg in #( | |
5906 | *"$as_nl"*) | |
5907 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
5908 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
5909 | esac; | |
5910 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
5911 | ' | |
5912 | export as_echo_n_body | |
5913 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
5914 | fi | |
5915 | export as_echo_body | |
5916 | as_echo='sh -c $as_echo_body as_echo' | |
5917 | fi | |
5918 | ||
5919 | # The user is always right. | |
5920 | if test "${PATH_SEPARATOR+set}" != set; then | |
5921 | PATH_SEPARATOR=: | |
5922 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
5923 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
5924 | PATH_SEPARATOR=';' | |
5925 | } | |
5926 | fi | |
5927 | ||
5928 | ||
5929 | # IFS | |
5930 | # We need space, tab and new line, in precisely that order. Quoting is | |
5931 | # there to prevent editors from complaining about space-tab. | |
5932 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
5933 | # splitting by setting IFS to empty value.) | |
5934 | IFS=" "" $as_nl" | |
5935 | ||
5936 | # Find who we are. Look in the path if we contain no directory separator. | |
5937 | case $0 in #(( | |
5938 | *[\\/]* ) as_myself=$0 ;; | |
5939 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5940 | for as_dir in $PATH | |
5941 | do | |
5942 | IFS=$as_save_IFS | |
5943 | test -z "$as_dir" && as_dir=. | |
5944 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5945 | done | |
5946 | IFS=$as_save_IFS | |
5947 | ||
5948 | ;; | |
5949 | esac | |
5950 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5951 | # in which case we are not to be found in the path. | |
5952 | if test "x$as_myself" = x; then | |
5953 | as_myself=$0 | |
5954 | fi | |
5955 | if test ! -f "$as_myself"; then | |
5956 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
5957 | exit 1 | |
5958 | fi | |
5959 | ||
5960 | # Unset variables that we do not need and which cause bugs (e.g. in | |
5961 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
5962 | # suppresses any "Segmentation fault" message there. '((' could | |
5963 | # trigger a bug in pdksh 5.2.14. | |
5964 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
5965 | do eval test x\${$as_var+set} = xset \ | |
5966 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
5967 | done | |
5968 | PS1='$ ' | |
5969 | PS2='> ' | |
5970 | PS4='+ ' | |
5971 | ||
5972 | # NLS nuisances. | |
5973 | LC_ALL=C | |
5974 | export LC_ALL | |
5975 | LANGUAGE=C | |
5976 | export LANGUAGE | |
5977 | ||
5978 | # CDPATH. | |
5979 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
5980 | ||
5981 | ||
5982 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
5983 | # ---------------------------------------- | |
5984 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
5985 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5986 | # script with STATUS, using 1 if that was 0. | |
5987 | as_fn_error () | |
5988 | { | |
5989 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
5990 | if test "$4"; then | |
5991 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
5992 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5993 | fi | |
5994 | $as_echo "$as_me: error: $2" >&2 | |
5995 | as_fn_exit $as_status | |
5996 | } # as_fn_error | |
5997 | ||
5998 | ||
5999 | # as_fn_set_status STATUS | |
6000 | # ----------------------- | |
6001 | # Set $? to STATUS, without forking. | |
6002 | as_fn_set_status () | |
6003 | { | |
6004 | return $1 | |
6005 | } # as_fn_set_status | |
6006 | ||
6007 | # as_fn_exit STATUS | |
6008 | # ----------------- | |
6009 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6010 | as_fn_exit () | |
6011 | { | |
6012 | set +e | |
6013 | as_fn_set_status $1 | |
6014 | exit $1 | |
6015 | } # as_fn_exit | |
6016 | ||
6017 | # as_fn_unset VAR | |
6018 | # --------------- | |
6019 | # Portably unset VAR. | |
6020 | as_fn_unset () | |
6021 | { | |
6022 | { eval $1=; unset $1;} | |
6023 | } | |
6024 | as_unset=as_fn_unset | |
6025 | # as_fn_append VAR VALUE | |
6026 | # ---------------------- | |
6027 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6028 | # advantage of any shell optimizations that allow amortized linear growth over | |
6029 | # repeated appends, instead of the typical quadratic growth present in naive | |
6030 | # implementations. | |
6031 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6032 | eval 'as_fn_append () | |
6033 | { | |
6034 | eval $1+=\$2 | |
6035 | }' | |
6036 | else | |
6037 | as_fn_append () | |
6038 | { | |
6039 | eval $1=\$$1\$2 | |
6040 | } | |
6041 | fi # as_fn_append | |
6042 | ||
6043 | # as_fn_arith ARG... | |
6044 | # ------------------ | |
6045 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6046 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6047 | # must be portable across $(()) and expr. | |
6048 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6049 | eval 'as_fn_arith () | |
6050 | { | |
6051 | as_val=$(( $* )) | |
6052 | }' | |
6053 | else | |
6054 | as_fn_arith () | |
6055 | { | |
6056 | as_val=`expr "$@" || test $? -eq 1` | |
6057 | } | |
6058 | fi # as_fn_arith | |
6059 | ||
6060 | ||
6061 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6062 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6063 | as_expr=expr | |
6064 | else | |
6065 | as_expr=false | |
6066 | fi | |
6067 | ||
6068 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
6069 | as_basename=basename | |
6070 | else | |
6071 | as_basename=false | |
6072 | fi | |
6073 | ||
6074 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
6075 | as_dirname=dirname | |
6076 | else | |
6077 | as_dirname=false | |
6078 | fi | |
6079 | ||
6080 | as_me=`$as_basename -- "$0" || | |
6081 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6082 | X"$0" : 'X\(//\)$' \| \ | |
6083 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
6084 | $as_echo X/"$0" | | |
6085 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6086 | s//\1/ | |
6087 | q | |
6088 | } | |
6089 | /^X\/\(\/\/\)$/{ | |
6090 | s//\1/ | |
6091 | q | |
6092 | } | |
6093 | /^X\/\(\/\).*/{ | |
6094 | s//\1/ | |
6095 | q | |
6096 | } | |
6097 | s/.*/./; q'` | |
6098 | ||
6099 | # Avoid depending upon Character Ranges. | |
6100 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6101 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6102 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6103 | as_cr_digits='0123456789' | |
6104 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6105 | ||
6106 | ECHO_C= ECHO_N= ECHO_T= | |
6107 | case `echo -n x` in #((((( | |
6108 | -n*) | |
6109 | case `echo 'xy\c'` in | |
6110 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6111 | xy) ECHO_C='\c';; | |
6112 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6113 | ECHO_T=' ';; | |
6114 | esac;; | |
6115 | *) | |
6116 | ECHO_N='-n';; | |
6117 | esac | |
6118 | ||
6119 | rm -f conf$$ conf$$.exe conf$$.file | |
6120 | if test -d conf$$.dir; then | |
6121 | rm -f conf$$.dir/conf$$.file | |
6122 | else | |
6123 | rm -f conf$$.dir | |
6124 | mkdir conf$$.dir 2>/dev/null | |
6125 | fi | |
6126 | if (echo >conf$$.file) 2>/dev/null; then | |
6127 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6128 | as_ln_s='ln -s' | |
6129 | # ... but there are two gotchas: | |
6130 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6131 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6132 | # In both cases, we have to default to `cp -p'. | |
6133 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6134 | as_ln_s='cp -p' | |
6135 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6136 | as_ln_s=ln | |
6137 | else | |
6138 | as_ln_s='cp -p' | |
6139 | fi | |
6140 | else | |
6141 | as_ln_s='cp -p' | |
6142 | fi | |
6143 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
6144 | rmdir conf$$.dir 2>/dev/null | |
6145 | ||
6146 | ||
6147 | # as_fn_mkdir_p | |
6148 | # ------------- | |
6149 | # Create "$as_dir" as a directory, including parents if necessary. | |
6150 | as_fn_mkdir_p () | |
6151 | { | |
6152 | ||
6153 | case $as_dir in #( | |
6154 | -*) as_dir=./$as_dir;; | |
6155 | esac | |
6156 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6157 | as_dirs= | |
6158 | while :; do | |
6159 | case $as_dir in #( | |
6160 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6161 | *) as_qdir=$as_dir;; | |
6162 | esac | |
6163 | as_dirs="'$as_qdir' $as_dirs" | |
6164 | as_dir=`$as_dirname -- "$as_dir" || | |
6165 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6166 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6167 | X"$as_dir" : 'X\(//\)$' \| \ | |
6168 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6169 | $as_echo X"$as_dir" | | |
6170 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6171 | s//\1/ | |
6172 | q | |
6173 | } | |
6174 | /^X\(\/\/\)[^/].*/{ | |
6175 | s//\1/ | |
6176 | q | |
6177 | } | |
6178 | /^X\(\/\/\)$/{ | |
6179 | s//\1/ | |
6180 | q | |
6181 | } | |
6182 | /^X\(\/\).*/{ | |
6183 | s//\1/ | |
6184 | q | |
6185 | } | |
6186 | s/.*/./; q'` | |
6187 | test -d "$as_dir" && break | |
6188 | done | |
6189 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6190 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
6191 | ||
6192 | ||
6193 | } # as_fn_mkdir_p | |
6194 | if mkdir -p . 2>/dev/null; then | |
6195 | as_mkdir_p='mkdir -p "$as_dir"' | |
6196 | else | |
6197 | test -d ./-p && rmdir ./-p | |
6198 | as_mkdir_p=false | |
6199 | fi | |
6200 | ||
6201 | if test -x / >/dev/null 2>&1; then | |
6202 | as_test_x='test -x' | |
6203 | else | |
6204 | if ls -dL / >/dev/null 2>&1; then | |
6205 | as_ls_L_option=L | |
6206 | else | |
6207 | as_ls_L_option= | |
6208 | fi | |
6209 | as_test_x=' | |
6210 | eval sh -c '\'' | |
6211 | if test -d "$1"; then | |
6212 | test -d "$1/."; | |
6213 | else | |
6214 | case $1 in #( | |
6215 | -*)set "./$1";; | |
6216 | esac; | |
6217 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
6218 | ???[sx]*):;;*)false;;esac;fi | |
6219 | '\'' sh | |
6220 | ' | |
6221 | fi | |
6222 | as_executable_p=$as_test_x | |
6223 | ||
6224 | # Sed expression to map a string onto a valid CPP name. | |
6225 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6226 | ||
6227 | # Sed expression to map a string onto a valid variable name. | |
6228 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6229 | ||
6230 | ||
6231 | exec 6>&1 | |
6232 | ## ----------------------------------- ## | |
6233 | ## Main body of $CONFIG_STATUS script. ## | |
6234 | ## ----------------------------------- ## | |
6235 | _ASEOF | |
6236 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6237 | ||
6238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6239 | # Save the log message, to keep $0 and so on meaningful, and to | |
6240 | # report actual input values of CONFIG_FILES etc. instead of their | |
6241 | # values after options handling. | |
6242 | ac_log=" | |
6243 | This file was extended by pve-cluster $as_me 1.0, which was | |
6244 | generated by GNU Autoconf 2.67. Invocation command line was | |
6245 | ||
6246 | CONFIG_FILES = $CONFIG_FILES | |
6247 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6248 | CONFIG_LINKS = $CONFIG_LINKS | |
6249 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6250 | $ $0 $@ | |
6251 | ||
6252 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
6253 | " | |
6254 | ||
6255 | _ACEOF | |
6256 | ||
6257 | case $ac_config_files in *" | |
6258 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6259 | esac | |
6260 | ||
6261 | case $ac_config_headers in *" | |
6262 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6263 | esac | |
6264 | ||
6265 | ||
6266 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6267 | # Files that config.status was made for. | |
6268 | config_files="$ac_config_files" | |
6269 | config_headers="$ac_config_headers" | |
6270 | config_commands="$ac_config_commands" | |
6271 | ||
6272 | _ACEOF | |
6273 | ||
6274 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6275 | ac_cs_usage="\ | |
6276 | \`$as_me' instantiates files and other configuration actions | |
6277 | from templates according to the current configuration. Unless the files | |
6278 | and actions are specified as TAGs, all are instantiated by default. | |
6279 | ||
6280 | Usage: $0 [OPTION]... [TAG]... | |
6281 | ||
6282 | -h, --help print this help, then exit | |
6283 | -V, --version print version number and configuration settings, then exit | |
6284 | --config print configuration, then exit | |
6285 | -q, --quiet, --silent | |
6286 | do not print progress messages | |
6287 | -d, --debug don't remove temporary files | |
6288 | --recheck update $as_me by reconfiguring in the same conditions | |
6289 | --file=FILE[:TEMPLATE] | |
6290 | instantiate the configuration file FILE | |
6291 | --header=FILE[:TEMPLATE] | |
6292 | instantiate the configuration header FILE | |
6293 | ||
6294 | Configuration files: | |
6295 | $config_files | |
6296 | ||
6297 | Configuration headers: | |
6298 | $config_headers | |
6299 | ||
6300 | Configuration commands: | |
6301 | $config_commands | |
6302 | ||
6303 | Report bugs to <support@proxmox.com>." | |
6304 | ||
6305 | _ACEOF | |
6306 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6307 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
6308 | ac_cs_version="\\ | |
6309 | pve-cluster config.status 1.0 | |
6310 | configured by $0, generated by GNU Autoconf 2.67, | |
6311 | with options \\"\$ac_cs_config\\" | |
6312 | ||
6313 | Copyright (C) 2010 Free Software Foundation, Inc. | |
6314 | This config.status script is free software; the Free Software Foundation | |
6315 | gives unlimited permission to copy, distribute and modify it." | |
6316 | ||
6317 | ac_pwd='$ac_pwd' | |
6318 | srcdir='$srcdir' | |
6319 | INSTALL='$INSTALL' | |
6320 | MKDIR_P='$MKDIR_P' | |
6321 | AWK='$AWK' | |
6322 | test -n "\$AWK" || AWK=awk | |
6323 | _ACEOF | |
6324 | ||
6325 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6326 | # The default lists apply if the user does not specify any file. | |
6327 | ac_need_defaults=: | |
6328 | while test $# != 0 | |
6329 | do | |
6330 | case $1 in | |
6331 | --*=?*) | |
6332 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6333 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6334 | ac_shift=: | |
6335 | ;; | |
6336 | --*=) | |
6337 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6338 | ac_optarg= | |
6339 | ac_shift=: | |
6340 | ;; | |
6341 | *) | |
6342 | ac_option=$1 | |
6343 | ac_optarg=$2 | |
6344 | ac_shift=shift | |
6345 | ;; | |
6346 | esac | |
6347 | ||
6348 | case $ac_option in | |
6349 | # Handling of the options. | |
6350 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6351 | ac_cs_recheck=: ;; | |
6352 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
6353 | $as_echo "$ac_cs_version"; exit ;; | |
6354 | --config | --confi | --conf | --con | --co | --c ) | |
6355 | $as_echo "$ac_cs_config"; exit ;; | |
6356 | --debug | --debu | --deb | --de | --d | -d ) | |
6357 | debug=: ;; | |
6358 | --file | --fil | --fi | --f ) | |
6359 | $ac_shift | |
6360 | case $ac_optarg in | |
6361 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6362 | '') as_fn_error $? "missing file argument" ;; | |
6363 | esac | |
6364 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
6365 | ac_need_defaults=false;; | |
6366 | --header | --heade | --head | --hea ) | |
6367 | $ac_shift | |
6368 | case $ac_optarg in | |
6369 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6370 | esac | |
6371 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6372 | ac_need_defaults=false;; | |
6373 | --he | --h) | |
6374 | # Conflict between --help and --header | |
6375 | as_fn_error $? "ambiguous option: \`$1' | |
6376 | Try \`$0 --help' for more information.";; | |
6377 | --help | --hel | -h ) | |
6378 | $as_echo "$ac_cs_usage"; exit ;; | |
6379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6380 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6381 | ac_cs_silent=: ;; | |
6382 | ||
6383 | # This is an error. | |
6384 | -*) as_fn_error $? "unrecognized option: \`$1' | |
6385 | Try \`$0 --help' for more information." ;; | |
6386 | ||
6387 | *) as_fn_append ac_config_targets " $1" | |
6388 | ac_need_defaults=false ;; | |
6389 | ||
6390 | esac | |
6391 | shift | |
6392 | done | |
6393 | ||
6394 | ac_configure_extra_args= | |
6395 | ||
6396 | if $ac_cs_silent; then | |
6397 | exec 6>/dev/null | |
6398 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6399 | fi | |
6400 | ||
6401 | _ACEOF | |
6402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6403 | if \$ac_cs_recheck; then | |
6404 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6405 | shift | |
6406 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6407 | CONFIG_SHELL='$SHELL' | |
6408 | export CONFIG_SHELL | |
6409 | exec "\$@" | |
6410 | fi | |
6411 | ||
6412 | _ACEOF | |
6413 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6414 | exec 5>>config.log | |
6415 | { | |
6416 | echo | |
6417 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6418 | ## Running $as_me. ## | |
6419 | _ASBOX | |
6420 | $as_echo "$ac_log" | |
6421 | } >&5 | |
6422 | ||
6423 | _ACEOF | |
6424 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6425 | # | |
6426 | # INIT-COMMANDS | |
6427 | # | |
6428 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
6429 | ||
6430 | _ACEOF | |
6431 | ||
6432 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6433 | ||
6434 | # Handling of arguments. | |
6435 | for ac_config_target in $ac_config_targets | |
6436 | do | |
6437 | case $ac_config_target in | |
6438 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6439 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
6440 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
6441 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
6442 | "PVE/Makefile") CONFIG_FILES="$CONFIG_FILES PVE/Makefile" ;; | |
6443 | ||
6444 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; | |
6445 | esac | |
6446 | done | |
6447 | ||
6448 | ||
6449 | # If the user did not use the arguments to specify the items to instantiate, | |
6450 | # then the envvar interface is used. Set only those that are not. | |
6451 | # We use the long form for the default assignment because of an extremely | |
6452 | # bizarre bug on SunOS 4.1.3. | |
6453 | if $ac_need_defaults; then | |
6454 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6455 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6456 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6457 | fi | |
6458 | ||
6459 | # Have a temporary directory for convenience. Make it in the build tree | |
6460 | # simply because there is no reason against having it here, and in addition, | |
6461 | # creating and moving files from /tmp can sometimes cause problems. | |
6462 | # Hook for its removal unless debugging. | |
6463 | # Note that there is a small window in which the directory will not be cleaned: | |
6464 | # after its creation but before its name has been assigned to `$tmp'. | |
6465 | $debug || | |
6466 | { | |
6467 | tmp= | |
6468 | trap 'exit_status=$? | |
6469 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6470 | ' 0 | |
6471 | trap 'as_fn_exit 1' 1 2 13 15 | |
6472 | } | |
6473 | # Create a (secure) tmp directory for tmp files. | |
6474 | ||
6475 | { | |
6476 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
6477 | test -n "$tmp" && test -d "$tmp" | |
6478 | } || | |
6479 | { | |
6480 | tmp=./conf$$-$RANDOM | |
6481 | (umask 077 && mkdir "$tmp") | |
6482 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
6483 | ||
6484 | # Set up the scripts for CONFIG_FILES section. | |
6485 | # No need to generate them if there are no CONFIG_FILES. | |
6486 | # This happens for instance with `./config.status config.h'. | |
6487 | if test -n "$CONFIG_FILES"; then | |
6488 | ||
6489 | ||
6490 | ac_cr=`echo X | tr X '\015'` | |
6491 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
6492 | # But we know of no other shell where ac_cr would be empty at this | |
6493 | # point, so we can use a bashism as a fallback. | |
6494 | if test "x$ac_cr" = x; then | |
6495 | eval ac_cr=\$\'\\r\' | |
6496 | fi | |
6497 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
6498 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
6499 | ac_cs_awk_cr='\\r' | |
6500 | else | |
6501 | ac_cs_awk_cr=$ac_cr | |
6502 | fi | |
6503 | ||
6504 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
6505 | _ACEOF | |
6506 | ||
6507 | ||
6508 | { | |
6509 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
6510 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
6511 | echo "_ACEOF" | |
6512 | } >conf$$subs.sh || | |
6513 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6514 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
6515 | ac_delim='%!_!# ' | |
6516 | for ac_last_try in false false false false false :; do | |
6517 | . ./conf$$subs.sh || | |
6518 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6519 | ||
6520 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
6521 | if test $ac_delim_n = $ac_delim_num; then | |
6522 | break | |
6523 | elif $ac_last_try; then | |
6524 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6525 | else | |
6526 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6527 | fi | |
6528 | done | |
6529 | rm -f conf$$subs.sh | |
6530 | ||
6531 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6532 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
6533 | _ACEOF | |
6534 | sed -n ' | |
6535 | h | |
6536 | s/^/S["/; s/!.*/"]=/ | |
6537 | p | |
6538 | g | |
6539 | s/^[^!]*!// | |
6540 | :repl | |
6541 | t repl | |
6542 | s/'"$ac_delim"'$// | |
6543 | t delim | |
6544 | :nl | |
6545 | h | |
6546 | s/\(.\{148\}\)..*/\1/ | |
6547 | t more1 | |
6548 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
6549 | p | |
6550 | n | |
6551 | b repl | |
6552 | :more1 | |
6553 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6554 | p | |
6555 | g | |
6556 | s/.\{148\}// | |
6557 | t nl | |
6558 | :delim | |
6559 | h | |
6560 | s/\(.\{148\}\)..*/\1/ | |
6561 | t more2 | |
6562 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
6563 | p | |
6564 | b | |
6565 | :more2 | |
6566 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6567 | p | |
6568 | g | |
6569 | s/.\{148\}// | |
6570 | t delim | |
6571 | ' <conf$$subs.awk | sed ' | |
6572 | /^[^""]/{ | |
6573 | N | |
6574 | s/\n// | |
6575 | } | |
6576 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
6577 | rm -f conf$$subs.awk | |
6578 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6579 | _ACAWK | |
6580 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
6581 | for (key in S) S_is_set[key] = 1 | |
6582 | FS = "\a" | |
6583 | ||
6584 | } | |
6585 | { | |
6586 | line = $ 0 | |
6587 | nfields = split(line, field, "@") | |
6588 | substed = 0 | |
6589 | len = length(field[1]) | |
6590 | for (i = 2; i < nfields; i++) { | |
6591 | key = field[i] | |
6592 | keylen = length(key) | |
6593 | if (S_is_set[key]) { | |
6594 | value = S[key] | |
6595 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6596 | len += length(value) + length(field[++i]) | |
6597 | substed = 1 | |
6598 | } else | |
6599 | len += 1 + keylen | |
6600 | } | |
6601 | ||
6602 | print line | |
6603 | } | |
6604 | ||
6605 | _ACAWK | |
6606 | _ACEOF | |
6607 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6608 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6609 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6610 | else | |
6611 | cat | |
6612 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
6613 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
6614 | _ACEOF | |
6615 | ||
6616 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
6617 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
6618 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6619 | # (actually we leave an empty line to preserve line numbers). | |
6620 | if test "x$srcdir" = x.; then | |
6621 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
6622 | h | |
6623 | s/// | |
6624 | s/^/:/ | |
6625 | s/[ ]*$/:/ | |
6626 | s/:\$(srcdir):/:/g | |
6627 | s/:\${srcdir}:/:/g | |
6628 | s/:@srcdir@:/:/g | |
6629 | s/^:*// | |
6630 | s/:*$// | |
6631 | x | |
6632 | s/\(=[ ]*\).*/\1/ | |
6633 | G | |
6634 | s/\n// | |
6635 | s/^[^=]*=[ ]*$// | |
6636 | }' | |
6637 | fi | |
6638 | ||
6639 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6640 | fi # test -n "$CONFIG_FILES" | |
6641 | ||
6642 | # Set up the scripts for CONFIG_HEADERS section. | |
6643 | # No need to generate them if there are no CONFIG_HEADERS. | |
6644 | # This happens for instance with `./config.status Makefile'. | |
6645 | if test -n "$CONFIG_HEADERS"; then | |
6646 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
6647 | BEGIN { | |
6648 | _ACEOF | |
6649 | ||
6650 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
6651 | # here-document in config.status, that substitutes the proper values into | |
6652 | # config.h.in to produce config.h. | |
6653 | ||
6654 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
6655 | # handling of long lines. | |
6656 | ac_delim='%!_!# ' | |
6657 | for ac_last_try in false false :; do | |
6658 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
6659 | if test -z "$ac_t"; then | |
6660 | break | |
6661 | elif $ac_last_try; then | |
6662 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
6663 | else | |
6664 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6665 | fi | |
6666 | done | |
6667 | ||
6668 | # For the awk script, D is an array of macro values keyed by name, | |
6669 | # likewise P contains macro parameters if any. Preserve backslash | |
6670 | # newline sequences. | |
6671 | ||
6672 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6673 | sed -n ' | |
6674 | s/.\{148\}/&'"$ac_delim"'/g | |
6675 | t rset | |
6676 | :rset | |
6677 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
6678 | t def | |
6679 | d | |
6680 | :def | |
6681 | s/\\$// | |
6682 | t bsnl | |
6683 | s/["\\]/\\&/g | |
6684 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6685 | D["\1"]=" \3"/p | |
6686 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
6687 | d | |
6688 | :bsnl | |
6689 | s/["\\]/\\&/g | |
6690 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6691 | D["\1"]=" \3\\\\\\n"\\/p | |
6692 | t cont | |
6693 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
6694 | t cont | |
6695 | d | |
6696 | :cont | |
6697 | n | |
6698 | s/.\{148\}/&'"$ac_delim"'/g | |
6699 | t clear | |
6700 | :clear | |
6701 | s/\\$// | |
6702 | t bsnlc | |
6703 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
6704 | d | |
6705 | :bsnlc | |
6706 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
6707 | b cont | |
6708 | ' <confdefs.h | sed ' | |
6709 | s/'"$ac_delim"'/"\\\ | |
6710 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
6711 | ||
6712 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6713 | for (key in D) D_is_set[key] = 1 | |
6714 | FS = "\a" | |
6715 | } | |
6716 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
6717 | line = \$ 0 | |
6718 | split(line, arg, " ") | |
6719 | if (arg[1] == "#") { | |
6720 | defundef = arg[2] | |
6721 | mac1 = arg[3] | |
6722 | } else { | |
6723 | defundef = substr(arg[1], 2) | |
6724 | mac1 = arg[2] | |
6725 | } | |
6726 | split(mac1, mac2, "(") #) | |
6727 | macro = mac2[1] | |
6728 | prefix = substr(line, 1, index(line, defundef) - 1) | |
6729 | if (D_is_set[macro]) { | |
6730 | # Preserve the white space surrounding the "#". | |
6731 | print prefix "define", macro P[macro] D[macro] | |
6732 | next | |
6733 | } else { | |
6734 | # Replace #undef with comments. This is necessary, for example, | |
6735 | # in the case of _POSIX_SOURCE, which is predefined and required | |
6736 | # on some systems where configure will not decide to define it. | |
6737 | if (defundef == "undef") { | |
6738 | print "/*", prefix defundef, macro, "*/" | |
6739 | next | |
6740 | } | |
6741 | } | |
6742 | } | |
6743 | { print } | |
6744 | _ACAWK | |
6745 | _ACEOF | |
6746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6747 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
6748 | fi # test -n "$CONFIG_HEADERS" | |
6749 | ||
6750 | ||
6751 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
6752 | shift | |
6753 | for ac_tag | |
6754 | do | |
6755 | case $ac_tag in | |
6756 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
6757 | esac | |
6758 | case $ac_mode$ac_tag in | |
6759 | :[FHL]*:*);; | |
6760 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; | |
6761 | :[FH]-) ac_tag=-:-;; | |
6762 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6763 | esac | |
6764 | ac_save_IFS=$IFS | |
6765 | IFS=: | |
6766 | set x $ac_tag | |
6767 | IFS=$ac_save_IFS | |
6768 | shift | |
6769 | ac_file=$1 | |
6770 | shift | |
6771 | ||
6772 | case $ac_mode in | |
6773 | :L) ac_source=$1;; | |
6774 | :[FH]) | |
6775 | ac_file_inputs= | |
6776 | for ac_f | |
6777 | do | |
6778 | case $ac_f in | |
6779 | -) ac_f="$tmp/stdin";; | |
6780 | *) # Look for the file first in the build tree, then in the source tree | |
6781 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6782 | # because $ac_f cannot contain `:'. | |
6783 | test -f "$ac_f" || | |
6784 | case $ac_f in | |
6785 | [\\/$]*) false;; | |
6786 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6787 | esac || | |
6788 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; | |
6789 | esac | |
6790 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
6791 | as_fn_append ac_file_inputs " '$ac_f'" | |
6792 | done | |
6793 | ||
6794 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6795 | # use $as_me), people would be surprised to read: | |
6796 | # /* config.h. Generated by config.status. */ | |
6797 | configure_input='Generated from '` | |
6798 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
6799 | `' by configure.' | |
6800 | if test x"$ac_file" != x-; then | |
6801 | configure_input="$ac_file. $configure_input" | |
6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
6803 | $as_echo "$as_me: creating $ac_file" >&6;} | |
6804 | fi | |
6805 | # Neutralize special characters interpreted by sed in replacement strings. | |
6806 | case $configure_input in #( | |
6807 | *\&* | *\|* | *\\* ) | |
6808 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
6809 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
6810 | *) ac_sed_conf_input=$configure_input;; | |
6811 | esac | |
6812 | ||
6813 | case $ac_tag in | |
6814 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
6815 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
6816 | esac | |
6817 | ;; | |
6818 | esac | |
6819 | ||
6820 | ac_dir=`$as_dirname -- "$ac_file" || | |
6821 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6822 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6823 | X"$ac_file" : 'X\(//\)$' \| \ | |
6824 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
6825 | $as_echo X"$ac_file" | | |
6826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6827 | s//\1/ | |
6828 | q | |
6829 | } | |
6830 | /^X\(\/\/\)[^/].*/{ | |
6831 | s//\1/ | |
6832 | q | |
6833 | } | |
6834 | /^X\(\/\/\)$/{ | |
6835 | s//\1/ | |
6836 | q | |
6837 | } | |
6838 | /^X\(\/\).*/{ | |
6839 | s//\1/ | |
6840 | q | |
6841 | } | |
6842 | s/.*/./; q'` | |
6843 | as_dir="$ac_dir"; as_fn_mkdir_p | |
6844 | ac_builddir=. | |
6845 | ||
6846 | case "$ac_dir" in | |
6847 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6848 | *) | |
6849 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
6850 | # A ".." for each directory in $ac_dir_suffix. | |
6851 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
6852 | case $ac_top_builddir_sub in | |
6853 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6854 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
6855 | esac ;; | |
6856 | esac | |
6857 | ac_abs_top_builddir=$ac_pwd | |
6858 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
6859 | # for backward compatibility: | |
6860 | ac_top_builddir=$ac_top_build_prefix | |
6861 | ||
6862 | case $srcdir in | |
6863 | .) # We are building in place. | |
6864 | ac_srcdir=. | |
6865 | ac_top_srcdir=$ac_top_builddir_sub | |
6866 | ac_abs_top_srcdir=$ac_pwd ;; | |
6867 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
6868 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6869 | ac_top_srcdir=$srcdir | |
6870 | ac_abs_top_srcdir=$srcdir ;; | |
6871 | *) # Relative name. | |
6872 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
6873 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
6874 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6875 | esac | |
6876 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
6877 | ||
6878 | ||
6879 | case $ac_mode in | |
6880 | :F) | |
6881 | # | |
6882 | # CONFIG_FILE | |
6883 | # | |
6884 | ||
6885 | case $INSTALL in | |
6886 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6887 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
6888 | esac | |
6889 | ac_MKDIR_P=$MKDIR_P | |
6890 | case $MKDIR_P in | |
6891 | [\\/$]* | ?:[\\/]* ) ;; | |
6892 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6893 | esac | |
6894 | _ACEOF | |
6895 | ||
6896 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6897 | # If the template does not know about datarootdir, expand it. | |
6898 | # FIXME: This hack should be removed a few years after 2.60. | |
6899 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
6900 | ac_sed_dataroot=' | |
6901 | /datarootdir/ { | |
6902 | p | |
6903 | q | |
6904 | } | |
6905 | /@datadir@/p | |
6906 | /@docdir@/p | |
6907 | /@infodir@/p | |
6908 | /@localedir@/p | |
6909 | /@mandir@/p' | |
6910 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
6911 | *datarootdir*) ac_datarootdir_seen=yes;; | |
6912 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6914 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
6915 | _ACEOF | |
6916 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6917 | ac_datarootdir_hack=' | |
6918 | s&@datadir@&$datadir&g | |
6919 | s&@docdir@&$docdir&g | |
6920 | s&@infodir@&$infodir&g | |
6921 | s&@localedir@&$localedir&g | |
6922 | s&@mandir@&$mandir&g | |
6923 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
6924 | esac | |
6925 | _ACEOF | |
6926 | ||
6927 | # Neutralize VPATH when `$srcdir' = `.'. | |
6928 | # Shell code in configure.ac might set extrasub. | |
6929 | # FIXME: do we really want to maintain this feature? | |
6930 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6931 | ac_sed_extra="$ac_vpsub | |
6932 | $extrasub | |
6933 | _ACEOF | |
6934 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6935 | :t | |
6936 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
6937 | s|@configure_input@|$ac_sed_conf_input|;t t | |
6938 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
6939 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
6940 | s&@srcdir@&$ac_srcdir&;t t | |
6941 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
6942 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
6943 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
6944 | s&@builddir@&$ac_builddir&;t t | |
6945 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
6946 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
6947 | s&@INSTALL@&$ac_INSTALL&;t t | |
6948 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
6949 | $ac_datarootdir_hack | |
6950 | " | |
6951 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
6952 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6953 | ||
6954 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
6955 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
6956 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6958 | which seems to be undefined. Please make sure it is defined" >&5 | |
6959 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
6960 | which seems to be undefined. Please make sure it is defined" >&2;} | |
6961 | ||
6962 | rm -f "$tmp/stdin" | |
6963 | case $ac_file in | |
6964 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
6965 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
6966 | esac \ | |
6967 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6968 | ;; | |
6969 | :H) | |
6970 | # | |
6971 | # CONFIG_HEADER | |
6972 | # | |
6973 | if test x"$ac_file" != x-; then | |
6974 | { | |
6975 | $as_echo "/* $configure_input */" \ | |
6976 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
6977 | } >"$tmp/config.h" \ | |
6978 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6979 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
6981 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6982 | else | |
6983 | rm -f "$ac_file" | |
6984 | mv "$tmp/config.h" "$ac_file" \ | |
6985 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6986 | fi | |
6987 | else | |
6988 | $as_echo "/* $configure_input */" \ | |
6989 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
6990 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
6991 | fi | |
6992 | # Compute "$ac_file"'s index in $config_headers. | |
6993 | _am_arg="$ac_file" | |
6994 | _am_stamp_count=1 | |
6995 | for _am_header in $config_headers :; do | |
6996 | case $_am_header in | |
6997 | $_am_arg | $_am_arg:* ) | |
6998 | break ;; | |
6999 | * ) | |
7000 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7001 | esac | |
7002 | done | |
7003 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
7004 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7005 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
7006 | X"$_am_arg" : 'X\(//\)$' \| \ | |
7007 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
7008 | $as_echo X"$_am_arg" | | |
7009 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7010 | s//\1/ | |
7011 | q | |
7012 | } | |
7013 | /^X\(\/\/\)[^/].*/{ | |
7014 | s//\1/ | |
7015 | q | |
7016 | } | |
7017 | /^X\(\/\/\)$/{ | |
7018 | s//\1/ | |
7019 | q | |
7020 | } | |
7021 | /^X\(\/\).*/{ | |
7022 | s//\1/ | |
7023 | q | |
7024 | } | |
7025 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
7026 | ;; | |
7027 | ||
7028 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
7029 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7030 | ;; | |
7031 | esac | |
7032 | ||
7033 | ||
7034 | case $ac_file$ac_mode in | |
7035 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
7036 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
7037 | # are listed without --file. Let's play safe and only enable the eval | |
7038 | # if we detect the quoting. | |
7039 | case $CONFIG_FILES in | |
7040 | *\'*) eval set x "$CONFIG_FILES" ;; | |
7041 | *) set x $CONFIG_FILES ;; | |
7042 | esac | |
7043 | shift | |
7044 | for mf | |
7045 | do | |
7046 | # Strip MF so we end up with the name of the file. | |
7047 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
7048 | # Check whether this is an Automake generated Makefile or not. | |
7049 | # We used to match only the files named `Makefile.in', but | |
7050 | # some people rename them; so instead we look at the file content. | |
7051 | # Grep'ing the first line is not enough: some people post-process | |
7052 | # each Makefile.in and add a new line on top of each file to say so. | |
7053 | # Grep'ing the whole file is not good either: AIX grep has a line | |
7054 | # limit of 2048, but all sed's we know have understand at least 4000. | |
7055 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
7056 | dirpart=`$as_dirname -- "$mf" || | |
7057 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7058 | X"$mf" : 'X\(//\)[^/]' \| \ | |
7059 | X"$mf" : 'X\(//\)$' \| \ | |
7060 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
7061 | $as_echo X"$mf" | | |
7062 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7063 | s//\1/ | |
7064 | q | |
7065 | } | |
7066 | /^X\(\/\/\)[^/].*/{ | |
7067 | s//\1/ | |
7068 | q | |
7069 | } | |
7070 | /^X\(\/\/\)$/{ | |
7071 | s//\1/ | |
7072 | q | |
7073 | } | |
7074 | /^X\(\/\).*/{ | |
7075 | s//\1/ | |
7076 | q | |
7077 | } | |
7078 | s/.*/./; q'` | |
7079 | else | |
7080 | continue | |
7081 | fi | |
7082 | # Extract the definition of DEPDIR, am__include, and am__quote | |
7083 | # from the Makefile without running `make'. | |
7084 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
7085 | test -z "$DEPDIR" && continue | |
7086 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
7087 | test -z "am__include" && continue | |
7088 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
7089 | # When using ansi2knr, U may be empty or an underscore; expand it | |
7090 | U=`sed -n 's/^U = //p' < "$mf"` | |
7091 | # Find all dependency output files, they are included files with | |
7092 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
7093 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
7094 | # expansion. | |
7095 | for file in `sed -n " | |
7096 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
7097 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
7098 | # Make sure the directory exists. | |
7099 | test -f "$dirpart/$file" && continue | |
7100 | fdir=`$as_dirname -- "$file" || | |
7101 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7102 | X"$file" : 'X\(//\)[^/]' \| \ | |
7103 | X"$file" : 'X\(//\)$' \| \ | |
7104 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
7105 | $as_echo X"$file" | | |
7106 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7107 | s//\1/ | |
7108 | q | |
7109 | } | |
7110 | /^X\(\/\/\)[^/].*/{ | |
7111 | s//\1/ | |
7112 | q | |
7113 | } | |
7114 | /^X\(\/\/\)$/{ | |
7115 | s//\1/ | |
7116 | q | |
7117 | } | |
7118 | /^X\(\/\).*/{ | |
7119 | s//\1/ | |
7120 | q | |
7121 | } | |
7122 | s/.*/./; q'` | |
7123 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
7124 | # echo "creating $dirpart/$file" | |
7125 | echo '# dummy' > "$dirpart/$file" | |
7126 | done | |
7127 | done | |
7128 | } | |
7129 | ;; | |
7130 | ||
7131 | esac | |
7132 | done # for ac_tag | |
7133 | ||
7134 | ||
7135 | as_fn_exit 0 | |
7136 | _ACEOF | |
7137 | ac_clean_files=$ac_clean_files_save | |
7138 | ||
7139 | test $ac_write_fail = 0 || | |
7140 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
7141 | ||
7142 | ||
7143 | # configure is writing to config.log, and then calls config.status. | |
7144 | # config.status does its own redirection, appending to config.log. | |
7145 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7146 | # by configure, so config.status won't be able to write to it; its | |
7147 | # output is simply discarded. So we exec the FD to /dev/null, | |
7148 | # effectively closing config.log, so it can be properly (re)opened and | |
7149 | # appended to by config.status. When coming back to configure, we | |
7150 | # need to make the FD available again. | |
7151 | if test "$no_create" != yes; then | |
7152 | ac_cs_success=: | |
7153 | ac_config_status_args= | |
7154 | test "$silent" = yes && | |
7155 | ac_config_status_args="$ac_config_status_args --quiet" | |
7156 | exec 5>/dev/null | |
7157 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7158 | exec 5>>config.log | |
7159 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7160 | # would make configure fail if this is the last instruction. | |
7161 | $ac_cs_success || as_fn_exit 1 | |
7162 | fi | |
7163 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7165 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
7166 | fi | |
7167 | ||
7168 |