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