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