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