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