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