Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
c906108c SS |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
bec39cab | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
bec39cab | 31 | fi |
bec39cab | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
bec39cab | 50 | else |
81ecdfbb RW |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bec39cab AC |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bec39cab AC |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bec39cab | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bec39cab | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bec39cab | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
bec39cab | 356 | |
81ecdfbb RW |
357 | # as_fn_error ERROR [LINENO LOG_FD] |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bec39cab | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bec39cab | 410 | |
bec39cab AC |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
bec39cab | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bec39cab | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bec39cab | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bec39cab | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bec39cab | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bec39cab AC |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bec39cab AC |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bec39cab AC |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bec39cab | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
bec39cab | 483 | fi |
bec39cab AC |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bec39cab AC |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
c906108c | 496 | |
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bec39cab AC |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bec39cab AC |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bec39cab AC |
534 | # |
535 | # Initializations. | |
536 | # | |
c906108c | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
bec39cab | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bec39cab AC |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
bec39cab AC |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
bec39cab AC |
553 | |
554 | ac_unique_file="gdb.base" | |
bec39cab AC |
555 | # Factoring default headers for most tests. |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
bec39cab AC |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
bec39cab AC |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
bec39cab AC |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
bec39cab AC |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
bec39cab AC |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
bec39cab AC |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
bec39cab | 582 | # include <inttypes.h> |
bec39cab | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
bec39cab AC |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
81ecdfbb RW |
591 | ac_subst_vars='LTLIBOBJS |
592 | LIBOBJS | |
2a31c623 | 593 | EXTRA_RULES |
81ecdfbb RW |
594 | EGREP |
595 | GREP | |
596 | CPP | |
597 | OBJEXT | |
598 | EXEEXT | |
599 | ac_ct_CC | |
600 | CPPFLAGS | |
601 | LDFLAGS | |
602 | CFLAGS | |
603 | CC | |
604 | RPATH_ENVVAR | |
81ecdfbb RW |
605 | SET_MAKE |
606 | GMAKE_FALSE | |
607 | GMAKE_TRUE | |
608 | MAKE | |
609 | target_noncanonical | |
610 | target_os | |
611 | target_vendor | |
612 | target_cpu | |
613 | target | |
614 | host_os | |
615 | host_vendor | |
616 | host_cpu | |
617 | host | |
618 | build_os | |
619 | build_vendor | |
620 | build_cpu | |
621 | build | |
622 | target_alias | |
623 | host_alias | |
624 | build_alias | |
625 | LIBS | |
626 | ECHO_T | |
627 | ECHO_N | |
628 | ECHO_C | |
629 | DEFS | |
630 | mandir | |
631 | localedir | |
632 | libdir | |
633 | psdir | |
634 | pdfdir | |
635 | dvidir | |
636 | htmldir | |
637 | infodir | |
638 | docdir | |
639 | oldincludedir | |
640 | includedir | |
641 | localstatedir | |
642 | sharedstatedir | |
643 | sysconfdir | |
644 | datadir | |
645 | datarootdir | |
646 | libexecdir | |
647 | sbindir | |
648 | bindir | |
649 | program_transform_name | |
650 | prefix | |
651 | exec_prefix | |
652 | PACKAGE_URL | |
653 | PACKAGE_BUGREPORT | |
654 | PACKAGE_STRING | |
655 | PACKAGE_VERSION | |
656 | PACKAGE_TARNAME | |
657 | PACKAGE_NAME | |
658 | PATH_SEPARATOR | |
659 | SHELL' | |
bec39cab | 660 | ac_subst_files='' |
81ecdfbb RW |
661 | ac_user_opts=' |
662 | enable_option_checking | |
81ecdfbb RW |
663 | enable_shared |
664 | ' | |
665 | ac_precious_vars='build_alias | |
666 | host_alias | |
667 | target_alias | |
668 | CC | |
669 | CFLAGS | |
670 | LDFLAGS | |
671 | LIBS | |
672 | CPPFLAGS | |
673 | CPP' | |
9e8cd6df | 674 | |
c906108c SS |
675 | |
676 | # Initialize some variables set by options. | |
bec39cab AC |
677 | ac_init_help= |
678 | ac_init_version=false | |
81ecdfbb RW |
679 | ac_unrecognized_opts= |
680 | ac_unrecognized_sep= | |
c906108c SS |
681 | # The variables have the same names as the options, with |
682 | # dashes changed to underlines. | |
bec39cab | 683 | cache_file=/dev/null |
c906108c | 684 | exec_prefix=NONE |
c906108c | 685 | no_create= |
c906108c SS |
686 | no_recursion= |
687 | prefix=NONE | |
688 | program_prefix=NONE | |
689 | program_suffix=NONE | |
690 | program_transform_name=s,x,x, | |
691 | silent= | |
692 | site= | |
693 | srcdir= | |
c906108c SS |
694 | verbose= |
695 | x_includes=NONE | |
696 | x_libraries=NONE | |
bec39cab AC |
697 | |
698 | # Installation directory options. | |
699 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
700 | # and all the variables that are supposed to be based on exec_prefix | |
701 | # by default will actually change. | |
702 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 703 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
704 | bindir='${exec_prefix}/bin' |
705 | sbindir='${exec_prefix}/sbin' | |
706 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
707 | datarootdir='${prefix}/share' |
708 | datadir='${datarootdir}' | |
c906108c SS |
709 | sysconfdir='${prefix}/etc' |
710 | sharedstatedir='${prefix}/com' | |
711 | localstatedir='${prefix}/var' | |
c906108c SS |
712 | includedir='${prefix}/include' |
713 | oldincludedir='/usr/include' | |
81ecdfbb RW |
714 | docdir='${datarootdir}/doc/${PACKAGE}' |
715 | infodir='${datarootdir}/info' | |
716 | htmldir='${docdir}' | |
717 | dvidir='${docdir}' | |
718 | pdfdir='${docdir}' | |
719 | psdir='${docdir}' | |
720 | libdir='${exec_prefix}/lib' | |
721 | localedir='${datarootdir}/locale' | |
722 | mandir='${datarootdir}/man' | |
c906108c | 723 | |
c906108c | 724 | ac_prev= |
81ecdfbb | 725 | ac_dashdash= |
c906108c SS |
726 | for ac_option |
727 | do | |
c906108c SS |
728 | # If the previous option needs an argument, assign it. |
729 | if test -n "$ac_prev"; then | |
81ecdfbb | 730 | eval $ac_prev=\$ac_option |
c906108c SS |
731 | ac_prev= |
732 | continue | |
733 | fi | |
734 | ||
81ecdfbb RW |
735 | case $ac_option in |
736 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
737 | *) ac_optarg=yes ;; | |
738 | esac | |
c906108c SS |
739 | |
740 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
741 | ||
81ecdfbb RW |
742 | case $ac_dashdash$ac_option in |
743 | --) | |
744 | ac_dashdash=yes ;; | |
c906108c SS |
745 | |
746 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
747 | ac_prev=bindir ;; | |
748 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 749 | bindir=$ac_optarg ;; |
c906108c SS |
750 | |
751 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 752 | ac_prev=build_alias ;; |
c906108c | 753 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 754 | build_alias=$ac_optarg ;; |
c906108c SS |
755 | |
756 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
757 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
758 | ac_prev=cache_file ;; | |
759 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
760 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
761 | cache_file=$ac_optarg ;; |
762 | ||
763 | --config-cache | -C) | |
764 | cache_file=config.cache ;; | |
c906108c | 765 | |
81ecdfbb | 766 | -datadir | --datadir | --datadi | --datad) |
c906108c | 767 | ac_prev=datadir ;; |
81ecdfbb | 768 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bec39cab | 769 | datadir=$ac_optarg ;; |
c906108c | 770 | |
81ecdfbb RW |
771 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
772 | | --dataroo | --dataro | --datar) | |
773 | ac_prev=datarootdir ;; | |
774 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
775 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
776 | datarootdir=$ac_optarg ;; | |
777 | ||
c906108c | 778 | -disable-* | --disable-*) |
81ecdfbb | 779 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 780 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
781 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
782 | as_fn_error "invalid feature name: $ac_useropt" | |
783 | ac_useropt_orig=$ac_useropt | |
784 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
785 | case $ac_user_opts in | |
786 | *" | |
787 | "enable_$ac_useropt" | |
788 | "*) ;; | |
789 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
790 | ac_unrecognized_sep=', ';; | |
791 | esac | |
792 | eval enable_$ac_useropt=no ;; | |
793 | ||
794 | -docdir | --docdir | --docdi | --doc | --do) | |
795 | ac_prev=docdir ;; | |
796 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
797 | docdir=$ac_optarg ;; | |
798 | ||
799 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
800 | ac_prev=dvidir ;; | |
801 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
802 | dvidir=$ac_optarg ;; | |
c906108c SS |
803 | |
804 | -enable-* | --enable-*) | |
81ecdfbb | 805 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 806 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
807 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
808 | as_fn_error "invalid feature name: $ac_useropt" | |
809 | ac_useropt_orig=$ac_useropt | |
810 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
811 | case $ac_user_opts in | |
812 | *" | |
813 | "enable_$ac_useropt" | |
814 | "*) ;; | |
815 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
816 | ac_unrecognized_sep=', ';; | |
c906108c | 817 | esac |
81ecdfbb | 818 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
819 | |
820 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
821 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
822 | | --exec | --exe | --ex) | |
823 | ac_prev=exec_prefix ;; | |
824 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
825 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
826 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 827 | exec_prefix=$ac_optarg ;; |
c906108c SS |
828 | |
829 | -gas | --gas | --ga | --g) | |
830 | # Obsolete; use --with-gas. | |
831 | with_gas=yes ;; | |
832 | ||
bec39cab AC |
833 | -help | --help | --hel | --he | -h) |
834 | ac_init_help=long ;; | |
835 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
836 | ac_init_help=recursive ;; | |
837 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
838 | ac_init_help=short ;; | |
c906108c SS |
839 | |
840 | -host | --host | --hos | --ho) | |
bec39cab | 841 | ac_prev=host_alias ;; |
c906108c | 842 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 843 | host_alias=$ac_optarg ;; |
c906108c | 844 | |
81ecdfbb RW |
845 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
846 | ac_prev=htmldir ;; | |
847 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
848 | | --ht=*) | |
849 | htmldir=$ac_optarg ;; | |
850 | ||
c906108c SS |
851 | -includedir | --includedir | --includedi | --included | --include \ |
852 | | --includ | --inclu | --incl | --inc) | |
853 | ac_prev=includedir ;; | |
854 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
855 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 856 | includedir=$ac_optarg ;; |
c906108c SS |
857 | |
858 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
859 | ac_prev=infodir ;; | |
860 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 861 | infodir=$ac_optarg ;; |
c906108c SS |
862 | |
863 | -libdir | --libdir | --libdi | --libd) | |
864 | ac_prev=libdir ;; | |
865 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 866 | libdir=$ac_optarg ;; |
c906108c SS |
867 | |
868 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
869 | | --libexe | --libex | --libe) | |
870 | ac_prev=libexecdir ;; | |
871 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
872 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 873 | libexecdir=$ac_optarg ;; |
c906108c | 874 | |
81ecdfbb RW |
875 | -localedir | --localedir | --localedi | --localed | --locale) |
876 | ac_prev=localedir ;; | |
877 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
878 | localedir=$ac_optarg ;; | |
879 | ||
c906108c | 880 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 881 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
882 | ac_prev=localstatedir ;; |
883 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 884 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bec39cab | 885 | localstatedir=$ac_optarg ;; |
c906108c SS |
886 | |
887 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
888 | ac_prev=mandir ;; | |
889 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 890 | mandir=$ac_optarg ;; |
c906108c SS |
891 | |
892 | -nfp | --nfp | --nf) | |
893 | # Obsolete; use --without-fp. | |
894 | with_fp=no ;; | |
895 | ||
896 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 897 | | --no-cr | --no-c | -n) |
c906108c SS |
898 | no_create=yes ;; |
899 | ||
900 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
901 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
902 | no_recursion=yes ;; | |
903 | ||
904 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
905 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
906 | | --oldin | --oldi | --old | --ol | --o) | |
907 | ac_prev=oldincludedir ;; | |
908 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
909 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
910 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 911 | oldincludedir=$ac_optarg ;; |
c906108c SS |
912 | |
913 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
914 | ac_prev=prefix ;; | |
915 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 916 | prefix=$ac_optarg ;; |
c906108c SS |
917 | |
918 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
919 | | --program-pre | --program-pr | --program-p) | |
920 | ac_prev=program_prefix ;; | |
921 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
922 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 923 | program_prefix=$ac_optarg ;; |
c906108c SS |
924 | |
925 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
926 | | --program-suf | --program-su | --program-s) | |
927 | ac_prev=program_suffix ;; | |
928 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
929 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 930 | program_suffix=$ac_optarg ;; |
c906108c SS |
931 | |
932 | -program-transform-name | --program-transform-name \ | |
933 | | --program-transform-nam | --program-transform-na \ | |
934 | | --program-transform-n | --program-transform- \ | |
935 | | --program-transform | --program-transfor \ | |
936 | | --program-transfo | --program-transf \ | |
937 | | --program-trans | --program-tran \ | |
938 | | --progr-tra | --program-tr | --program-t) | |
939 | ac_prev=program_transform_name ;; | |
940 | -program-transform-name=* | --program-transform-name=* \ | |
941 | | --program-transform-nam=* | --program-transform-na=* \ | |
942 | | --program-transform-n=* | --program-transform-=* \ | |
943 | | --program-transform=* | --program-transfor=* \ | |
944 | | --program-transfo=* | --program-transf=* \ | |
945 | | --program-trans=* | --program-tran=* \ | |
946 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 947 | program_transform_name=$ac_optarg ;; |
c906108c | 948 | |
81ecdfbb RW |
949 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
950 | ac_prev=pdfdir ;; | |
951 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
952 | pdfdir=$ac_optarg ;; | |
953 | ||
954 | -psdir | --psdir | --psdi | --psd | --ps) | |
955 | ac_prev=psdir ;; | |
956 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
957 | psdir=$ac_optarg ;; | |
958 | ||
c906108c SS |
959 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
960 | | -silent | --silent | --silen | --sile | --sil) | |
961 | silent=yes ;; | |
962 | ||
963 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
964 | ac_prev=sbindir ;; | |
965 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
966 | | --sbi=* | --sb=*) | |
bec39cab | 967 | sbindir=$ac_optarg ;; |
c906108c SS |
968 | |
969 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
970 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
971 | | --sharedst | --shareds | --shared | --share | --shar \ | |
972 | | --sha | --sh) | |
973 | ac_prev=sharedstatedir ;; | |
974 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
975 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
976 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
977 | | --sha=* | --sh=*) | |
bec39cab | 978 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
979 | |
980 | -site | --site | --sit) | |
981 | ac_prev=site ;; | |
982 | -site=* | --site=* | --sit=*) | |
bec39cab | 983 | site=$ac_optarg ;; |
5710a1af | 984 | |
c906108c SS |
985 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
986 | ac_prev=srcdir ;; | |
987 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 988 | srcdir=$ac_optarg ;; |
c906108c SS |
989 | |
990 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
991 | | --syscon | --sysco | --sysc | --sys | --sy) | |
992 | ac_prev=sysconfdir ;; | |
993 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
994 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 995 | sysconfdir=$ac_optarg ;; |
c906108c SS |
996 | |
997 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 998 | ac_prev=target_alias ;; |
c906108c | 999 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 1000 | target_alias=$ac_optarg ;; |
c906108c SS |
1001 | |
1002 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1003 | verbose=yes ;; | |
1004 | ||
bec39cab AC |
1005 | -version | --version | --versio | --versi | --vers | -V) |
1006 | ac_init_version=: ;; | |
c906108c SS |
1007 | |
1008 | -with-* | --with-*) | |
81ecdfbb | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1010 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1012 | as_fn_error "invalid package name: $ac_useropt" | |
1013 | ac_useropt_orig=$ac_useropt | |
1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1015 | case $ac_user_opts in | |
1016 | *" | |
1017 | "with_$ac_useropt" | |
1018 | "*) ;; | |
1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1020 | ac_unrecognized_sep=', ';; | |
c906108c | 1021 | esac |
81ecdfbb | 1022 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1023 | |
1024 | -without-* | --without-*) | |
81ecdfbb | 1025 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1026 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1028 | as_fn_error "invalid package name: $ac_useropt" | |
1029 | ac_useropt_orig=$ac_useropt | |
1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1031 | case $ac_user_opts in | |
1032 | *" | |
1033 | "with_$ac_useropt" | |
1034 | "*) ;; | |
1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1036 | ac_unrecognized_sep=', ';; | |
1037 | esac | |
1038 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1039 | |
1040 | --x) | |
1041 | # Obsolete; use --with-x. | |
1042 | with_x=yes ;; | |
1043 | ||
1044 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1045 | | --x-incl | --x-inc | --x-in | --x-i) | |
1046 | ac_prev=x_includes ;; | |
1047 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1048 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 1049 | x_includes=$ac_optarg ;; |
c906108c SS |
1050 | |
1051 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1052 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1053 | ac_prev=x_libraries ;; | |
1054 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1055 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 1056 | x_libraries=$ac_optarg ;; |
c906108c | 1057 | |
81ecdfbb RW |
1058 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1059 | Try \`$0 --help' for more information." | |
c906108c SS |
1060 | ;; |
1061 | ||
bec39cab AC |
1062 | *=*) |
1063 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1064 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1065 | case $ac_envvar in #( |
1066 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1067 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1068 | esac | |
1069 | eval $ac_envvar=\$ac_optarg | |
bec39cab AC |
1070 | export $ac_envvar ;; |
1071 | ||
c906108c | 1072 | *) |
bec39cab | 1073 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1074 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bec39cab | 1075 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1076 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bec39cab | 1077 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
c906108c SS |
1078 | ;; |
1079 | ||
1080 | esac | |
1081 | done | |
1082 | ||
1083 | if test -n "$ac_prev"; then | |
bec39cab | 1084 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1085 | as_fn_error "missing argument to $ac_option" |
c906108c SS |
1086 | fi |
1087 | ||
81ecdfbb RW |
1088 | if test -n "$ac_unrecognized_opts"; then |
1089 | case $enable_option_checking in | |
1090 | no) ;; | |
1091 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1092 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
bec39cab | 1093 | esac |
81ecdfbb | 1094 | fi |
c906108c | 1095 | |
81ecdfbb RW |
1096 | # Check all directory arguments for consistency. |
1097 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1098 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1099 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1100 | libdir localedir mandir | |
c906108c | 1101 | do |
81ecdfbb RW |
1102 | eval ac_val=\$$ac_var |
1103 | # Remove trailing slashes. | |
bec39cab | 1104 | case $ac_val in |
81ecdfbb RW |
1105 | */ ) |
1106 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1107 | eval $ac_var=\$ac_val;; | |
c906108c | 1108 | esac |
81ecdfbb RW |
1109 | # Be sure to have absolute directory names. |
1110 | case $ac_val in | |
1111 | [\\/$]* | ?:[\\/]* ) continue;; | |
1112 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1113 | esac | |
1114 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
c906108c SS |
1115 | done |
1116 | ||
bec39cab AC |
1117 | # There might be people who depend on the old broken behavior: `$host' |
1118 | # used to hold the argument of --host etc. | |
1119 | # FIXME: To remove some day. | |
1120 | build=$build_alias | |
1121 | host=$host_alias | |
1122 | target=$target_alias | |
1123 | ||
1124 | # FIXME: To remove some day. | |
1125 | if test "x$host_alias" != x; then | |
1126 | if test "x$build_alias" = x; then | |
1127 | cross_compiling=maybe | |
81ecdfbb | 1128 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bec39cab AC |
1129 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1130 | elif test "x$build_alias" != "x$host_alias"; then | |
1131 | cross_compiling=yes | |
1132 | fi | |
1133 | fi | |
c906108c | 1134 | |
bec39cab AC |
1135 | ac_tool_prefix= |
1136 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1137 | ||
1138 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1139 | |
c906108c | 1140 | |
81ecdfbb RW |
1141 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1142 | ac_ls_di=`ls -di .` && | |
1143 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1144 | as_fn_error "working directory cannot be determined" | |
1145 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1146 | as_fn_error "pwd does not report name of working directory" | |
1147 | ||
1148 | ||
c906108c SS |
1149 | # Find the source files, if location was not specified. |
1150 | if test -z "$srcdir"; then | |
1151 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1152 | # Try the directory containing this script, then the parent directory. |
1153 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1154 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1155 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1156 | X"$as_myself" : 'X\(//\)$' \| \ | |
1157 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1158 | $as_echo X"$as_myself" | | |
1159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1160 | s//\1/ | |
1161 | q | |
1162 | } | |
1163 | /^X\(\/\/\)[^/].*/{ | |
1164 | s//\1/ | |
1165 | q | |
1166 | } | |
1167 | /^X\(\/\/\)$/{ | |
1168 | s//\1/ | |
1169 | q | |
1170 | } | |
1171 | /^X\(\/\).*/{ | |
1172 | s//\1/ | |
1173 | q | |
1174 | } | |
1175 | s/.*/./; q'` | |
c906108c | 1176 | srcdir=$ac_confdir |
81ecdfbb | 1177 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1178 | srcdir=.. |
1179 | fi | |
1180 | else | |
1181 | ac_srcdir_defaulted=no | |
1182 | fi | |
81ecdfbb RW |
1183 | if test ! -r "$srcdir/$ac_unique_file"; then |
1184 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1185 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1186 | fi | |
1187 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1188 | ac_abs_confdir=`( | |
1189 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1190 | pwd)` | |
1191 | # When building in place, set srcdir=. | |
1192 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1193 | srcdir=. | |
1194 | fi | |
1195 | # Remove unnecessary trailing slashes from srcdir. | |
1196 | # Double slashes in file names in object file debugging info | |
1197 | # mess up M-x gdb in Emacs. | |
1198 | case $srcdir in | |
1199 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1200 | esac | |
1201 | for ac_var in $ac_precious_vars; do | |
1202 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1203 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1204 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1205 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1206 | done | |
c906108c | 1207 | |
bec39cab AC |
1208 | # |
1209 | # Report the --help message. | |
1210 | # | |
1211 | if test "$ac_init_help" = "long"; then | |
1212 | # Omit some internal or obsolete options to make the list less imposing. | |
1213 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1214 | cat <<_ACEOF | |
1215 | \`configure' configures this package to adapt to many kinds of systems. | |
1216 | ||
1217 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1218 | ||
1219 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1220 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1221 | ||
1222 | Defaults for the options are specified in brackets. | |
1223 | ||
1224 | Configuration: | |
1225 | -h, --help display this help and exit | |
1226 | --help=short display options specific to this package | |
1227 | --help=recursive display the short help of all the included packages | |
1228 | -V, --version display version information and exit | |
1229 | -q, --quiet, --silent do not print \`checking...' messages | |
1230 | --cache-file=FILE cache test results in FILE [disabled] | |
1231 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1232 | -n, --no-create do not create output files | |
1233 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1234 | ||
bec39cab AC |
1235 | Installation directories: |
1236 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1237 | [$ac_default_prefix] |
bec39cab | 1238 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1239 | [PREFIX] |
bec39cab AC |
1240 | |
1241 | By default, \`make install' will install all the files in | |
1242 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1243 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1244 | for instance \`--prefix=\$HOME'. | |
1245 | ||
1246 | For better control, use the options below. | |
1247 | ||
1248 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1249 | --bindir=DIR user executables [EPREFIX/bin] |
1250 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1251 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1252 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1253 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1254 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1255 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1256 | --includedir=DIR C header files [PREFIX/include] | |
1257 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1258 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1259 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1260 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1261 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1262 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1263 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1264 | --htmldir=DIR html documentation [DOCDIR] | |
1265 | --dvidir=DIR dvi documentation [DOCDIR] | |
1266 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1267 | --psdir=DIR ps documentation [DOCDIR] | |
bec39cab AC |
1268 | _ACEOF |
1269 | ||
1270 | cat <<\_ACEOF | |
1271 | ||
1272 | System types: | |
1273 | --build=BUILD configure for building on BUILD [guessed] | |
1274 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1275 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1276 | _ACEOF | |
1277 | fi | |
1278 | ||
1279 | if test -n "$ac_init_help"; then | |
1280 | ||
1281 | cat <<\_ACEOF | |
1282 | ||
1283 | Optional Features: | |
81ecdfbb | 1284 | --disable-option-checking ignore unrecognized --enable/--with options |
bec39cab AC |
1285 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1286 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
bec39cab AC |
1287 | --enable-shared build shared libraries deault=yes |
1288 | ||
bec39cab AC |
1289 | Some influential environment variables: |
1290 | CC C compiler command | |
1291 | CFLAGS C compiler flags | |
1292 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1293 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1294 | LIBS libraries to pass to the linker, e.g. -l<library> |
1295 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1296 | you have headers in a nonstandard directory <include dir> | |
bec39cab AC |
1297 | CPP C preprocessor |
1298 | ||
1299 | Use these variables to override the choices made by `configure' or to help | |
1300 | it to find libraries and programs with nonstandard names/locations. | |
1301 | ||
81ecdfbb | 1302 | Report bugs to the package provider. |
bec39cab | 1303 | _ACEOF |
81ecdfbb | 1304 | ac_status=$? |
bec39cab AC |
1305 | fi |
1306 | ||
1307 | if test "$ac_init_help" = "recursive"; then | |
1308 | # If there are subdirs, report their specific --help. | |
bec39cab | 1309 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1310 | test -d "$ac_dir" || |
1311 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1312 | continue | |
bec39cab AC |
1313 | ac_builddir=. |
1314 | ||
81ecdfbb RW |
1315 | case "$ac_dir" in |
1316 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1317 | *) | |
1318 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1319 | # A ".." for each directory in $ac_dir_suffix. | |
1320 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1321 | case $ac_top_builddir_sub in | |
1322 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1323 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1324 | esac ;; | |
1325 | esac | |
1326 | ac_abs_top_builddir=$ac_pwd | |
1327 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1328 | # for backward compatibility: | |
1329 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
1330 | |
1331 | case $srcdir in | |
81ecdfbb | 1332 | .) # We are building in place. |
bec39cab | 1333 | ac_srcdir=. |
81ecdfbb RW |
1334 | ac_top_srcdir=$ac_top_builddir_sub |
1335 | ac_abs_top_srcdir=$ac_pwd ;; | |
1336 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 1337 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1338 | ac_top_srcdir=$srcdir |
1339 | ac_abs_top_srcdir=$srcdir ;; | |
1340 | *) # Relative name. | |
1341 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1342 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1343 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 1344 | esac |
81ecdfbb | 1345 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 1346 | |
81ecdfbb RW |
1347 | cd "$ac_dir" || { ac_status=$?; continue; } |
1348 | # Check for guested configure. | |
1349 | if test -f "$ac_srcdir/configure.gnu"; then | |
1350 | echo && | |
1351 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1352 | elif test -f "$ac_srcdir/configure"; then | |
1353 | echo && | |
1354 | $SHELL "$ac_srcdir/configure" --help=recursive | |
bec39cab | 1355 | else |
81ecdfbb RW |
1356 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1357 | fi || ac_status=$? | |
1358 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bec39cab AC |
1359 | done |
1360 | fi | |
1361 | ||
81ecdfbb | 1362 | test -n "$ac_init_help" && exit $ac_status |
bec39cab AC |
1363 | if $ac_init_version; then |
1364 | cat <<\_ACEOF | |
81ecdfbb RW |
1365 | configure |
1366 | generated by GNU Autoconf 2.64 | |
bec39cab | 1367 | |
81ecdfbb | 1368 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
1369 | This configure script is free software; the Free Software Foundation |
1370 | gives unlimited permission to copy, distribute and modify it. | |
1371 | _ACEOF | |
81ecdfbb | 1372 | exit |
bec39cab | 1373 | fi |
bec39cab | 1374 | |
81ecdfbb RW |
1375 | ## ------------------------ ## |
1376 | ## Autoconf initialization. ## | |
1377 | ## ------------------------ ## | |
bec39cab | 1378 | |
81ecdfbb RW |
1379 | # ac_fn_c_try_compile LINENO |
1380 | # -------------------------- | |
1381 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1382 | ac_fn_c_try_compile () | |
bec39cab | 1383 | { |
81ecdfbb RW |
1384 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1385 | rm -f conftest.$ac_objext | |
1386 | if { { ac_try="$ac_compile" | |
1387 | case "(($ac_try" in | |
1388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1389 | *) ac_try_echo=$ac_try;; | |
1390 | esac | |
1391 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1392 | $as_echo "$ac_try_echo"; } >&5 | |
1393 | (eval "$ac_compile") 2>conftest.err | |
1394 | ac_status=$? | |
1395 | if test -s conftest.err; then | |
1396 | grep -v '^ *+' conftest.err >conftest.er1 | |
1397 | cat conftest.er1 >&5 | |
1398 | mv -f conftest.er1 conftest.err | |
1399 | fi | |
1400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1401 | test $ac_status = 0; } && { | |
1402 | test -z "$ac_c_werror_flag" || | |
1403 | test ! -s conftest.err | |
1404 | } && test -s conftest.$ac_objext; then : | |
1405 | ac_retval=0 | |
1406 | else | |
1407 | $as_echo "$as_me: failed program was:" >&5 | |
1408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1409 | |
81ecdfbb RW |
1410 | ac_retval=1 |
1411 | fi | |
1412 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1413 | return $ac_retval | |
bec39cab | 1414 | |
81ecdfbb | 1415 | } # ac_fn_c_try_compile |
bec39cab | 1416 | |
81ecdfbb RW |
1417 | # ac_fn_c_try_cpp LINENO |
1418 | # ---------------------- | |
1419 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1420 | ac_fn_c_try_cpp () | |
1421 | { | |
1422 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1423 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1424 | case "(($ac_try" in | |
1425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1426 | *) ac_try_echo=$ac_try;; | |
1427 | esac | |
1428 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1429 | $as_echo "$ac_try_echo"; } >&5 | |
1430 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1431 | ac_status=$? | |
1432 | if test -s conftest.err; then | |
1433 | grep -v '^ *+' conftest.err >conftest.er1 | |
1434 | cat conftest.er1 >&5 | |
1435 | mv -f conftest.er1 conftest.err | |
1436 | fi | |
1437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1438 | test $ac_status = 0; } >/dev/null && { | |
1439 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1440 | test ! -s conftest.err | |
1441 | }; then : | |
1442 | ac_retval=0 | |
1443 | else | |
1444 | $as_echo "$as_me: failed program was:" >&5 | |
1445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1446 | |
81ecdfbb RW |
1447 | ac_retval=1 |
1448 | fi | |
1449 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1450 | return $ac_retval | |
bec39cab | 1451 | |
81ecdfbb | 1452 | } # ac_fn_c_try_cpp |
bec39cab | 1453 | |
81ecdfbb RW |
1454 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1455 | # ------------------------------------------------------- | |
1456 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1457 | # the include files in INCLUDES and setting the cache variable VAR | |
1458 | # accordingly. | |
1459 | ac_fn_c_check_header_mongrel () | |
1460 | { | |
1461 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1462 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1464 | $as_echo_n "checking for $2... " >&6; } | |
1465 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1466 | $as_echo_n "(cached) " >&6 | |
1467 | fi | |
1468 | eval ac_res=\$$3 | |
1469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1470 | $as_echo "$ac_res" >&6; } | |
1471 | else | |
1472 | # Is the header compilable? | |
1473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1474 | $as_echo_n "checking $2 usability... " >&6; } | |
1475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1476 | /* end confdefs.h. */ | |
1477 | $4 | |
1478 | #include <$2> | |
1479 | _ACEOF | |
1480 | if ac_fn_c_try_compile "$LINENO"; then : | |
1481 | ac_header_compiler=yes | |
1482 | else | |
1483 | ac_header_compiler=no | |
1484 | fi | |
1485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1487 | $as_echo "$ac_header_compiler" >&6; } | |
1488 | ||
1489 | # Is the header present? | |
1490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1491 | $as_echo_n "checking $2 presence... " >&6; } | |
1492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1493 | /* end confdefs.h. */ | |
1494 | #include <$2> | |
1495 | _ACEOF | |
1496 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1497 | ac_header_preproc=yes | |
1498 | else | |
1499 | ac_header_preproc=no | |
1500 | fi | |
1501 | rm -f conftest.err conftest.$ac_ext | |
1502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1503 | $as_echo "$ac_header_preproc" >&6; } | |
1504 | ||
1505 | # So? What about this header? | |
1506 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1507 | yes:no: ) | |
1508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1509 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1511 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1512 | ;; | |
1513 | no:yes:* ) | |
1514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1515 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1517 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1519 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1521 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1523 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1524 | ;; | |
1525 | esac | |
1526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1527 | $as_echo_n "checking for $2... " >&6; } | |
1528 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1529 | $as_echo_n "(cached) " >&6 | |
1530 | else | |
1531 | eval "$3=\$ac_header_compiler" | |
1532 | fi | |
1533 | eval ac_res=\$$3 | |
1534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1535 | $as_echo "$ac_res" >&6; } | |
1536 | fi | |
1537 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1538 | ||
1539 | } # ac_fn_c_check_header_mongrel | |
1540 | ||
1541 | # ac_fn_c_try_run LINENO | |
1542 | # ---------------------- | |
1543 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1544 | # that executables *can* be run. | |
1545 | ac_fn_c_try_run () | |
1546 | { | |
1547 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1548 | if { { ac_try="$ac_link" | |
1549 | case "(($ac_try" in | |
1550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1551 | *) ac_try_echo=$ac_try;; | |
1552 | esac | |
1553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1554 | $as_echo "$ac_try_echo"; } >&5 | |
1555 | (eval "$ac_link") 2>&5 | |
1556 | ac_status=$? | |
1557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1558 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1559 | { { case "(($ac_try" in | |
1560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1561 | *) ac_try_echo=$ac_try;; | |
1562 | esac | |
1563 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1564 | $as_echo "$ac_try_echo"; } >&5 | |
1565 | (eval "$ac_try") 2>&5 | |
1566 | ac_status=$? | |
1567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1568 | test $ac_status = 0; }; }; then : | |
1569 | ac_retval=0 | |
1570 | else | |
1571 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1572 | $as_echo "$as_me: failed program was:" >&5 | |
1573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1574 | ||
1575 | ac_retval=$ac_status | |
1576 | fi | |
1577 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1578 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1579 | return $ac_retval | |
1580 | ||
1581 | } # ac_fn_c_try_run | |
1582 | ||
1583 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1584 | # ------------------------------------------------------- | |
1585 | # Tests whether HEADER exists and can be compiled using the include files in | |
1586 | # INCLUDES, setting the cache variable VAR accordingly. | |
1587 | ac_fn_c_check_header_compile () | |
1588 | { | |
1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1591 | $as_echo_n "checking for $2... " >&6; } | |
1592 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1593 | $as_echo_n "(cached) " >&6 | |
1594 | else | |
1595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1596 | /* end confdefs.h. */ | |
1597 | $4 | |
1598 | #include <$2> | |
1599 | _ACEOF | |
1600 | if ac_fn_c_try_compile "$LINENO"; then : | |
1601 | eval "$3=yes" | |
1602 | else | |
1603 | eval "$3=no" | |
1604 | fi | |
1605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1606 | fi | |
1607 | eval ac_res=\$$3 | |
1608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1609 | $as_echo "$ac_res" >&6; } | |
1610 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1611 | ||
1612 | } # ac_fn_c_check_header_compile | |
1613 | cat >config.log <<_ACEOF | |
1614 | This file contains any messages produced by compilers while | |
1615 | running configure, to aid debugging if configure makes a mistake. | |
1616 | ||
1617 | It was created by $as_me, which was | |
1618 | generated by GNU Autoconf 2.64. Invocation command line was | |
1619 | ||
1620 | $ $0 $@ | |
1621 | ||
1622 | _ACEOF | |
1623 | exec 5>>config.log | |
1624 | { | |
1625 | cat <<_ASUNAME | |
1626 | ## --------- ## | |
1627 | ## Platform. ## | |
1628 | ## --------- ## | |
1629 | ||
1630 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1631 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1632 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1633 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1634 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1635 | ||
1636 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1637 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1638 | ||
1639 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1640 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1641 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1642 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1643 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1644 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1645 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1646 | ||
1647 | _ASUNAME | |
1648 | ||
1649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1650 | for as_dir in $PATH | |
1651 | do | |
1652 | IFS=$as_save_IFS | |
1653 | test -z "$as_dir" && as_dir=. | |
1654 | $as_echo "PATH: $as_dir" | |
1655 | done | |
1656 | IFS=$as_save_IFS | |
1657 | ||
1658 | } >&5 | |
1659 | ||
1660 | cat >&5 <<_ACEOF | |
bec39cab AC |
1661 | |
1662 | ||
1663 | ## ----------- ## | |
1664 | ## Core tests. ## | |
1665 | ## ----------- ## | |
1666 | ||
1667 | _ACEOF | |
1668 | ||
1669 | ||
1670 | # Keep a trace of the command line. | |
1671 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1672 | # Strip out --silent because we don't want to record it for future runs. | |
1673 | # Also quote any args containing shell meta-characters. | |
1674 | # Make two passes to allow for proper duplicate-argument suppression. | |
1675 | ac_configure_args= | |
1676 | ac_configure_args0= | |
1677 | ac_configure_args1= | |
bec39cab AC |
1678 | ac_must_keep_next=false |
1679 | for ac_pass in 1 2 | |
1680 | do | |
1681 | for ac_arg | |
1682 | do | |
1683 | case $ac_arg in | |
1684 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1685 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1686 | | -silent | --silent | --silen | --sile | --sil) | |
1687 | continue ;; | |
81ecdfbb RW |
1688 | *\'*) |
1689 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1690 | esac |
1691 | case $ac_pass in | |
81ecdfbb | 1692 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bec39cab | 1693 | 2) |
81ecdfbb | 1694 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bec39cab AC |
1695 | if test $ac_must_keep_next = true; then |
1696 | ac_must_keep_next=false # Got value, back to normal. | |
1697 | else | |
1698 | case $ac_arg in | |
1699 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1700 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1701 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1702 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1703 | case "$ac_configure_args0 " in | |
1704 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1705 | esac | |
1706 | ;; | |
1707 | -* ) ac_must_keep_next=true ;; | |
1708 | esac | |
1709 | fi | |
81ecdfbb | 1710 | as_fn_append ac_configure_args " '$ac_arg'" |
bec39cab AC |
1711 | ;; |
1712 | esac | |
1713 | done | |
1714 | done | |
81ecdfbb RW |
1715 | { ac_configure_args0=; unset ac_configure_args0;} |
1716 | { ac_configure_args1=; unset ac_configure_args1;} | |
bec39cab AC |
1717 | |
1718 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1719 | # config.log. We remove comments because anyway the quotes in there | |
1720 | # would cause problems or look ugly. | |
81ecdfbb RW |
1721 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1722 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bec39cab AC |
1723 | trap 'exit_status=$? |
1724 | # Save into config.log some information that might help in debugging. | |
1725 | { | |
1726 | echo | |
1727 | ||
1728 | cat <<\_ASBOX | |
1729 | ## ---------------- ## | |
1730 | ## Cache variables. ## | |
1731 | ## ---------------- ## | |
1732 | _ASBOX | |
1733 | echo | |
1734 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1735 | ( |
1736 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1737 | eval ac_val=\$$ac_var | |
1738 | case $ac_val in #( | |
1739 | *${as_nl}*) | |
1740 | case $ac_var in #( | |
1741 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1742 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1743 | esac | |
1744 | case $ac_var in #( | |
1745 | _ | IFS | as_nl) ;; #( | |
1746 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1747 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1748 | esac ;; | |
1749 | esac | |
1750 | done | |
bec39cab | 1751 | (set) 2>&1 | |
81ecdfbb RW |
1752 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1753 | *${as_nl}ac_space=\ *) | |
bec39cab | 1754 | sed -n \ |
81ecdfbb RW |
1755 | "s/'\''/'\''\\\\'\'''\''/g; |
1756 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1757 | ;; #( | |
bec39cab | 1758 | *) |
81ecdfbb | 1759 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 1760 | ;; |
81ecdfbb RW |
1761 | esac | |
1762 | sort | |
1763 | ) | |
bec39cab AC |
1764 | echo |
1765 | ||
1766 | cat <<\_ASBOX | |
1767 | ## ----------------- ## | |
1768 | ## Output variables. ## | |
1769 | ## ----------------- ## | |
1770 | _ASBOX | |
1771 | echo | |
1772 | for ac_var in $ac_subst_vars | |
1773 | do | |
81ecdfbb RW |
1774 | eval ac_val=\$$ac_var |
1775 | case $ac_val in | |
1776 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1777 | esac | |
1778 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
1779 | done | sort |
1780 | echo | |
1781 | ||
1782 | if test -n "$ac_subst_files"; then | |
1783 | cat <<\_ASBOX | |
81ecdfbb RW |
1784 | ## ------------------- ## |
1785 | ## File substitutions. ## | |
1786 | ## ------------------- ## | |
bec39cab AC |
1787 | _ASBOX |
1788 | echo | |
1789 | for ac_var in $ac_subst_files | |
1790 | do | |
81ecdfbb RW |
1791 | eval ac_val=\$$ac_var |
1792 | case $ac_val in | |
1793 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1794 | esac | |
1795 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
1796 | done | sort |
1797 | echo | |
1798 | fi | |
1799 | ||
1800 | if test -s confdefs.h; then | |
1801 | cat <<\_ASBOX | |
1802 | ## ----------- ## | |
1803 | ## confdefs.h. ## | |
1804 | ## ----------- ## | |
1805 | _ASBOX | |
1806 | echo | |
81ecdfbb | 1807 | cat confdefs.h |
bec39cab | 1808 | echo |
5710a1af | 1809 | fi |
bec39cab | 1810 | test "$ac_signal" != 0 && |
81ecdfbb RW |
1811 | $as_echo "$as_me: caught signal $ac_signal" |
1812 | $as_echo "$as_me: exit $exit_status" | |
bec39cab | 1813 | } >&5 |
81ecdfbb RW |
1814 | rm -f core *.core core.conftest.* && |
1815 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1816 | exit $exit_status |
81ecdfbb | 1817 | ' 0 |
bec39cab | 1818 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 1819 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bec39cab AC |
1820 | done |
1821 | ac_signal=0 | |
1822 | ||
1823 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
1824 | rm -f -r conftest* confdefs.h |
1825 | ||
1826 | $as_echo "/* confdefs.h */" > confdefs.h | |
bec39cab AC |
1827 | |
1828 | # Predefined preprocessor variables. | |
1829 | ||
1830 | cat >>confdefs.h <<_ACEOF | |
1831 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1832 | _ACEOF | |
1833 | ||
bec39cab AC |
1834 | cat >>confdefs.h <<_ACEOF |
1835 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1836 | _ACEOF | |
1837 | ||
bec39cab AC |
1838 | cat >>confdefs.h <<_ACEOF |
1839 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1840 | _ACEOF | |
1841 | ||
bec39cab AC |
1842 | cat >>confdefs.h <<_ACEOF |
1843 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1844 | _ACEOF | |
1845 | ||
bec39cab AC |
1846 | cat >>confdefs.h <<_ACEOF |
1847 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1848 | _ACEOF | |
1849 | ||
81ecdfbb RW |
1850 | cat >>confdefs.h <<_ACEOF |
1851 | #define PACKAGE_URL "$PACKAGE_URL" | |
1852 | _ACEOF | |
1853 | ||
bec39cab AC |
1854 | |
1855 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
1856 | # Prefer an explicitly selected file to automatically selected ones. |
1857 | ac_site_file1=NONE | |
1858 | ac_site_file2=NONE | |
1859 | if test -n "$CONFIG_SITE"; then | |
1860 | ac_site_file1=$CONFIG_SITE | |
1861 | elif test "x$prefix" != xNONE; then | |
1862 | ac_site_file1=$prefix/share/config.site | |
1863 | ac_site_file2=$prefix/etc/config.site | |
1864 | else | |
1865 | ac_site_file1=$ac_default_prefix/share/config.site | |
1866 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 1867 | fi |
81ecdfbb RW |
1868 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1869 | do | |
1870 | test "x$ac_site_file" = xNONE && continue | |
c906108c | 1871 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1873 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
bec39cab | 1874 | sed 's/^/| /' "$ac_site_file" >&5 |
c906108c SS |
1875 | . "$ac_site_file" |
1876 | fi | |
1877 | done | |
1878 | ||
1879 | if test -r "$cache_file"; then | |
bec39cab AC |
1880 | # Some versions of bash will fail to source /dev/null (special |
1881 | # files actually), so we avoid doing that. | |
1882 | if test -f "$cache_file"; then | |
81ecdfbb RW |
1883 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1884 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
bec39cab | 1885 | case $cache_file in |
81ecdfbb RW |
1886 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1887 | *) . "./$cache_file";; | |
bec39cab AC |
1888 | esac |
1889 | fi | |
c906108c | 1890 | else |
81ecdfbb RW |
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1892 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
bec39cab | 1893 | >$cache_file |
c906108c SS |
1894 | fi |
1895 | ||
bec39cab AC |
1896 | # Check that the precious variables saved in the cache have kept the same |
1897 | # value. | |
1898 | ac_cache_corrupted=false | |
81ecdfbb | 1899 | for ac_var in $ac_precious_vars; do |
bec39cab AC |
1900 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1901 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
1902 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1903 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bec39cab AC |
1904 | case $ac_old_set,$ac_new_set in |
1905 | set,) | |
81ecdfbb RW |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1907 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
bec39cab AC |
1908 | ac_cache_corrupted=: ;; |
1909 | ,set) | |
81ecdfbb RW |
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1911 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
bec39cab AC |
1912 | ac_cache_corrupted=: ;; |
1913 | ,);; | |
1914 | *) | |
1915 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
1916 | # differences in whitespace do not lead to failure. |
1917 | ac_old_val_w=`echo x $ac_old_val` | |
1918 | ac_new_val_w=`echo x $ac_new_val` | |
1919 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1921 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1922 | ac_cache_corrupted=: | |
1923 | else | |
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1925 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1926 | eval $ac_var=\$ac_old_val | |
1927 | fi | |
1928 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1929 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1931 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
1932 | fi;; |
1933 | esac | |
1934 | # Pass precious variables to config.status. | |
1935 | if test "$ac_new_set" = set; then | |
1936 | case $ac_new_val in | |
81ecdfbb | 1937 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bec39cab AC |
1938 | *) ac_arg=$ac_var=$ac_new_val ;; |
1939 | esac | |
1940 | case " $ac_configure_args " in | |
1941 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 1942 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bec39cab | 1943 | esac |
c906108c | 1944 | fi |
bec39cab AC |
1945 | done |
1946 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1948 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1950 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1951 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
c906108c | 1952 | fi |
81ecdfbb RW |
1953 | ## -------------------- ## |
1954 | ## Main body of script. ## | |
1955 | ## -------------------- ## | |
c906108c | 1956 | |
bec39cab AC |
1957 | ac_ext=c |
1958 | ac_cpp='$CPP $CPPFLAGS' | |
1959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1962 | ||
1963 | ||
1964 | ||
bec39cab | 1965 | |
c906108c SS |
1966 | |
1967 | ||
c906108c | 1968 | ac_aux_dir= |
81ecdfbb RW |
1969 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1970 | for ac_t in install-sh install.sh shtool; do | |
1971 | if test -f "$ac_dir/$ac_t"; then | |
1972 | ac_aux_dir=$ac_dir | |
1973 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
1974 | break 2 | |
1975 | fi | |
1976 | done | |
c906108c SS |
1977 | done |
1978 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 1979 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
bec39cab | 1980 | fi |
81ecdfbb RW |
1981 | |
1982 | # These three variables are undocumented and unsupported, | |
1983 | # and are intended to be withdrawn in a future Autoconf release. | |
1984 | # They can cause serious problems if a builder's source tree is in a directory | |
1985 | # whose full name contains unusual characters. | |
1986 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1987 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1988 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1989 | ||
c906108c SS |
1990 | |
1991 | # Make sure we can run config.sub. | |
81ecdfbb RW |
1992 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1993 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
1994 | ||
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
1996 | $as_echo_n "checking build system type... " >&6; } | |
1997 | if test "${ac_cv_build+set}" = set; then : | |
1998 | $as_echo_n "(cached) " >&6 | |
bec39cab | 1999 | else |
81ecdfbb RW |
2000 | ac_build_alias=$build_alias |
2001 | test "x$ac_build_alias" = x && | |
2002 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2003 | test "x$ac_build_alias" = x && | |
2004 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2005 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2006 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2007 | ||
2008 | fi | |
2009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2010 | $as_echo "$ac_cv_build" >&6; } | |
2011 | case $ac_cv_build in | |
2012 | *-*-*) ;; | |
2013 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2014 | esac | |
bec39cab | 2015 | build=$ac_cv_build |
81ecdfbb RW |
2016 | ac_save_IFS=$IFS; IFS='-' |
2017 | set x $ac_cv_build | |
2018 | shift | |
2019 | build_cpu=$1 | |
2020 | build_vendor=$2 | |
2021 | shift; shift | |
2022 | # Remember, the first character of IFS is used to create $*, | |
2023 | # except with old shells: | |
2024 | build_os=$* | |
2025 | IFS=$ac_save_IFS | |
2026 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2027 | ||
2028 | ||
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2030 | $as_echo_n "checking host system type... " >&6; } | |
2031 | if test "${ac_cv_host+set}" = set; then : | |
2032 | $as_echo_n "(cached) " >&6 | |
2033 | else | |
2034 | if test "x$host_alias" = x; then | |
2035 | ac_cv_host=$ac_cv_build | |
bec39cab | 2036 | else |
81ecdfbb RW |
2037 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2038 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2039 | fi | |
c906108c | 2040 | |
bec39cab | 2041 | fi |
81ecdfbb RW |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2043 | $as_echo "$ac_cv_host" >&6; } | |
2044 | case $ac_cv_host in | |
2045 | *-*-*) ;; | |
2046 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2047 | esac | |
bec39cab | 2048 | host=$ac_cv_host |
81ecdfbb RW |
2049 | ac_save_IFS=$IFS; IFS='-' |
2050 | set x $ac_cv_host | |
2051 | shift | |
2052 | host_cpu=$1 | |
2053 | host_vendor=$2 | |
2054 | shift; shift | |
2055 | # Remember, the first character of IFS is used to create $*, | |
2056 | # except with old shells: | |
2057 | host_os=$* | |
2058 | IFS=$ac_save_IFS | |
2059 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2060 | ||
2061 | ||
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2063 | $as_echo_n "checking target system type... " >&6; } | |
2064 | if test "${ac_cv_target+set}" = set; then : | |
2065 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2066 | else |
81ecdfbb RW |
2067 | if test "x$target_alias" = x; then |
2068 | ac_cv_target=$ac_cv_host | |
2069 | else | |
2070 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2071 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2072 | fi | |
c906108c | 2073 | |
bec39cab | 2074 | fi |
81ecdfbb RW |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2076 | $as_echo "$ac_cv_target" >&6; } | |
2077 | case $ac_cv_target in | |
2078 | *-*-*) ;; | |
2079 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2080 | esac | |
bec39cab | 2081 | target=$ac_cv_target |
81ecdfbb RW |
2082 | ac_save_IFS=$IFS; IFS='-' |
2083 | set x $ac_cv_target | |
2084 | shift | |
2085 | target_cpu=$1 | |
2086 | target_vendor=$2 | |
2087 | shift; shift | |
2088 | # Remember, the first character of IFS is used to create $*, | |
2089 | # except with old shells: | |
2090 | target_os=$* | |
2091 | IFS=$ac_save_IFS | |
2092 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c906108c | 2093 | |
c906108c | 2094 | |
bec39cab AC |
2095 | # The aliases save the names the user supplied, while $host etc. |
2096 | # will get canonicalized. | |
2097 | test -n "$target_alias" && | |
2098 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2099 | NONENONEs,x,x, && | |
2100 | program_prefix=${target_alias}- | |
c906108c | 2101 | |
be2a5f71 DJ |
2102 | case ${build_alias} in |
2103 | "") build_noncanonical=${build} ;; | |
2104 | *) build_noncanonical=${build_alias} ;; | |
2105 | esac | |
2106 | ||
2107 | case ${host_alias} in | |
2108 | "") host_noncanonical=${build_noncanonical} ;; | |
2109 | *) host_noncanonical=${host_alias} ;; | |
2110 | esac | |
2111 | ||
2112 | case ${target_alias} in | |
2113 | "") target_noncanonical=${host_noncanonical} ;; | |
2114 | *) target_noncanonical=${target_alias} ;; | |
2115 | esac | |
2116 | ||
2117 | ||
2118 | ||
2119 | ||
6bc80edc TT |
2120 | # Check for the 'make' the user wants to use. |
2121 | for ac_prog in make | |
2122 | do | |
2123 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2124 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2126 | $as_echo_n "checking for $ac_word... " >&6; } | |
2127 | if test "${ac_cv_prog_MAKE+set}" = set; then : | |
2128 | $as_echo_n "(cached) " >&6 | |
6bc80edc TT |
2129 | else |
2130 | if test -n "$MAKE"; then | |
2131 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
2132 | else | |
2133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2134 | for as_dir in $PATH | |
2135 | do | |
2136 | IFS=$as_save_IFS | |
2137 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2138 | for ac_exec_ext in '' $ac_executable_extensions; do |
2139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6bc80edc | 2140 | ac_cv_prog_MAKE="$ac_prog" |
81ecdfbb | 2141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6bc80edc TT |
2142 | break 2 |
2143 | fi | |
2144 | done | |
81ecdfbb RW |
2145 | done |
2146 | IFS=$as_save_IFS | |
6bc80edc TT |
2147 | |
2148 | fi | |
2149 | fi | |
2150 | MAKE=$ac_cv_prog_MAKE | |
2151 | if test -n "$MAKE"; then | |
81ecdfbb RW |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 |
2153 | $as_echo "$MAKE" >&6; } | |
6bc80edc | 2154 | else |
81ecdfbb RW |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2156 | $as_echo "no" >&6; } | |
6bc80edc TT |
2157 | fi |
2158 | ||
81ecdfbb | 2159 | |
6bc80edc TT |
2160 | test -n "$MAKE" && break |
2161 | done | |
2162 | ||
2163 | MAKE_IS_GNU= | |
2164 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
2165 | *GNU*) | |
2166 | MAKE_IS_GNU=yes | |
2167 | ;; | |
2168 | esac | |
2169 | ||
2170 | ||
2171 | if test "$MAKE_IS_GNU" = yes; then | |
2172 | GMAKE_TRUE= | |
2173 | GMAKE_FALSE='#' | |
2174 | else | |
2175 | GMAKE_TRUE='#' | |
2176 | GMAKE_FALSE= | |
2177 | fi | |
2178 | ||
81ecdfbb RW |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2180 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2181 | set x ${MAKE-make} | |
2182 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2183 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2184 | $as_echo_n "(cached) " >&6 | |
6bc80edc TT |
2185 | else |
2186 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 2187 | SHELL = /bin/sh |
6bc80edc | 2188 | all: |
81ecdfbb | 2189 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
6bc80edc TT |
2190 | _ACEOF |
2191 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
81ecdfbb RW |
2192 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2193 | *@@@%%%=?*=@@@%%%*) | |
2194 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2195 | *) | |
2196 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2197 | esac | |
6bc80edc TT |
2198 | rm -f conftest.make |
2199 | fi | |
81ecdfbb RW |
2200 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2202 | $as_echo "yes" >&6; } | |
6bc80edc TT |
2203 | SET_MAKE= |
2204 | else | |
81ecdfbb RW |
2205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2206 | $as_echo "no" >&6; } | |
6bc80edc TT |
2207 | SET_MAKE="MAKE=${MAKE-make}" |
2208 | fi | |
2209 | ||
2210 | ||
b39c905e | 2211 | # Enable shared libraries. |
81ecdfbb RW |
2212 | # Check whether --enable-shared was given. |
2213 | if test "${enable_shared+set}" = set; then : | |
2214 | enableval=$enable_shared; | |
b39c905e MK |
2215 | else |
2216 | enable_shared=yes | |
81ecdfbb RW |
2217 | fi |
2218 | ||
b39c905e MK |
2219 | |
2220 | # If we have shared libraries, try to set RPATH_ENVVAR reasonably, | |
2221 | # such that we can find the shared libraries in the build tree. | |
2222 | if test $enable_shared = no; then | |
2223 | # The variable `RPATH_ENVVAR' itself is not likely to be used on any | |
2224 | # platform. | |
2225 | RPATH_ENVVAR=RPATH_ENVVAR | |
2226 | else | |
2227 | # The variable `LD_LIBRARY_PATH' is used on most platforms. | |
2228 | RPATH_ENVVAR=LD_LIBRARY_PATH | |
2229 | # The following exceptions are taken from Libtool 1.4.3. | |
2230 | case $host_os in | |
2231 | aix*) | |
2232 | if test $host_cpu != ia64; then | |
2233 | RPATH_ENVVAR=LIBPATH | |
2234 | fi ;; | |
2235 | darwin* | rhapsody*) | |
2236 | RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; | |
2237 | hpux*) | |
2238 | RPATH_ENVVAR=SHLIB_PATH ;; | |
2239 | esac | |
3fc11d3e | 2240 | fi |
b39c905e | 2241 | |
c906108c | 2242 | |
bec39cab AC |
2243 | ac_ext=c |
2244 | ac_cpp='$CPP $CPPFLAGS' | |
2245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2248 | if test -n "$ac_tool_prefix"; then | |
2249 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2250 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2252 | $as_echo_n "checking for $ac_word... " >&6; } | |
2253 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2254 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2255 | else |
2256 | if test -n "$CC"; then | |
2257 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2258 | else | |
2259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2260 | for as_dir in $PATH | |
2261 | do | |
2262 | IFS=$as_save_IFS | |
2263 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2264 | for ac_exec_ext in '' $ac_executable_extensions; do |
2265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2266 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2268 | break 2 |
2269 | fi | |
2270 | done | |
81ecdfbb RW |
2271 | done |
2272 | IFS=$as_save_IFS | |
bec39cab AC |
2273 | |
2274 | fi | |
2275 | fi | |
2276 | CC=$ac_cv_prog_CC | |
2277 | if test -n "$CC"; then | |
81ecdfbb RW |
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2279 | $as_echo "$CC" >&6; } | |
bec39cab | 2280 | else |
81ecdfbb RW |
2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2282 | $as_echo "no" >&6; } | |
bec39cab AC |
2283 | fi |
2284 | ||
81ecdfbb | 2285 | |
bec39cab AC |
2286 | fi |
2287 | if test -z "$ac_cv_prog_CC"; then | |
2288 | ac_ct_CC=$CC | |
2289 | # Extract the first word of "gcc", so it can be a program name with args. | |
2290 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2292 | $as_echo_n "checking for $ac_word... " >&6; } | |
2293 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2294 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2295 | else |
2296 | if test -n "$ac_ct_CC"; then | |
2297 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2298 | else | |
2299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2300 | for as_dir in $PATH | |
2301 | do | |
2302 | IFS=$as_save_IFS | |
2303 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2304 | for ac_exec_ext in '' $ac_executable_extensions; do |
2305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2306 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2308 | break 2 |
2309 | fi | |
2310 | done | |
81ecdfbb RW |
2311 | done |
2312 | IFS=$as_save_IFS | |
bec39cab AC |
2313 | |
2314 | fi | |
2315 | fi | |
2316 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2317 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2319 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2320 | else |
81ecdfbb RW |
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2322 | $as_echo "no" >&6; } | |
bec39cab AC |
2323 | fi |
2324 | ||
81ecdfbb RW |
2325 | if test "x$ac_ct_CC" = x; then |
2326 | CC="" | |
2327 | else | |
2328 | case $cross_compiling:$ac_tool_warned in | |
2329 | yes:) | |
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2331 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2332 | ac_tool_warned=yes ;; | |
2333 | esac | |
2334 | CC=$ac_ct_CC | |
2335 | fi | |
bec39cab AC |
2336 | else |
2337 | CC="$ac_cv_prog_CC" | |
2338 | fi | |
2339 | ||
2340 | if test -z "$CC"; then | |
81ecdfbb RW |
2341 | if test -n "$ac_tool_prefix"; then |
2342 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 2343 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2345 | $as_echo_n "checking for $ac_word... " >&6; } | |
2346 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2347 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2348 | else |
2349 | if test -n "$CC"; then | |
2350 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2351 | else | |
2352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2353 | for as_dir in $PATH | |
2354 | do | |
2355 | IFS=$as_save_IFS | |
2356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2357 | for ac_exec_ext in '' $ac_executable_extensions; do |
2358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2359 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2361 | break 2 |
2362 | fi | |
2363 | done | |
81ecdfbb RW |
2364 | done |
2365 | IFS=$as_save_IFS | |
bec39cab AC |
2366 | |
2367 | fi | |
2368 | fi | |
2369 | CC=$ac_cv_prog_CC | |
2370 | if test -n "$CC"; then | |
81ecdfbb RW |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2372 | $as_echo "$CC" >&6; } | |
bec39cab | 2373 | else |
81ecdfbb RW |
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2375 | $as_echo "no" >&6; } | |
bec39cab AC |
2376 | fi |
2377 | ||
bec39cab | 2378 | |
81ecdfbb | 2379 | fi |
bec39cab AC |
2380 | fi |
2381 | if test -z "$CC"; then | |
2382 | # Extract the first word of "cc", so it can be a program name with args. | |
2383 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2385 | $as_echo_n "checking for $ac_word... " >&6; } | |
2386 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2387 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2388 | else |
2389 | if test -n "$CC"; then | |
2390 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2391 | else | |
2392 | ac_prog_rejected=no | |
2393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2394 | for as_dir in $PATH | |
2395 | do | |
2396 | IFS=$as_save_IFS | |
2397 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2398 | for ac_exec_ext in '' $ac_executable_extensions; do |
2399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab AC |
2400 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2401 | ac_prog_rejected=yes | |
2402 | continue | |
2403 | fi | |
2404 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2406 | break 2 |
2407 | fi | |
2408 | done | |
81ecdfbb RW |
2409 | done |
2410 | IFS=$as_save_IFS | |
bec39cab AC |
2411 | |
2412 | if test $ac_prog_rejected = yes; then | |
2413 | # We found a bogon in the path, so make sure we never use it. | |
2414 | set dummy $ac_cv_prog_CC | |
2415 | shift | |
2416 | if test $# != 0; then | |
2417 | # We chose a different compiler from the bogus one. | |
2418 | # However, it has the same basename, so the bogon will be chosen | |
2419 | # first if we set CC to just the basename; use the full file name. | |
2420 | shift | |
2421 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2422 | fi | |
2423 | fi | |
2424 | fi | |
2425 | fi | |
2426 | CC=$ac_cv_prog_CC | |
2427 | if test -n "$CC"; then | |
81ecdfbb RW |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2429 | $as_echo "$CC" >&6; } | |
bec39cab | 2430 | else |
81ecdfbb RW |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2432 | $as_echo "no" >&6; } | |
bec39cab AC |
2433 | fi |
2434 | ||
81ecdfbb | 2435 | |
bec39cab AC |
2436 | fi |
2437 | if test -z "$CC"; then | |
2438 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2439 | for ac_prog in cl.exe |
bec39cab AC |
2440 | do |
2441 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2442 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2444 | $as_echo_n "checking for $ac_word... " >&6; } | |
2445 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2446 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2447 | else |
2448 | if test -n "$CC"; then | |
2449 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2450 | else | |
2451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2452 | for as_dir in $PATH | |
2453 | do | |
2454 | IFS=$as_save_IFS | |
2455 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2456 | for ac_exec_ext in '' $ac_executable_extensions; do |
2457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2458 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2460 | break 2 |
2461 | fi | |
2462 | done | |
81ecdfbb RW |
2463 | done |
2464 | IFS=$as_save_IFS | |
bec39cab AC |
2465 | |
2466 | fi | |
2467 | fi | |
2468 | CC=$ac_cv_prog_CC | |
2469 | if test -n "$CC"; then | |
81ecdfbb RW |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2471 | $as_echo "$CC" >&6; } | |
bec39cab | 2472 | else |
81ecdfbb RW |
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2474 | $as_echo "no" >&6; } | |
bec39cab AC |
2475 | fi |
2476 | ||
81ecdfbb | 2477 | |
bec39cab AC |
2478 | test -n "$CC" && break |
2479 | done | |
2480 | fi | |
2481 | if test -z "$CC"; then | |
2482 | ac_ct_CC=$CC | |
81ecdfbb | 2483 | for ac_prog in cl.exe |
bec39cab AC |
2484 | do |
2485 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2486 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2488 | $as_echo_n "checking for $ac_word... " >&6; } | |
2489 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2490 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2491 | else |
2492 | if test -n "$ac_ct_CC"; then | |
2493 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2494 | else | |
2495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2496 | for as_dir in $PATH | |
2497 | do | |
2498 | IFS=$as_save_IFS | |
2499 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2500 | for ac_exec_ext in '' $ac_executable_extensions; do |
2501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2502 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2503 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2504 | break 2 |
2505 | fi | |
2506 | done | |
81ecdfbb RW |
2507 | done |
2508 | IFS=$as_save_IFS | |
bec39cab AC |
2509 | |
2510 | fi | |
2511 | fi | |
2512 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2513 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2515 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2516 | else |
81ecdfbb RW |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2518 | $as_echo "no" >&6; } | |
bec39cab AC |
2519 | fi |
2520 | ||
81ecdfbb | 2521 | |
bec39cab AC |
2522 | test -n "$ac_ct_CC" && break |
2523 | done | |
2524 | ||
81ecdfbb RW |
2525 | if test "x$ac_ct_CC" = x; then |
2526 | CC="" | |
2527 | else | |
2528 | case $cross_compiling:$ac_tool_warned in | |
2529 | yes:) | |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2531 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2532 | ac_tool_warned=yes ;; | |
2533 | esac | |
2534 | CC=$ac_ct_CC | |
2535 | fi | |
bec39cab AC |
2536 | fi |
2537 | ||
2538 | fi | |
2539 | ||
2540 | ||
81ecdfbb RW |
2541 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2543 | as_fn_error "no acceptable C compiler found in \$PATH | |
2544 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
2545 | |
2546 | # Provide some information about the compiler. | |
81ecdfbb RW |
2547 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2548 | set X $ac_compile | |
2549 | ac_compiler=$2 | |
2550 | for ac_option in --version -v -V -qversion; do | |
2551 | { { ac_try="$ac_compiler $ac_option >&5" | |
2552 | case "(($ac_try" in | |
2553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2554 | *) ac_try_echo=$ac_try;; | |
2555 | esac | |
2556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2557 | $as_echo "$ac_try_echo"; } >&5 | |
2558 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
bec39cab | 2559 | ac_status=$? |
81ecdfbb RW |
2560 | if test -s conftest.err; then |
2561 | sed '10a\ | |
2562 | ... rest of stderr output deleted ... | |
2563 | 10q' conftest.err >conftest.er1 | |
2564 | cat conftest.er1 >&5 | |
2565 | rm -f conftest.er1 conftest.err | |
2566 | fi | |
2567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2568 | test $ac_status = 0; } | |
2569 | done | |
bec39cab | 2570 | |
81ecdfbb | 2571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2572 | /* end confdefs.h. */ |
2573 | ||
2574 | int | |
2575 | main () | |
2576 | { | |
2577 | ||
2578 | ; | |
2579 | return 0; | |
2580 | } | |
2581 | _ACEOF | |
2582 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2583 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
bec39cab AC |
2584 | # Try to create an executable without -o first, disregard a.out. |
2585 | # It will help us diagnose broken compilers, and finding out an intuition | |
2586 | # of exeext. | |
81ecdfbb RW |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2588 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2589 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2590 | ||
2591 | # The possible output files: | |
2592 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2593 | ||
2594 | ac_rmfiles= | |
2595 | for ac_file in $ac_files | |
2596 | do | |
2597 | case $ac_file in | |
2598 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2599 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2600 | esac | |
2601 | done | |
2602 | rm -f $ac_rmfiles | |
2603 | ||
2604 | if { { ac_try="$ac_link_default" | |
2605 | case "(($ac_try" in | |
2606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2607 | *) ac_try_echo=$ac_try;; | |
2608 | esac | |
2609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2610 | $as_echo "$ac_try_echo"; } >&5 | |
2611 | (eval "$ac_link_default") 2>&5 | |
bec39cab | 2612 | ac_status=$? |
81ecdfbb RW |
2613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2614 | test $ac_status = 0; }; then : | |
2615 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2616 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2617 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2618 | # so that the user can short-circuit this test for compilers unknown to | |
2619 | # Autoconf. | |
2620 | for ac_file in $ac_files '' | |
bec39cab AC |
2621 | do |
2622 | test -f "$ac_file" || continue | |
2623 | case $ac_file in | |
81ecdfbb | 2624 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bec39cab AC |
2625 | ;; |
2626 | [ab].out ) | |
2627 | # We found the default executable, but exeext='' is most | |
2628 | # certainly right. | |
2629 | break;; | |
2630 | *.* ) | |
81ecdfbb RW |
2631 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2632 | then :; else | |
2633 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2634 | fi | |
2635 | # We set ac_cv_exeext here because the later test for it is not | |
2636 | # safe: cross compilers may not add the suffix if given an `-o' | |
2637 | # argument, so we may need to know it at that point already. | |
2638 | # Even if this section looks crufty: it has the advantage of | |
2639 | # actually working. | |
bec39cab AC |
2640 | break;; |
2641 | * ) | |
2642 | break;; | |
2643 | esac | |
2644 | done | |
81ecdfbb RW |
2645 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2646 | ||
bec39cab | 2647 | else |
81ecdfbb RW |
2648 | ac_file='' |
2649 | fi | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2651 | $as_echo "$ac_file" >&6; } | |
2652 | if test -z "$ac_file"; then : | |
2653 | $as_echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
2654 | sed 's/^/| /' conftest.$ac_ext >&5 |
2655 | ||
81ecdfbb RW |
2656 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2657 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2658 | { as_fn_set_status 77 | |
2659 | as_fn_error "C compiler cannot create executables | |
2660 | See \`config.log' for more details." "$LINENO" 5; }; } | |
bec39cab | 2661 | fi |
bec39cab | 2662 | ac_exeext=$ac_cv_exeext |
bec39cab | 2663 | |
81ecdfbb | 2664 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 2665 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2667 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
bec39cab AC |
2668 | # If not cross compiling, check that we can run a simple program. |
2669 | if test "$cross_compiling" != yes; then | |
2670 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2671 | { { case "(($ac_try" in |
2672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2673 | *) ac_try_echo=$ac_try;; | |
2674 | esac | |
2675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2676 | $as_echo "$ac_try_echo"; } >&5 | |
2677 | (eval "$ac_try") 2>&5 | |
bec39cab | 2678 | ac_status=$? |
81ecdfbb RW |
2679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2680 | test $ac_status = 0; }; }; then | |
bec39cab AC |
2681 | cross_compiling=no |
2682 | else | |
2683 | if test "$cross_compiling" = maybe; then | |
2684 | cross_compiling=yes | |
2685 | else | |
81ecdfbb RW |
2686 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2687 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2688 | as_fn_error "cannot run C compiled programs. | |
bec39cab | 2689 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2690 | See \`config.log' for more details." "$LINENO" 5; } |
bec39cab AC |
2691 | fi |
2692 | fi | |
2693 | fi | |
81ecdfbb RW |
2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2695 | $as_echo "yes" >&6; } | |
bec39cab | 2696 | |
81ecdfbb | 2697 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
bec39cab | 2698 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2699 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 2700 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2702 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2704 | $as_echo "$cross_compiling" >&6; } | |
2705 | ||
2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2707 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2708 | if { { ac_try="$ac_link" | |
2709 | case "(($ac_try" in | |
2710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2711 | *) ac_try_echo=$ac_try;; | |
2712 | esac | |
2713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2714 | $as_echo "$ac_try_echo"; } >&5 | |
2715 | (eval "$ac_link") 2>&5 | |
bec39cab | 2716 | ac_status=$? |
81ecdfbb RW |
2717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2718 | test $ac_status = 0; }; then : | |
bec39cab AC |
2719 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2720 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2721 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2722 | # `rm'. | |
2723 | for ac_file in conftest.exe conftest conftest.*; do | |
2724 | test -f "$ac_file" || continue | |
2725 | case $ac_file in | |
81ecdfbb | 2726 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bec39cab | 2727 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bec39cab AC |
2728 | break;; |
2729 | * ) break;; | |
2730 | esac | |
2731 | done | |
2732 | else | |
81ecdfbb RW |
2733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2735 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2736 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab | 2737 | fi |
bec39cab | 2738 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2740 | $as_echo "$ac_cv_exeext" >&6; } | |
bec39cab AC |
2741 | |
2742 | rm -f conftest.$ac_ext | |
2743 | EXEEXT=$ac_cv_exeext | |
2744 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2746 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2747 | if test "${ac_cv_objext+set}" = set; then : | |
2748 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2749 | else |
81ecdfbb | 2750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2751 | /* end confdefs.h. */ |
2752 | ||
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | ||
2757 | ; | |
2758 | return 0; | |
2759 | } | |
2760 | _ACEOF | |
2761 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2762 | if { { ac_try="$ac_compile" |
2763 | case "(($ac_try" in | |
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2765 | *) ac_try_echo=$ac_try;; | |
2766 | esac | |
2767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2768 | $as_echo "$ac_try_echo"; } >&5 | |
2769 | (eval "$ac_compile") 2>&5 | |
bec39cab | 2770 | ac_status=$? |
81ecdfbb RW |
2771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2772 | test $ac_status = 0; }; then : | |
2773 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2774 | test -f "$ac_file" || continue; | |
bec39cab | 2775 | case $ac_file in |
81ecdfbb | 2776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bec39cab AC |
2777 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2778 | break;; | |
2779 | esac | |
2780 | done | |
2781 | else | |
81ecdfbb | 2782 | $as_echo "$as_me: failed program was:" >&5 |
bec39cab AC |
2783 | sed 's/^/| /' conftest.$ac_ext >&5 |
2784 | ||
81ecdfbb RW |
2785 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2786 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2787 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2788 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab | 2789 | fi |
bec39cab AC |
2790 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2791 | fi | |
81ecdfbb RW |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2793 | $as_echo "$ac_cv_objext" >&6; } | |
bec39cab AC |
2794 | OBJEXT=$ac_cv_objext |
2795 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2797 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2798 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2799 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2800 | else |
81ecdfbb | 2801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2802 | /* end confdefs.h. */ |
2803 | ||
2804 | int | |
2805 | main () | |
2806 | { | |
2807 | #ifndef __GNUC__ | |
2808 | choke me | |
2809 | #endif | |
2810 | ||
2811 | ; | |
2812 | return 0; | |
2813 | } | |
2814 | _ACEOF | |
81ecdfbb | 2815 | if ac_fn_c_try_compile "$LINENO"; then : |
bec39cab AC |
2816 | ac_compiler_gnu=yes |
2817 | else | |
81ecdfbb | 2818 | ac_compiler_gnu=no |
bec39cab | 2819 | fi |
81ecdfbb | 2820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab AC |
2821 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2822 | ||
2823 | fi | |
81ecdfbb RW |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2825 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2826 | if test $ac_compiler_gnu = yes; then | |
2827 | GCC=yes | |
2828 | else | |
2829 | GCC= | |
2830 | fi | |
bec39cab AC |
2831 | ac_test_CFLAGS=${CFLAGS+set} |
2832 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2834 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2835 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2836 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2837 | else |
81ecdfbb RW |
2838 | ac_save_c_werror_flag=$ac_c_werror_flag |
2839 | ac_c_werror_flag=yes | |
2840 | ac_cv_prog_cc_g=no | |
2841 | CFLAGS="-g" | |
2842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bec39cab AC |
2843 | /* end confdefs.h. */ |
2844 | ||
2845 | int | |
2846 | main () | |
2847 | { | |
2848 | ||
2849 | ; | |
2850 | return 0; | |
2851 | } | |
2852 | _ACEOF | |
81ecdfbb | 2853 | if ac_fn_c_try_compile "$LINENO"; then : |
bec39cab AC |
2854 | ac_cv_prog_cc_g=yes |
2855 | else | |
81ecdfbb RW |
2856 | CFLAGS="" |
2857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2858 | /* end confdefs.h. */ | |
bec39cab | 2859 | |
81ecdfbb RW |
2860 | int |
2861 | main () | |
2862 | { | |
2863 | ||
2864 | ; | |
2865 | return 0; | |
2866 | } | |
2867 | _ACEOF | |
2868 | if ac_fn_c_try_compile "$LINENO"; then : | |
2869 | ||
2870 | else | |
2871 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2872 | CFLAGS="-g" | |
2873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2874 | /* end confdefs.h. */ | |
2875 | ||
2876 | int | |
2877 | main () | |
2878 | { | |
2879 | ||
2880 | ; | |
2881 | return 0; | |
2882 | } | |
2883 | _ACEOF | |
2884 | if ac_fn_c_try_compile "$LINENO"; then : | |
2885 | ac_cv_prog_cc_g=yes | |
2886 | fi | |
2887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 2888 | fi |
81ecdfbb | 2889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 2890 | fi |
81ecdfbb RW |
2891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2892 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2893 | fi | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2895 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
bec39cab AC |
2896 | if test "$ac_test_CFLAGS" = set; then |
2897 | CFLAGS=$ac_save_CFLAGS | |
2898 | elif test $ac_cv_prog_cc_g = yes; then | |
2899 | if test "$GCC" = yes; then | |
2900 | CFLAGS="-g -O2" | |
2901 | else | |
2902 | CFLAGS="-g" | |
2903 | fi | |
2904 | else | |
2905 | if test "$GCC" = yes; then | |
2906 | CFLAGS="-O2" | |
2907 | else | |
2908 | CFLAGS= | |
2909 | fi | |
2910 | fi | |
81ecdfbb RW |
2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2912 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2913 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
2914 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2915 | else |
81ecdfbb | 2916 | ac_cv_prog_cc_c89=no |
bec39cab | 2917 | ac_save_CC=$CC |
81ecdfbb | 2918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2919 | /* end confdefs.h. */ |
2920 | #include <stdarg.h> | |
2921 | #include <stdio.h> | |
2922 | #include <sys/types.h> | |
2923 | #include <sys/stat.h> | |
2924 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2925 | struct buf { int x; }; | |
2926 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2927 | static char *e (p, i) | |
2928 | char **p; | |
2929 | int i; | |
2930 | { | |
2931 | return p[i]; | |
2932 | } | |
2933 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2934 | { | |
2935 | char *s; | |
2936 | va_list v; | |
2937 | va_start (v,p); | |
2938 | s = g (p, va_arg (v,int)); | |
2939 | va_end (v); | |
2940 | return s; | |
2941 | } | |
2942 | ||
2943 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2944 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2945 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 2946 | as 'x'. The following induces an error, until -std is added to get |
bec39cab AC |
2947 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2948 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 2949 | that's true only with -std. */ |
bec39cab AC |
2950 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2951 | ||
81ecdfbb RW |
2952 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2953 | inside strings and character constants. */ | |
2954 | #define FOO(x) 'x' | |
2955 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2956 | ||
bec39cab AC |
2957 | int test (int i, double x); |
2958 | struct s1 {int (*f) (int a);}; | |
2959 | struct s2 {int (*f) (double a);}; | |
2960 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2961 | int argc; | |
2962 | char **argv; | |
2963 | int | |
2964 | main () | |
2965 | { | |
2966 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2967 | ; | |
2968 | return 0; | |
2969 | } | |
2970 | _ACEOF | |
81ecdfbb RW |
2971 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2972 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2973 | do |
2974 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
2975 | if ac_fn_c_try_compile "$LINENO"; then : |
2976 | ac_cv_prog_cc_c89=$ac_arg | |
bec39cab | 2977 | fi |
81ecdfbb RW |
2978 | rm -f core conftest.err conftest.$ac_objext |
2979 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
bec39cab | 2980 | done |
81ecdfbb | 2981 | rm -f conftest.$ac_ext |
bec39cab AC |
2982 | CC=$ac_save_CC |
2983 | ||
2984 | fi | |
81ecdfbb RW |
2985 | # AC_CACHE_VAL |
2986 | case "x$ac_cv_prog_cc_c89" in | |
2987 | x) | |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2989 | $as_echo "none needed" >&6; } ;; | |
2990 | xno) | |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2992 | $as_echo "unsupported" >&6; } ;; | |
bec39cab | 2993 | *) |
81ecdfbb RW |
2994 | CC="$CC $ac_cv_prog_cc_c89" |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2996 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
bec39cab | 2997 | esac |
81ecdfbb | 2998 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bec39cab AC |
2999 | |
3000 | fi | |
bec39cab | 3001 | |
bec39cab AC |
3002 | ac_ext=c |
3003 | ac_cpp='$CPP $CPPFLAGS' | |
3004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3007 | ||
3008 | ||
3009 | ac_ext=c | |
3010 | ac_cpp='$CPP $CPPFLAGS' | |
3011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3015 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
dc62bfc2 MK |
3016 | # On Suns, sometimes $CPP names a directory. |
3017 | if test -n "$CPP" && test -d "$CPP"; then | |
3018 | CPP= | |
3019 | fi | |
3020 | if test -z "$CPP"; then | |
81ecdfbb RW |
3021 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3022 | $as_echo_n "(cached) " >&6 | |
dc62bfc2 | 3023 | else |
bec39cab AC |
3024 | # Double quotes because CPP needs to be expanded |
3025 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3026 | do | |
3027 | ac_preproc_ok=false | |
3028 | for ac_c_preproc_warn_flag in '' yes | |
3029 | do | |
3030 | # Use a header file that comes with gcc, so configuring glibc | |
3031 | # with a fresh cross-compiler works. | |
3032 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3033 | # <limits.h> exists even on freestanding compilers. | |
dc62bfc2 | 3034 | # On the NeXT, cc -E runs the code through the compiler's parser, |
bec39cab | 3035 | # not just through cpp. "Syntax error" is here to catch this case. |
81ecdfbb | 3036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3037 | /* end confdefs.h. */ |
3038 | #ifdef __STDC__ | |
3039 | # include <limits.h> | |
3040 | #else | |
3041 | # include <assert.h> | |
3042 | #endif | |
3043 | Syntax error | |
3044 | _ACEOF | |
81ecdfbb | 3045 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab | 3046 | |
81ecdfbb | 3047 | else |
bec39cab AC |
3048 | # Broken: fails on valid input. |
3049 | continue | |
3050 | fi | |
3051 | rm -f conftest.err conftest.$ac_ext | |
3052 | ||
81ecdfbb | 3053 | # OK, works on sane cases. Now check whether nonexistent headers |
bec39cab | 3054 | # can be detected and how. |
81ecdfbb | 3055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3056 | /* end confdefs.h. */ |
3057 | #include <ac_nonexistent.h> | |
3058 | _ACEOF | |
81ecdfbb | 3059 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab AC |
3060 | # Broken: success on invalid input. |
3061 | continue | |
3062 | else | |
bec39cab AC |
3063 | # Passes both tests. |
3064 | ac_preproc_ok=: | |
3065 | break | |
dc62bfc2 | 3066 | fi |
bec39cab AC |
3067 | rm -f conftest.err conftest.$ac_ext |
3068 | ||
3069 | done | |
3070 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3071 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 3072 | if $ac_preproc_ok; then : |
bec39cab | 3073 | break |
dc62bfc2 | 3074 | fi |
bec39cab AC |
3075 | |
3076 | done | |
3077 | ac_cv_prog_CPP=$CPP | |
3078 | ||
dc62bfc2 | 3079 | fi |
bec39cab | 3080 | CPP=$ac_cv_prog_CPP |
dc62bfc2 | 3081 | else |
bec39cab | 3082 | ac_cv_prog_CPP=$CPP |
dc62bfc2 | 3083 | fi |
81ecdfbb RW |
3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3085 | $as_echo "$CPP" >&6; } | |
bec39cab AC |
3086 | ac_preproc_ok=false |
3087 | for ac_c_preproc_warn_flag in '' yes | |
dc62bfc2 | 3088 | do |
bec39cab AC |
3089 | # Use a header file that comes with gcc, so configuring glibc |
3090 | # with a fresh cross-compiler works. | |
3091 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3092 | # <limits.h> exists even on freestanding compilers. | |
3093 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3094 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3096 | /* end confdefs.h. */ |
3097 | #ifdef __STDC__ | |
3098 | # include <limits.h> | |
3099 | #else | |
3100 | # include <assert.h> | |
3101 | #endif | |
3102 | Syntax error | |
3103 | _ACEOF | |
81ecdfbb | 3104 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab | 3105 | |
81ecdfbb | 3106 | else |
bec39cab AC |
3107 | # Broken: fails on valid input. |
3108 | continue | |
3109 | fi | |
3110 | rm -f conftest.err conftest.$ac_ext | |
3111 | ||
81ecdfbb | 3112 | # OK, works on sane cases. Now check whether nonexistent headers |
bec39cab | 3113 | # can be detected and how. |
81ecdfbb | 3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3115 | /* end confdefs.h. */ |
3116 | #include <ac_nonexistent.h> | |
3117 | _ACEOF | |
81ecdfbb | 3118 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab AC |
3119 | # Broken: success on invalid input. |
3120 | continue | |
dc62bfc2 | 3121 | else |
bec39cab AC |
3122 | # Passes both tests. |
3123 | ac_preproc_ok=: | |
3124 | break | |
dc62bfc2 | 3125 | fi |
bec39cab AC |
3126 | rm -f conftest.err conftest.$ac_ext |
3127 | ||
dc62bfc2 | 3128 | done |
bec39cab AC |
3129 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3130 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3131 | if $ac_preproc_ok; then : |
3132 | ||
bec39cab | 3133 | else |
81ecdfbb RW |
3134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3136 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3137 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
3138 | fi |
3139 | ||
3140 | ac_ext=c | |
3141 | ac_cpp='$CPP $CPPFLAGS' | |
3142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
dc62bfc2 MK |
3145 | |
3146 | ||
81ecdfbb RW |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3148 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3149 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3150 | $as_echo_n "(cached) " >&6 | |
3151 | else | |
3152 | if test -z "$GREP"; then | |
3153 | ac_path_GREP_found=false | |
3154 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3156 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3157 | do | |
3158 | IFS=$as_save_IFS | |
3159 | test -z "$as_dir" && as_dir=. | |
3160 | for ac_prog in grep ggrep; do | |
3161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3162 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3163 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3164 | # Check for GNU ac_path_GREP and select it if it is found. | |
3165 | # Check for GNU $ac_path_GREP | |
3166 | case `"$ac_path_GREP" --version 2>&1` in | |
3167 | *GNU*) | |
3168 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3169 | *) | |
3170 | ac_count=0 | |
3171 | $as_echo_n 0123456789 >"conftest.in" | |
3172 | while : | |
3173 | do | |
3174 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3175 | mv "conftest.tmp" "conftest.in" | |
3176 | cp "conftest.in" "conftest.nl" | |
3177 | $as_echo 'GREP' >> "conftest.nl" | |
3178 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3179 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3180 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3181 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3182 | # Best one so far, save it but keep looking for a better one | |
3183 | ac_cv_path_GREP="$ac_path_GREP" | |
3184 | ac_path_GREP_max=$ac_count | |
3185 | fi | |
3186 | # 10*(2^10) chars as input seems more than enough | |
3187 | test $ac_count -gt 10 && break | |
3188 | done | |
3189 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3190 | esac | |
3191 | ||
3192 | $ac_path_GREP_found && break 3 | |
3193 | done | |
3194 | done | |
3195 | done | |
3196 | IFS=$as_save_IFS | |
3197 | if test -z "$ac_cv_path_GREP"; then | |
3198 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3199 | fi | |
3200 | else | |
3201 | ac_cv_path_GREP=$GREP | |
3202 | fi | |
3203 | ||
3204 | fi | |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3206 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3207 | GREP="$ac_cv_path_GREP" | |
3208 | ||
3209 | ||
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3211 | $as_echo_n "checking for egrep... " >&6; } | |
3212 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3213 | $as_echo_n "(cached) " >&6 | |
93076499 | 3214 | else |
81ecdfbb RW |
3215 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3216 | then ac_cv_path_EGREP="$GREP -E" | |
3217 | else | |
3218 | if test -z "$EGREP"; then | |
3219 | ac_path_EGREP_found=false | |
3220 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3222 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3223 | do | |
3224 | IFS=$as_save_IFS | |
3225 | test -z "$as_dir" && as_dir=. | |
3226 | for ac_prog in egrep; do | |
3227 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3228 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3229 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3230 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3231 | # Check for GNU $ac_path_EGREP | |
3232 | case `"$ac_path_EGREP" --version 2>&1` in | |
3233 | *GNU*) | |
3234 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3235 | *) | |
3236 | ac_count=0 | |
3237 | $as_echo_n 0123456789 >"conftest.in" | |
3238 | while : | |
3239 | do | |
3240 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3241 | mv "conftest.tmp" "conftest.in" | |
3242 | cp "conftest.in" "conftest.nl" | |
3243 | $as_echo 'EGREP' >> "conftest.nl" | |
3244 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3245 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3246 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3247 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3248 | # Best one so far, save it but keep looking for a better one | |
3249 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3250 | ac_path_EGREP_max=$ac_count | |
bec39cab | 3251 | fi |
81ecdfbb RW |
3252 | # 10*(2^10) chars as input seems more than enough |
3253 | test $ac_count -gt 10 && break | |
3254 | done | |
3255 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3256 | esac | |
3257 | ||
3258 | $ac_path_EGREP_found && break 3 | |
3259 | done | |
3260 | done | |
3261 | done | |
3262 | IFS=$as_save_IFS | |
3263 | if test -z "$ac_cv_path_EGREP"; then | |
3264 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3265 | fi | |
3266 | else | |
3267 | ac_cv_path_EGREP=$EGREP | |
3268 | fi | |
3269 | ||
3270 | fi | |
bec39cab | 3271 | fi |
81ecdfbb RW |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3273 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3274 | EGREP="$ac_cv_path_EGREP" | |
93076499 | 3275 | |
93076499 | 3276 | |
81ecdfbb RW |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3278 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3279 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3280 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3281 | else |
81ecdfbb | 3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3283 | /* end confdefs.h. */ |
3284 | #include <stdlib.h> | |
3285 | #include <stdarg.h> | |
3286 | #include <string.h> | |
3287 | #include <float.h> | |
3288 | ||
3289 | int | |
3290 | main () | |
3291 | { | |
3292 | ||
3293 | ; | |
3294 | return 0; | |
3295 | } | |
3296 | _ACEOF | |
81ecdfbb | 3297 | if ac_fn_c_try_compile "$LINENO"; then : |
bec39cab AC |
3298 | ac_cv_header_stdc=yes |
3299 | else | |
81ecdfbb | 3300 | ac_cv_header_stdc=no |
bec39cab | 3301 | fi |
81ecdfbb | 3302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab AC |
3303 | |
3304 | if test $ac_cv_header_stdc = yes; then | |
3305 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3307 | /* end confdefs.h. */ |
3308 | #include <string.h> | |
3309 | ||
3310 | _ACEOF | |
3311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3312 | $EGREP "memchr" >/dev/null 2>&1; then : |
3313 | ||
bec39cab AC |
3314 | else |
3315 | ac_cv_header_stdc=no | |
93076499 ND |
3316 | fi |
3317 | rm -f conftest* | |
bec39cab AC |
3318 | |
3319 | fi | |
3320 | ||
3321 | if test $ac_cv_header_stdc = yes; then | |
3322 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3324 | /* end confdefs.h. */ |
3325 | #include <stdlib.h> | |
3326 | ||
3327 | _ACEOF | |
3328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3329 | $EGREP "free" >/dev/null 2>&1; then : |
3330 | ||
bec39cab AC |
3331 | else |
3332 | ac_cv_header_stdc=no | |
3333 | fi | |
93076499 | 3334 | rm -f conftest* |
bec39cab | 3335 | |
93076499 ND |
3336 | fi |
3337 | ||
bec39cab AC |
3338 | if test $ac_cv_header_stdc = yes; then |
3339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3340 | if test "$cross_compiling" = yes; then : |
bec39cab | 3341 | : |
93076499 | 3342 | else |
81ecdfbb | 3343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3344 | /* end confdefs.h. */ |
3345 | #include <ctype.h> | |
81ecdfbb | 3346 | #include <stdlib.h> |
bec39cab AC |
3347 | #if ((' ' & 0x0FF) == 0x020) |
3348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3350 | #else | |
3351 | # define ISLOWER(c) \ | |
3352 | (('a' <= (c) && (c) <= 'i') \ | |
3353 | || ('j' <= (c) && (c) <= 'r') \ | |
3354 | || ('s' <= (c) && (c) <= 'z')) | |
3355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3356 | #endif | |
93076499 | 3357 | |
bec39cab AC |
3358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3359 | int | |
3360 | main () | |
3361 | { | |
3362 | int i; | |
3363 | for (i = 0; i < 256; i++) | |
3364 | if (XOR (islower (i), ISLOWER (i)) | |
3365 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
3366 | return 2; |
3367 | return 0; | |
bec39cab AC |
3368 | } |
3369 | _ACEOF | |
81ecdfbb | 3370 | if ac_fn_c_try_run "$LINENO"; then : |
bec39cab | 3371 | |
81ecdfbb RW |
3372 | else |
3373 | ac_cv_header_stdc=no | |
93076499 | 3374 | fi |
81ecdfbb RW |
3375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3376 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
bec39cab | 3377 | fi |
81ecdfbb | 3378 | |
bec39cab AC |
3379 | fi |
3380 | fi | |
81ecdfbb RW |
3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3382 | $as_echo "$ac_cv_header_stdc" >&6; } | |
bec39cab AC |
3383 | if test $ac_cv_header_stdc = yes; then |
3384 | ||
81ecdfbb | 3385 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bec39cab AC |
3386 | |
3387 | fi | |
3388 | ||
3389 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
bec39cab AC |
3390 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3391 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
3392 | do : |
3393 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3394 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3395 | " | |
3396 | eval as_val=\$$as_ac_Header | |
3397 | if test "x$as_val" = x""yes; then : | |
bec39cab | 3398 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 3399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab AC |
3400 | _ACEOF |
3401 | ||
93076499 ND |
3402 | fi |
3403 | ||
bec39cab AC |
3404 | done |
3405 | ||
93076499 | 3406 | |
bec39cab | 3407 | for ac_header in pthread.h |
81ecdfbb RW |
3408 | do : |
3409 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
3410 | if test "x$ac_cv_header_pthread_h" = x""yes; then : | |
bec39cab | 3411 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 3412 | #define HAVE_PTHREAD_H 1 |
bec39cab | 3413 | _ACEOF |
93076499 | 3414 | |
bec39cab | 3415 | fi |
93076499 | 3416 | |
bec39cab AC |
3417 | done |
3418 | ||
3419 | ||
3420 | ||
3421 | ||
2a31c623 PA |
3422 | if test "${build}" = "${host}" -a "${host}" = "${target}"; then |
3423 | case "${host}" in | |
3424 | *gnu*) | |
3425 | EXTRA_RULES=read1 | |
3426 | ;; | |
3427 | esac | |
3428 | fi | |
3429 | ||
3430 | ||
ed3ef339 | 3431 | ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.guile/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile" |
81ecdfbb | 3432 | |
bec39cab | 3433 | cat >confcache <<\_ACEOF |
c906108c SS |
3434 | # This file is a shell script that caches the results of configure |
3435 | # tests run on this system so they can be shared between configure | |
bec39cab AC |
3436 | # scripts and configure runs, see configure's option --config-cache. |
3437 | # It is not useful on other systems. If it contains results you don't | |
3438 | # want to keep, you may remove or edit it. | |
c906108c | 3439 | # |
bec39cab AC |
3440 | # config.status only pays attention to the cache file if you give it |
3441 | # the --recheck option to rerun configure. | |
c906108c | 3442 | # |
bec39cab AC |
3443 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3444 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3445 | # following values. | |
3446 | ||
3447 | _ACEOF | |
3448 | ||
c906108c SS |
3449 | # The following way of writing the cache mishandles newlines in values, |
3450 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 3451 | # So, we kill variables containing newlines. |
c906108c SS |
3452 | # Ultrix sh set writes to stderr and can't be redirected directly, |
3453 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
3454 | ( |
3455 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3456 | eval ac_val=\$$ac_var | |
3457 | case $ac_val in #( | |
3458 | *${as_nl}*) | |
3459 | case $ac_var in #( | |
3460 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3461 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3462 | esac | |
3463 | case $ac_var in #( | |
3464 | _ | IFS | as_nl) ;; #( | |
3465 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3466 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3467 | esac ;; | |
3468 | esac | |
3469 | done | |
3470 | ||
bec39cab | 3471 | (set) 2>&1 | |
81ecdfbb RW |
3472 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
3473 | *${as_nl}ac_space=\ *) | |
3474 | # `set' does not quote correctly, so add quotes: double-quote | |
3475 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bec39cab AC |
3476 | sed -n \ |
3477 | "s/'/'\\\\''/g; | |
3478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 3479 | ;; #( |
bec39cab AC |
3480 | *) |
3481 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 3482 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 3483 | ;; |
81ecdfbb RW |
3484 | esac | |
3485 | sort | |
3486 | ) | | |
bec39cab | 3487 | sed ' |
81ecdfbb | 3488 | /^ac_cv_env_/b end |
bec39cab | 3489 | t clear |
81ecdfbb | 3490 | :clear |
bec39cab AC |
3491 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
3492 | t end | |
81ecdfbb RW |
3493 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
3494 | :end' >>confcache | |
3495 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3496 | if test -w "$cache_file"; then | |
3497 | test "x$cache_file" != "x/dev/null" && | |
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
3499 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bec39cab | 3500 | cat confcache >$cache_file |
c906108c | 3501 | else |
81ecdfbb RW |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
3503 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
3504 | fi |
3505 | fi | |
3506 | rm -f confcache | |
3507 | ||
c906108c SS |
3508 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
3509 | # Let make expand exec_prefix. | |
3510 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3511 | ||
5710a1af EZ |
3512 | # Transform confdefs.h into DEFS. |
3513 | # Protect against shell expansion while executing Makefile rules. | |
3514 | # Protect against Makefile macro expansion. | |
bec39cab AC |
3515 | # |
3516 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 3517 | # take arguments), then branch to the quote section. Otherwise, |
bec39cab | 3518 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
3519 | ac_script=' |
3520 | :mline | |
3521 | /\\$/{ | |
3522 | N | |
3523 | s,\\\n,, | |
3524 | b mline | |
3525 | } | |
bec39cab | 3526 | t clear |
81ecdfbb RW |
3527 | :clear |
3528 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
bec39cab | 3529 | t quote |
81ecdfbb | 3530 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
bec39cab | 3531 | t quote |
81ecdfbb RW |
3532 | b any |
3533 | :quote | |
3534 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
3535 | s/\[/\\&/g | |
3536 | s/\]/\\&/g | |
3537 | s/\$/$$/g | |
3538 | H | |
3539 | :any | |
3540 | ${ | |
3541 | g | |
3542 | s/^\n// | |
3543 | s/\n/ /g | |
3544 | p | |
3545 | } | |
3546 | ' | |
3547 | DEFS=`sed -n "$ac_script" confdefs.h` | |
bec39cab AC |
3548 | |
3549 | ||
3550 | ac_libobjs= | |
3551 | ac_ltlibobjs= | |
3552 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3553 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
3554 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3555 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3556 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3557 | # will be set to the directory where LIBOBJS objects are built. | |
3558 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3559 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bec39cab AC |
3560 | done |
3561 | LIBOBJS=$ac_libobjs | |
c906108c | 3562 | |
bec39cab AC |
3563 | LTLIBOBJS=$ac_ltlibobjs |
3564 | ||
3565 | ||
6bc80edc | 3566 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
81ecdfbb RW |
3567 | as_fn_error "conditional \"GMAKE\" was never defined. |
3568 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6bc80edc | 3569 | fi |
bec39cab AC |
3570 | |
3571 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 3572 | ac_write_fail=0 |
bec39cab AC |
3573 | ac_clean_files_save=$ac_clean_files |
3574 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
3576 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3577 | as_write_fail=0 | |
3578 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bec39cab AC |
3579 | #! $SHELL |
3580 | # Generated by $as_me. | |
c906108c | 3581 | # Run this file to recreate the current configuration. |
c906108c | 3582 | # Compiler output produced by configure, useful for debugging |
bec39cab AC |
3583 | # configure, is in config.log if it exists. |
3584 | ||
3585 | debug=false | |
3586 | ac_cs_recheck=false | |
3587 | ac_cs_silent=false | |
bec39cab | 3588 | |
81ecdfbb RW |
3589 | SHELL=\${CONFIG_SHELL-$SHELL} |
3590 | export SHELL | |
3591 | _ASEOF | |
3592 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3593 | ## -------------------- ## | |
3594 | ## M4sh Initialization. ## | |
3595 | ## -------------------- ## | |
3596 | ||
3597 | # Be more Bourne compatible | |
3598 | DUALCASE=1; export DUALCASE # for MKS sh | |
3599 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
3600 | emulate sh |
3601 | NULLCMD=: | |
81ecdfbb | 3602 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
3603 | # is contrary to our usage. Disable this feature. |
3604 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
3605 | setopt NO_GLOB_SUBST |
3606 | else | |
3607 | case `(set -o) 2>/dev/null` in #( | |
3608 | *posix*) : | |
3609 | set -o posix ;; #( | |
3610 | *) : | |
3611 | ;; | |
3612 | esac | |
bec39cab | 3613 | fi |
c906108c | 3614 | |
81ecdfbb RW |
3615 | |
3616 | as_nl=' | |
3617 | ' | |
3618 | export as_nl | |
3619 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
3620 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3621 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
3622 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
3623 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
3624 | # but without wasting forks for bash or zsh. | |
3625 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
3626 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3627 | as_echo='print -r --' | |
3628 | as_echo_n='print -rn --' | |
3629 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3630 | as_echo='printf %s\n' | |
3631 | as_echo_n='printf %s' | |
bec39cab | 3632 | else |
81ecdfbb RW |
3633 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
3634 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
3635 | as_echo_n='/usr/ucb/echo -n' | |
3636 | else | |
3637 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
3638 | as_echo_n_body='eval | |
3639 | arg=$1; | |
3640 | case $arg in #( | |
3641 | *"$as_nl"*) | |
3642 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
3643 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
3644 | esac; | |
3645 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
3646 | ' | |
3647 | export as_echo_n_body | |
3648 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
3649 | fi | |
3650 | export as_echo_body | |
3651 | as_echo='sh -c $as_echo_body as_echo' | |
bec39cab AC |
3652 | fi |
3653 | ||
81ecdfbb RW |
3654 | # The user is always right. |
3655 | if test "${PATH_SEPARATOR+set}" != set; then | |
3656 | PATH_SEPARATOR=: | |
3657 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
3658 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
3659 | PATH_SEPARATOR=';' | |
3660 | } | |
3661 | fi | |
bec39cab | 3662 | |
81ecdfbb RW |
3663 | |
3664 | # IFS | |
3665 | # We need space, tab and new line, in precisely that order. Quoting is | |
3666 | # there to prevent editors from complaining about space-tab. | |
3667 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3668 | # splitting by setting IFS to empty value.) | |
3669 | IFS=" "" $as_nl" | |
3670 | ||
3671 | # Find who we are. Look in the path if we contain no directory separator. | |
3672 | case $0 in #(( | |
3673 | *[\\/]* ) as_myself=$0 ;; | |
3674 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3675 | for as_dir in $PATH | |
3676 | do | |
3677 | IFS=$as_save_IFS | |
3678 | test -z "$as_dir" && as_dir=. | |
3679 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3680 | done | |
3681 | IFS=$as_save_IFS | |
3682 | ||
3683 | ;; | |
3684 | esac | |
3685 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3686 | # in which case we are not to be found in the path. | |
3687 | if test "x$as_myself" = x; then | |
3688 | as_myself=$0 | |
3689 | fi | |
3690 | if test ! -f "$as_myself"; then | |
3691 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3692 | exit 1 | |
3693 | fi | |
3694 | ||
3695 | # Unset variables that we do not need and which cause bugs (e.g. in | |
3696 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
3697 | # suppresses any "Segmentation fault" message there. '((' could | |
3698 | # trigger a bug in pdksh 5.2.14. | |
3699 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
3700 | do eval test x\${$as_var+set} = xset \ | |
3701 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
3702 | done | |
bec39cab AC |
3703 | PS1='$ ' |
3704 | PS2='> ' | |
3705 | PS4='+ ' | |
3706 | ||
3707 | # NLS nuisances. | |
81ecdfbb RW |
3708 | LC_ALL=C |
3709 | export LC_ALL | |
3710 | LANGUAGE=C | |
3711 | export LANGUAGE | |
3712 | ||
3713 | # CDPATH. | |
3714 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
3715 | ||
3716 | ||
3717 | # as_fn_error ERROR [LINENO LOG_FD] | |
3718 | # --------------------------------- | |
3719 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
3720 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
3721 | # script with status $?, using 1 if that was 0. | |
3722 | as_fn_error () | |
3723 | { | |
3724 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
3725 | if test "$3"; then | |
3726 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3727 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bec39cab | 3728 | fi |
81ecdfbb RW |
3729 | $as_echo "$as_me: error: $1" >&2 |
3730 | as_fn_exit $as_status | |
3731 | } # as_fn_error | |
3732 | ||
c906108c | 3733 | |
81ecdfbb RW |
3734 | # as_fn_set_status STATUS |
3735 | # ----------------------- | |
3736 | # Set $? to STATUS, without forking. | |
3737 | as_fn_set_status () | |
3738 | { | |
3739 | return $1 | |
3740 | } # as_fn_set_status | |
3741 | ||
3742 | # as_fn_exit STATUS | |
3743 | # ----------------- | |
3744 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
3745 | as_fn_exit () | |
3746 | { | |
3747 | set +e | |
3748 | as_fn_set_status $1 | |
3749 | exit $1 | |
3750 | } # as_fn_exit | |
3751 | ||
3752 | # as_fn_unset VAR | |
3753 | # --------------- | |
3754 | # Portably unset VAR. | |
3755 | as_fn_unset () | |
3756 | { | |
3757 | { eval $1=; unset $1;} | |
3758 | } | |
3759 | as_unset=as_fn_unset | |
3760 | # as_fn_append VAR VALUE | |
3761 | # ---------------------- | |
3762 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
3763 | # advantage of any shell optimizations that allow amortized linear growth over | |
3764 | # repeated appends, instead of the typical quadratic growth present in naive | |
3765 | # implementations. | |
3766 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
3767 | eval 'as_fn_append () | |
3768 | { | |
3769 | eval $1+=\$2 | |
3770 | }' | |
3771 | else | |
3772 | as_fn_append () | |
3773 | { | |
3774 | eval $1=\$$1\$2 | |
3775 | } | |
3776 | fi # as_fn_append | |
3777 | ||
3778 | # as_fn_arith ARG... | |
3779 | # ------------------ | |
3780 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
3781 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
3782 | # must be portable across $(()) and expr. | |
3783 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
3784 | eval 'as_fn_arith () | |
3785 | { | |
3786 | as_val=$(( $* )) | |
3787 | }' | |
3788 | else | |
3789 | as_fn_arith () | |
3790 | { | |
3791 | as_val=`expr "$@" || test $? -eq 1` | |
3792 | } | |
3793 | fi # as_fn_arith | |
3794 | ||
3795 | ||
3796 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3797 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
3798 | as_expr=expr |
3799 | else | |
3800 | as_expr=false | |
3801 | fi | |
c906108c | 3802 | |
81ecdfbb | 3803 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
3804 | as_basename=basename |
3805 | else | |
3806 | as_basename=false | |
3807 | fi | |
3808 | ||
81ecdfbb RW |
3809 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
3810 | as_dirname=dirname | |
3811 | else | |
3812 | as_dirname=false | |
3813 | fi | |
bec39cab | 3814 | |
81ecdfbb | 3815 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
3816 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3817 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
3818 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
3819 | $as_echo X/"$0" | | |
3820 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3821 | s//\1/ | |
3822 | q | |
3823 | } | |
3824 | /^X\/\(\/\/\)$/{ | |
3825 | s//\1/ | |
3826 | q | |
3827 | } | |
3828 | /^X\/\(\/\).*/{ | |
3829 | s//\1/ | |
3830 | q | |
3831 | } | |
3832 | s/.*/./; q'` | |
bec39cab | 3833 | |
bec39cab AC |
3834 | # Avoid depending upon Character Ranges. |
3835 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3836 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3837 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3838 | as_cr_digits='0123456789' | |
3839 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3840 | ||
81ecdfbb RW |
3841 | ECHO_C= ECHO_N= ECHO_T= |
3842 | case `echo -n x` in #((((( | |
3843 | -n*) | |
3844 | case `echo 'xy\c'` in | |
3845 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3846 | xy) ECHO_C='\c';; | |
3847 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
3848 | ECHO_T=' ';; | |
3849 | esac;; | |
3850 | *) | |
3851 | ECHO_N='-n';; | |
bec39cab AC |
3852 | esac |
3853 | ||
81ecdfbb RW |
3854 | rm -f conf$$ conf$$.exe conf$$.file |
3855 | if test -d conf$$.dir; then | |
3856 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 3857 | else |
81ecdfbb RW |
3858 | rm -f conf$$.dir |
3859 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 3860 | fi |
81ecdfbb RW |
3861 | if (echo >conf$$.file) 2>/dev/null; then |
3862 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
bec39cab | 3863 | as_ln_s='ln -s' |
81ecdfbb RW |
3864 | # ... but there are two gotchas: |
3865 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3866 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3867 | # In both cases, we have to default to `cp -p'. | |
3868 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3869 | as_ln_s='cp -p' | |
3870 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3871 | as_ln_s=ln | |
3872 | else | |
3873 | as_ln_s='cp -p' | |
c906108c | 3874 | fi |
bec39cab AC |
3875 | else |
3876 | as_ln_s='cp -p' | |
3877 | fi | |
81ecdfbb RW |
3878 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
3879 | rmdir conf$$.dir 2>/dev/null | |
3880 | ||
3881 | ||
3882 | # as_fn_mkdir_p | |
3883 | # ------------- | |
3884 | # Create "$as_dir" as a directory, including parents if necessary. | |
3885 | as_fn_mkdir_p () | |
3886 | { | |
3887 | ||
3888 | case $as_dir in #( | |
3889 | -*) as_dir=./$as_dir;; | |
3890 | esac | |
3891 | test -d "$as_dir" || eval $as_mkdir_p || { | |
3892 | as_dirs= | |
3893 | while :; do | |
3894 | case $as_dir in #( | |
3895 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
3896 | *) as_qdir=$as_dir;; | |
3897 | esac | |
3898 | as_dirs="'$as_qdir' $as_dirs" | |
3899 | as_dir=`$as_dirname -- "$as_dir" || | |
3900 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3901 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3902 | X"$as_dir" : 'X\(//\)$' \| \ | |
3903 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
3904 | $as_echo X"$as_dir" | | |
3905 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3906 | s//\1/ | |
3907 | q | |
3908 | } | |
3909 | /^X\(\/\/\)[^/].*/{ | |
3910 | s//\1/ | |
3911 | q | |
3912 | } | |
3913 | /^X\(\/\/\)$/{ | |
3914 | s//\1/ | |
3915 | q | |
3916 | } | |
3917 | /^X\(\/\).*/{ | |
3918 | s//\1/ | |
3919 | q | |
3920 | } | |
3921 | s/.*/./; q'` | |
3922 | test -d "$as_dir" && break | |
3923 | done | |
3924 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
3925 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
bec39cab | 3926 | |
81ecdfbb RW |
3927 | |
3928 | } # as_fn_mkdir_p | |
bec39cab | 3929 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 3930 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
3931 | else |
3932 | test -d ./-p && rmdir ./-p | |
3933 | as_mkdir_p=false | |
3934 | fi | |
3935 | ||
81ecdfbb RW |
3936 | if test -x / >/dev/null 2>&1; then |
3937 | as_test_x='test -x' | |
3938 | else | |
3939 | if ls -dL / >/dev/null 2>&1; then | |
3940 | as_ls_L_option=L | |
3941 | else | |
3942 | as_ls_L_option= | |
3943 | fi | |
3944 | as_test_x=' | |
3945 | eval sh -c '\'' | |
3946 | if test -d "$1"; then | |
3947 | test -d "$1/."; | |
3948 | else | |
3949 | case $1 in #( | |
3950 | -*)set "./$1";; | |
3951 | esac; | |
3952 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
3953 | ???[sx]*):;;*)false;;esac;fi | |
3954 | '\'' sh | |
3955 | ' | |
3956 | fi | |
3957 | as_executable_p=$as_test_x | |
bec39cab AC |
3958 | |
3959 | # Sed expression to map a string onto a valid CPP name. | |
3960 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3961 | ||
3962 | # Sed expression to map a string onto a valid variable name. | |
3963 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3964 | ||
3965 | ||
bec39cab | 3966 | exec 6>&1 |
81ecdfbb RW |
3967 | ## ----------------------------------- ## |
3968 | ## Main body of $CONFIG_STATUS script. ## | |
3969 | ## ----------------------------------- ## | |
3970 | _ASEOF | |
3971 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3972 | ||
3973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3974 | # Save the log message, to keep $0 and so on meaningful, and to | |
bec39cab | 3975 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
3976 | # values after options handling. |
3977 | ac_log=" | |
bec39cab | 3978 | This file was extended by $as_me, which was |
81ecdfbb | 3979 | generated by GNU Autoconf 2.64. Invocation command line was |
bec39cab AC |
3980 | |
3981 | CONFIG_FILES = $CONFIG_FILES | |
3982 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3983 | CONFIG_LINKS = $CONFIG_LINKS | |
3984 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3985 | $ $0 $@ | |
3986 | ||
81ecdfbb RW |
3987 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
3988 | " | |
3989 | ||
bec39cab AC |
3990 | _ACEOF |
3991 | ||
81ecdfbb RW |
3992 | case $ac_config_files in *" |
3993 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3994 | esac | |
bec39cab | 3995 | |
bec39cab | 3996 | |
bec39cab | 3997 | |
81ecdfbb RW |
3998 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3999 | # Files that config.status was made for. | |
4000 | config_files="$ac_config_files" | |
bec39cab | 4001 | |
81ecdfbb | 4002 | _ACEOF |
bec39cab | 4003 | |
81ecdfbb | 4004 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab | 4005 | ac_cs_usage="\ |
81ecdfbb RW |
4006 | \`$as_me' instantiates files and other configuration actions |
4007 | from templates according to the current configuration. Unless the files | |
4008 | and actions are specified as TAGs, all are instantiated by default. | |
bec39cab | 4009 | |
81ecdfbb | 4010 | Usage: $0 [OPTION]... [TAG]... |
bec39cab AC |
4011 | |
4012 | -h, --help print this help, then exit | |
81ecdfbb RW |
4013 | -V, --version print version number and configuration settings, then exit |
4014 | -q, --quiet, --silent | |
4015 | do not print progress messages | |
bec39cab AC |
4016 | -d, --debug don't remove temporary files |
4017 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
4018 | --file=FILE[:TEMPLATE] |
4019 | instantiate the configuration file FILE | |
bec39cab AC |
4020 | |
4021 | Configuration files: | |
4022 | $config_files | |
4023 | ||
81ecdfbb | 4024 | Report bugs to the package provider." |
bec39cab | 4025 | |
81ecdfbb RW |
4026 | _ACEOF |
4027 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bec39cab AC |
4028 | ac_cs_version="\\ |
4029 | config.status | |
81ecdfbb RW |
4030 | configured by $0, generated by GNU Autoconf 2.64, |
4031 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bec39cab | 4032 | |
81ecdfbb | 4033 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
4034 | This config.status script is free software; the Free Software Foundation |
4035 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
4036 | |
4037 | ac_pwd='$ac_pwd' | |
4038 | srcdir='$srcdir' | |
4039 | test -n "\$AWK" || AWK=awk | |
bec39cab AC |
4040 | _ACEOF |
4041 | ||
81ecdfbb RW |
4042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4043 | # The default lists apply if the user does not specify any file. | |
bec39cab AC |
4044 | ac_need_defaults=: |
4045 | while test $# != 0 | |
4046 | do | |
4047 | case $1 in | |
4048 | --*=*) | |
81ecdfbb RW |
4049 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
4050 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bec39cab AC |
4051 | ac_shift=: |
4052 | ;; | |
81ecdfbb | 4053 | *) |
bec39cab AC |
4054 | ac_option=$1 |
4055 | ac_optarg=$2 | |
4056 | ac_shift=shift | |
4057 | ;; | |
bec39cab AC |
4058 | esac |
4059 | ||
4060 | case $ac_option in | |
4061 | # Handling of the options. | |
bec39cab AC |
4062 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4063 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
4064 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4065 | $as_echo "$ac_cs_version"; exit ;; | |
4066 | --debug | --debu | --deb | --de | --d | -d ) | |
bec39cab AC |
4067 | debug=: ;; |
4068 | --file | --fil | --fi | --f ) | |
4069 | $ac_shift | |
81ecdfbb RW |
4070 | case $ac_optarg in |
4071 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4072 | esac | |
4073 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bec39cab | 4074 | ac_need_defaults=false;; |
81ecdfbb RW |
4075 | --he | --h | --help | --hel | -h ) |
4076 | $as_echo "$ac_cs_usage"; exit ;; | |
bec39cab AC |
4077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4078 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4079 | ac_cs_silent=: ;; | |
4080 | ||
4081 | # This is an error. | |
81ecdfbb RW |
4082 | -*) as_fn_error "unrecognized option: \`$1' |
4083 | Try \`$0 --help' for more information." ;; | |
bec39cab | 4084 | |
81ecdfbb RW |
4085 | *) as_fn_append ac_config_targets " $1" |
4086 | ac_need_defaults=false ;; | |
c906108c | 4087 | |
c906108c | 4088 | esac |
bec39cab AC |
4089 | shift |
4090 | done | |
4091 | ||
4092 | ac_configure_extra_args= | |
4093 | ||
4094 | if $ac_cs_silent; then | |
4095 | exec 6>/dev/null | |
4096 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4097 | fi | |
4098 | ||
4099 | _ACEOF | |
81ecdfbb | 4100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bec39cab | 4101 | if \$ac_cs_recheck; then |
81ecdfbb RW |
4102 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4103 | shift | |
4104 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4105 | CONFIG_SHELL='$SHELL' | |
4106 | export CONFIG_SHELL | |
4107 | exec "\$@" | |
bec39cab AC |
4108 | fi |
4109 | ||
4110 | _ACEOF | |
81ecdfbb RW |
4111 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4112 | exec 5>>config.log | |
4113 | { | |
4114 | echo | |
4115 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4116 | ## Running $as_me. ## | |
4117 | _ASBOX | |
4118 | $as_echo "$ac_log" | |
4119 | } >&5 | |
c906108c | 4120 | |
81ecdfbb RW |
4121 | _ACEOF |
4122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4123 | _ACEOF | |
c906108c | 4124 | |
81ecdfbb | 4125 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab | 4126 | |
81ecdfbb | 4127 | # Handling of arguments. |
bec39cab AC |
4128 | for ac_config_target in $ac_config_targets |
4129 | do | |
81ecdfbb RW |
4130 | case $ac_config_target in |
4131 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
4132 | "gdb.ada/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;; | |
4133 | "gdb.arch/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;; | |
4134 | "gdb.asm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;; | |
4135 | "gdb.base/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;; | |
2f1d9bdd | 4136 | "gdb.btrace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.btrace/Makefile" ;; |
30e62689 | 4137 | "gdb.cell/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cell/Makefile" ;; |
81ecdfbb RW |
4138 | "gdb.cp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;; |
4139 | "gdb.disasm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;; | |
4140 | "gdb.dwarf2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;; | |
7f420862 | 4141 | "gdb.dlang/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dlang/Makefile" ;; |
81ecdfbb | 4142 | "gdb.fortran/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;; |
7026a7c1 | 4143 | "gdb.gdb/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.gdb/Makefile" ;; |
a766d390 | 4144 | "gdb.go/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.go/Makefile" ;; |
81ecdfbb RW |
4145 | "gdb.server/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;; |
4146 | "gdb.java/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;; | |
30e62689 TT |
4147 | "gdb.hp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/Makefile" ;; |
4148 | "gdb.hp/gdb.objdbg/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.objdbg/Makefile" ;; | |
4149 | "gdb.hp/gdb.base-hp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.base-hp/Makefile" ;; | |
4150 | "gdb.hp/gdb.aCC/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.aCC/Makefile" ;; | |
4151 | "gdb.hp/gdb.compat/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.compat/Makefile" ;; | |
4152 | "gdb.hp/gdb.defects/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.defects/Makefile" ;; | |
ed3ef339 | 4153 | "gdb.guile/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.guile/Makefile" ;; |
f8eba3c6 | 4154 | "gdb.linespec/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.linespec/Makefile" ;; |
81ecdfbb RW |
4155 | "gdb.mi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;; |
4156 | "gdb.modula2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.modula2/Makefile" ;; | |
57bb97a4 | 4157 | "gdb.multi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.multi/Makefile" ;; |
81ecdfbb | 4158 | "gdb.objc/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;; |
fb03cb59 | 4159 | "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;; |
81ecdfbb RW |
4160 | "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;; |
4161 | "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;; | |
7636ccf9 | 4162 | "gdb.perf/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.perf/Makefile" ;; |
81ecdfbb RW |
4163 | "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;; |
4164 | "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;; | |
30e62689 | 4165 | "gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;; |
81ecdfbb RW |
4166 | "gdb.threads/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;; |
4167 | "gdb.trace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;; | |
4168 | "gdb.xml/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.xml/Makefile" ;; | |
4169 | ||
4170 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c906108c | 4171 | esac |
bec39cab AC |
4172 | done |
4173 | ||
81ecdfbb | 4174 | |
bec39cab AC |
4175 | # If the user did not use the arguments to specify the items to instantiate, |
4176 | # then the envvar interface is used. Set only those that are not. | |
4177 | # We use the long form for the default assignment because of an extremely | |
4178 | # bizarre bug on SunOS 4.1.3. | |
4179 | if $ac_need_defaults; then | |
4180 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4181 | fi | |
4182 | ||
4183 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 4184 | # simply because there is no reason against having it here, and in addition, |
bec39cab | 4185 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
4186 | # Hook for its removal unless debugging. |
4187 | # Note that there is a small window in which the directory will not be cleaned: | |
4188 | # after its creation but before its name has been assigned to `$tmp'. | |
bec39cab AC |
4189 | $debug || |
4190 | { | |
81ecdfbb RW |
4191 | tmp= |
4192 | trap 'exit_status=$? | |
4193 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
4194 | ' 0 | |
4195 | trap 'as_fn_exit 1' 1 2 13 15 | |
bec39cab | 4196 | } |
bec39cab AC |
4197 | # Create a (secure) tmp directory for tmp files. |
4198 | ||
4199 | { | |
81ecdfbb | 4200 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bec39cab AC |
4201 | test -n "$tmp" && test -d "$tmp" |
4202 | } || | |
4203 | { | |
81ecdfbb RW |
4204 | tmp=./conf$$-$RANDOM |
4205 | (umask 077 && mkdir "$tmp") | |
4206 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
4207 | ||
4208 | # Set up the scripts for CONFIG_FILES section. | |
4209 | # No need to generate them if there are no CONFIG_FILES. | |
4210 | # This happens for instance with `./config.status config.h'. | |
4211 | if test -n "$CONFIG_FILES"; then | |
4212 | ||
4213 | ||
4214 | ac_cr=`echo X | tr X '\015'` | |
4215 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4216 | # But we know of no other shell where ac_cr would be empty at this | |
4217 | # point, so we can use a bashism as a fallback. | |
4218 | if test "x$ac_cr" = x; then | |
4219 | eval ac_cr=\$\'\\r\' | |
4220 | fi | |
4221 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4222 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4223 | ac_cs_awk_cr='\r' | |
4224 | else | |
4225 | ac_cs_awk_cr=$ac_cr | |
4226 | fi | |
4227 | ||
4228 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
4229 | _ACEOF | |
4230 | ||
4231 | ||
bec39cab | 4232 | { |
81ecdfbb RW |
4233 | echo "cat >conf$$subs.awk <<_ACEOF" && |
4234 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4235 | echo "_ACEOF" | |
4236 | } >conf$$subs.sh || | |
4237 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4238 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
4239 | ac_delim='%!_!# ' | |
4240 | for ac_last_try in false false false false false :; do | |
4241 | . ./conf$$subs.sh || | |
4242 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4243 | ||
4244 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4245 | if test $ac_delim_n = $ac_delim_num; then | |
4246 | break | |
4247 | elif $ac_last_try; then | |
4248 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4249 | else | |
4250 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4251 | fi | |
4252 | done | |
4253 | rm -f conf$$subs.sh | |
4254 | ||
4255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4256 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
4257 | _ACEOF | |
4258 | sed -n ' | |
4259 | h | |
4260 | s/^/S["/; s/!.*/"]=/ | |
4261 | p | |
4262 | g | |
4263 | s/^[^!]*!// | |
4264 | :repl | |
4265 | t repl | |
4266 | s/'"$ac_delim"'$// | |
4267 | t delim | |
4268 | :nl | |
4269 | h | |
4270 | s/\(.\{148\}\).*/\1/ | |
4271 | t more1 | |
4272 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4273 | p | |
4274 | n | |
4275 | b repl | |
4276 | :more1 | |
4277 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4278 | p | |
4279 | g | |
4280 | s/.\{148\}// | |
4281 | t nl | |
4282 | :delim | |
4283 | h | |
4284 | s/\(.\{148\}\).*/\1/ | |
4285 | t more2 | |
4286 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4287 | p | |
4288 | b | |
4289 | :more2 | |
4290 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4291 | p | |
4292 | g | |
4293 | s/.\{148\}// | |
4294 | t delim | |
4295 | ' <conf$$subs.awk | sed ' | |
4296 | /^[^""]/{ | |
4297 | N | |
4298 | s/\n// | |
4299 | } | |
4300 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4301 | rm -f conf$$subs.awk | |
4302 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4303 | _ACAWK | |
4304 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
4305 | for (key in S) S_is_set[key] = 1 | |
4306 | FS = "\a" | |
4307 | ||
4308 | } | |
4309 | { | |
4310 | line = $ 0 | |
4311 | nfields = split(line, field, "@") | |
4312 | substed = 0 | |
4313 | len = length(field[1]) | |
4314 | for (i = 2; i < nfields; i++) { | |
4315 | key = field[i] | |
4316 | keylen = length(key) | |
4317 | if (S_is_set[key]) { | |
4318 | value = S[key] | |
4319 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4320 | len += length(value) + length(field[++i]) | |
4321 | substed = 1 | |
4322 | } else | |
4323 | len += 1 + keylen | |
4324 | } | |
4325 | ||
4326 | print line | |
bec39cab AC |
4327 | } |
4328 | ||
81ecdfbb RW |
4329 | _ACAWK |
4330 | _ACEOF | |
4331 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4332 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4333 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4334 | else | |
4335 | cat | |
4336 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
4337 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
bec39cab AC |
4338 | _ACEOF |
4339 | ||
81ecdfbb RW |
4340 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
4341 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4342 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4343 | # (actually we leave an empty line to preserve line numbers). | |
4344 | if test "x$srcdir" = x.; then | |
4345 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4346 | s/:*\$(srcdir):*/:/ | |
4347 | s/:*\${srcdir}:*/:/ | |
4348 | s/:*@srcdir@:*/:/ | |
4349 | s/^\([^=]*=[ ]*\):*/\1/ | |
4350 | s/:*$// | |
4351 | s/^[^=]*=[ ]*$// | |
4352 | }' | |
4353 | fi | |
c906108c | 4354 | |
81ecdfbb RW |
4355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4356 | fi # test -n "$CONFIG_FILES" | |
c906108c | 4357 | |
c906108c | 4358 | |
81ecdfbb RW |
4359 | eval set X " :F $CONFIG_FILES " |
4360 | shift | |
4361 | for ac_tag | |
4362 | do | |
4363 | case $ac_tag in | |
4364 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4365 | esac | |
4366 | case $ac_mode$ac_tag in | |
4367 | :[FHL]*:*);; | |
4368 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4369 | :[FH]-) ac_tag=-:-;; | |
4370 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4371 | esac | |
4372 | ac_save_IFS=$IFS | |
4373 | IFS=: | |
4374 | set x $ac_tag | |
4375 | IFS=$ac_save_IFS | |
4376 | shift | |
4377 | ac_file=$1 | |
4378 | shift | |
bec39cab | 4379 | |
81ecdfbb RW |
4380 | case $ac_mode in |
4381 | :L) ac_source=$1;; | |
4382 | :[FH]) | |
4383 | ac_file_inputs= | |
4384 | for ac_f | |
4385 | do | |
4386 | case $ac_f in | |
4387 | -) ac_f="$tmp/stdin";; | |
4388 | *) # Look for the file first in the build tree, then in the source tree | |
4389 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
4390 | # because $ac_f cannot contain `:'. | |
4391 | test -f "$ac_f" || | |
4392 | case $ac_f in | |
4393 | [\\/$]*) false;; | |
4394 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4395 | esac || | |
4396 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
4397 | esac | |
4398 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
4399 | as_fn_append ac_file_inputs " '$ac_f'" | |
4400 | done | |
4401 | ||
4402 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4403 | # use $as_me), people would be surprised to read: | |
4404 | # /* config.h. Generated by config.status. */ | |
4405 | configure_input='Generated from '` | |
4406 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
4407 | `' by configure.' | |
4408 | if test x"$ac_file" != x-; then | |
4409 | configure_input="$ac_file. $configure_input" | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
4411 | $as_echo "$as_me: creating $ac_file" >&6;} | |
bec39cab | 4412 | fi |
81ecdfbb RW |
4413 | # Neutralize special characters interpreted by sed in replacement strings. |
4414 | case $configure_input in #( | |
4415 | *\&* | *\|* | *\\* ) | |
4416 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
4417 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
4418 | *) ac_sed_conf_input=$configure_input;; | |
4419 | esac | |
c906108c | 4420 | |
81ecdfbb RW |
4421 | case $ac_tag in |
4422 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
4423 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
4424 | esac | |
4425 | ;; | |
bec39cab AC |
4426 | esac |
4427 | ||
81ecdfbb | 4428 | ac_dir=`$as_dirname -- "$ac_file" || |
bec39cab AC |
4429 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4430 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4431 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
4432 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
4433 | $as_echo X"$ac_file" | | |
4434 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4435 | s//\1/ | |
4436 | q | |
4437 | } | |
4438 | /^X\(\/\/\)[^/].*/{ | |
4439 | s//\1/ | |
4440 | q | |
4441 | } | |
4442 | /^X\(\/\/\)$/{ | |
4443 | s//\1/ | |
4444 | q | |
4445 | } | |
4446 | /^X\(\/\).*/{ | |
4447 | s//\1/ | |
4448 | q | |
4449 | } | |
4450 | s/.*/./; q'` | |
4451 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bec39cab AC |
4452 | ac_builddir=. |
4453 | ||
81ecdfbb RW |
4454 | case "$ac_dir" in |
4455 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4456 | *) | |
4457 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4458 | # A ".." for each directory in $ac_dir_suffix. | |
4459 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4460 | case $ac_top_builddir_sub in | |
4461 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4462 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4463 | esac ;; | |
4464 | esac | |
4465 | ac_abs_top_builddir=$ac_pwd | |
4466 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4467 | # for backward compatibility: | |
4468 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
4469 | |
4470 | case $srcdir in | |
81ecdfbb | 4471 | .) # We are building in place. |
bec39cab | 4472 | ac_srcdir=. |
81ecdfbb RW |
4473 | ac_top_srcdir=$ac_top_builddir_sub |
4474 | ac_abs_top_srcdir=$ac_pwd ;; | |
4475 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 4476 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
4477 | ac_top_srcdir=$srcdir |
4478 | ac_abs_top_srcdir=$srcdir ;; | |
4479 | *) # Relative name. | |
4480 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
4481 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
4482 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 4483 | esac |
81ecdfbb | 4484 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 4485 | |
bec39cab | 4486 | |
81ecdfbb RW |
4487 | case $ac_mode in |
4488 | :F) | |
4489 | # | |
4490 | # CONFIG_FILE | |
4491 | # | |
bec39cab | 4492 | |
81ecdfbb | 4493 | _ACEOF |
bec39cab | 4494 | |
81ecdfbb RW |
4495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4496 | # If the template does not know about datarootdir, expand it. | |
4497 | # FIXME: This hack should be removed a few years after 2.60. | |
4498 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
4499 | ac_sed_dataroot=' | |
4500 | /datarootdir/ { | |
4501 | p | |
4502 | q | |
4503 | } | |
4504 | /@datadir@/p | |
4505 | /@docdir@/p | |
4506 | /@infodir@/p | |
4507 | /@localedir@/p | |
4508 | /@mandir@/p' | |
4509 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
4510 | *datarootdir*) ac_datarootdir_seen=yes;; | |
4511 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4513 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
bec39cab | 4514 | _ACEOF |
81ecdfbb RW |
4515 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4516 | ac_datarootdir_hack=' | |
4517 | s&@datadir@&$datadir&g | |
4518 | s&@docdir@&$docdir&g | |
4519 | s&@infodir@&$infodir&g | |
4520 | s&@localedir@&$localedir&g | |
4521 | s&@mandir@&$mandir&g | |
4522 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
4523 | esac | |
4524 | _ACEOF | |
4525 | ||
4526 | # Neutralize VPATH when `$srcdir' = `.'. | |
4527 | # Shell code in configure.ac might set extrasub. | |
4528 | # FIXME: do we really want to maintain this feature? | |
4529 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4530 | ac_sed_extra="$ac_vpsub | |
bec39cab AC |
4531 | $extrasub |
4532 | _ACEOF | |
81ecdfbb | 4533 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab AC |
4534 | :t |
4535 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
4536 | s|@configure_input@|$ac_sed_conf_input|;t t |
4537 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4538 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
4539 | s&@srcdir@&$ac_srcdir&;t t | |
4540 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4541 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
4542 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
4543 | s&@builddir@&$ac_builddir&;t t | |
4544 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
4545 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
4546 | $ac_datarootdir_hack | |
4547 | " | |
4548 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
4549 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4550 | ||
4551 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4552 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
4553 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
4554 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4555 | which seems to be undefined. Please make sure it is defined." >&5 | |
4556 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4557 | which seems to be undefined. Please make sure it is defined." >&2;} | |
4558 | ||
4559 | rm -f "$tmp/stdin" | |
4560 | case $ac_file in | |
4561 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
4562 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
4563 | esac \ | |
4564 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4565 | ;; | |
4566 | ||
bec39cab | 4567 | |
bec39cab | 4568 | |
81ecdfbb RW |
4569 | esac |
4570 | ||
4571 | done # for ac_tag | |
4572 | ||
bec39cab | 4573 | |
81ecdfbb | 4574 | as_fn_exit 0 |
bec39cab | 4575 | _ACEOF |
bec39cab AC |
4576 | ac_clean_files=$ac_clean_files_save |
4577 | ||
81ecdfbb RW |
4578 | test $ac_write_fail = 0 || |
4579 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
4580 | ||
bec39cab AC |
4581 | |
4582 | # configure is writing to config.log, and then calls config.status. | |
4583 | # config.status does its own redirection, appending to config.log. | |
4584 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4585 | # by configure, so config.status won't be able to write to it; its | |
4586 | # output is simply discarded. So we exec the FD to /dev/null, | |
4587 | # effectively closing config.log, so it can be properly (re)opened and | |
4588 | # appended to by config.status. When coming back to configure, we | |
4589 | # need to make the FD available again. | |
4590 | if test "$no_create" != yes; then | |
4591 | ac_cs_success=: | |
4592 | ac_config_status_args= | |
4593 | test "$silent" = yes && | |
4594 | ac_config_status_args="$ac_config_status_args --quiet" | |
4595 | exec 5>/dev/null | |
4596 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4597 | exec 5>>config.log | |
4598 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4599 | # would make configure fail if this is the last instruction. | |
81ecdfbb | 4600 | $ac_cs_success || as_fn_exit $? |
bec39cab | 4601 | fi |
81ecdfbb RW |
4602 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
4604 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4605 | fi | |
c906108c | 4606 |