Commit | Line | Data |
---|---|---|
d6e9fb05 | 1 | #! /bin/sh |
d6e9fb05 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
d6e9fb05 JK |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
bec39cab | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
bec39cab | 31 | fi |
bec39cab | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
bec39cab | 50 | else |
81ecdfbb RW |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
bec39cab AC |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
bec39cab AC |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
bec39cab | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
bec39cab | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
bec39cab | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
bec39cab | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
bec39cab | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
bec39cab | 410 | |
dae5f5cf DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b80864fb | 417 | |
bec39cab | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
bec39cab | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
bec39cab | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bec39cab | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
bec39cab | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
bec39cab AC |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
bec39cab AC |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
bec39cab AC |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
dae5f5cf | 483 | fi |
bec39cab AC |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
bec39cab AC |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
d6e9fb05 | 496 | |
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
bec39cab AC |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
bec39cab AC |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
bec39cab AC |
534 | # |
535 | # Initializations. | |
536 | # | |
d6e9fb05 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
bec39cab | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
bec39cab AC |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
dae5f5cf | 545 | |
bec39cab AC |
546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
bec39cab AC |
553 | |
554 | ac_unique_file="server.c" | |
555 | # Factoring default headers for most tests. | |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
bec39cab AC |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
bec39cab AC |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
bec39cab AC |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
bec39cab AC |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
bec39cab AC |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
bec39cab AC |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
bec39cab | 582 | # include <inttypes.h> |
bec39cab | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
bec39cab AC |
588 | # include <unistd.h> |
589 | #endif" | |
590 | ||
c971b7fa | 591 | ac_subst_vars='LTLIBOBJS |
c9a1864a | 592 | GNULIB_STDINT_H |
fa593d66 PA |
593 | extra_libraries |
594 | IPA_DEPFILES | |
81ecdfbb RW |
595 | srv_xmlfiles |
596 | srv_xmlbuiltin | |
597 | USE_THREAD_DB | |
598 | GDBSERVER_LIBS | |
599 | GDBSERVER_DEPFILES | |
600 | RDYNAMIC | |
601 | REPORT_BUGS_TEXI | |
602 | REPORT_BUGS_TO | |
603 | PKGVERSION | |
d4596a3d PA |
604 | WERROR_CFLAGS |
605 | WARN_CFLAGS | |
0fb4aa4b PA |
606 | ustinc |
607 | ustlibs | |
81ecdfbb | 608 | LIBOBJS |
61c125b9 TT |
609 | SET_MAKE |
610 | GMAKE_FALSE | |
611 | GMAKE_TRUE | |
c9a1864a | 612 | MAKE |
61c125b9 TT |
613 | CCDEPMODE |
614 | DEPDIR | |
615 | am__leading_dot | |
a1723c35 | 616 | ALLOCA |
c971b7fa | 617 | RANLIB |
81ecdfbb RW |
618 | INSTALL_DATA |
619 | INSTALL_SCRIPT | |
620 | INSTALL_PROGRAM | |
621 | target_os | |
622 | target_vendor | |
623 | target_cpu | |
624 | target | |
625 | host_os | |
626 | host_vendor | |
627 | host_cpu | |
628 | host | |
629 | build_os | |
630 | build_vendor | |
631 | build_cpu | |
632 | build | |
770d76d7 PA |
633 | EGREP |
634 | GREP | |
635 | CPP | |
81ecdfbb RW |
636 | OBJEXT |
637 | EXEEXT | |
638 | ac_ct_CC | |
639 | CPPFLAGS | |
640 | LDFLAGS | |
641 | CFLAGS | |
642 | CC | |
c9a1864a YQ |
643 | MAINT |
644 | MAINTAINER_MODE_FALSE | |
645 | MAINTAINER_MODE_TRUE | |
81ecdfbb RW |
646 | target_alias |
647 | host_alias | |
648 | build_alias | |
649 | LIBS | |
650 | ECHO_T | |
651 | ECHO_N | |
652 | ECHO_C | |
653 | DEFS | |
654 | mandir | |
655 | localedir | |
656 | libdir | |
657 | psdir | |
658 | pdfdir | |
659 | dvidir | |
660 | htmldir | |
661 | infodir | |
662 | docdir | |
663 | oldincludedir | |
664 | includedir | |
665 | localstatedir | |
666 | sharedstatedir | |
667 | sysconfdir | |
668 | datadir | |
669 | datarootdir | |
670 | libexecdir | |
671 | sbindir | |
672 | bindir | |
673 | program_transform_name | |
674 | prefix | |
675 | exec_prefix | |
676 | PACKAGE_URL | |
677 | PACKAGE_BUGREPORT | |
678 | PACKAGE_STRING | |
679 | PACKAGE_VERSION | |
680 | PACKAGE_TARNAME | |
681 | PACKAGE_NAME | |
682 | PATH_SEPARATOR | |
683 | SHELL' | |
bec39cab | 684 | ac_subst_files='' |
81ecdfbb RW |
685 | ac_user_opts=' |
686 | enable_option_checking | |
c9a1864a | 687 | enable_maintainer_mode |
589bc927 | 688 | enable_largefile |
0fb4aa4b PA |
689 | with_ust |
690 | with_ust_include | |
691 | with_ust_lib | |
d4596a3d | 692 | enable_werror |
81ecdfbb RW |
693 | with_pkgversion |
694 | with_bugurl | |
96f15937 | 695 | with_libthread_db |
c2a66c29 | 696 | enable_inprocess_agent |
81ecdfbb RW |
697 | ' |
698 | ac_precious_vars='build_alias | |
699 | host_alias | |
700 | target_alias | |
701 | CC | |
702 | CFLAGS | |
703 | LDFLAGS | |
704 | LIBS | |
705 | CPPFLAGS | |
706 | CPP' | |
707 | ||
d6e9fb05 JK |
708 | |
709 | # Initialize some variables set by options. | |
bec39cab AC |
710 | ac_init_help= |
711 | ac_init_version=false | |
81ecdfbb RW |
712 | ac_unrecognized_opts= |
713 | ac_unrecognized_sep= | |
d6e9fb05 JK |
714 | # The variables have the same names as the options, with |
715 | # dashes changed to underlines. | |
bec39cab | 716 | cache_file=/dev/null |
d6e9fb05 | 717 | exec_prefix=NONE |
d6e9fb05 | 718 | no_create= |
d6e9fb05 JK |
719 | no_recursion= |
720 | prefix=NONE | |
721 | program_prefix=NONE | |
722 | program_suffix=NONE | |
723 | program_transform_name=s,x,x, | |
724 | silent= | |
725 | site= | |
726 | srcdir= | |
d6e9fb05 JK |
727 | verbose= |
728 | x_includes=NONE | |
729 | x_libraries=NONE | |
bec39cab AC |
730 | |
731 | # Installation directory options. | |
732 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
733 | # and all the variables that are supposed to be based on exec_prefix | |
734 | # by default will actually change. | |
735 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 736 | # (The list follows the same order as the GNU Coding Standards.) |
d6e9fb05 JK |
737 | bindir='${exec_prefix}/bin' |
738 | sbindir='${exec_prefix}/sbin' | |
739 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
740 | datarootdir='${prefix}/share' |
741 | datadir='${datarootdir}' | |
d6e9fb05 JK |
742 | sysconfdir='${prefix}/etc' |
743 | sharedstatedir='${prefix}/com' | |
744 | localstatedir='${prefix}/var' | |
d6e9fb05 JK |
745 | includedir='${prefix}/include' |
746 | oldincludedir='/usr/include' | |
81ecdfbb RW |
747 | docdir='${datarootdir}/doc/${PACKAGE}' |
748 | infodir='${datarootdir}/info' | |
749 | htmldir='${docdir}' | |
750 | dvidir='${docdir}' | |
751 | pdfdir='${docdir}' | |
752 | psdir='${docdir}' | |
753 | libdir='${exec_prefix}/lib' | |
754 | localedir='${datarootdir}/locale' | |
755 | mandir='${datarootdir}/man' | |
d6e9fb05 | 756 | |
d6e9fb05 | 757 | ac_prev= |
81ecdfbb | 758 | ac_dashdash= |
d6e9fb05 JK |
759 | for ac_option |
760 | do | |
d6e9fb05 JK |
761 | # If the previous option needs an argument, assign it. |
762 | if test -n "$ac_prev"; then | |
81ecdfbb | 763 | eval $ac_prev=\$ac_option |
d6e9fb05 JK |
764 | ac_prev= |
765 | continue | |
766 | fi | |
767 | ||
81ecdfbb RW |
768 | case $ac_option in |
769 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
770 | *) ac_optarg=yes ;; | |
771 | esac | |
d6e9fb05 JK |
772 | |
773 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
774 | ||
81ecdfbb RW |
775 | case $ac_dashdash$ac_option in |
776 | --) | |
777 | ac_dashdash=yes ;; | |
d6e9fb05 JK |
778 | |
779 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
780 | ac_prev=bindir ;; | |
781 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 782 | bindir=$ac_optarg ;; |
d6e9fb05 JK |
783 | |
784 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 785 | ac_prev=build_alias ;; |
d6e9fb05 | 786 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 787 | build_alias=$ac_optarg ;; |
d6e9fb05 JK |
788 | |
789 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
790 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
791 | ac_prev=cache_file ;; | |
792 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
793 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
794 | cache_file=$ac_optarg ;; |
795 | ||
796 | --config-cache | -C) | |
797 | cache_file=config.cache ;; | |
d6e9fb05 | 798 | |
81ecdfbb | 799 | -datadir | --datadir | --datadi | --datad) |
d6e9fb05 | 800 | ac_prev=datadir ;; |
81ecdfbb | 801 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bec39cab | 802 | datadir=$ac_optarg ;; |
d6e9fb05 | 803 | |
81ecdfbb RW |
804 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
805 | | --dataroo | --dataro | --datar) | |
806 | ac_prev=datarootdir ;; | |
807 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
808 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
809 | datarootdir=$ac_optarg ;; | |
810 | ||
d6e9fb05 | 811 | -disable-* | --disable-*) |
81ecdfbb | 812 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d6e9fb05 | 813 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
814 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
815 | as_fn_error "invalid feature name: $ac_useropt" | |
816 | ac_useropt_orig=$ac_useropt | |
817 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
818 | case $ac_user_opts in | |
819 | *" | |
820 | "enable_$ac_useropt" | |
821 | "*) ;; | |
822 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
823 | ac_unrecognized_sep=', ';; | |
824 | esac | |
825 | eval enable_$ac_useropt=no ;; | |
826 | ||
827 | -docdir | --docdir | --docdi | --doc | --do) | |
828 | ac_prev=docdir ;; | |
829 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
830 | docdir=$ac_optarg ;; | |
831 | ||
832 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
833 | ac_prev=dvidir ;; | |
834 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
835 | dvidir=$ac_optarg ;; | |
d6e9fb05 JK |
836 | |
837 | -enable-* | --enable-*) | |
81ecdfbb | 838 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d6e9fb05 | 839 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
840 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
841 | as_fn_error "invalid feature name: $ac_useropt" | |
842 | ac_useropt_orig=$ac_useropt | |
843 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
844 | case $ac_user_opts in | |
845 | *" | |
846 | "enable_$ac_useropt" | |
847 | "*) ;; | |
848 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
849 | ac_unrecognized_sep=', ';; | |
dae5f5cf | 850 | esac |
81ecdfbb | 851 | eval enable_$ac_useropt=\$ac_optarg ;; |
d6e9fb05 JK |
852 | |
853 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
854 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
855 | | --exec | --exe | --ex) | |
856 | ac_prev=exec_prefix ;; | |
857 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
858 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
859 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 860 | exec_prefix=$ac_optarg ;; |
d6e9fb05 JK |
861 | |
862 | -gas | --gas | --ga | --g) | |
863 | # Obsolete; use --with-gas. | |
864 | with_gas=yes ;; | |
865 | ||
bec39cab AC |
866 | -help | --help | --hel | --he | -h) |
867 | ac_init_help=long ;; | |
868 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
869 | ac_init_help=recursive ;; | |
870 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
871 | ac_init_help=short ;; | |
d6e9fb05 JK |
872 | |
873 | -host | --host | --hos | --ho) | |
bec39cab | 874 | ac_prev=host_alias ;; |
d6e9fb05 | 875 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 876 | host_alias=$ac_optarg ;; |
d6e9fb05 | 877 | |
81ecdfbb RW |
878 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
879 | ac_prev=htmldir ;; | |
880 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
881 | | --ht=*) | |
882 | htmldir=$ac_optarg ;; | |
883 | ||
d6e9fb05 JK |
884 | -includedir | --includedir | --includedi | --included | --include \ |
885 | | --includ | --inclu | --incl | --inc) | |
886 | ac_prev=includedir ;; | |
887 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
888 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 889 | includedir=$ac_optarg ;; |
d6e9fb05 JK |
890 | |
891 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
892 | ac_prev=infodir ;; | |
893 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 894 | infodir=$ac_optarg ;; |
d6e9fb05 JK |
895 | |
896 | -libdir | --libdir | --libdi | --libd) | |
897 | ac_prev=libdir ;; | |
898 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 899 | libdir=$ac_optarg ;; |
d6e9fb05 JK |
900 | |
901 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
902 | | --libexe | --libex | --libe) | |
903 | ac_prev=libexecdir ;; | |
904 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
905 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 906 | libexecdir=$ac_optarg ;; |
d6e9fb05 | 907 | |
81ecdfbb RW |
908 | -localedir | --localedir | --localedi | --localed | --locale) |
909 | ac_prev=localedir ;; | |
910 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
911 | localedir=$ac_optarg ;; | |
912 | ||
d6e9fb05 | 913 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 914 | | --localstate | --localstat | --localsta | --localst | --locals) |
d6e9fb05 JK |
915 | ac_prev=localstatedir ;; |
916 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 917 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bec39cab | 918 | localstatedir=$ac_optarg ;; |
d6e9fb05 JK |
919 | |
920 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
921 | ac_prev=mandir ;; | |
922 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 923 | mandir=$ac_optarg ;; |
d6e9fb05 JK |
924 | |
925 | -nfp | --nfp | --nf) | |
926 | # Obsolete; use --without-fp. | |
927 | with_fp=no ;; | |
928 | ||
929 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 930 | | --no-cr | --no-c | -n) |
d6e9fb05 JK |
931 | no_create=yes ;; |
932 | ||
933 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
934 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
935 | no_recursion=yes ;; | |
936 | ||
937 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
938 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
939 | | --oldin | --oldi | --old | --ol | --o) | |
940 | ac_prev=oldincludedir ;; | |
941 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
942 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
943 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 944 | oldincludedir=$ac_optarg ;; |
d6e9fb05 JK |
945 | |
946 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
947 | ac_prev=prefix ;; | |
948 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 949 | prefix=$ac_optarg ;; |
d6e9fb05 JK |
950 | |
951 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
952 | | --program-pre | --program-pr | --program-p) | |
953 | ac_prev=program_prefix ;; | |
954 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
955 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 956 | program_prefix=$ac_optarg ;; |
d6e9fb05 JK |
957 | |
958 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
959 | | --program-suf | --program-su | --program-s) | |
960 | ac_prev=program_suffix ;; | |
961 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
962 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 963 | program_suffix=$ac_optarg ;; |
d6e9fb05 JK |
964 | |
965 | -program-transform-name | --program-transform-name \ | |
966 | | --program-transform-nam | --program-transform-na \ | |
967 | | --program-transform-n | --program-transform- \ | |
968 | | --program-transform | --program-transfor \ | |
969 | | --program-transfo | --program-transf \ | |
970 | | --program-trans | --program-tran \ | |
971 | | --progr-tra | --program-tr | --program-t) | |
972 | ac_prev=program_transform_name ;; | |
973 | -program-transform-name=* | --program-transform-name=* \ | |
974 | | --program-transform-nam=* | --program-transform-na=* \ | |
975 | | --program-transform-n=* | --program-transform-=* \ | |
976 | | --program-transform=* | --program-transfor=* \ | |
977 | | --program-transfo=* | --program-transf=* \ | |
978 | | --program-trans=* | --program-tran=* \ | |
979 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 980 | program_transform_name=$ac_optarg ;; |
d6e9fb05 | 981 | |
81ecdfbb RW |
982 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
983 | ac_prev=pdfdir ;; | |
984 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
985 | pdfdir=$ac_optarg ;; | |
986 | ||
987 | -psdir | --psdir | --psdi | --psd | --ps) | |
988 | ac_prev=psdir ;; | |
989 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
990 | psdir=$ac_optarg ;; | |
991 | ||
d6e9fb05 JK |
992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | | -silent | --silent | --silen | --sile | --sil) | |
994 | silent=yes ;; | |
995 | ||
996 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
997 | ac_prev=sbindir ;; | |
998 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
999 | | --sbi=* | --sb=*) | |
bec39cab | 1000 | sbindir=$ac_optarg ;; |
d6e9fb05 JK |
1001 | |
1002 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1003 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1004 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1005 | | --sha | --sh) | |
1006 | ac_prev=sharedstatedir ;; | |
1007 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1008 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1009 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1010 | | --sha=* | --sh=*) | |
bec39cab | 1011 | sharedstatedir=$ac_optarg ;; |
d6e9fb05 JK |
1012 | |
1013 | -site | --site | --sit) | |
1014 | ac_prev=site ;; | |
1015 | -site=* | --site=* | --sit=*) | |
bec39cab | 1016 | site=$ac_optarg ;; |
434c4c77 | 1017 | |
d6e9fb05 JK |
1018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1019 | ac_prev=srcdir ;; | |
1020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 1021 | srcdir=$ac_optarg ;; |
d6e9fb05 JK |
1022 | |
1023 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1024 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1025 | ac_prev=sysconfdir ;; | |
1026 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1027 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 1028 | sysconfdir=$ac_optarg ;; |
d6e9fb05 JK |
1029 | |
1030 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 1031 | ac_prev=target_alias ;; |
d6e9fb05 | 1032 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 1033 | target_alias=$ac_optarg ;; |
d6e9fb05 JK |
1034 | |
1035 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1036 | verbose=yes ;; | |
1037 | ||
bec39cab AC |
1038 | -version | --version | --versio | --versi | --vers | -V) |
1039 | ac_init_version=: ;; | |
d6e9fb05 JK |
1040 | |
1041 | -with-* | --with-*) | |
81ecdfbb | 1042 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d6e9fb05 | 1043 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1044 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1045 | as_fn_error "invalid package name: $ac_useropt" | |
1046 | ac_useropt_orig=$ac_useropt | |
1047 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1048 | case $ac_user_opts in | |
1049 | *" | |
1050 | "with_$ac_useropt" | |
1051 | "*) ;; | |
1052 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1053 | ac_unrecognized_sep=', ';; | |
dae5f5cf | 1054 | esac |
81ecdfbb | 1055 | eval with_$ac_useropt=\$ac_optarg ;; |
d6e9fb05 JK |
1056 | |
1057 | -without-* | --without-*) | |
81ecdfbb | 1058 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d6e9fb05 | 1059 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1060 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1061 | as_fn_error "invalid package name: $ac_useropt" | |
1062 | ac_useropt_orig=$ac_useropt | |
1063 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1064 | case $ac_user_opts in | |
1065 | *" | |
1066 | "with_$ac_useropt" | |
1067 | "*) ;; | |
1068 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1069 | ac_unrecognized_sep=', ';; | |
1070 | esac | |
1071 | eval with_$ac_useropt=no ;; | |
d6e9fb05 JK |
1072 | |
1073 | --x) | |
1074 | # Obsolete; use --with-x. | |
1075 | with_x=yes ;; | |
1076 | ||
1077 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1078 | | --x-incl | --x-inc | --x-in | --x-i) | |
1079 | ac_prev=x_includes ;; | |
1080 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1081 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 1082 | x_includes=$ac_optarg ;; |
d6e9fb05 JK |
1083 | |
1084 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1085 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1086 | ac_prev=x_libraries ;; | |
1087 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1088 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 1089 | x_libraries=$ac_optarg ;; |
d6e9fb05 | 1090 | |
81ecdfbb RW |
1091 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1092 | Try \`$0 --help' for more information." | |
d6e9fb05 JK |
1093 | ;; |
1094 | ||
bec39cab AC |
1095 | *=*) |
1096 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1097 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1098 | case $ac_envvar in #( |
1099 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1100 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1101 | esac | |
1102 | eval $ac_envvar=\$ac_optarg | |
bec39cab AC |
1103 | export $ac_envvar ;; |
1104 | ||
d6e9fb05 | 1105 | *) |
bec39cab | 1106 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1107 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bec39cab | 1108 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1109 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bec39cab | 1110 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
d6e9fb05 JK |
1111 | ;; |
1112 | ||
1113 | esac | |
1114 | done | |
1115 | ||
1116 | if test -n "$ac_prev"; then | |
bec39cab | 1117 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1118 | as_fn_error "missing argument to $ac_option" |
d6e9fb05 | 1119 | fi |
d6e9fb05 | 1120 | |
81ecdfbb RW |
1121 | if test -n "$ac_unrecognized_opts"; then |
1122 | case $enable_option_checking in | |
1123 | no) ;; | |
1124 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1125 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
dae5f5cf | 1126 | esac |
81ecdfbb | 1127 | fi |
dae5f5cf | 1128 | |
81ecdfbb RW |
1129 | # Check all directory arguments for consistency. |
1130 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1131 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1132 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1133 | libdir localedir mandir | |
dae5f5cf | 1134 | do |
81ecdfbb RW |
1135 | eval ac_val=\$$ac_var |
1136 | # Remove trailing slashes. | |
1137 | case $ac_val in | |
1138 | */ ) | |
1139 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1140 | eval $ac_var=\$ac_val;; | |
1141 | esac | |
1142 | # Be sure to have absolute directory names. | |
dae5f5cf | 1143 | case $ac_val in |
81ecdfbb RW |
1144 | [\\/$]* | ?:[\\/]* ) continue;; |
1145 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d6e9fb05 | 1146 | esac |
81ecdfbb | 1147 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
d6e9fb05 JK |
1148 | done |
1149 | ||
bec39cab AC |
1150 | # There might be people who depend on the old broken behavior: `$host' |
1151 | # used to hold the argument of --host etc. | |
1152 | # FIXME: To remove some day. | |
1153 | build=$build_alias | |
1154 | host=$host_alias | |
1155 | target=$target_alias | |
1156 | ||
1157 | # FIXME: To remove some day. | |
1158 | if test "x$host_alias" != x; then | |
1159 | if test "x$build_alias" = x; then | |
1160 | cross_compiling=maybe | |
81ecdfbb | 1161 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bec39cab AC |
1162 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1163 | elif test "x$build_alias" != "x$host_alias"; then | |
1164 | cross_compiling=yes | |
1165 | fi | |
1166 | fi | |
d6e9fb05 | 1167 | |
bec39cab AC |
1168 | ac_tool_prefix= |
1169 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1170 | ||
1171 | test "$silent" = yes && exec 6>/dev/null | |
d6e9fb05 | 1172 | |
d6e9fb05 | 1173 | |
81ecdfbb RW |
1174 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1175 | ac_ls_di=`ls -di .` && | |
1176 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1177 | as_fn_error "working directory cannot be determined" | |
1178 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1179 | as_fn_error "pwd does not report name of working directory" | |
1180 | ||
1181 | ||
d6e9fb05 JK |
1182 | # Find the source files, if location was not specified. |
1183 | if test -z "$srcdir"; then | |
1184 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1185 | # Try the directory containing this script, then the parent directory. |
1186 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1187 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1188 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1189 | X"$as_myself" : 'X\(//\)$' \| \ | |
1190 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1191 | $as_echo X"$as_myself" | | |
1192 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1193 | s//\1/ | |
1194 | q | |
1195 | } | |
1196 | /^X\(\/\/\)[^/].*/{ | |
1197 | s//\1/ | |
1198 | q | |
1199 | } | |
1200 | /^X\(\/\/\)$/{ | |
1201 | s//\1/ | |
1202 | q | |
1203 | } | |
1204 | /^X\(\/\).*/{ | |
1205 | s//\1/ | |
1206 | q | |
1207 | } | |
1208 | s/.*/./; q'` | |
d6e9fb05 | 1209 | srcdir=$ac_confdir |
81ecdfbb | 1210 | if test ! -r "$srcdir/$ac_unique_file"; then |
d6e9fb05 JK |
1211 | srcdir=.. |
1212 | fi | |
1213 | else | |
1214 | ac_srcdir_defaulted=no | |
1215 | fi | |
81ecdfbb RW |
1216 | if test ! -r "$srcdir/$ac_unique_file"; then |
1217 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1218 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1219 | fi | |
1220 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1221 | ac_abs_confdir=`( | |
1222 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1223 | pwd)` | |
1224 | # When building in place, set srcdir=. | |
1225 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1226 | srcdir=. | |
1227 | fi | |
1228 | # Remove unnecessary trailing slashes from srcdir. | |
1229 | # Double slashes in file names in object file debugging info | |
1230 | # mess up M-x gdb in Emacs. | |
1231 | case $srcdir in | |
1232 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1233 | esac | |
1234 | for ac_var in $ac_precious_vars; do | |
1235 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1236 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1237 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1238 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1239 | done | |
d6e9fb05 | 1240 | |
bec39cab AC |
1241 | # |
1242 | # Report the --help message. | |
1243 | # | |
1244 | if test "$ac_init_help" = "long"; then | |
1245 | # Omit some internal or obsolete options to make the list less imposing. | |
1246 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1247 | cat <<_ACEOF | |
1248 | \`configure' configures this package to adapt to many kinds of systems. | |
1249 | ||
1250 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1251 | ||
1252 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1253 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1254 | ||
1255 | Defaults for the options are specified in brackets. | |
1256 | ||
1257 | Configuration: | |
1258 | -h, --help display this help and exit | |
1259 | --help=short display options specific to this package | |
1260 | --help=recursive display the short help of all the included packages | |
1261 | -V, --version display version information and exit | |
1262 | -q, --quiet, --silent do not print \`checking...' messages | |
1263 | --cache-file=FILE cache test results in FILE [disabled] | |
1264 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1265 | -n, --no-create do not create output files | |
1266 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1267 | ||
bec39cab AC |
1268 | Installation directories: |
1269 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1270 | [$ac_default_prefix] |
bec39cab | 1271 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1272 | [PREFIX] |
bec39cab AC |
1273 | |
1274 | By default, \`make install' will install all the files in | |
1275 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1276 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1277 | for instance \`--prefix=\$HOME'. | |
1278 | ||
1279 | For better control, use the options below. | |
1280 | ||
1281 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1282 | --bindir=DIR user executables [EPREFIX/bin] |
1283 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1284 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1285 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1286 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1287 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1288 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1289 | --includedir=DIR C header files [PREFIX/include] | |
1290 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1291 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1292 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1293 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1294 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1295 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1296 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1297 | --htmldir=DIR html documentation [DOCDIR] | |
1298 | --dvidir=DIR dvi documentation [DOCDIR] | |
1299 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1300 | --psdir=DIR ps documentation [DOCDIR] | |
bec39cab AC |
1301 | _ACEOF |
1302 | ||
1303 | cat <<\_ACEOF | |
1304 | ||
dcdb98d2 DJ |
1305 | Program names: |
1306 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1307 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1308 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1309 | ||
bec39cab AC |
1310 | System types: |
1311 | --build=BUILD configure for building on BUILD [guessed] | |
1312 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1313 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1314 | _ACEOF | |
1315 | fi | |
1316 | ||
1317 | if test -n "$ac_init_help"; then | |
1318 | ||
1319 | cat <<\_ACEOF | |
1320 | ||
d4596a3d PA |
1321 | Optional Features: |
1322 | --disable-option-checking ignore unrecognized --enable/--with options | |
1323 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1324 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c9a1864a YQ |
1325 | --enable-maintainer-mode enable make rules and dependencies not useful |
1326 | (and sometimes confusing) to the casual installer | |
589bc927 | 1327 | --disable-largefile omit support for large files |
d4596a3d | 1328 | --enable-werror treat compile warnings as errors |
c2a66c29 NS |
1329 | --enable-inprocess-agent |
1330 | inprocess agent | |
d4596a3d | 1331 | |
c16158bc JM |
1332 | Optional Packages: |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
0fb4aa4b PA |
1335 | --with-ust=PATH Specify prefix directory for the installed UST package |
1336 | Equivalent to --with-ust-include=PATH/include | |
1337 | plus --with-ust-lib=PATH/lib | |
1338 | --with-ust-include=PATH Specify directory for installed UST include files | |
1339 | --with-ust-lib=PATH Specify the directory for the installed UST library | |
c16158bc JM |
1340 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
1341 | --with-bugurl=URL Direct users to URL to report a bug | |
96f15937 PP |
1342 | --with-libthread-db=PATH |
1343 | use given libthread_db directly | |
c16158bc | 1344 | |
bec39cab AC |
1345 | Some influential environment variables: |
1346 | CC C compiler command | |
1347 | CFLAGS C compiler flags | |
1348 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1349 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1350 | LIBS libraries to pass to the linker, e.g. -l<library> |
1351 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1352 | you have headers in a nonstandard directory <include dir> | |
bec39cab AC |
1353 | CPP C preprocessor |
1354 | ||
1355 | Use these variables to override the choices made by `configure' or to help | |
1356 | it to find libraries and programs with nonstandard names/locations. | |
1357 | ||
81ecdfbb | 1358 | Report bugs to the package provider. |
bec39cab | 1359 | _ACEOF |
81ecdfbb | 1360 | ac_status=$? |
bec39cab AC |
1361 | fi |
1362 | ||
1363 | if test "$ac_init_help" = "recursive"; then | |
1364 | # If there are subdirs, report their specific --help. | |
bec39cab | 1365 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1366 | test -d "$ac_dir" || |
1367 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1368 | continue | |
bec39cab AC |
1369 | ac_builddir=. |
1370 | ||
81ecdfbb RW |
1371 | case "$ac_dir" in |
1372 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1373 | *) | |
1374 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1375 | # A ".." for each directory in $ac_dir_suffix. | |
1376 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1377 | case $ac_top_builddir_sub in | |
1378 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1379 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1380 | esac ;; | |
1381 | esac | |
1382 | ac_abs_top_builddir=$ac_pwd | |
1383 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1384 | # for backward compatibility: | |
1385 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
1386 | |
1387 | case $srcdir in | |
81ecdfbb | 1388 | .) # We are building in place. |
bec39cab | 1389 | ac_srcdir=. |
81ecdfbb RW |
1390 | ac_top_srcdir=$ac_top_builddir_sub |
1391 | ac_abs_top_srcdir=$ac_pwd ;; | |
1392 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 1393 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1394 | ac_top_srcdir=$srcdir |
1395 | ac_abs_top_srcdir=$srcdir ;; | |
1396 | *) # Relative name. | |
1397 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1398 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1399 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
dae5f5cf | 1400 | esac |
81ecdfbb RW |
1401 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1402 | ||
1403 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1404 | # Check for guested configure. | |
1405 | if test -f "$ac_srcdir/configure.gnu"; then | |
1406 | echo && | |
1407 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1408 | elif test -f "$ac_srcdir/configure"; then | |
1409 | echo && | |
1410 | $SHELL "$ac_srcdir/configure" --help=recursive | |
434c4c77 | 1411 | else |
81ecdfbb RW |
1412 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1413 | fi || ac_status=$? | |
1414 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bec39cab AC |
1415 | done |
1416 | fi | |
1417 | ||
81ecdfbb | 1418 | test -n "$ac_init_help" && exit $ac_status |
bec39cab AC |
1419 | if $ac_init_version; then |
1420 | cat <<\_ACEOF | |
81ecdfbb RW |
1421 | configure |
1422 | generated by GNU Autoconf 2.64 | |
bec39cab | 1423 | |
81ecdfbb | 1424 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
1425 | This configure script is free software; the Free Software Foundation |
1426 | gives unlimited permission to copy, distribute and modify it. | |
1427 | _ACEOF | |
81ecdfbb | 1428 | exit |
bec39cab | 1429 | fi |
bec39cab | 1430 | |
81ecdfbb RW |
1431 | ## ------------------------ ## |
1432 | ## Autoconf initialization. ## | |
1433 | ## ------------------------ ## | |
bec39cab | 1434 | |
81ecdfbb RW |
1435 | # ac_fn_c_try_compile LINENO |
1436 | # -------------------------- | |
1437 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1438 | ac_fn_c_try_compile () | |
bec39cab | 1439 | { |
81ecdfbb RW |
1440 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1441 | rm -f conftest.$ac_objext | |
1442 | if { { ac_try="$ac_compile" | |
1443 | case "(($ac_try" in | |
1444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1445 | *) ac_try_echo=$ac_try;; | |
1446 | esac | |
1447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1448 | $as_echo "$ac_try_echo"; } >&5 | |
1449 | (eval "$ac_compile") 2>conftest.err | |
1450 | ac_status=$? | |
1451 | if test -s conftest.err; then | |
1452 | grep -v '^ *+' conftest.err >conftest.er1 | |
1453 | cat conftest.er1 >&5 | |
1454 | mv -f conftest.er1 conftest.err | |
1455 | fi | |
1456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1457 | test $ac_status = 0; } && { | |
1458 | test -z "$ac_c_werror_flag" || | |
1459 | test ! -s conftest.err | |
1460 | } && test -s conftest.$ac_objext; then : | |
1461 | ac_retval=0 | |
1462 | else | |
1463 | $as_echo "$as_me: failed program was:" >&5 | |
1464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1465 | |
81ecdfbb RW |
1466 | ac_retval=1 |
1467 | fi | |
1468 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1469 | return $ac_retval | |
bec39cab | 1470 | |
81ecdfbb | 1471 | } # ac_fn_c_try_compile |
bec39cab | 1472 | |
81ecdfbb RW |
1473 | # ac_fn_c_try_cpp LINENO |
1474 | # ---------------------- | |
1475 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1476 | ac_fn_c_try_cpp () | |
1477 | { | |
1478 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1479 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1480 | case "(($ac_try" in | |
1481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1482 | *) ac_try_echo=$ac_try;; | |
1483 | esac | |
1484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1485 | $as_echo "$ac_try_echo"; } >&5 | |
1486 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1487 | ac_status=$? | |
1488 | if test -s conftest.err; then | |
1489 | grep -v '^ *+' conftest.err >conftest.er1 | |
1490 | cat conftest.er1 >&5 | |
1491 | mv -f conftest.er1 conftest.err | |
1492 | fi | |
1493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1494 | test $ac_status = 0; } >/dev/null && { | |
1495 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1496 | test ! -s conftest.err | |
1497 | }; then : | |
1498 | ac_retval=0 | |
1499 | else | |
1500 | $as_echo "$as_me: failed program was:" >&5 | |
1501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 1502 | |
81ecdfbb RW |
1503 | ac_retval=1 |
1504 | fi | |
1505 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1506 | return $ac_retval | |
bec39cab | 1507 | |
81ecdfbb RW |
1508 | } # ac_fn_c_try_cpp |
1509 | ||
1510 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1511 | # ------------------------------------------------------- | |
1512 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1513 | # the include files in INCLUDES and setting the cache variable VAR | |
1514 | # accordingly. | |
1515 | ac_fn_c_check_header_mongrel () | |
1516 | { | |
1517 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1518 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1520 | $as_echo_n "checking for $2... " >&6; } | |
1521 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1522 | $as_echo_n "(cached) " >&6 | |
1523 | fi | |
1524 | eval ac_res=\$$3 | |
1525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1526 | $as_echo "$ac_res" >&6; } | |
1527 | else | |
1528 | # Is the header compilable? | |
1529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1530 | $as_echo_n "checking $2 usability... " >&6; } | |
1531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1532 | /* end confdefs.h. */ | |
1533 | $4 | |
1534 | #include <$2> | |
1535 | _ACEOF | |
1536 | if ac_fn_c_try_compile "$LINENO"; then : | |
1537 | ac_header_compiler=yes | |
1538 | else | |
1539 | ac_header_compiler=no | |
1540 | fi | |
1541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1543 | $as_echo "$ac_header_compiler" >&6; } | |
1544 | ||
1545 | # Is the header present? | |
1546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1547 | $as_echo_n "checking $2 presence... " >&6; } | |
1548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1549 | /* end confdefs.h. */ | |
1550 | #include <$2> | |
1551 | _ACEOF | |
1552 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1553 | ac_header_preproc=yes | |
1554 | else | |
1555 | ac_header_preproc=no | |
1556 | fi | |
1557 | rm -f conftest.err conftest.$ac_ext | |
1558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1559 | $as_echo "$ac_header_preproc" >&6; } | |
1560 | ||
1561 | # So? What about this header? | |
1562 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1563 | yes:no: ) | |
1564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1565 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1567 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1568 | ;; | |
1569 | no:yes:* ) | |
1570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1571 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1573 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1575 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1577 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1579 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1580 | ;; | |
1581 | esac | |
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1583 | $as_echo_n "checking for $2... " >&6; } | |
1584 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1585 | $as_echo_n "(cached) " >&6 | |
1586 | else | |
1587 | eval "$3=\$ac_header_compiler" | |
1588 | fi | |
1589 | eval ac_res=\$$3 | |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1591 | $as_echo "$ac_res" >&6; } | |
1592 | fi | |
1593 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1594 | ||
1595 | } # ac_fn_c_check_header_mongrel | |
1596 | ||
1597 | # ac_fn_c_try_run LINENO | |
1598 | # ---------------------- | |
1599 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1600 | # that executables *can* be run. | |
1601 | ac_fn_c_try_run () | |
1602 | { | |
1603 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1604 | if { { ac_try="$ac_link" | |
1605 | case "(($ac_try" in | |
1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1607 | *) ac_try_echo=$ac_try;; | |
1608 | esac | |
1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1610 | $as_echo "$ac_try_echo"; } >&5 | |
1611 | (eval "$ac_link") 2>&5 | |
1612 | ac_status=$? | |
1613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1614 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1615 | { { case "(($ac_try" in | |
1616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1617 | *) ac_try_echo=$ac_try;; | |
1618 | esac | |
1619 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1620 | $as_echo "$ac_try_echo"; } >&5 | |
1621 | (eval "$ac_try") 2>&5 | |
1622 | ac_status=$? | |
1623 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1624 | test $ac_status = 0; }; }; then : | |
1625 | ac_retval=0 | |
1626 | else | |
1627 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1628 | $as_echo "$as_me: failed program was:" >&5 | |
1629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1630 | ||
1631 | ac_retval=$ac_status | |
1632 | fi | |
1633 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1634 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1635 | return $ac_retval | |
1636 | ||
1637 | } # ac_fn_c_try_run | |
1638 | ||
1639 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1640 | # ------------------------------------------------------- | |
1641 | # Tests whether HEADER exists and can be compiled using the include files in | |
1642 | # INCLUDES, setting the cache variable VAR accordingly. | |
1643 | ac_fn_c_check_header_compile () | |
1644 | { | |
1645 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1647 | $as_echo_n "checking for $2... " >&6; } | |
1648 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1649 | $as_echo_n "(cached) " >&6 | |
1650 | else | |
1651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1652 | /* end confdefs.h. */ | |
1653 | $4 | |
1654 | #include <$2> | |
1655 | _ACEOF | |
1656 | if ac_fn_c_try_compile "$LINENO"; then : | |
1657 | eval "$3=yes" | |
1658 | else | |
1659 | eval "$3=no" | |
1660 | fi | |
1661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1662 | fi | |
1663 | eval ac_res=\$$3 | |
1664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1665 | $as_echo "$ac_res" >&6; } | |
1666 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1667 | ||
1668 | } # ac_fn_c_check_header_compile | |
1669 | ||
1670 | # ac_fn_c_try_link LINENO | |
1671 | # ----------------------- | |
1672 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1673 | ac_fn_c_try_link () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1677 | if { { ac_try="$ac_link" | |
1678 | case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | $as_echo "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_link") 2>conftest.err | |
1685 | ac_status=$? | |
1686 | if test -s conftest.err; then | |
1687 | grep -v '^ *+' conftest.err >conftest.er1 | |
1688 | cat conftest.er1 >&5 | |
1689 | mv -f conftest.er1 conftest.err | |
1690 | fi | |
1691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1692 | test $ac_status = 0; } && { | |
1693 | test -z "$ac_c_werror_flag" || | |
1694 | test ! -s conftest.err | |
1695 | } && test -s conftest$ac_exeext && { | |
1696 | test "$cross_compiling" = yes || | |
1697 | $as_test_x conftest$ac_exeext | |
1698 | }; then : | |
1699 | ac_retval=0 | |
1700 | else | |
1701 | $as_echo "$as_me: failed program was:" >&5 | |
1702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1703 | ||
1704 | ac_retval=1 | |
1705 | fi | |
1706 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1707 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1708 | # interfere with the next link command; also delete a directory that is | |
1709 | # left behind by Apple's compiler. We do this before executing the actions. | |
1710 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1711 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1712 | return $ac_retval | |
1713 | ||
1714 | } # ac_fn_c_try_link | |
1715 | ||
1716 | # ac_fn_c_check_func LINENO FUNC VAR | |
1717 | # ---------------------------------- | |
1718 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1719 | ac_fn_c_check_func () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1723 | $as_echo_n "checking for $2... " >&6; } | |
1724 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1725 | $as_echo_n "(cached) " >&6 | |
1726 | else | |
1727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1728 | /* end confdefs.h. */ | |
1729 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1731 | #define $2 innocuous_$2 | |
1732 | ||
1733 | /* System header to define __stub macros and hopefully few prototypes, | |
1734 | which can conflict with char $2 (); below. | |
1735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1736 | <limits.h> exists even on freestanding compilers. */ | |
1737 | ||
1738 | #ifdef __STDC__ | |
1739 | # include <limits.h> | |
1740 | #else | |
1741 | # include <assert.h> | |
1742 | #endif | |
1743 | ||
1744 | #undef $2 | |
1745 | ||
1746 | /* Override any GCC internal prototype to avoid an error. | |
1747 | Use char because int might match the return type of a GCC | |
1748 | builtin and then its argument prototype would still apply. */ | |
1749 | #ifdef __cplusplus | |
1750 | extern "C" | |
1751 | #endif | |
1752 | char $2 (); | |
1753 | /* The GNU C library defines this for functions which it implements | |
1754 | to always fail with ENOSYS. Some functions are actually named | |
1755 | something starting with __ and the normal name is an alias. */ | |
1756 | #if defined __stub_$2 || defined __stub___$2 | |
1757 | choke me | |
1758 | #endif | |
1759 | ||
1760 | int | |
1761 | main () | |
1762 | { | |
1763 | return $2 (); | |
1764 | ; | |
1765 | return 0; | |
1766 | } | |
1767 | _ACEOF | |
1768 | if ac_fn_c_try_link "$LINENO"; then : | |
1769 | eval "$3=yes" | |
1770 | else | |
1771 | eval "$3=no" | |
1772 | fi | |
1773 | rm -f core conftest.err conftest.$ac_objext \ | |
1774 | conftest$ac_exeext conftest.$ac_ext | |
1775 | fi | |
1776 | eval ac_res=\$$3 | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1778 | $as_echo "$ac_res" >&6; } | |
1779 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1780 | ||
1781 | } # ac_fn_c_check_func | |
1782 | ||
1783 | # ac_fn_c_check_decl LINENO SYMBOL VAR | |
1784 | # ------------------------------------ | |
1785 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1786 | ac_fn_c_check_decl () | |
1787 | { | |
1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
0fb4aa4b PA |
1789 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1790 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1792 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
81ecdfbb RW |
1793 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
1794 | $as_echo_n "(cached) " >&6 | |
1795 | else | |
1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1797 | /* end confdefs.h. */ | |
1798 | $4 | |
1799 | int | |
1800 | main () | |
1801 | { | |
0fb4aa4b PA |
1802 | #ifndef $as_decl_name |
1803 | #ifdef __cplusplus | |
1804 | (void) $as_decl_use; | |
1805 | #else | |
1806 | (void) $as_decl_name; | |
1807 | #endif | |
81ecdfbb RW |
1808 | #endif |
1809 | ||
1810 | ; | |
1811 | return 0; | |
1812 | } | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_compile "$LINENO"; then : | |
1815 | eval "$3=yes" | |
1816 | else | |
1817 | eval "$3=no" | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1820 | fi | |
1821 | eval ac_res=\$$3 | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1823 | $as_echo "$ac_res" >&6; } | |
1824 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1825 | ||
1826 | } # ac_fn_c_check_decl | |
1827 | ||
1828 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1829 | # ------------------------------------------- | |
1830 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1831 | # variable VAR accordingly. | |
1832 | ac_fn_c_check_type () | |
1833 | { | |
1834 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1836 | $as_echo_n "checking for $2... " >&6; } | |
1837 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1838 | $as_echo_n "(cached) " >&6 | |
1839 | else | |
1840 | eval "$3=no" | |
1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1842 | /* end confdefs.h. */ | |
1843 | $4 | |
1844 | int | |
1845 | main () | |
1846 | { | |
1847 | if (sizeof ($2)) | |
1848 | return 0; | |
1849 | ; | |
1850 | return 0; | |
1851 | } | |
1852 | _ACEOF | |
1853 | if ac_fn_c_try_compile "$LINENO"; then : | |
1854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1855 | /* end confdefs.h. */ | |
1856 | $4 | |
1857 | int | |
1858 | main () | |
1859 | { | |
1860 | if (sizeof (($2))) | |
1861 | return 0; | |
1862 | ; | |
1863 | return 0; | |
1864 | } | |
1865 | _ACEOF | |
1866 | if ac_fn_c_try_compile "$LINENO"; then : | |
1867 | ||
1868 | else | |
1869 | eval "$3=yes" | |
1870 | fi | |
1871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1872 | fi | |
1873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1874 | fi | |
1875 | eval ac_res=\$$3 | |
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1877 | $as_echo "$ac_res" >&6; } | |
1878 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1879 | ||
1880 | } # ac_fn_c_check_type | |
1881 | cat >config.log <<_ACEOF | |
1882 | This file contains any messages produced by compilers while | |
1883 | running configure, to aid debugging if configure makes a mistake. | |
1884 | ||
1885 | It was created by $as_me, which was | |
1886 | generated by GNU Autoconf 2.64. Invocation command line was | |
1887 | ||
1888 | $ $0 $@ | |
1889 | ||
1890 | _ACEOF | |
1891 | exec 5>>config.log | |
1892 | { | |
1893 | cat <<_ASUNAME | |
1894 | ## --------- ## | |
1895 | ## Platform. ## | |
1896 | ## --------- ## | |
1897 | ||
1898 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1899 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1900 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1901 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1902 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1903 | ||
1904 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1905 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1906 | ||
1907 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1908 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1909 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1910 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1911 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1912 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1913 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1914 | ||
1915 | _ASUNAME | |
1916 | ||
1917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1918 | for as_dir in $PATH | |
1919 | do | |
1920 | IFS=$as_save_IFS | |
1921 | test -z "$as_dir" && as_dir=. | |
1922 | $as_echo "PATH: $as_dir" | |
1923 | done | |
1924 | IFS=$as_save_IFS | |
1925 | ||
1926 | } >&5 | |
1927 | ||
1928 | cat >&5 <<_ACEOF | |
1929 | ||
1930 | ||
1931 | ## ----------- ## | |
1932 | ## Core tests. ## | |
1933 | ## ----------- ## | |
bec39cab AC |
1934 | |
1935 | _ACEOF | |
1936 | ||
1937 | ||
1938 | # Keep a trace of the command line. | |
1939 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1940 | # Strip out --silent because we don't want to record it for future runs. | |
1941 | # Also quote any args containing shell meta-characters. | |
1942 | # Make two passes to allow for proper duplicate-argument suppression. | |
1943 | ac_configure_args= | |
1944 | ac_configure_args0= | |
1945 | ac_configure_args1= | |
bec39cab AC |
1946 | ac_must_keep_next=false |
1947 | for ac_pass in 1 2 | |
1948 | do | |
1949 | for ac_arg | |
1950 | do | |
1951 | case $ac_arg in | |
1952 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1954 | | -silent | --silent | --silen | --sile | --sil) | |
1955 | continue ;; | |
81ecdfbb RW |
1956 | *\'*) |
1957 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1958 | esac |
1959 | case $ac_pass in | |
81ecdfbb | 1960 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bec39cab | 1961 | 2) |
81ecdfbb | 1962 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bec39cab AC |
1963 | if test $ac_must_keep_next = true; then |
1964 | ac_must_keep_next=false # Got value, back to normal. | |
1965 | else | |
1966 | case $ac_arg in | |
1967 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1968 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1969 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1970 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1971 | case "$ac_configure_args0 " in | |
1972 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1973 | esac | |
1974 | ;; | |
1975 | -* ) ac_must_keep_next=true ;; | |
1976 | esac | |
1977 | fi | |
81ecdfbb | 1978 | as_fn_append ac_configure_args " '$ac_arg'" |
bec39cab AC |
1979 | ;; |
1980 | esac | |
1981 | done | |
1982 | done | |
81ecdfbb RW |
1983 | { ac_configure_args0=; unset ac_configure_args0;} |
1984 | { ac_configure_args1=; unset ac_configure_args1;} | |
bec39cab AC |
1985 | |
1986 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1987 | # config.log. We remove comments because anyway the quotes in there | |
1988 | # would cause problems or look ugly. | |
81ecdfbb RW |
1989 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1990 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bec39cab AC |
1991 | trap 'exit_status=$? |
1992 | # Save into config.log some information that might help in debugging. | |
1993 | { | |
1994 | echo | |
1995 | ||
1996 | cat <<\_ASBOX | |
1997 | ## ---------------- ## | |
1998 | ## Cache variables. ## | |
1999 | ## ---------------- ## | |
2000 | _ASBOX | |
2001 | echo | |
2002 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2003 | ( |
2004 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2005 | eval ac_val=\$$ac_var | |
2006 | case $ac_val in #( | |
2007 | *${as_nl}*) | |
2008 | case $ac_var in #( | |
2009 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2010 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2011 | esac | |
2012 | case $ac_var in #( | |
2013 | _ | IFS | as_nl) ;; #( | |
2014 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2015 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2016 | esac ;; | |
2017 | esac | |
2018 | done | |
bec39cab | 2019 | (set) 2>&1 | |
81ecdfbb RW |
2020 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2021 | *${as_nl}ac_space=\ *) | |
bec39cab | 2022 | sed -n \ |
81ecdfbb RW |
2023 | "s/'\''/'\''\\\\'\'''\''/g; |
2024 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2025 | ;; #( | |
bec39cab | 2026 | *) |
81ecdfbb | 2027 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 2028 | ;; |
81ecdfbb RW |
2029 | esac | |
2030 | sort | |
2031 | ) | |
bec39cab AC |
2032 | echo |
2033 | ||
2034 | cat <<\_ASBOX | |
2035 | ## ----------------- ## | |
2036 | ## Output variables. ## | |
2037 | ## ----------------- ## | |
2038 | _ASBOX | |
2039 | echo | |
2040 | for ac_var in $ac_subst_vars | |
2041 | do | |
81ecdfbb RW |
2042 | eval ac_val=\$$ac_var |
2043 | case $ac_val in | |
2044 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2045 | esac | |
2046 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
2047 | done | sort |
2048 | echo | |
2049 | ||
2050 | if test -n "$ac_subst_files"; then | |
2051 | cat <<\_ASBOX | |
81ecdfbb RW |
2052 | ## ------------------- ## |
2053 | ## File substitutions. ## | |
2054 | ## ------------------- ## | |
bec39cab AC |
2055 | _ASBOX |
2056 | echo | |
2057 | for ac_var in $ac_subst_files | |
2058 | do | |
81ecdfbb RW |
2059 | eval ac_val=\$$ac_var |
2060 | case $ac_val in | |
2061 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2062 | esac | |
2063 | $as_echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
2064 | done | sort |
2065 | echo | |
434c4c77 | 2066 | fi |
bec39cab AC |
2067 | |
2068 | if test -s confdefs.h; then | |
2069 | cat <<\_ASBOX | |
2070 | ## ----------- ## | |
2071 | ## confdefs.h. ## | |
2072 | ## ----------- ## | |
2073 | _ASBOX | |
2074 | echo | |
81ecdfbb | 2075 | cat confdefs.h |
bec39cab AC |
2076 | echo |
2077 | fi | |
2078 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2079 | $as_echo "$as_me: caught signal $ac_signal" |
2080 | $as_echo "$as_me: exit $exit_status" | |
bec39cab | 2081 | } >&5 |
81ecdfbb RW |
2082 | rm -f core *.core core.conftest.* && |
2083 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 2084 | exit $exit_status |
81ecdfbb | 2085 | ' 0 |
bec39cab | 2086 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2087 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bec39cab AC |
2088 | done |
2089 | ac_signal=0 | |
2090 | ||
2091 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2092 | rm -f -r conftest* confdefs.h |
2093 | ||
2094 | $as_echo "/* confdefs.h */" > confdefs.h | |
bec39cab AC |
2095 | |
2096 | # Predefined preprocessor variables. | |
2097 | ||
2098 | cat >>confdefs.h <<_ACEOF | |
2099 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2100 | _ACEOF | |
2101 | ||
bec39cab AC |
2102 | cat >>confdefs.h <<_ACEOF |
2103 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2104 | _ACEOF | |
2105 | ||
bec39cab AC |
2106 | cat >>confdefs.h <<_ACEOF |
2107 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2108 | _ACEOF | |
2109 | ||
bec39cab AC |
2110 | cat >>confdefs.h <<_ACEOF |
2111 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2112 | _ACEOF | |
2113 | ||
bec39cab AC |
2114 | cat >>confdefs.h <<_ACEOF |
2115 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2116 | _ACEOF | |
2117 | ||
81ecdfbb RW |
2118 | cat >>confdefs.h <<_ACEOF |
2119 | #define PACKAGE_URL "$PACKAGE_URL" | |
2120 | _ACEOF | |
2121 | ||
bec39cab AC |
2122 | |
2123 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2124 | # Prefer an explicitly selected file to automatically selected ones. |
2125 | ac_site_file1=NONE | |
2126 | ac_site_file2=NONE | |
2127 | if test -n "$CONFIG_SITE"; then | |
2128 | ac_site_file1=$CONFIG_SITE | |
2129 | elif test "x$prefix" != xNONE; then | |
2130 | ac_site_file1=$prefix/share/config.site | |
2131 | ac_site_file2=$prefix/etc/config.site | |
2132 | else | |
2133 | ac_site_file1=$ac_default_prefix/share/config.site | |
2134 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d6e9fb05 | 2135 | fi |
81ecdfbb RW |
2136 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2137 | do | |
2138 | test "x$ac_site_file" = xNONE && continue | |
d6e9fb05 | 2139 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2141 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
bec39cab | 2142 | sed 's/^/| /' "$ac_site_file" >&5 |
d6e9fb05 JK |
2143 | . "$ac_site_file" |
2144 | fi | |
2145 | done | |
2146 | ||
2147 | if test -r "$cache_file"; then | |
bec39cab AC |
2148 | # Some versions of bash will fail to source /dev/null (special |
2149 | # files actually), so we avoid doing that. | |
2150 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2152 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
bec39cab | 2153 | case $cache_file in |
81ecdfbb RW |
2154 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2155 | *) . "./$cache_file";; | |
bec39cab AC |
2156 | esac |
2157 | fi | |
d6e9fb05 | 2158 | else |
81ecdfbb RW |
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2160 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
bec39cab | 2161 | >$cache_file |
d6e9fb05 JK |
2162 | fi |
2163 | ||
bec39cab AC |
2164 | # Check that the precious variables saved in the cache have kept the same |
2165 | # value. | |
2166 | ac_cache_corrupted=false | |
81ecdfbb | 2167 | for ac_var in $ac_precious_vars; do |
bec39cab AC |
2168 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2169 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2170 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2171 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bec39cab AC |
2172 | case $ac_old_set,$ac_new_set in |
2173 | set,) | |
81ecdfbb RW |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2175 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
bec39cab AC |
2176 | ac_cache_corrupted=: ;; |
2177 | ,set) | |
81ecdfbb RW |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2179 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
bec39cab AC |
2180 | ac_cache_corrupted=: ;; |
2181 | ,);; | |
2182 | *) | |
2183 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2184 | # differences in whitespace do not lead to failure. |
2185 | ac_old_val_w=`echo x $ac_old_val` | |
2186 | ac_new_val_w=`echo x $ac_new_val` | |
2187 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2189 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2190 | ac_cache_corrupted=: | |
2191 | else | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2193 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2194 | eval $ac_var=\$ac_old_val | |
2195 | fi | |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2197 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2199 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
bec39cab AC |
2200 | fi;; |
2201 | esac | |
2202 | # Pass precious variables to config.status. | |
2203 | if test "$ac_new_set" = set; then | |
2204 | case $ac_new_val in | |
81ecdfbb | 2205 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bec39cab AC |
2206 | *) ac_arg=$ac_var=$ac_new_val ;; |
2207 | esac | |
2208 | case " $ac_configure_args " in | |
2209 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2210 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bec39cab | 2211 | esac |
d6e9fb05 | 2212 | fi |
bec39cab AC |
2213 | done |
2214 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2218 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2219 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
d6e9fb05 | 2220 | fi |
81ecdfbb RW |
2221 | ## -------------------- ## |
2222 | ## Main body of script. ## | |
2223 | ## -------------------- ## | |
d6e9fb05 | 2224 | |
dae5f5cf DJ |
2225 | ac_ext=c |
2226 | ac_cpp='$CPP $CPPFLAGS' | |
2227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2230 | ||
d6e9fb05 | 2231 | |
84563040 | 2232 | |
bec39cab AC |
2233 | |
2234 | ||
81ecdfbb | 2235 | ac_config_headers="$ac_config_headers config.h:config.in" |
bec39cab AC |
2236 | |
2237 | ||
e28b3332 | 2238 | |
c9a1864a YQ |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2240 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2241 | # Check whether --enable-maintainer-mode was given. | |
2242 | if test "${enable_maintainer_mode+set}" = set; then : | |
2243 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2244 | else | |
2245 | USE_MAINTAINER_MODE=no | |
2246 | fi | |
2247 | ||
2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2249 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2250 | if test $USE_MAINTAINER_MODE = yes; then | |
2251 | MAINTAINER_MODE_TRUE= | |
2252 | MAINTAINER_MODE_FALSE='#' | |
2253 | else | |
2254 | MAINTAINER_MODE_TRUE='#' | |
2255 | MAINTAINER_MODE_FALSE= | |
2256 | fi | |
2257 | ||
2258 | MAINT=$MAINTAINER_MODE_TRUE | |
2259 | ||
2260 | ||
2261 | ||
bec39cab AC |
2262 | ac_ext=c |
2263 | ac_cpp='$CPP $CPPFLAGS' | |
2264 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2265 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2266 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2267 | if test -n "$ac_tool_prefix"; then | |
2268 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2269 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2271 | $as_echo_n "checking for $ac_word... " >&6; } | |
2272 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2273 | $as_echo_n "(cached) " >&6 | |
84563040 DJ |
2274 | else |
2275 | if test -n "$CC"; then | |
2276 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2277 | else | |
bec39cab AC |
2278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2279 | for as_dir in $PATH | |
2280 | do | |
2281 | IFS=$as_save_IFS | |
2282 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2283 | for ac_exec_ext in '' $ac_executable_extensions; do |
2284 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2285 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2287 | break 2 |
2288 | fi | |
2289 | done | |
81ecdfbb RW |
2290 | done |
2291 | IFS=$as_save_IFS | |
bec39cab | 2292 | |
84563040 DJ |
2293 | fi |
2294 | fi | |
bec39cab | 2295 | CC=$ac_cv_prog_CC |
84563040 | 2296 | if test -n "$CC"; then |
81ecdfbb RW |
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2298 | $as_echo "$CC" >&6; } | |
84563040 | 2299 | else |
81ecdfbb RW |
2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2301 | $as_echo "no" >&6; } | |
84563040 DJ |
2302 | fi |
2303 | ||
81ecdfbb | 2304 | |
bec39cab AC |
2305 | fi |
2306 | if test -z "$ac_cv_prog_CC"; then | |
2307 | ac_ct_CC=$CC | |
2308 | # Extract the first word of "gcc", so it can be a program name with args. | |
2309 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2311 | $as_echo_n "checking for $ac_word... " >&6; } | |
2312 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2313 | $as_echo_n "(cached) " >&6 | |
84563040 | 2314 | else |
bec39cab AC |
2315 | if test -n "$ac_ct_CC"; then |
2316 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
84563040 | 2317 | else |
bec39cab AC |
2318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2319 | for as_dir in $PATH | |
2320 | do | |
2321 | IFS=$as_save_IFS | |
2322 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2323 | for ac_exec_ext in '' $ac_executable_extensions; do |
2324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2325 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2327 | break 2 |
2328 | fi | |
2329 | done | |
81ecdfbb RW |
2330 | done |
2331 | IFS=$as_save_IFS | |
bec39cab AC |
2332 | |
2333 | fi | |
2334 | fi | |
2335 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2336 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2338 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2339 | else |
81ecdfbb RW |
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2341 | $as_echo "no" >&6; } | |
bec39cab AC |
2342 | fi |
2343 | ||
81ecdfbb RW |
2344 | if test "x$ac_ct_CC" = x; then |
2345 | CC="" | |
2346 | else | |
2347 | case $cross_compiling:$ac_tool_warned in | |
2348 | yes:) | |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2350 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2351 | ac_tool_warned=yes ;; | |
2352 | esac | |
2353 | CC=$ac_ct_CC | |
2354 | fi | |
bec39cab AC |
2355 | else |
2356 | CC="$ac_cv_prog_CC" | |
2357 | fi | |
2358 | ||
2359 | if test -z "$CC"; then | |
81ecdfbb RW |
2360 | if test -n "$ac_tool_prefix"; then |
2361 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 2362 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2364 | $as_echo_n "checking for $ac_word... " >&6; } | |
2365 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2366 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2367 | else |
2368 | if test -n "$CC"; then | |
2369 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2370 | else | |
2371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2372 | for as_dir in $PATH | |
2373 | do | |
2374 | IFS=$as_save_IFS | |
2375 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2376 | for ac_exec_ext in '' $ac_executable_extensions; do |
2377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2378 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2380 | break 2 |
2381 | fi | |
2382 | done | |
81ecdfbb RW |
2383 | done |
2384 | IFS=$as_save_IFS | |
bec39cab AC |
2385 | |
2386 | fi | |
2387 | fi | |
2388 | CC=$ac_cv_prog_CC | |
2389 | if test -n "$CC"; then | |
81ecdfbb RW |
2390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2391 | $as_echo "$CC" >&6; } | |
bec39cab | 2392 | else |
81ecdfbb RW |
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2394 | $as_echo "no" >&6; } | |
bec39cab AC |
2395 | fi |
2396 | ||
81ecdfbb RW |
2397 | |
2398 | fi | |
dae5f5cf | 2399 | fi |
81ecdfbb | 2400 | if test -z "$CC"; then |
dae5f5cf DJ |
2401 | # Extract the first word of "cc", so it can be a program name with args. |
2402 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2404 | $as_echo_n "checking for $ac_word... " >&6; } | |
2405 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2406 | $as_echo_n "(cached) " >&6 | |
dae5f5cf | 2407 | else |
81ecdfbb RW |
2408 | if test -n "$CC"; then |
2409 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
dae5f5cf | 2410 | else |
81ecdfbb | 2411 | ac_prog_rejected=no |
dae5f5cf DJ |
2412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2413 | for as_dir in $PATH | |
2414 | do | |
2415 | IFS=$as_save_IFS | |
2416 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2417 | for ac_exec_ext in '' $ac_executable_extensions; do |
2418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2419 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2420 | ac_prog_rejected=yes | |
2421 | continue | |
2422 | fi | |
2423 | ac_cv_prog_CC="cc" | |
2424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
dae5f5cf | 2425 | break 2 |
b80864fb | 2426 | fi |
dae5f5cf | 2427 | done |
81ecdfbb RW |
2428 | done |
2429 | IFS=$as_save_IFS | |
bec39cab | 2430 | |
84563040 DJ |
2431 | if test $ac_prog_rejected = yes; then |
2432 | # We found a bogon in the path, so make sure we never use it. | |
2433 | set dummy $ac_cv_prog_CC | |
2434 | shift | |
bec39cab | 2435 | if test $# != 0; then |
84563040 DJ |
2436 | # We chose a different compiler from the bogus one. |
2437 | # However, it has the same basename, so the bogon will be chosen | |
2438 | # first if we set CC to just the basename; use the full file name. | |
2439 | shift | |
bec39cab | 2440 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
84563040 DJ |
2441 | fi |
2442 | fi | |
2443 | fi | |
2444 | fi | |
bec39cab | 2445 | CC=$ac_cv_prog_CC |
84563040 | 2446 | if test -n "$CC"; then |
81ecdfbb RW |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2448 | $as_echo "$CC" >&6; } | |
84563040 | 2449 | else |
81ecdfbb RW |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2451 | $as_echo "no" >&6; } | |
84563040 DJ |
2452 | fi |
2453 | ||
81ecdfbb | 2454 | |
bec39cab AC |
2455 | fi |
2456 | if test -z "$CC"; then | |
2457 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2458 | for ac_prog in cl.exe |
bec39cab AC |
2459 | do |
2460 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2461 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2463 | $as_echo_n "checking for $ac_word... " >&6; } | |
2464 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2465 | $as_echo_n "(cached) " >&6 | |
84563040 DJ |
2466 | else |
2467 | if test -n "$CC"; then | |
2468 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2469 | else | |
bec39cab AC |
2470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2471 | for as_dir in $PATH | |
2472 | do | |
2473 | IFS=$as_save_IFS | |
2474 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2475 | for ac_exec_ext in '' $ac_executable_extensions; do |
2476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2477 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab AC |
2479 | break 2 |
2480 | fi | |
2481 | done | |
81ecdfbb RW |
2482 | done |
2483 | IFS=$as_save_IFS | |
bec39cab | 2484 | |
84563040 DJ |
2485 | fi |
2486 | fi | |
bec39cab | 2487 | CC=$ac_cv_prog_CC |
84563040 | 2488 | if test -n "$CC"; then |
81ecdfbb RW |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2490 | $as_echo "$CC" >&6; } | |
84563040 | 2491 | else |
81ecdfbb RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2493 | $as_echo "no" >&6; } | |
84563040 | 2494 | fi |
bec39cab | 2495 | |
81ecdfbb | 2496 | |
bec39cab AC |
2497 | test -n "$CC" && break |
2498 | done | |
2499 | fi | |
2500 | if test -z "$CC"; then | |
2501 | ac_ct_CC=$CC | |
81ecdfbb | 2502 | for ac_prog in cl.exe |
bec39cab AC |
2503 | do |
2504 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2505 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2507 | $as_echo_n "checking for $ac_word... " >&6; } | |
2508 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2509 | $as_echo_n "(cached) " >&6 | |
bec39cab AC |
2510 | else |
2511 | if test -n "$ac_ct_CC"; then | |
2512 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2513 | else | |
2514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2515 | for as_dir in $PATH | |
2516 | do | |
2517 | IFS=$as_save_IFS | |
2518 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2519 | for ac_exec_ext in '' $ac_executable_extensions; do |
2520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
bec39cab | 2521 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bec39cab | 2523 | break 2 |
84563040 | 2524 | fi |
bec39cab | 2525 | done |
81ecdfbb RW |
2526 | done |
2527 | IFS=$as_save_IFS | |
bec39cab AC |
2528 | |
2529 | fi | |
2530 | fi | |
2531 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2532 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2534 | $as_echo "$ac_ct_CC" >&6; } | |
bec39cab | 2535 | else |
81ecdfbb RW |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2537 | $as_echo "no" >&6; } | |
84563040 DJ |
2538 | fi |
2539 | ||
81ecdfbb | 2540 | |
bec39cab AC |
2541 | test -n "$ac_ct_CC" && break |
2542 | done | |
84563040 | 2543 | |
81ecdfbb RW |
2544 | if test "x$ac_ct_CC" = x; then |
2545 | CC="" | |
2546 | else | |
2547 | case $cross_compiling:$ac_tool_warned in | |
2548 | yes:) | |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2550 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2551 | ac_tool_warned=yes ;; | |
2552 | esac | |
2553 | CC=$ac_ct_CC | |
2554 | fi | |
bec39cab AC |
2555 | fi |
2556 | ||
2557 | fi | |
2558 | ||
2559 | ||
81ecdfbb RW |
2560 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2561 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2562 | as_fn_error "no acceptable C compiler found in \$PATH | |
2563 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
2564 | |
2565 | # Provide some information about the compiler. | |
81ecdfbb RW |
2566 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2567 | set X $ac_compile | |
2568 | ac_compiler=$2 | |
2569 | for ac_option in --version -v -V -qversion; do | |
2570 | { { ac_try="$ac_compiler $ac_option >&5" | |
2571 | case "(($ac_try" in | |
2572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2573 | *) ac_try_echo=$ac_try;; | |
2574 | esac | |
2575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2576 | $as_echo "$ac_try_echo"; } >&5 | |
2577 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
bec39cab | 2578 | ac_status=$? |
81ecdfbb RW |
2579 | if test -s conftest.err; then |
2580 | sed '10a\ | |
2581 | ... rest of stderr output deleted ... | |
2582 | 10q' conftest.err >conftest.er1 | |
2583 | cat conftest.er1 >&5 | |
2584 | rm -f conftest.er1 conftest.err | |
2585 | fi | |
2586 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2587 | test $ac_status = 0; } | |
2588 | done | |
bec39cab | 2589 | |
81ecdfbb | 2590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2591 | /* end confdefs.h. */ |
2592 | ||
2593 | int | |
2594 | main () | |
2595 | { | |
2596 | ||
2597 | ; | |
2598 | return 0; | |
2599 | } | |
2600 | _ACEOF | |
2601 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 2602 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
bec39cab AC |
2603 | # Try to create an executable without -o first, disregard a.out. |
2604 | # It will help us diagnose broken compilers, and finding out an intuition | |
2605 | # of exeext. | |
81ecdfbb RW |
2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2607 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2608 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2609 | ||
2610 | # The possible output files: | |
2611 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2612 | ||
2613 | ac_rmfiles= | |
2614 | for ac_file in $ac_files | |
2615 | do | |
2616 | case $ac_file in | |
2617 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2618 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2619 | esac | |
2620 | done | |
2621 | rm -f $ac_rmfiles | |
2622 | ||
2623 | if { { ac_try="$ac_link_default" | |
2624 | case "(($ac_try" in | |
2625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2626 | *) ac_try_echo=$ac_try;; | |
2627 | esac | |
2628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2629 | $as_echo "$ac_try_echo"; } >&5 | |
2630 | (eval "$ac_link_default") 2>&5 | |
bec39cab | 2631 | ac_status=$? |
81ecdfbb RW |
2632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2633 | test $ac_status = 0; }; then : | |
2634 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2635 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2636 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2637 | # so that the user can short-circuit this test for compilers unknown to | |
2638 | # Autoconf. | |
2639 | for ac_file in $ac_files '' | |
bec39cab AC |
2640 | do |
2641 | test -f "$ac_file" || continue | |
2642 | case $ac_file in | |
81ecdfbb | 2643 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bec39cab AC |
2644 | ;; |
2645 | [ab].out ) | |
2646 | # We found the default executable, but exeext='' is most | |
2647 | # certainly right. | |
2648 | break;; | |
2649 | *.* ) | |
81ecdfbb RW |
2650 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2651 | then :; else | |
2652 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2653 | fi | |
2654 | # We set ac_cv_exeext here because the later test for it is not | |
2655 | # safe: cross compilers may not add the suffix if given an `-o' | |
2656 | # argument, so we may need to know it at that point already. | |
2657 | # Even if this section looks crufty: it has the advantage of | |
2658 | # actually working. | |
bec39cab AC |
2659 | break;; |
2660 | * ) | |
2661 | break;; | |
2662 | esac | |
2663 | done | |
81ecdfbb RW |
2664 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2665 | ||
bec39cab | 2666 | else |
81ecdfbb RW |
2667 | ac_file='' |
2668 | fi | |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2670 | $as_echo "$ac_file" >&6; } | |
2671 | if test -z "$ac_file"; then : | |
2672 | $as_echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
2673 | sed 's/^/| /' conftest.$ac_ext >&5 |
2674 | ||
81ecdfbb RW |
2675 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2677 | { as_fn_set_status 77 | |
2678 | as_fn_error "C compiler cannot create executables | |
2679 | See \`config.log' for more details." "$LINENO" 5; }; } | |
bec39cab | 2680 | fi |
bec39cab | 2681 | ac_exeext=$ac_cv_exeext |
bec39cab | 2682 | |
81ecdfbb | 2683 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 2684 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2686 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
bec39cab AC |
2687 | # If not cross compiling, check that we can run a simple program. |
2688 | if test "$cross_compiling" != yes; then | |
2689 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2690 | { { case "(($ac_try" in |
2691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2692 | *) ac_try_echo=$ac_try;; | |
2693 | esac | |
2694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2695 | $as_echo "$ac_try_echo"; } >&5 | |
2696 | (eval "$ac_try") 2>&5 | |
bec39cab | 2697 | ac_status=$? |
81ecdfbb RW |
2698 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2699 | test $ac_status = 0; }; }; then | |
bec39cab | 2700 | cross_compiling=no |
84563040 | 2701 | else |
bec39cab AC |
2702 | if test "$cross_compiling" = maybe; then |
2703 | cross_compiling=yes | |
2704 | else | |
81ecdfbb RW |
2705 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2706 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2707 | as_fn_error "cannot run C compiled programs. | |
bec39cab | 2708 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2709 | See \`config.log' for more details." "$LINENO" 5; } |
bec39cab | 2710 | fi |
84563040 | 2711 | fi |
84563040 | 2712 | fi |
81ecdfbb RW |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2714 | $as_echo "yes" >&6; } | |
bec39cab | 2715 | |
81ecdfbb | 2716 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
bec39cab | 2717 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2718 | # Check that the compiler produces executables we can run. If not, either |
bec39cab | 2719 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2721 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2723 | $as_echo "$cross_compiling" >&6; } | |
2724 | ||
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2726 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2727 | if { { 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 | |
bec39cab | 2735 | ac_status=$? |
81ecdfbb RW |
2736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2737 | test $ac_status = 0; }; then : | |
bec39cab AC |
2738 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2739 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2740 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2741 | # `rm'. | |
2742 | for ac_file in conftest.exe conftest conftest.*; do | |
2743 | test -f "$ac_file" || continue | |
2744 | case $ac_file in | |
81ecdfbb | 2745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bec39cab | 2746 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bec39cab AC |
2747 | break;; |
2748 | * ) break;; | |
2749 | esac | |
2750 | done | |
84563040 | 2751 | else |
81ecdfbb RW |
2752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2754 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2755 | See \`config.log' for more details." "$LINENO" 5; } | |
84563040 | 2756 | fi |
bec39cab | 2757 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2759 | $as_echo "$ac_cv_exeext" >&6; } | |
bec39cab AC |
2760 | |
2761 | rm -f conftest.$ac_ext | |
2762 | EXEEXT=$ac_cv_exeext | |
2763 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2765 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2766 | if test "${ac_cv_objext+set}" = set; then : | |
2767 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2768 | else |
81ecdfbb | 2769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2770 | /* end confdefs.h. */ |
2771 | ||
2772 | int | |
2773 | main () | |
2774 | { | |
2775 | ||
2776 | ; | |
2777 | return 0; | |
2778 | } | |
2779 | _ACEOF | |
2780 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2781 | if { { ac_try="$ac_compile" |
2782 | case "(($ac_try" in | |
2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2784 | *) ac_try_echo=$ac_try;; | |
2785 | esac | |
2786 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2787 | $as_echo "$ac_try_echo"; } >&5 | |
2788 | (eval "$ac_compile") 2>&5 | |
bec39cab | 2789 | ac_status=$? |
81ecdfbb RW |
2790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2791 | test $ac_status = 0; }; then : | |
2792 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2793 | test -f "$ac_file" || continue; | |
bec39cab | 2794 | case $ac_file in |
81ecdfbb | 2795 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bec39cab AC |
2796 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2797 | break;; | |
2798 | esac | |
2799 | done | |
2800 | else | |
81ecdfbb | 2801 | $as_echo "$as_me: failed program was:" >&5 |
bec39cab AC |
2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
2803 | ||
81ecdfbb RW |
2804 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2805 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2806 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2807 | See \`config.log' for more details." "$LINENO" 5; } | |
84563040 | 2808 | fi |
bec39cab AC |
2809 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2810 | fi | |
81ecdfbb RW |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2812 | $as_echo "$ac_cv_objext" >&6; } | |
bec39cab AC |
2813 | OBJEXT=$ac_cv_objext |
2814 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2816 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2817 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
2818 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2819 | else |
81ecdfbb | 2820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2821 | /* end confdefs.h. */ |
2822 | ||
2823 | int | |
2824 | main () | |
2825 | { | |
2826 | #ifndef __GNUC__ | |
2827 | choke me | |
2828 | #endif | |
84563040 | 2829 | |
bec39cab AC |
2830 | ; |
2831 | return 0; | |
2832 | } | |
2833 | _ACEOF | |
81ecdfbb | 2834 | if ac_fn_c_try_compile "$LINENO"; then : |
bec39cab | 2835 | ac_compiler_gnu=yes |
84563040 | 2836 | else |
81ecdfbb | 2837 | ac_compiler_gnu=no |
84563040 | 2838 | fi |
81ecdfbb | 2839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 2840 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
84563040 | 2841 | |
bec39cab | 2842 | fi |
81ecdfbb RW |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2844 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2845 | if test $ac_compiler_gnu = yes; then | |
2846 | GCC=yes | |
2847 | else | |
2848 | GCC= | |
2849 | fi | |
bec39cab AC |
2850 | ac_test_CFLAGS=${CFLAGS+set} |
2851 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2853 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2854 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2855 | $as_echo_n "(cached) " >&6 | |
2856 | else | |
2857 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2858 | ac_c_werror_flag=yes | |
2859 | ac_cv_prog_cc_g=no | |
2860 | CFLAGS="-g" | |
2861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bec39cab AC |
2862 | /* end confdefs.h. */ |
2863 | ||
2864 | int | |
2865 | main () | |
2866 | { | |
2867 | ||
2868 | ; | |
2869 | return 0; | |
2870 | } | |
2871 | _ACEOF | |
81ecdfbb | 2872 | if ac_fn_c_try_compile "$LINENO"; then : |
84563040 DJ |
2873 | ac_cv_prog_cc_g=yes |
2874 | else | |
81ecdfbb RW |
2875 | CFLAGS="" |
2876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2877 | /* end confdefs.h. */ | |
2878 | ||
2879 | int | |
2880 | main () | |
2881 | { | |
2882 | ||
2883 | ; | |
2884 | return 0; | |
2885 | } | |
2886 | _ACEOF | |
2887 | if ac_fn_c_try_compile "$LINENO"; then : | |
2888 | ||
2889 | else | |
2890 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2891 | CFLAGS="-g" | |
2892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2893 | /* end confdefs.h. */ | |
2894 | ||
2895 | int | |
2896 | main () | |
2897 | { | |
84563040 | 2898 | |
81ecdfbb RW |
2899 | ; |
2900 | return 0; | |
2901 | } | |
2902 | _ACEOF | |
2903 | if ac_fn_c_try_compile "$LINENO"; then : | |
2904 | ac_cv_prog_cc_g=yes | |
2905 | fi | |
2906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84563040 | 2907 | fi |
81ecdfbb | 2908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 2909 | fi |
81ecdfbb RW |
2910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2911 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2912 | fi | |
2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2914 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
84563040 | 2915 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2916 | CFLAGS=$ac_save_CFLAGS |
84563040 DJ |
2917 | elif test $ac_cv_prog_cc_g = yes; then |
2918 | if test "$GCC" = yes; then | |
2919 | CFLAGS="-g -O2" | |
2920 | else | |
2921 | CFLAGS="-g" | |
2922 | fi | |
2923 | else | |
2924 | if test "$GCC" = yes; then | |
2925 | CFLAGS="-O2" | |
2926 | else | |
2927 | CFLAGS= | |
2928 | fi | |
2929 | fi | |
81ecdfbb RW |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2931 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2932 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
2933 | $as_echo_n "(cached) " >&6 | |
bec39cab | 2934 | else |
81ecdfbb | 2935 | ac_cv_prog_cc_c89=no |
bec39cab | 2936 | ac_save_CC=$CC |
81ecdfbb | 2937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
2938 | /* end confdefs.h. */ |
2939 | #include <stdarg.h> | |
2940 | #include <stdio.h> | |
2941 | #include <sys/types.h> | |
2942 | #include <sys/stat.h> | |
2943 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2944 | struct buf { int x; }; | |
2945 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2946 | static char *e (p, i) | |
2947 | char **p; | |
2948 | int i; | |
2949 | { | |
2950 | return p[i]; | |
2951 | } | |
2952 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2953 | { | |
2954 | char *s; | |
2955 | va_list v; | |
2956 | va_start (v,p); | |
2957 | s = g (p, va_arg (v,int)); | |
2958 | va_end (v); | |
2959 | return s; | |
2960 | } | |
2961 | ||
2962 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2963 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2964 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 2965 | as 'x'. The following induces an error, until -std is added to get |
bec39cab AC |
2966 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2967 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 2968 | that's true only with -std. */ |
bec39cab AC |
2969 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2970 | ||
81ecdfbb RW |
2971 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2972 | inside strings and character constants. */ | |
2973 | #define FOO(x) 'x' | |
2974 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2975 | ||
bec39cab AC |
2976 | int test (int i, double x); |
2977 | struct s1 {int (*f) (int a);}; | |
2978 | struct s2 {int (*f) (double a);}; | |
2979 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2980 | int argc; | |
2981 | char **argv; | |
2982 | int | |
2983 | main () | |
2984 | { | |
2985 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2986 | ; | |
2987 | return 0; | |
2988 | } | |
2989 | _ACEOF | |
81ecdfbb RW |
2990 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2991 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2992 | do |
2993 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
2994 | if ac_fn_c_try_compile "$LINENO"; then : |
2995 | ac_cv_prog_cc_c89=$ac_arg | |
bec39cab | 2996 | fi |
81ecdfbb RW |
2997 | rm -f core conftest.err conftest.$ac_objext |
2998 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
bec39cab | 2999 | done |
81ecdfbb | 3000 | rm -f conftest.$ac_ext |
bec39cab AC |
3001 | CC=$ac_save_CC |
3002 | ||
3003 | fi | |
81ecdfbb RW |
3004 | # AC_CACHE_VAL |
3005 | case "x$ac_cv_prog_cc_c89" in | |
3006 | x) | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3008 | $as_echo "none needed" >&6; } ;; | |
3009 | xno) | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3011 | $as_echo "unsupported" >&6; } ;; | |
bec39cab | 3012 | *) |
81ecdfbb RW |
3013 | CC="$CC $ac_cv_prog_cc_c89" |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3015 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
bec39cab | 3016 | esac |
81ecdfbb | 3017 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bec39cab | 3018 | |
dae5f5cf DJ |
3019 | fi |
3020 | ||
dae5f5cf | 3021 | ac_ext=c |
bec39cab AC |
3022 | ac_cpp='$CPP $CPPFLAGS' |
3023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
84563040 | 3026 | |
c9a1864a YQ |
3027 | |
3028 | ac_ext=c | |
3029 | ac_cpp='$CPP $CPPFLAGS' | |
3030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3034 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3035 | # On Suns, sometimes $CPP names a directory. | |
3036 | if test -n "$CPP" && test -d "$CPP"; then | |
3037 | CPP= | |
3038 | fi | |
3039 | if test -z "$CPP"; then | |
3040 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3041 | $as_echo_n "(cached) " >&6 | |
3042 | else | |
3043 | # Double quotes because CPP needs to be expanded | |
3044 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3045 | do | |
3046 | ac_preproc_ok=false | |
3047 | for ac_c_preproc_warn_flag in '' yes | |
3048 | do | |
3049 | # Use a header file that comes with gcc, so configuring glibc | |
3050 | # with a fresh cross-compiler works. | |
3051 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3052 | # <limits.h> exists even on freestanding compilers. | |
3053 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3054 | # not just through cpp. "Syntax error" is here to catch this case. | |
3055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3056 | /* end confdefs.h. */ | |
3057 | #ifdef __STDC__ | |
3058 | # include <limits.h> | |
3059 | #else | |
3060 | # include <assert.h> | |
3061 | #endif | |
3062 | Syntax error | |
3063 | _ACEOF | |
3064 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3065 | ||
3066 | else | |
3067 | # Broken: fails on valid input. | |
3068 | continue | |
3069 | fi | |
3070 | rm -f conftest.err conftest.$ac_ext | |
3071 | ||
3072 | # OK, works on sane cases. Now check whether nonexistent headers | |
3073 | # can be detected and how. | |
3074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3075 | /* end confdefs.h. */ | |
3076 | #include <ac_nonexistent.h> | |
3077 | _ACEOF | |
3078 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3079 | # Broken: success on invalid input. | |
3080 | continue | |
3081 | else | |
3082 | # Passes both tests. | |
3083 | ac_preproc_ok=: | |
3084 | break | |
3085 | fi | |
3086 | rm -f conftest.err conftest.$ac_ext | |
3087 | ||
3088 | done | |
3089 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3090 | rm -f conftest.err conftest.$ac_ext | |
3091 | if $ac_preproc_ok; then : | |
3092 | break | |
3093 | fi | |
3094 | ||
3095 | done | |
3096 | ac_cv_prog_CPP=$CPP | |
3097 | ||
3098 | fi | |
3099 | CPP=$ac_cv_prog_CPP | |
3100 | else | |
3101 | ac_cv_prog_CPP=$CPP | |
3102 | fi | |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3104 | $as_echo "$CPP" >&6; } | |
3105 | ac_preproc_ok=false | |
3106 | for ac_c_preproc_warn_flag in '' yes | |
3107 | do | |
3108 | # Use a header file that comes with gcc, so configuring glibc | |
3109 | # with a fresh cross-compiler works. | |
3110 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3111 | # <limits.h> exists even on freestanding compilers. | |
3112 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3113 | # not just through cpp. "Syntax error" is here to catch this case. | |
3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3115 | /* end confdefs.h. */ | |
3116 | #ifdef __STDC__ | |
3117 | # include <limits.h> | |
3118 | #else | |
3119 | # include <assert.h> | |
3120 | #endif | |
3121 | Syntax error | |
3122 | _ACEOF | |
3123 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3124 | ||
3125 | else | |
3126 | # Broken: fails on valid input. | |
3127 | continue | |
3128 | fi | |
3129 | rm -f conftest.err conftest.$ac_ext | |
3130 | ||
3131 | # OK, works on sane cases. Now check whether nonexistent headers | |
3132 | # can be detected and how. | |
81ecdfbb | 3133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
3134 | /* end confdefs.h. */ |
3135 | #include <ac_nonexistent.h> | |
3136 | _ACEOF | |
81ecdfbb | 3137 | if ac_fn_c_try_cpp "$LINENO"; then : |
bec39cab AC |
3138 | # Broken: success on invalid input. |
3139 | continue | |
3140 | else | |
bec39cab AC |
3141 | # Passes both tests. |
3142 | ac_preproc_ok=: | |
3143 | break | |
3144 | fi | |
3145 | rm -f conftest.err conftest.$ac_ext | |
3146 | ||
3147 | done | |
3148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3149 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3150 | if $ac_preproc_ok; then : |
3151 | ||
3152 | else | |
3153 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3155 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3156 | See \`config.log' for more details." "$LINENO" 5; } | |
bec39cab AC |
3157 | fi |
3158 | ||
81ecdfbb RW |
3159 | ac_ext=c |
3160 | ac_cpp='$CPP $CPPFLAGS' | |
3161 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3162 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bec39cab | 3164 | |
81ecdfbb RW |
3165 | |
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3167 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3168 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3169 | $as_echo_n "(cached) " >&6 | |
bec39cab | 3170 | else |
81ecdfbb RW |
3171 | if test -z "$GREP"; then |
3172 | ac_path_GREP_found=false | |
3173 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3175 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
bec39cab | 3176 | do |
81ecdfbb RW |
3177 | IFS=$as_save_IFS |
3178 | test -z "$as_dir" && as_dir=. | |
3179 | for ac_prog in grep ggrep; do | |
3180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3181 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3182 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3183 | # Check for GNU ac_path_GREP and select it if it is found. | |
3184 | # Check for GNU $ac_path_GREP | |
3185 | case `"$ac_path_GREP" --version 2>&1` in | |
3186 | *GNU*) | |
3187 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3188 | *) | |
3189 | ac_count=0 | |
3190 | $as_echo_n 0123456789 >"conftest.in" | |
3191 | while : | |
3192 | do | |
3193 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3194 | mv "conftest.tmp" "conftest.in" | |
3195 | cp "conftest.in" "conftest.nl" | |
3196 | $as_echo 'GREP' >> "conftest.nl" | |
3197 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3198 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3199 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3200 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3201 | # Best one so far, save it but keep looking for a better one | |
3202 | ac_cv_path_GREP="$ac_path_GREP" | |
3203 | ac_path_GREP_max=$ac_count | |
3204 | fi | |
3205 | # 10*(2^10) chars as input seems more than enough | |
3206 | test $ac_count -gt 10 && break | |
3207 | done | |
3208 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3209 | esac | |
3210 | ||
3211 | $ac_path_GREP_found && break 3 | |
3212 | done | |
3213 | done | |
3214 | done | |
3215 | IFS=$as_save_IFS | |
3216 | if test -z "$ac_cv_path_GREP"; then | |
3217 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
bec39cab AC |
3218 | fi |
3219 | else | |
81ecdfbb | 3220 | ac_cv_path_GREP=$GREP |
bec39cab | 3221 | fi |
bec39cab | 3222 | |
84563040 | 3223 | fi |
81ecdfbb RW |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3225 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3226 | GREP="$ac_cv_path_GREP" | |
bec39cab | 3227 | |
bec39cab | 3228 | |
81ecdfbb RW |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3230 | $as_echo_n "checking for egrep... " >&6; } | |
3231 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3232 | $as_echo_n "(cached) " >&6 | |
3233 | else | |
3234 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3235 | then ac_cv_path_EGREP="$GREP -E" | |
3236 | else | |
3237 | if test -z "$EGREP"; then | |
3238 | ac_path_EGREP_found=false | |
3239 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3241 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3242 | do | |
3243 | IFS=$as_save_IFS | |
3244 | test -z "$as_dir" && as_dir=. | |
3245 | for ac_prog in egrep; do | |
3246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3247 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3248 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3249 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3250 | # Check for GNU $ac_path_EGREP | |
3251 | case `"$ac_path_EGREP" --version 2>&1` in | |
3252 | *GNU*) | |
3253 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3254 | *) | |
3255 | ac_count=0 | |
3256 | $as_echo_n 0123456789 >"conftest.in" | |
3257 | while : | |
3258 | do | |
3259 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3260 | mv "conftest.tmp" "conftest.in" | |
3261 | cp "conftest.in" "conftest.nl" | |
3262 | $as_echo 'EGREP' >> "conftest.nl" | |
3263 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3264 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3265 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3266 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3267 | # Best one so far, save it but keep looking for a better one | |
3268 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3269 | ac_path_EGREP_max=$ac_count | |
3270 | fi | |
3271 | # 10*(2^10) chars as input seems more than enough | |
3272 | test $ac_count -gt 10 && break | |
3273 | done | |
3274 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3275 | esac | |
bec39cab | 3276 | |
81ecdfbb RW |
3277 | $ac_path_EGREP_found && break 3 |
3278 | done | |
3279 | done | |
3280 | done | |
3281 | IFS=$as_save_IFS | |
3282 | if test -z "$ac_cv_path_EGREP"; then | |
3283 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3284 | fi | |
bec39cab | 3285 | else |
81ecdfbb | 3286 | ac_cv_path_EGREP=$EGREP |
84563040 | 3287 | fi |
bec39cab | 3288 | |
81ecdfbb | 3289 | fi |
b80864fb | 3290 | fi |
81ecdfbb RW |
3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3292 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3293 | EGREP="$ac_cv_path_EGREP" | |
b80864fb DJ |
3294 | |
3295 | ||
c971b7fa PA |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3297 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3298 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3299 | $as_echo_n "(cached) " >&6 | |
3300 | else | |
3301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3302 | /* end confdefs.h. */ | |
3303 | #include <stdlib.h> | |
3304 | #include <stdarg.h> | |
3305 | #include <string.h> | |
3306 | #include <float.h> | |
bec39cab | 3307 | |
c971b7fa PA |
3308 | int |
3309 | main () | |
3310 | { | |
bec39cab | 3311 | |
c971b7fa PA |
3312 | ; |
3313 | return 0; | |
3314 | } | |
3315 | _ACEOF | |
3316 | if ac_fn_c_try_compile "$LINENO"; then : | |
3317 | ac_cv_header_stdc=yes | |
84563040 | 3318 | else |
c971b7fa PA |
3319 | ac_cv_header_stdc=no |
3320 | fi | |
3321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
84563040 | 3322 | |
c971b7fa PA |
3323 | if test $ac_cv_header_stdc = yes; then |
3324 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
bec39cab | 3326 | /* end confdefs.h. */ |
c971b7fa | 3327 | #include <string.h> |
bec39cab AC |
3328 | |
3329 | _ACEOF | |
84563040 | 3330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
c971b7fa PA |
3331 | $EGREP "memchr" >/dev/null 2>&1; then : |
3332 | ||
84563040 | 3333 | else |
c971b7fa | 3334 | ac_cv_header_stdc=no |
84563040 DJ |
3335 | fi |
3336 | rm -f conftest* | |
3337 | ||
770d76d7 | 3338 | fi |
81ecdfbb | 3339 | |
c971b7fa PA |
3340 | if test $ac_cv_header_stdc = yes; then |
3341 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3343 | /* end confdefs.h. */ | |
3344 | #include <stdlib.h> | |
3345 | ||
3346 | _ACEOF | |
3347 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3348 | $EGREP "free" >/dev/null 2>&1; then : | |
3349 | ||
770d76d7 | 3350 | else |
c971b7fa | 3351 | ac_cv_header_stdc=no |
bec39cab | 3352 | fi |
c971b7fa | 3353 | rm -f conftest* |
bec39cab AC |
3354 | |
3355 | fi | |
c971b7fa PA |
3356 | |
3357 | if test $ac_cv_header_stdc = yes; then | |
3358 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3359 | if test "$cross_compiling" = yes; then : | |
3360 | : | |
770d76d7 | 3361 | else |
c971b7fa PA |
3362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3363 | /* end confdefs.h. */ | |
3364 | #include <ctype.h> | |
3365 | #include <stdlib.h> | |
3366 | #if ((' ' & 0x0FF) == 0x020) | |
3367 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3368 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3369 | #else | |
3370 | # define ISLOWER(c) \ | |
3371 | (('a' <= (c) && (c) <= 'i') \ | |
3372 | || ('j' <= (c) && (c) <= 'r') \ | |
3373 | || ('s' <= (c) && (c) <= 'z')) | |
3374 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3375 | #endif | |
3376 | ||
3377 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3378 | int | |
3379 | main () | |
3380 | { | |
3381 | int i; | |
3382 | for (i = 0; i < 256; i++) | |
3383 | if (XOR (islower (i), ISLOWER (i)) | |
3384 | || toupper (i) != TOUPPER (i)) | |
3385 | return 2; | |
3386 | return 0; | |
3387 | } | |
3388 | _ACEOF | |
3389 | if ac_fn_c_try_run "$LINENO"; then : | |
3390 | ||
770d76d7 | 3391 | else |
c971b7fa PA |
3392 | ac_cv_header_stdc=no |
3393 | fi | |
3394 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3395 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3396 | fi | |
bec39cab | 3397 | |
770d76d7 PA |
3398 | fi |
3399 | fi | |
c971b7fa PA |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3401 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3402 | if test $ac_cv_header_stdc = yes; then | |
3403 | ||
3404 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3405 | ||
770d76d7 | 3406 | fi |
bec39cab | 3407 | |
c971b7fa PA |
3408 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3409 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3410 | inttypes.h stdint.h unistd.h | |
3411 | do : | |
3412 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3413 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3414 | " | |
3415 | eval as_val=\$$as_ac_Header | |
3416 | if test "x$as_val" = x""yes; then : | |
3417 | cat >>confdefs.h <<_ACEOF | |
3418 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3419 | _ACEOF | |
3420 | ||
81ecdfbb | 3421 | fi |
bec39cab | 3422 | |
c971b7fa | 3423 | done |
bec39cab AC |
3424 | |
3425 | ||
3426 | ||
c971b7fa PA |
3427 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
3428 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3429 | MINIX=yes | |
770d76d7 | 3430 | else |
c971b7fa | 3431 | MINIX= |
770d76d7 | 3432 | fi |
bec39cab AC |
3433 | |
3434 | ||
c971b7fa PA |
3435 | if test "$MINIX" = yes; then |
3436 | ||
3437 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3438 | ||
3439 | ||
3440 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3441 | ||
3442 | ||
3443 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3444 | ||
770d76d7 | 3445 | fi |
bec39cab | 3446 | |
c971b7fa PA |
3447 | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3449 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3450 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3451 | $as_echo_n "(cached) " >&6 | |
770d76d7 | 3452 | else |
c971b7fa PA |
3453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3454 | /* end confdefs.h. */ | |
bec39cab | 3455 | |
c971b7fa PA |
3456 | # define __EXTENSIONS__ 1 |
3457 | $ac_includes_default | |
3458 | int | |
3459 | main () | |
3460 | { | |
3461 | ||
3462 | ; | |
3463 | return 0; | |
3464 | } | |
3465 | _ACEOF | |
3466 | if ac_fn_c_try_compile "$LINENO"; then : | |
3467 | ac_cv_safe_to_define___extensions__=yes | |
770d76d7 | 3468 | else |
c971b7fa PA |
3469 | ac_cv_safe_to_define___extensions__=no |
3470 | fi | |
3471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
770d76d7 | 3472 | fi |
c971b7fa PA |
3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3474 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3475 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3476 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3477 | ||
3478 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3479 | ||
3480 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3481 | ||
3482 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3483 | ||
3484 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3485 | ||
bec39cab | 3486 | |
c9a1864a | 3487 | |
589bc927 TT |
3488 | # Check whether --enable-largefile was given. |
3489 | if test "${enable_largefile+set}" = set; then : | |
3490 | enableval=$enable_largefile; | |
3491 | fi | |
3492 | ||
3493 | if test "$enable_largefile" != no; then | |
3494 | ||
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
3496 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
3497 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
3498 | $as_echo_n "(cached) " >&6 | |
3499 | else | |
3500 | ac_cv_sys_largefile_CC=no | |
3501 | if test "$GCC" != yes; then | |
3502 | ac_save_CC=$CC | |
3503 | while :; do | |
3504 | # IRIX 6.2 and later do not support large files by default, | |
3505 | # so use the C compiler's -n32 option if that helps. | |
3506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3507 | /* end confdefs.h. */ | |
3508 | #include <sys/types.h> | |
3509 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3510 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3511 | since some C++ compilers masquerading as C compilers | |
3512 | incorrectly reject 9223372036854775807. */ | |
3513 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3514 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3515 | && LARGE_OFF_T % 2147483647 == 1) | |
3516 | ? 1 : -1]; | |
3517 | int | |
3518 | main () | |
3519 | { | |
3520 | ||
3521 | ; | |
3522 | return 0; | |
3523 | } | |
3524 | _ACEOF | |
3525 | if ac_fn_c_try_compile "$LINENO"; then : | |
3526 | break | |
3527 | fi | |
3528 | rm -f core conftest.err conftest.$ac_objext | |
3529 | CC="$CC -n32" | |
3530 | if ac_fn_c_try_compile "$LINENO"; then : | |
3531 | ac_cv_sys_largefile_CC=' -n32'; break | |
3532 | fi | |
3533 | rm -f core conftest.err conftest.$ac_objext | |
3534 | break | |
3535 | done | |
3536 | CC=$ac_save_CC | |
3537 | rm -f conftest.$ac_ext | |
3538 | fi | |
3539 | fi | |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
3541 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
3542 | if test "$ac_cv_sys_largefile_CC" != no; then | |
3543 | CC=$CC$ac_cv_sys_largefile_CC | |
3544 | fi | |
3545 | ||
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
3547 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
3548 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
3549 | $as_echo_n "(cached) " >&6 | |
3550 | else | |
3551 | while :; do | |
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3553 | /* end confdefs.h. */ | |
3554 | #include <sys/types.h> | |
3555 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3556 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3557 | since some C++ compilers masquerading as C compilers | |
3558 | incorrectly reject 9223372036854775807. */ | |
3559 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3560 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3561 | && LARGE_OFF_T % 2147483647 == 1) | |
3562 | ? 1 : -1]; | |
3563 | int | |
3564 | main () | |
3565 | { | |
3566 | ||
3567 | ; | |
3568 | return 0; | |
3569 | } | |
3570 | _ACEOF | |
3571 | if ac_fn_c_try_compile "$LINENO"; then : | |
3572 | ac_cv_sys_file_offset_bits=no; break | |
3573 | fi | |
3574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3576 | /* end confdefs.h. */ | |
3577 | #define _FILE_OFFSET_BITS 64 | |
3578 | #include <sys/types.h> | |
3579 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3580 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3581 | since some C++ compilers masquerading as C compilers | |
3582 | incorrectly reject 9223372036854775807. */ | |
3583 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3584 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3585 | && LARGE_OFF_T % 2147483647 == 1) | |
3586 | ? 1 : -1]; | |
3587 | int | |
3588 | main () | |
3589 | { | |
3590 | ||
3591 | ; | |
3592 | return 0; | |
3593 | } | |
3594 | _ACEOF | |
3595 | if ac_fn_c_try_compile "$LINENO"; then : | |
3596 | ac_cv_sys_file_offset_bits=64; break | |
3597 | fi | |
3598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3599 | ac_cv_sys_file_offset_bits=unknown | |
3600 | break | |
3601 | done | |
3602 | fi | |
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
3604 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
3605 | case $ac_cv_sys_file_offset_bits in #( | |
3606 | no | unknown) ;; | |
3607 | *) | |
3608 | cat >>confdefs.h <<_ACEOF | |
3609 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3610 | _ACEOF | |
3611 | ;; | |
3612 | esac | |
3613 | rm -rf conftest* | |
3614 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
3616 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
3617 | if test "${ac_cv_sys_large_files+set}" = set; then : | |
3618 | $as_echo_n "(cached) " >&6 | |
3619 | else | |
3620 | while :; do | |
3621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3622 | /* end confdefs.h. */ | |
3623 | #include <sys/types.h> | |
3624 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3625 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3626 | since some C++ compilers masquerading as C compilers | |
3627 | incorrectly reject 9223372036854775807. */ | |
3628 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3629 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3630 | && LARGE_OFF_T % 2147483647 == 1) | |
3631 | ? 1 : -1]; | |
3632 | int | |
3633 | main () | |
3634 | { | |
3635 | ||
3636 | ; | |
3637 | return 0; | |
3638 | } | |
3639 | _ACEOF | |
3640 | if ac_fn_c_try_compile "$LINENO"; then : | |
3641 | ac_cv_sys_large_files=no; break | |
3642 | fi | |
3643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3645 | /* end confdefs.h. */ | |
3646 | #define _LARGE_FILES 1 | |
3647 | #include <sys/types.h> | |
3648 | /* Check that off_t can represent 2**63 - 1 correctly. | |
3649 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3650 | since some C++ compilers masquerading as C compilers | |
3651 | incorrectly reject 9223372036854775807. */ | |
3652 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3653 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3654 | && LARGE_OFF_T % 2147483647 == 1) | |
3655 | ? 1 : -1]; | |
3656 | int | |
3657 | main () | |
3658 | { | |
3659 | ||
3660 | ; | |
3661 | return 0; | |
3662 | } | |
3663 | _ACEOF | |
3664 | if ac_fn_c_try_compile "$LINENO"; then : | |
3665 | ac_cv_sys_large_files=1; break | |
3666 | fi | |
3667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3668 | ac_cv_sys_large_files=unknown | |
3669 | break | |
3670 | done | |
3671 | fi | |
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
3673 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
3674 | case $ac_cv_sys_large_files in #( | |
3675 | no | unknown) ;; | |
3676 | *) | |
3677 | cat >>confdefs.h <<_ACEOF | |
3678 | #define _LARGE_FILES $ac_cv_sys_large_files | |
3679 | _ACEOF | |
3680 | ;; | |
3681 | esac | |
3682 | rm -rf conftest* | |
3683 | fi | |
3684 | fi | |
3685 | ||
c9a1864a | 3686 | |
770d76d7 PA |
3687 | ac_aux_dir= |
3688 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3689 | for ac_t in install-sh install.sh shtool; do | |
3690 | if test -f "$ac_dir/$ac_t"; then | |
3691 | ac_aux_dir=$ac_dir | |
3692 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
3693 | break 2 | |
3694 | fi | |
3695 | done | |
3696 | done | |
3697 | if test -z "$ac_aux_dir"; then | |
3698 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3699 | fi | |
3700 | ||
3701 | # These three variables are undocumented and unsupported, | |
3702 | # and are intended to be withdrawn in a future Autoconf release. | |
3703 | # They can cause serious problems if a builder's source tree is in a directory | |
3704 | # whose full name contains unusual characters. | |
3705 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3706 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3707 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
c9a1864a | 3708 | |
bec39cab | 3709 | |
770d76d7 PA |
3710 | # Make sure we can run config.sub. |
3711 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3712 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3713 | ||
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3715 | $as_echo_n "checking build system type... " >&6; } | |
3716 | if test "${ac_cv_build+set}" = set; then : | |
81ecdfbb RW |
3717 | $as_echo_n "(cached) " >&6 |
3718 | else | |
770d76d7 PA |
3719 | ac_build_alias=$build_alias |
3720 | test "x$ac_build_alias" = x && | |
3721 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3722 | test "x$ac_build_alias" = x && | |
3723 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3724 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3725 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3726 | ||
3727 | fi | |
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3729 | $as_echo "$ac_cv_build" >&6; } | |
3730 | case $ac_cv_build in | |
3731 | *-*-*) ;; | |
3732 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3733 | esac | |
3734 | build=$ac_cv_build | |
3735 | ac_save_IFS=$IFS; IFS='-' | |
3736 | set x $ac_cv_build | |
3737 | shift | |
3738 | build_cpu=$1 | |
3739 | build_vendor=$2 | |
3740 | shift; shift | |
3741 | # Remember, the first character of IFS is used to create $*, | |
3742 | # except with old shells: | |
3743 | build_os=$* | |
3744 | IFS=$ac_save_IFS | |
3745 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3746 | ||
3747 | ||
3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3749 | $as_echo_n "checking host system type... " >&6; } | |
3750 | if test "${ac_cv_host+set}" = set; then : | |
3751 | $as_echo_n "(cached) " >&6 | |
3752 | else | |
3753 | if test "x$host_alias" = x; then | |
3754 | ac_cv_host=$ac_cv_build | |
3755 | else | |
3756 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3757 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3758 | fi | |
3759 | ||
3760 | fi | |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3762 | $as_echo "$ac_cv_host" >&6; } | |
3763 | case $ac_cv_host in | |
3764 | *-*-*) ;; | |
3765 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3766 | esac | |
3767 | host=$ac_cv_host | |
3768 | ac_save_IFS=$IFS; IFS='-' | |
3769 | set x $ac_cv_host | |
3770 | shift | |
3771 | host_cpu=$1 | |
3772 | host_vendor=$2 | |
3773 | shift; shift | |
3774 | # Remember, the first character of IFS is used to create $*, | |
3775 | # except with old shells: | |
3776 | host_os=$* | |
3777 | IFS=$ac_save_IFS | |
3778 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3779 | ||
3780 | ||
c971b7fa PA |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3782 | $as_echo_n "checking target system type... " >&6; } | |
3783 | if test "${ac_cv_target+set}" = set; then : | |
770d76d7 PA |
3784 | $as_echo_n "(cached) " >&6 |
3785 | else | |
c971b7fa PA |
3786 | if test "x$target_alias" = x; then |
3787 | ac_cv_target=$ac_cv_host | |
770d76d7 | 3788 | else |
c971b7fa PA |
3789 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3790 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
770d76d7 | 3791 | fi |
770d76d7 PA |
3792 | |
3793 | fi | |
c971b7fa PA |
3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3795 | $as_echo "$ac_cv_target" >&6; } | |
3796 | case $ac_cv_target in | |
3797 | *-*-*) ;; | |
3798 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
3799 | esac | |
3800 | target=$ac_cv_target | |
3801 | ac_save_IFS=$IFS; IFS='-' | |
3802 | set x $ac_cv_target | |
3803 | shift | |
3804 | target_cpu=$1 | |
3805 | target_vendor=$2 | |
3806 | shift; shift | |
3807 | # Remember, the first character of IFS is used to create $*, | |
3808 | # except with old shells: | |
3809 | target_os=$* | |
3810 | IFS=$ac_save_IFS | |
3811 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
770d76d7 | 3812 | |
770d76d7 | 3813 | |
c971b7fa PA |
3814 | # The aliases save the names the user supplied, while $host etc. |
3815 | # will get canonicalized. | |
3816 | test -n "$target_alias" && | |
3817 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3818 | NONENONEs,x,x, && | |
3819 | program_prefix=${target_alias}- | |
770d76d7 | 3820 | |
770d76d7 | 3821 | |
c971b7fa PA |
3822 | # Find a good install program. We prefer a C program (faster), |
3823 | # so one script is as good as another. But avoid the broken or | |
3824 | # incompatible versions: | |
3825 | # SysV /etc/install, /usr/sbin/install | |
3826 | # SunOS /usr/etc/install | |
3827 | # IRIX /sbin/install | |
3828 | # AIX /bin/install | |
3829 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3830 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3831 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3832 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3833 | # OS/2's system install, which has a completely different semantic | |
3834 | # ./install, which can be erroneously created by make from ./install.sh. | |
3835 | # Reject install programs that cannot install multiple files. | |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3837 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3838 | if test -z "$INSTALL"; then | |
3839 | if test "${ac_cv_path_install+set}" = set; then : | |
3840 | $as_echo_n "(cached) " >&6 | |
81ecdfbb RW |
3841 | else |
3842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3843 | for as_dir in $PATH | |
fd462a61 | 3844 | do |
81ecdfbb RW |
3845 | IFS=$as_save_IFS |
3846 | test -z "$as_dir" && as_dir=. | |
3847 | # Account for people who put trailing slashes in PATH elements. | |
3848 | case $as_dir/ in #(( | |
3849 | ./ | .// | /[cC]/* | \ | |
3850 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3851 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3852 | /usr/ucb/* ) ;; | |
3853 | *) | |
3854 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3855 | # Don't use installbsd from OSF since it installs stuff as root | |
3856 | # by default. | |
3857 | for ac_prog in ginstall scoinst install; do | |
3858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3859 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3860 | if test $ac_prog = install && | |
3861 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3862 | # AIX install. It has an incompatible calling convention. | |
3863 | : | |
3864 | elif test $ac_prog = install && | |
3865 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3866 | # program-specific install script used by HP pwplus--don't use. | |
3867 | : | |
3868 | else | |
3869 | rm -rf conftest.one conftest.two conftest.dir | |
3870 | echo one > conftest.one | |
3871 | echo two > conftest.two | |
3872 | mkdir conftest.dir | |
3873 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3874 | test -s conftest.one && test -s conftest.two && | |
3875 | test -s conftest.dir/conftest.one && | |
3876 | test -s conftest.dir/conftest.two | |
3877 | then | |
3878 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3879 | break 3 | |
3880 | fi | |
3881 | fi | |
3882 | fi | |
3883 | done | |
3884 | done | |
3885 | ;; | |
3886 | esac | |
fd462a61 | 3887 | |
81ecdfbb RW |
3888 | done |
3889 | IFS=$as_save_IFS | |
fd462a61 | 3890 | |
81ecdfbb | 3891 | rm -rf conftest.one conftest.two conftest.dir |
fd462a61 | 3892 | |
fd462a61 | 3893 | fi |
81ecdfbb RW |
3894 | if test "${ac_cv_path_install+set}" = set; then |
3895 | INSTALL=$ac_cv_path_install | |
3896 | else | |
3897 | # As a last resort, use the slow shell script. Don't cache a | |
3898 | # value for INSTALL within a source directory, because that will | |
3899 | # break other packages using the cache if that directory is | |
3900 | # removed, or if the value is a relative name. | |
3901 | INSTALL=$ac_install_sh | |
3902 | fi | |
fd462a61 | 3903 | fi |
81ecdfbb RW |
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3905 | $as_echo "$INSTALL" >&6; } | |
fd462a61 | 3906 | |
81ecdfbb RW |
3907 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3908 | # It thinks the first close brace ends the variable substitution. | |
3909 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
fd462a61 | 3910 | |
81ecdfbb | 3911 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fd462a61 | 3912 | |
81ecdfbb | 3913 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
e28b3332 | 3914 | |
c971b7fa PA |
3915 | if test -n "$ac_tool_prefix"; then |
3916 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3917 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3919 | $as_echo_n "checking for $ac_word... " >&6; } | |
3920 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
81ecdfbb RW |
3921 | $as_echo_n "(cached) " >&6 |
3922 | else | |
c971b7fa PA |
3923 | if test -n "$RANLIB"; then |
3924 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
e28b3332 | 3925 | else |
c971b7fa PA |
3926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3927 | for as_dir in $PATH | |
3928 | do | |
3929 | IFS=$as_save_IFS | |
3930 | test -z "$as_dir" && as_dir=. | |
3931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3933 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3935 | break 2 | |
3936 | fi | |
3937 | done | |
3938 | done | |
3939 | IFS=$as_save_IFS | |
3940 | ||
3941 | fi | |
3942 | fi | |
3943 | RANLIB=$ac_cv_prog_RANLIB | |
3944 | if test -n "$RANLIB"; then | |
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3946 | $as_echo "$RANLIB" >&6; } | |
3947 | else | |
3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3949 | $as_echo "no" >&6; } | |
3950 | fi | |
3951 | ||
3952 | ||
3953 | fi | |
3954 | if test -z "$ac_cv_prog_RANLIB"; then | |
3955 | ac_ct_RANLIB=$RANLIB | |
3956 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3957 | set dummy ranlib; ac_word=$2 | |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3959 | $as_echo_n "checking for $ac_word... " >&6; } | |
3960 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
3961 | $as_echo_n "(cached) " >&6 | |
3962 | else | |
3963 | if test -n "$ac_ct_RANLIB"; then | |
3964 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3965 | else | |
3966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3967 | for as_dir in $PATH | |
3968 | do | |
3969 | IFS=$as_save_IFS | |
3970 | test -z "$as_dir" && as_dir=. | |
3971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3973 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3975 | break 2 | |
3976 | fi | |
3977 | done | |
3978 | done | |
3979 | IFS=$as_save_IFS | |
3980 | ||
3981 | fi | |
3982 | fi | |
3983 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3984 | if test -n "$ac_ct_RANLIB"; then | |
3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3986 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3987 | else | |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3989 | $as_echo "no" >&6; } | |
3990 | fi | |
3991 | ||
3992 | if test "x$ac_ct_RANLIB" = x; then | |
3993 | RANLIB=":" | |
3994 | else | |
3995 | case $cross_compiling:$ac_tool_warned in | |
3996 | yes:) | |
3997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3998 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3999 | ac_tool_warned=yes ;; | |
4000 | esac | |
4001 | RANLIB=$ac_ct_RANLIB | |
4002 | fi | |
4003 | else | |
4004 | RANLIB="$ac_cv_prog_RANLIB" | |
4005 | fi | |
4006 | ||
4007 | ||
4008 | test "$program_prefix" != NONE && | |
4009 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4010 | # Use a double $ so make ignores it. | |
4011 | test "$program_suffix" != NONE && | |
4012 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4013 | # Double any \ or $. | |
4014 | # By default was `s,x,x', remove it if useless. | |
4015 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4016 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4017 | ||
4018 | ||
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4020 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4021 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4022 | $as_echo_n "(cached) " >&6 | |
4023 | else | |
4024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4025 | /* end confdefs.h. */ | |
4026 | #include <stdlib.h> | |
4027 | #include <stdarg.h> | |
4028 | #include <string.h> | |
4029 | #include <float.h> | |
4030 | ||
4031 | int | |
4032 | main () | |
4033 | { | |
4034 | ||
4035 | ; | |
4036 | return 0; | |
4037 | } | |
4038 | _ACEOF | |
4039 | if ac_fn_c_try_compile "$LINENO"; then : | |
4040 | ac_cv_header_stdc=yes | |
4041 | else | |
4042 | ac_cv_header_stdc=no | |
4043 | fi | |
4044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4045 | ||
4046 | if test $ac_cv_header_stdc = yes; then | |
4047 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4049 | /* end confdefs.h. */ | |
4050 | #include <string.h> | |
4051 | ||
4052 | _ACEOF | |
4053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4054 | $EGREP "memchr" >/dev/null 2>&1; then : |
4055 | ||
68070c10 | 4056 | else |
81ecdfbb RW |
4057 | ac_cv_header_stdc=no |
4058 | fi | |
4059 | rm -f conftest* | |
68070c10 PA |
4060 | |
4061 | fi | |
68070c10 | 4062 | |
81ecdfbb RW |
4063 | if test $ac_cv_header_stdc = yes; then |
4064 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4066 | /* end confdefs.h. */ | |
4067 | #include <stdlib.h> | |
68070c10 | 4068 | |
68070c10 | 4069 | _ACEOF |
81ecdfbb RW |
4070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4071 | $EGREP "free" >/dev/null 2>&1; then : | |
68070c10 PA |
4072 | |
4073 | else | |
81ecdfbb | 4074 | ac_cv_header_stdc=no |
68070c10 | 4075 | fi |
81ecdfbb RW |
4076 | rm -f conftest* |
4077 | ||
68070c10 PA |
4078 | fi |
4079 | ||
81ecdfbb RW |
4080 | if test $ac_cv_header_stdc = yes; then |
4081 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4082 | if test "$cross_compiling" = yes; then : | |
4083 | : | |
43d5792c | 4084 | else |
81ecdfbb | 4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 4086 | /* end confdefs.h. */ |
81ecdfbb RW |
4087 | #include <ctype.h> |
4088 | #include <stdlib.h> | |
4089 | #if ((' ' & 0x0FF) == 0x020) | |
4090 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4091 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4092 | #else | |
4093 | # define ISLOWER(c) \ | |
4094 | (('a' <= (c) && (c) <= 'i') \ | |
4095 | || ('j' <= (c) && (c) <= 'r') \ | |
4096 | || ('s' <= (c) && (c) <= 'z')) | |
4097 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4098 | #endif | |
4099 | ||
4100 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
bec39cab AC |
4101 | int |
4102 | main () | |
4103 | { | |
81ecdfbb RW |
4104 | int i; |
4105 | for (i = 0; i < 256; i++) | |
4106 | if (XOR (islower (i), ISLOWER (i)) | |
4107 | || toupper (i) != TOUPPER (i)) | |
4108 | return 2; | |
bec39cab AC |
4109 | return 0; |
4110 | } | |
4111 | _ACEOF | |
81ecdfbb | 4112 | if ac_fn_c_try_run "$LINENO"; then : |
bec39cab | 4113 | |
81ecdfbb RW |
4114 | else |
4115 | ac_cv_header_stdc=no | |
43d5792c | 4116 | fi |
81ecdfbb RW |
4117 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4118 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
43d5792c | 4119 | fi |
e122f1f5 | 4120 | |
68070c10 | 4121 | fi |
81ecdfbb RW |
4122 | fi |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4124 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4125 | if test $ac_cv_header_stdc = yes; then | |
68070c10 | 4126 | |
81ecdfbb | 4127 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
68070c10 | 4128 | |
68070c10 | 4129 | fi |
68070c10 | 4130 | |
d26e3629 KY |
4131 | ac_header_dirent=no |
4132 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4133 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4135 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4136 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4137 | $as_echo_n "(cached) " >&6 | |
4138 | else | |
4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4140 | /* end confdefs.h. */ | |
4141 | #include <sys/types.h> | |
4142 | #include <$ac_hdr> | |
4143 | ||
4144 | int | |
4145 | main () | |
4146 | { | |
4147 | if ((DIR *) 0) | |
4148 | return 0; | |
4149 | ; | |
4150 | return 0; | |
4151 | } | |
4152 | _ACEOF | |
4153 | if ac_fn_c_try_compile "$LINENO"; then : | |
4154 | eval "$as_ac_Header=yes" | |
4155 | else | |
4156 | eval "$as_ac_Header=no" | |
4157 | fi | |
4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4159 | fi | |
4160 | eval ac_res=\$$as_ac_Header | |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4162 | $as_echo "$ac_res" >&6; } | |
4163 | eval as_val=\$$as_ac_Header | |
4164 | if test "x$as_val" = x""yes; then : | |
4165 | cat >>confdefs.h <<_ACEOF | |
4166 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4167 | _ACEOF | |
4168 | ||
4169 | ac_header_dirent=$ac_hdr; break | |
4170 | fi | |
4171 | ||
4172 | done | |
4173 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4174 | if test $ac_header_dirent = dirent.h; then | |
4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4176 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4177 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4178 | $as_echo_n "(cached) " >&6 | |
4179 | else | |
4180 | ac_func_search_save_LIBS=$LIBS | |
4181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4182 | /* end confdefs.h. */ | |
4183 | ||
4184 | /* Override any GCC internal prototype to avoid an error. | |
4185 | Use char because int might match the return type of a GCC | |
4186 | builtin and then its argument prototype would still apply. */ | |
4187 | #ifdef __cplusplus | |
4188 | extern "C" | |
4189 | #endif | |
4190 | char opendir (); | |
4191 | int | |
4192 | main () | |
4193 | { | |
4194 | return opendir (); | |
4195 | ; | |
4196 | return 0; | |
4197 | } | |
4198 | _ACEOF | |
4199 | for ac_lib in '' dir; do | |
4200 | if test -z "$ac_lib"; then | |
4201 | ac_res="none required" | |
4202 | else | |
4203 | ac_res=-l$ac_lib | |
4204 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4205 | fi | |
4206 | if ac_fn_c_try_link "$LINENO"; then : | |
4207 | ac_cv_search_opendir=$ac_res | |
4208 | fi | |
4209 | rm -f core conftest.err conftest.$ac_objext \ | |
4210 | conftest$ac_exeext | |
4211 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4212 | break | |
4213 | fi | |
4214 | done | |
4215 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4216 | ||
4217 | else | |
4218 | ac_cv_search_opendir=no | |
4219 | fi | |
4220 | rm conftest.$ac_ext | |
4221 | LIBS=$ac_func_search_save_LIBS | |
4222 | fi | |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4224 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4225 | ac_res=$ac_cv_search_opendir | |
4226 | if test "$ac_res" != no; then : | |
4227 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4228 | ||
4229 | fi | |
4230 | ||
4231 | else | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4233 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4234 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4235 | $as_echo_n "(cached) " >&6 | |
4236 | else | |
4237 | ac_func_search_save_LIBS=$LIBS | |
4238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4239 | /* end confdefs.h. */ | |
4240 | ||
4241 | /* Override any GCC internal prototype to avoid an error. | |
4242 | Use char because int might match the return type of a GCC | |
4243 | builtin and then its argument prototype would still apply. */ | |
4244 | #ifdef __cplusplus | |
4245 | extern "C" | |
4246 | #endif | |
4247 | char opendir (); | |
4248 | int | |
4249 | main () | |
4250 | { | |
4251 | return opendir (); | |
4252 | ; | |
4253 | return 0; | |
4254 | } | |
4255 | _ACEOF | |
4256 | for ac_lib in '' x; do | |
4257 | if test -z "$ac_lib"; then | |
4258 | ac_res="none required" | |
4259 | else | |
4260 | ac_res=-l$ac_lib | |
4261 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4262 | fi | |
4263 | if ac_fn_c_try_link "$LINENO"; then : | |
4264 | ac_cv_search_opendir=$ac_res | |
4265 | fi | |
4266 | rm -f core conftest.err conftest.$ac_objext \ | |
4267 | conftest$ac_exeext | |
4268 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4269 | break | |
4270 | fi | |
4271 | done | |
4272 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4273 | ||
4274 | else | |
4275 | ac_cv_search_opendir=no | |
4276 | fi | |
4277 | rm conftest.$ac_ext | |
4278 | LIBS=$ac_func_search_save_LIBS | |
4279 | fi | |
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4281 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4282 | ac_res=$ac_cv_search_opendir | |
4283 | if test "$ac_res" != no; then : | |
4284 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4285 | ||
4286 | fi | |
4287 | ||
4288 | fi | |
4289 | ||
68070c10 | 4290 | |
a1723c35 | 4291 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4292 | # for constant arguments. Useless! | |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
4294 | $as_echo_n "checking for working alloca.h... " >&6; } | |
4295 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
4296 | $as_echo_n "(cached) " >&6 | |
4297 | else | |
4298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4299 | /* end confdefs.h. */ | |
4300 | #include <alloca.h> | |
4301 | int | |
4302 | main () | |
4303 | { | |
4304 | char *p = (char *) alloca (2 * sizeof (int)); | |
4305 | if (p) return 0; | |
4306 | ; | |
4307 | return 0; | |
4308 | } | |
4309 | _ACEOF | |
4310 | if ac_fn_c_try_link "$LINENO"; then : | |
4311 | ac_cv_working_alloca_h=yes | |
4312 | else | |
4313 | ac_cv_working_alloca_h=no | |
4314 | fi | |
4315 | rm -f core conftest.err conftest.$ac_objext \ | |
4316 | conftest$ac_exeext conftest.$ac_ext | |
4317 | fi | |
4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
4319 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
4320 | if test $ac_cv_working_alloca_h = yes; then | |
4321 | ||
4322 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
4323 | ||
4324 | fi | |
4325 | ||
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
4327 | $as_echo_n "checking for alloca... " >&6; } | |
4328 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
4329 | $as_echo_n "(cached) " >&6 | |
4330 | else | |
4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4332 | /* end confdefs.h. */ | |
4333 | #ifdef __GNUC__ | |
4334 | # define alloca __builtin_alloca | |
4335 | #else | |
4336 | # ifdef _MSC_VER | |
4337 | # include <malloc.h> | |
4338 | # define alloca _alloca | |
4339 | # else | |
4340 | # ifdef HAVE_ALLOCA_H | |
4341 | # include <alloca.h> | |
4342 | # else | |
4343 | # ifdef _AIX | |
4344 | #pragma alloca | |
4345 | # else | |
4346 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4347 | char *alloca (); | |
4348 | # endif | |
4349 | # endif | |
4350 | # endif | |
4351 | # endif | |
4352 | #endif | |
4353 | ||
4354 | int | |
4355 | main () | |
4356 | { | |
4357 | char *p = (char *) alloca (1); | |
4358 | if (p) return 0; | |
4359 | ; | |
4360 | return 0; | |
4361 | } | |
4362 | _ACEOF | |
4363 | if ac_fn_c_try_link "$LINENO"; then : | |
4364 | ac_cv_func_alloca_works=yes | |
4365 | else | |
4366 | ac_cv_func_alloca_works=no | |
4367 | fi | |
4368 | rm -f core conftest.err conftest.$ac_objext \ | |
4369 | conftest$ac_exeext conftest.$ac_ext | |
4370 | fi | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
4372 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
4373 | ||
4374 | if test $ac_cv_func_alloca_works = yes; then | |
4375 | ||
4376 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
4377 | ||
4378 | else | |
4379 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
4380 | # that cause trouble. Some versions do not even contain alloca or | |
4381 | # contain a buggy version. If you still want to use their alloca, | |
4382 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
4383 | ||
4384 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
4385 | ||
4386 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
4387 | ||
4388 | ||
4389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
4390 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
4391 | if test "${ac_cv_os_cray+set}" = set; then : | |
4392 | $as_echo_n "(cached) " >&6 | |
4393 | else | |
4394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4395 | /* end confdefs.h. */ | |
4396 | #if defined CRAY && ! defined CRAY2 | |
4397 | webecray | |
4398 | #else | |
4399 | wenotbecray | |
4400 | #endif | |
4401 | ||
4402 | _ACEOF | |
4403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4404 | $EGREP "webecray" >/dev/null 2>&1; then : | |
4405 | ac_cv_os_cray=yes | |
4406 | else | |
4407 | ac_cv_os_cray=no | |
4408 | fi | |
4409 | rm -f conftest* | |
4410 | ||
4411 | fi | |
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
4413 | $as_echo "$ac_cv_os_cray" >&6; } | |
4414 | if test $ac_cv_os_cray = yes; then | |
4415 | for ac_func in _getb67 GETB67 getb67; do | |
4416 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4417 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4418 | eval as_val=\$$as_ac_var | |
4419 | if test "x$as_val" = x""yes; then : | |
4420 | ||
4421 | cat >>confdefs.h <<_ACEOF | |
4422 | #define CRAY_STACKSEG_END $ac_func | |
4423 | _ACEOF | |
4424 | ||
4425 | break | |
4426 | fi | |
4427 | ||
4428 | done | |
4429 | fi | |
4430 | ||
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
4432 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
4433 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
4434 | $as_echo_n "(cached) " >&6 | |
4435 | else | |
4436 | if test "$cross_compiling" = yes; then : | |
4437 | ac_cv_c_stack_direction=0 | |
4438 | else | |
4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4440 | /* end confdefs.h. */ | |
4441 | $ac_includes_default | |
4442 | int | |
4443 | find_stack_direction () | |
4444 | { | |
4445 | static char *addr = 0; | |
4446 | auto char dummy; | |
4447 | if (addr == 0) | |
4448 | { | |
4449 | addr = &dummy; | |
4450 | return find_stack_direction (); | |
4451 | } | |
4452 | else | |
4453 | return (&dummy > addr) ? 1 : -1; | |
4454 | } | |
4455 | ||
4456 | int | |
4457 | main () | |
4458 | { | |
4459 | return find_stack_direction () < 0; | |
4460 | } | |
4461 | _ACEOF | |
4462 | if ac_fn_c_try_run "$LINENO"; then : | |
4463 | ac_cv_c_stack_direction=1 | |
4464 | else | |
4465 | ac_cv_c_stack_direction=-1 | |
4466 | fi | |
4467 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4468 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4469 | fi | |
4470 | ||
4471 | fi | |
4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
4473 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
4474 | cat >>confdefs.h <<_ACEOF | |
4475 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4476 | _ACEOF | |
4477 | ||
4478 | ||
4479 | fi | |
4480 | ||
c9a1864a | 4481 | |
61c125b9 TT |
4482 | # Dependency checking. |
4483 | rm -rf .tst 2>/dev/null | |
4484 | mkdir .tst 2>/dev/null | |
4485 | if test -d .tst; then | |
4486 | am__leading_dot=. | |
4487 | else | |
4488 | am__leading_dot=_ | |
4489 | fi | |
4490 | rmdir .tst 2>/dev/null | |
4491 | ||
4492 | DEPDIR="${am__leading_dot}deps" | |
4493 | ||
4494 | ac_config_commands="$ac_config_commands depdir" | |
4495 | ||
4496 | ||
4497 | depcc="$CC" am_compiler_list= | |
4498 | ||
4499 | am_depcomp=$ac_aux_dir/depcomp | |
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4501 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4502 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4503 | $as_echo_n "(cached) " >&6 | |
4504 | else | |
4505 | if test -f "$am_depcomp"; then | |
4506 | # We make a subdir and do the tests there. Otherwise we can end up | |
4507 | # making bogus files that we don't know about and never remove. For | |
4508 | # instance it was reported that on HP-UX the gcc test will end up | |
4509 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4510 | # in D'. | |
4511 | mkdir conftest.dir | |
4512 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4513 | # using a relative directory. | |
4514 | cp "$am_depcomp" conftest.dir | |
4515 | cd conftest.dir | |
4516 | # We will build objects and dependencies in a subdirectory because | |
4517 | # it helps to detect inapplicable dependency modes. For instance | |
4518 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4519 | # side effect of compilation, but ICC will put the dependencies in | |
4520 | # the current directory while Tru64 will put them in the object | |
4521 | # directory. | |
4522 | mkdir sub | |
4523 | ||
4524 | am_cv_CC_dependencies_compiler_type=none | |
4525 | if test "$am_compiler_list" = ""; then | |
4526 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4527 | fi | |
4528 | for depmode in $am_compiler_list; do | |
4529 | if test $depmode = none; then break; fi | |
4530 | ||
4531 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
4532 | # Setup a source with many dependencies, because some compilers | |
4533 | # like to wrap large dependency lists on column 80 (with \), and | |
4534 | # we should not choose a depcomp mode which is confused by this. | |
4535 | # | |
4536 | # We need to recreate these files for each test, as the compiler may | |
4537 | # overwrite some of them when testing with obscure command lines. | |
4538 | # This happens at least with the AIX C compiler. | |
4539 | : > sub/conftest.c | |
4540 | for i in 1 2 3 4 5 6; do | |
4541 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4542 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4543 | # Solaris 8's {/usr,}/bin/sh. | |
4544 | touch sub/conftst$i.h | |
4545 | done | |
4546 | echo "include sub/conftest.Po" > confmf | |
4547 | ||
4548 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4549 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4550 | # handle `-M -o', and we need to detect this. | |
4551 | depcmd="depmode=$depmode \ | |
4552 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4553 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4554 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
4555 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
4556 | if env $depcmd > conftest.err 2>&1 && | |
4557 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
4558 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
4559 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
4560 | # icc doesn't choke on unknown options, it will just issue warnings | |
4561 | # or remarks (even with -Werror). So we grep stderr for any message | |
4562 | # that says an option was ignored or not supported. | |
4563 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4564 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4565 | # The diagnosis changed in icc 8.0: | |
4566 | # icc: Command line remark: option '-MP' not supported | |
4567 | if (grep 'ignoring option' conftest.err || | |
4568 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4569 | am_cv_CC_dependencies_compiler_type=$depmode | |
4570 | $as_echo "$as_me:$LINENO: success" >&5 | |
4571 | break | |
4572 | fi | |
4573 | fi | |
4574 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
4575 | sed -e 's/^/| /' < conftest.err >&5 | |
4576 | done | |
4577 | ||
4578 | cd .. | |
4579 | rm -rf conftest.dir | |
4580 | else | |
4581 | am_cv_CC_dependencies_compiler_type=none | |
4582 | fi | |
4583 | ||
4584 | fi | |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4586 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4587 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
4588 | then as_fn_error "no usable dependency style found" "$LINENO" 5 | |
4589 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4590 | ||
4591 | fi | |
4592 | ||
4593 | ||
c9a1864a YQ |
4594 | # Check for the 'make' the user wants to use. |
4595 | for ac_prog in make | |
4596 | do | |
4597 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4598 | set dummy $ac_prog; ac_word=$2 | |
4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4600 | $as_echo_n "checking for $ac_word... " >&6; } | |
4601 | if test "${ac_cv_prog_MAKE+set}" = set; then : | |
4602 | $as_echo_n "(cached) " >&6 | |
4603 | else | |
4604 | if test -n "$MAKE"; then | |
4605 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
4606 | else | |
4607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4608 | for as_dir in $PATH | |
4609 | do | |
4610 | IFS=$as_save_IFS | |
4611 | test -z "$as_dir" && as_dir=. | |
4612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4614 | ac_cv_prog_MAKE="$ac_prog" | |
4615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4616 | break 2 | |
4617 | fi | |
4618 | done | |
4619 | done | |
4620 | IFS=$as_save_IFS | |
4621 | ||
4622 | fi | |
4623 | fi | |
4624 | MAKE=$ac_cv_prog_MAKE | |
4625 | if test -n "$MAKE"; then | |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
4627 | $as_echo "$MAKE" >&6; } | |
4628 | else | |
4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4630 | $as_echo "no" >&6; } | |
4631 | fi | |
4632 | ||
4633 | ||
4634 | test -n "$MAKE" && break | |
4635 | done | |
4636 | ||
61c125b9 TT |
4637 | MAKE_IS_GNU= |
4638 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
4639 | *GNU*) | |
4640 | MAKE_IS_GNU=yes | |
4641 | ;; | |
4642 | esac | |
4643 | if test "$MAKE_IS_GNU" = yes; then | |
4644 | GMAKE_TRUE= | |
4645 | GMAKE_FALSE='#' | |
4646 | else | |
4647 | GMAKE_TRUE='#' | |
4648 | GMAKE_FALSE= | |
4649 | fi | |
4650 | ||
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4652 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4653 | set x ${MAKE-make} | |
4654 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4655 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4656 | $as_echo_n "(cached) " >&6 | |
4657 | else | |
4658 | cat >conftest.make <<\_ACEOF | |
4659 | SHELL = /bin/sh | |
4660 | all: | |
4661 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4662 | _ACEOF | |
4663 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
4664 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4665 | *@@@%%%=?*=@@@%%%*) | |
4666 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4667 | *) | |
4668 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4669 | esac | |
4670 | rm -f conftest.make | |
4671 | fi | |
4672 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4674 | $as_echo "yes" >&6; } | |
4675 | SET_MAKE= | |
4676 | else | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4678 | $as_echo "no" >&6; } | |
4679 | SET_MAKE="MAKE=${MAKE-make}" | |
4680 | fi | |
4681 | ||
c9a1864a | 4682 | |
c971b7fa PA |
4683 | # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect |
4684 | # to find the the source subdir to be configured directly under | |
4685 | # gdbserver/. We need to build gnulib under some other directory not | |
4686 | # "gnulib", to avoid the problem of both GDB and GDBserver wanting to | |
4687 | # build it in the same directory, when building in the source dir. | |
4688 | ||
4689 | in_src="../gnulib" | |
4690 | in_build="build-gnulib-gdbserver" | |
4691 | ||
4692 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
4693 | # so they do not pile up. | |
4694 | ac_sub_configure_args= | |
4695 | ac_prev= | |
4696 | eval "set x $ac_configure_args" | |
4697 | shift | |
4698 | for ac_arg | |
4699 | do | |
4700 | if test -n "$ac_prev"; then | |
4701 | ac_prev= | |
4702 | continue | |
4703 | fi | |
4704 | case $ac_arg in | |
4705 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
4706 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
4707 | ac_prev=cache_file ;; | |
4708 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
4709 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
4710 | | --c=*) | |
4711 | ;; | |
4712 | --config-cache | -C) | |
4713 | ;; | |
4714 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
4715 | ac_prev=srcdir ;; | |
4716 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
4717 | ;; | |
4718 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
4719 | ac_prev=prefix ;; | |
4720 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
4721 | ;; | |
4722 | --disable-option-checking) | |
4723 | ;; | |
4724 | *) | |
4725 | case $ac_arg in | |
4726 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4727 | esac | |
4728 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
4729 | esac | |
4730 | done | |
4731 | ||
4732 | # Always prepend --prefix to ensure using the same prefix | |
4733 | # in subdir configurations. | |
4734 | ac_arg="--prefix=$prefix" | |
4735 | case $ac_arg in | |
4736 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4737 | esac | |
4738 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
4739 | ||
4740 | # Pass --silent | |
4741 | if test "$silent" = yes; then | |
4742 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
4743 | fi | |
4744 | ||
4745 | # Always prepend --disable-option-checking to silence warnings, since | |
4746 | # different subdirs can have different --enable and --with options. | |
4747 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
4748 | ||
4749 | ac_popdir=`pwd` | |
4750 | ac_dir=$in_build | |
4751 | ||
4752 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
4753 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
4754 | $as_echo "$ac_msg" >&6 | |
4755 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4756 | ||
38ea300a PA |
4757 | case $srcdir in |
4758 | [\\/]* | ?:[\\/]* ) | |
4759 | ac_srcdir=$srcdir/$in_src ;; | |
4760 | *) # Relative name. | |
4761 | ac_srcdir=../$srcdir/$in_src ;; | |
4762 | esac | |
c971b7fa PA |
4763 | |
4764 | cd "$ac_dir" | |
4765 | ||
4766 | ac_sub_configure=$ac_srcdir/configure | |
4767 | ||
4768 | # Make the cache file name correct relative to the subdirectory. | |
4769 | case $cache_file in | |
4770 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
4771 | *) # Relative name. | |
4772 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
4773 | esac | |
4774 | ||
4775 | { $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 | |
4776 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
4777 | # The eval makes quoting arguments work. | |
4778 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
4779 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
4780 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
4781 | ||
4782 | cd "$ac_popdir" | |
4783 | ||
4784 | ||
61c125b9 | 4785 | for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h wait.h sys/un.h linux/perf_event.h |
81ecdfbb RW |
4786 | do : |
4787 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4788 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4789 | eval as_val=\$$as_ac_Header | |
4790 | if test "x$as_val" = x""yes; then : | |
68070c10 | 4791 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4792 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
68070c10 PA |
4793 | _ACEOF |
4794 | ||
ec56be1b | 4795 | fi |
ec56be1b | 4796 | |
81ecdfbb RW |
4797 | done |
4798 | ||
f8255c2a | 4799 | for ac_func in pread pwrite pread64 readlink |
81ecdfbb RW |
4800 | do : |
4801 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4802 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4803 | eval as_val=\$$as_ac_var | |
4804 | if test "x$as_val" = x""yes; then : | |
4805 | cat >>confdefs.h <<_ACEOF | |
4806 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ec56be1b PA |
4807 | _ACEOF |
4808 | ||
81ecdfbb RW |
4809 | fi |
4810 | done | |
ec56be1b | 4811 | |
c9a1864a | 4812 | for ac_func in vasprintf vsnprintf |
81ecdfbb | 4813 | do : |
bb0116a4 JB |
4814 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4815 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4816 | eval as_val=\$$as_ac_var | |
4817 | if test "x$as_val" = x""yes; then : | |
ec56be1b | 4818 | cat >>confdefs.h <<_ACEOF |
bb0116a4 | 4819 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
ec56be1b PA |
4820 | _ACEOF |
4821 | ||
81ecdfbb RW |
4822 | else |
4823 | case " $LIBOBJS " in | |
4824 | *" $ac_func.$ac_objext "* ) ;; | |
4825 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" | |
4826 | ;; | |
4827 | esac | |
ec56be1b | 4828 | |
43d5792c | 4829 | fi |
81ecdfbb | 4830 | done |
43d5792c DJ |
4831 | |
4832 | ||
e122f1f5 | 4833 | |
0fb4aa4b PA |
4834 | # Check for UST |
4835 | ustlibs="" | |
4836 | ustinc="" | |
4837 | ||
4838 | ||
4839 | # Check whether --with-ust was given. | |
4840 | if test "${with_ust+set}" = set; then : | |
4841 | withval=$with_ust; | |
4842 | fi | |
4843 | ||
4844 | ||
4845 | # Check whether --with-ust_include was given. | |
4846 | if test "${with_ust_include+set}" = set; then : | |
4847 | withval=$with_ust_include; | |
4848 | fi | |
4849 | ||
4850 | ||
4851 | # Check whether --with-ust_lib was given. | |
4852 | if test "${with_ust_lib+set}" = set; then : | |
4853 | withval=$with_ust_lib; | |
4854 | fi | |
4855 | ||
4856 | ||
4857 | case $with_ust in | |
4858 | no) | |
4859 | ustlibs= | |
4860 | ustinc= | |
4861 | ;; | |
4862 | "" | yes) | |
4863 | ustlibs=" -lust " | |
4864 | ustinc="" | |
4865 | ;; | |
4866 | *) | |
4867 | ustlibs="-L$with_ust/lib -lust" | |
4868 | ustinc="-I$with_ust/include " | |
4869 | ;; | |
4870 | esac | |
4871 | if test "x$with_ust_include" != x; then | |
4872 | ustinc="-I$with_ust_include " | |
4873 | fi | |
4874 | if test "x$with_ust_lib" != x; then | |
4875 | ustlibs="-L$with_ust_lib -lust" | |
4876 | fi | |
4877 | ||
4878 | if test "x$with_ust" != "xno"; then | |
4879 | saved_CFLAGS="$CFLAGS" | |
4880 | CFLAGS="$CFLAGS $ustinc" | |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5 | |
4882 | $as_echo_n "checking for ust... " >&6; } | |
4883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4884 | /* end confdefs.h. */ | |
4885 | ||
4886 | #define CONFIG_UST_GDB_INTEGRATION | |
4887 | #include <ust/ust.h> | |
4888 | ||
4889 | int | |
4890 | main () | |
4891 | { | |
4892 | ||
4893 | ; | |
4894 | return 0; | |
4895 | } | |
4896 | _ACEOF | |
4897 | if ac_fn_c_try_compile "$LINENO"; then : | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4899 | $as_echo "yes" >&6; }; | |
4900 | $as_echo "#define HAVE_UST 1" >>confdefs.h | |
4901 | ||
4902 | else | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4904 | $as_echo "no" >&6; }; ustlibs= ; ustinc= | |
4905 | fi | |
4906 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4907 | CFLAGS="$saved_CFLAGS" | |
4908 | fi | |
4909 | ||
4910 | # Flags needed for UST | |
4911 | ||
4912 | ||
4913 | ||
d4596a3d PA |
4914 | # Check whether --enable-werror was given. |
4915 | if test "${enable_werror+set}" = set; then : | |
4916 | enableval=$enable_werror; case "${enableval}" in | |
4917 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4918 | no | n) ERROR_ON_WARNING="no" ;; | |
4919 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
4920 | esac | |
4921 | fi | |
4922 | ||
4923 | ||
4924 | # Enable -Werror by default when using gcc | |
4925 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4926 | ERROR_ON_WARNING=yes | |
4927 | fi | |
4928 | ||
4929 | WERROR_CFLAGS="" | |
4930 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4931 | WERROR_CFLAGS="-Werror" | |
4932 | fi | |
4933 | ||
4934 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ | |
8c29b58e | 4935 | -Wformat-nonliteral -Wno-char-subscripts -Wempty-body" |
d4596a3d PA |
4936 | |
4937 | WARN_CFLAGS="" | |
4938 | if test "x$GCC" = xyes | |
4939 | then | |
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
4941 | $as_echo_n "checking compiler warning flags... " >&6; } | |
4942 | # Separate out the -Werror flag as some files just cannot be | |
4943 | # compiled with it enabled. | |
4944 | for w in ${build_warnings}; do | |
4945 | case $w in | |
4946 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
4947 | *) # Check that GCC accepts it | |
4948 | saved_CFLAGS="$CFLAGS" | |
4949 | CFLAGS="$CFLAGS $w" | |
4950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4951 | /* end confdefs.h. */ | |
4952 | ||
4953 | int | |
4954 | main () | |
4955 | { | |
4956 | ||
4957 | ; | |
4958 | return 0; | |
4959 | } | |
4960 | _ACEOF | |
4961 | if ac_fn_c_try_compile "$LINENO"; then : | |
4962 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
4963 | fi | |
4964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4965 | CFLAGS="$saved_CFLAGS" | |
4966 | esac | |
4967 | done | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
4969 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
4970 | fi | |
4971 | ||
4972 | ||
4973 | ||
10e86dd7 DE |
4974 | old_LIBS="$LIBS" |
4975 | LIBS="$LIBS -ldl" | |
4976 | for ac_func in dladdr | |
4977 | do : | |
4978 | ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" | |
4979 | if test "x$ac_cv_func_dladdr" = x""yes; then : | |
4980 | cat >>confdefs.h <<_ACEOF | |
4981 | #define HAVE_DLADDR 1 | |
4982 | _ACEOF | |
4983 | ||
4984 | fi | |
4985 | done | |
4986 | ||
4987 | LIBS="$old_LIBS" | |
4988 | ||
81ecdfbb RW |
4989 | have_errno=no |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5 | |
4991 | $as_echo_n "checking for errno... " >&6; } | |
4992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f450004a | 4993 | /* end confdefs.h. */ |
ccbd4912 | 4994 | |
81ecdfbb RW |
4995 | #if HAVE_ERRNO_H |
4996 | #include <errno.h> | |
4997 | #endif | |
f450004a DJ |
4998 | int |
4999 | main () | |
5000 | { | |
81ecdfbb RW |
5001 | static int x; x = errno; |
5002 | ; | |
f450004a | 5003 | return 0; |
81ecdfbb RW |
5004 | } |
5005 | _ACEOF | |
5006 | if ac_fn_c_try_link "$LINENO"; then : | |
5007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5 | |
5008 | $as_echo "yes - in errno.h" >&6; }; | |
5009 | $as_echo "#define HAVE_ERRNO 1" >>confdefs.h | |
5010 | have_errno=yes | |
5011 | fi | |
5012 | rm -f core conftest.err conftest.$ac_objext \ | |
5013 | conftest$ac_exeext conftest.$ac_ext | |
5014 | if test $have_errno = no; then | |
5015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5016 | /* end confdefs.h. */ | |
5017 | ||
5018 | #if HAVE_ERRNO_H | |
5019 | #include <errno.h> | |
5020 | #endif | |
5021 | int | |
5022 | main () | |
5023 | { | |
5024 | extern int errno; static int x; x = errno; | |
f450004a DJ |
5025 | ; |
5026 | return 0; | |
5027 | } | |
5028 | _ACEOF | |
81ecdfbb RW |
5029 | if ac_fn_c_try_link "$LINENO"; then : |
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5 | |
5031 | $as_echo "yes - must define" >&6; }; | |
5032 | $as_echo "#define HAVE_ERRNO 1" >>confdefs.h | |
5033 | ||
5034 | $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h | |
5035 | ||
f450004a | 5036 | else |
81ecdfbb RW |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5038 | $as_echo "no" >&6; } | |
5039 | fi | |
5040 | rm -f core conftest.err conftest.$ac_objext \ | |
5041 | conftest$ac_exeext conftest.$ac_ext | |
5042 | fi | |
5043 | ||
5044 | ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" | |
5045 | if test "x$ac_cv_have_decl_strerror" = x""yes; then : | |
5046 | ac_have_decl=1 | |
5047 | else | |
5048 | ac_have_decl=0 | |
5049 | fi | |
f450004a | 5050 | |
81ecdfbb RW |
5051 | cat >>confdefs.h <<_ACEOF |
5052 | #define HAVE_DECL_STRERROR $ac_have_decl | |
5053 | _ACEOF | |
e6712ff1 DE |
5054 | ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" |
5055 | if test "x$ac_cv_have_decl_strstr" = x""yes; then : | |
5056 | ac_have_decl=1 | |
5057 | else | |
5058 | ac_have_decl=0 | |
5059 | fi | |
5060 | ||
5061 | cat >>confdefs.h <<_ACEOF | |
5062 | #define HAVE_DECL_STRSTR $ac_have_decl | |
5063 | _ACEOF | |
81ecdfbb RW |
5064 | ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default" |
5065 | if test "x$ac_cv_have_decl_perror" = x""yes; then : | |
5066 | ac_have_decl=1 | |
5067 | else | |
5068 | ac_have_decl=0 | |
f450004a | 5069 | fi |
81ecdfbb RW |
5070 | |
5071 | cat >>confdefs.h <<_ACEOF | |
5072 | #define HAVE_DECL_PERROR $ac_have_decl | |
5073 | _ACEOF | |
bb0116a4 JB |
5074 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
5075 | if test "x$ac_cv_have_decl_vasprintf" = x""yes; then : | |
5076 | ac_have_decl=1 | |
5077 | else | |
5078 | ac_have_decl=0 | |
5079 | fi | |
5080 | ||
5081 | cat >>confdefs.h <<_ACEOF | |
5082 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
5083 | _ACEOF | |
5084 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
5085 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : | |
5086 | ac_have_decl=1 | |
5087 | else | |
5088 | ac_have_decl=0 | |
5089 | fi | |
5090 | ||
5091 | cat >>confdefs.h <<_ACEOF | |
5092 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
5093 | _ACEOF | |
81ecdfbb RW |
5094 | |
5095 | ||
5096 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
5097 | #include <sys/socket.h> | |
5098 | ||
5099 | " | |
5100 | if test "x$ac_cv_type_socklen_t" = x""yes; then : | |
f450004a | 5101 | |
ccbd4912 | 5102 | cat >>confdefs.h <<_ACEOF |
f450004a DJ |
5103 | #define HAVE_SOCKLEN_T 1 |
5104 | _ACEOF | |
5105 | ||
f450004a | 5106 | |
ccbd4912 | 5107 | fi |
f450004a | 5108 | |
fb1e4ffc | 5109 | |
8365dcf5 TJB |
5110 | ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h> |
5111 | ||
5112 | " | |
5113 | if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then : | |
5114 | ||
5115 | cat >>confdefs.h <<_ACEOF | |
5116 | #define HAVE_ELF32_AUXV_T 1 | |
5117 | _ACEOF | |
5118 | ||
5119 | ||
5120 | fi | |
5121 | ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h> | |
5122 | ||
5123 | " | |
5124 | if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then : | |
5125 | ||
5126 | cat >>confdefs.h <<_ACEOF | |
5127 | #define HAVE_ELF64_AUXV_T 1 | |
5128 | _ACEOF | |
5129 | ||
5130 | ||
5131 | fi | |
5132 | ||
5133 | ||
c16158bc JM |
5134 | |
5135 | ||
81ecdfbb RW |
5136 | # Check whether --with-pkgversion was given. |
5137 | if test "${with_pkgversion+set}" = set; then : | |
5138 | withval=$with_pkgversion; case "$withval" in | |
5139 | yes) as_fn_error "package version not specified" "$LINENO" 5 ;; | |
c16158bc JM |
5140 | no) PKGVERSION= ;; |
5141 | *) PKGVERSION="($withval) " ;; | |
5142 | esac | |
5143 | else | |
5144 | PKGVERSION="(GDB) " | |
5145 | ||
81ecdfbb RW |
5146 | fi |
5147 | ||
c16158bc JM |
5148 | |
5149 | ||
5150 | ||
5151 | ||
81ecdfbb RW |
5152 | # Check whether --with-bugurl was given. |
5153 | if test "${with_bugurl+set}" = set; then : | |
5154 | withval=$with_bugurl; case "$withval" in | |
5155 | yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; | |
c16158bc JM |
5156 | no) BUGURL= |
5157 | ;; | |
5158 | *) BUGURL="$withval" | |
5159 | ;; | |
5160 | esac | |
5161 | else | |
5162 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
5163 | ||
81ecdfbb RW |
5164 | fi |
5165 | ||
c16158bc JM |
5166 | case ${BUGURL} in |
5167 | "") | |
5168 | REPORT_BUGS_TO= | |
5169 | REPORT_BUGS_TEXI= | |
5170 | ;; | |
5171 | *) | |
5172 | REPORT_BUGS_TO="<$BUGURL>" | |
5173 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
5174 | ;; | |
5175 | esac; | |
5176 | ||
5177 | ||
5178 | ||
5179 | ||
5180 | cat >>confdefs.h <<_ACEOF | |
5181 | #define PKGVERSION "$PKGVERSION" | |
5182 | _ACEOF | |
5183 | ||
5184 | ||
5185 | cat >>confdefs.h <<_ACEOF | |
5186 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
5187 | _ACEOF | |
5188 | ||
5189 | ||
8838b45e NS |
5190 | # Check for various supplementary target information (beyond the |
5191 | # triplet) which might affect the choices in configure.srv. | |
5192 | case "${target}" in | |
5193 | i[34567]86-*-linux*) | |
5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5 | |
5195 | $as_echo_n "checking if building for x86-64... " >&6; } | |
5196 | if test "${gdb_cv_i386_is_x86_64+set}" = set; then : | |
5197 | $as_echo_n "(cached) " >&6 | |
5198 | else | |
5199 | save_CPPFLAGS="$CPPFLAGS" | |
5200 | CPPFLAGS="$CPPFLAGS $CFLAGS" | |
5201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5202 | /* end confdefs.h. */ | |
5203 | ||
5204 | #if __x86_64__ | |
5205 | got it | |
5206 | #endif | |
5207 | ||
5208 | _ACEOF | |
5209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5210 | $EGREP "got it" >/dev/null 2>&1; then : | |
5211 | gdb_cv_i386_is_x86_64=yes | |
5212 | else | |
5213 | gdb_cv_i386_is_x86_64=no | |
5214 | fi | |
5215 | rm -f conftest* | |
5216 | ||
5217 | CPPFLAGS="$save_CPPFLAGS" | |
5218 | fi | |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5 | |
5220 | $as_echo "$gdb_cv_i386_is_x86_64" >&6; } | |
5221 | ;; | |
9ac544ce MK |
5222 | m68k-*-*) |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5 | |
5224 | $as_echo_n "checking if building for Coldfire... " >&6; } | |
5225 | if test "${gdb_cv_m68k_is_coldfire+set}" = set; then : | |
5226 | $as_echo_n "(cached) " >&6 | |
5227 | else | |
5228 | save_CPPFLAGS="$CPPFLAGS" | |
5229 | CPPFLAGS="$CPPFLAGS $CFLAGS" | |
5230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5231 | /* end confdefs.h. */ | |
5232 | ||
5233 | #ifdef __mcoldfire__ | |
5234 | got it | |
5235 | #endif | |
5236 | ||
5237 | _ACEOF | |
5238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5239 | $EGREP "got it" >/dev/null 2>&1; then : | |
5240 | gdb_cv_m68k_is_coldfire=yes | |
5241 | else | |
5242 | gdb_cv_m68k_is_coldfire=no | |
5243 | fi | |
5244 | rm -f conftest* | |
5245 | ||
5246 | CPPFLAGS="$save_CPPFLAGS" | |
5247 | fi | |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5 | |
5249 | $as_echo "$gdb_cv_m68k_is_coldfire" >&6; } | |
5250 | ;; | |
8838b45e NS |
5251 | esac |
5252 | ||
7ea81414 | 5253 | . ${srcdir}/configure.srv |
d6e9fb05 | 5254 | |
68070c10 PA |
5255 | if test "${srv_mingwce}" = "yes"; then |
5256 | LIBS="$LIBS -lws2" | |
5257 | elif test "${srv_mingw}" = "yes"; then | |
12ea4b69 | 5258 | LIBS="$LIBS -lws2_32" |
ac8c974e AR |
5259 | elif test "${srv_qnx}" = "yes"; then |
5260 | LIBS="$LIBS -lsocket" | |
8ed54b31 JB |
5261 | elif test "${srv_lynxos}" = "yes"; then |
5262 | LIBS="$LIBS -lnetinet" | |
68070c10 PA |
5263 | fi |
5264 | ||
5265 | if test "${srv_mingw}" = "yes"; then | |
b80864fb | 5266 | |
81ecdfbb | 5267 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
b80864fb DJ |
5268 | |
5269 | fi | |
5270 | ||
58caa3dc | 5271 | if test "${srv_linux_usrregs}" = "yes"; then |
f450004a | 5272 | |
81ecdfbb | 5273 | $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h |
58caa3dc DJ |
5274 | |
5275 | fi | |
5276 | ||
5277 | if test "${srv_linux_regsets}" = "yes"; then | |
e9d25b98 | 5278 | |
81ecdfbb | 5279 | $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h |
e9d25b98 DJ |
5280 | |
5281 | ||
81ecdfbb RW |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 |
5283 | $as_echo_n "checking for PTRACE_GETREGS... " >&6; } | |
5284 | if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then : | |
5285 | $as_echo_n "(cached) " >&6 | |
bec39cab | 5286 | else |
81ecdfbb | 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5288 | /* end confdefs.h. */ |
58caa3dc | 5289 | #include <sys/ptrace.h> |
bec39cab AC |
5290 | int |
5291 | main () | |
5292 | { | |
58caa3dc | 5293 | PTRACE_GETREGS; |
bec39cab AC |
5294 | ; |
5295 | return 0; | |
5296 | } | |
5297 | _ACEOF | |
81ecdfbb | 5298 | if ac_fn_c_try_compile "$LINENO"; then : |
58caa3dc DJ |
5299 | gdbsrv_cv_have_ptrace_getregs=yes |
5300 | else | |
81ecdfbb | 5301 | gdbsrv_cv_have_ptrace_getregs=no |
58caa3dc | 5302 | fi |
81ecdfbb | 5303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
5304 | fi |
5305 | ||
81ecdfbb RW |
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5 |
5307 | $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; } | |
58caa3dc | 5308 | if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then |
f450004a | 5309 | |
81ecdfbb | 5310 | $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h |
58caa3dc DJ |
5311 | |
5312 | fi | |
5313 | ||
81ecdfbb RW |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 |
5315 | $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } | |
5316 | if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then : | |
5317 | $as_echo_n "(cached) " >&6 | |
58caa3dc | 5318 | else |
81ecdfbb | 5319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5320 | /* end confdefs.h. */ |
58caa3dc | 5321 | #include <sys/ptrace.h> |
bec39cab AC |
5322 | int |
5323 | main () | |
5324 | { | |
58caa3dc | 5325 | PTRACE_GETFPXREGS; |
bec39cab AC |
5326 | ; |
5327 | return 0; | |
5328 | } | |
5329 | _ACEOF | |
81ecdfbb | 5330 | if ac_fn_c_try_compile "$LINENO"; then : |
58caa3dc DJ |
5331 | gdbsrv_cv_have_ptrace_getfpxregs=yes |
5332 | else | |
81ecdfbb | 5333 | gdbsrv_cv_have_ptrace_getfpxregs=no |
58caa3dc | 5334 | fi |
81ecdfbb | 5335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
58caa3dc DJ |
5336 | fi |
5337 | ||
81ecdfbb RW |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5 |
5339 | $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; } | |
58caa3dc | 5340 | if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then |
f450004a | 5341 | |
81ecdfbb | 5342 | $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h |
58caa3dc DJ |
5343 | |
5344 | fi | |
5345 | fi | |
5346 | ||
0d62e5e8 | 5347 | if test "$ac_cv_header_sys_procfs_h" = yes; then |
81ecdfbb RW |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 |
5349 | $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } | |
5350 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then : | |
5351 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5352 | else |
81ecdfbb | 5353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5354 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5355 | |
5356 | #define _SYSCALL32 | |
8e642873 PM |
5357 | /* Needed for new procfs interface on sparc-solaris. */ |
5358 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5359 | #include <sys/procfs.h> |
bec39cab AC |
5360 | int |
5361 | main () | |
5362 | { | |
0d62e5e8 | 5363 | lwpid_t avar |
bec39cab AC |
5364 | ; |
5365 | return 0; | |
5366 | } | |
5367 | _ACEOF | |
81ecdfbb | 5368 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5369 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
5370 | else | |
81ecdfbb | 5371 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 5372 | |
0d62e5e8 | 5373 | fi |
81ecdfbb | 5374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5375 | fi |
5376 | ||
5377 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then | |
bec39cab | 5378 | |
81ecdfbb | 5379 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h |
0d62e5e8 DJ |
5380 | |
5381 | fi | |
81ecdfbb RW |
5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
5383 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } | |
0d62e5e8 | 5384 | |
81ecdfbb RW |
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 |
5386 | $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } | |
5387 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then : | |
5388 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5389 | else |
81ecdfbb | 5390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5391 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5392 | |
5393 | #define _SYSCALL32 | |
8e642873 PM |
5394 | /* Needed for new procfs interface on sparc-solaris. */ |
5395 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5396 | #include <sys/procfs.h> |
bec39cab AC |
5397 | int |
5398 | main () | |
5399 | { | |
0d62e5e8 | 5400 | psaddr_t avar |
bec39cab AC |
5401 | ; |
5402 | return 0; | |
5403 | } | |
5404 | _ACEOF | |
81ecdfbb | 5405 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5406 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
5407 | else | |
81ecdfbb | 5408 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 5409 | |
0d62e5e8 | 5410 | fi |
81ecdfbb | 5411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5412 | fi |
5413 | ||
5414 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then | |
bec39cab | 5415 | |
81ecdfbb | 5416 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h |
0d62e5e8 DJ |
5417 | |
5418 | fi | |
81ecdfbb RW |
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
5420 | $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } | |
0d62e5e8 | 5421 | |
81ecdfbb RW |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 |
5423 | $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } | |
5424 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then : | |
5425 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5426 | else |
81ecdfbb | 5427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5428 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5429 | |
5430 | #define _SYSCALL32 | |
8e642873 PM |
5431 | /* Needed for new procfs interface on sparc-solaris. */ |
5432 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5433 | #include <sys/procfs.h> |
bec39cab AC |
5434 | int |
5435 | main () | |
5436 | { | |
0d62e5e8 | 5437 | prgregset_t avar |
bec39cab AC |
5438 | ; |
5439 | return 0; | |
5440 | } | |
5441 | _ACEOF | |
81ecdfbb | 5442 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5443 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
5444 | else | |
81ecdfbb | 5445 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 5446 | |
0d62e5e8 | 5447 | fi |
81ecdfbb | 5448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5449 | fi |
5450 | ||
5451 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then | |
bec39cab | 5452 | |
81ecdfbb | 5453 | $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h |
0d62e5e8 DJ |
5454 | |
5455 | fi | |
81ecdfbb RW |
5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
5457 | $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } | |
0d62e5e8 | 5458 | |
81ecdfbb RW |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 |
5460 | $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } | |
5461 | if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then : | |
5462 | $as_echo_n "(cached) " >&6 | |
0d62e5e8 | 5463 | else |
81ecdfbb | 5464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab | 5465 | /* end confdefs.h. */ |
0d62e5e8 DJ |
5466 | |
5467 | #define _SYSCALL32 | |
8e642873 PM |
5468 | /* Needed for new procfs interface on sparc-solaris. */ |
5469 | #define _STRUCTURED_PROC 1 | |
0d62e5e8 | 5470 | #include <sys/procfs.h> |
bec39cab AC |
5471 | int |
5472 | main () | |
5473 | { | |
0d62e5e8 | 5474 | elf_fpregset_t avar |
bec39cab AC |
5475 | ; |
5476 | return 0; | |
5477 | } | |
5478 | _ACEOF | |
81ecdfbb | 5479 | if ac_fn_c_try_compile "$LINENO"; then : |
0d62e5e8 DJ |
5480 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes |
5481 | else | |
81ecdfbb | 5482 | bfd_cv_have_sys_procfs_type_elf_fpregset_t=no |
bec39cab | 5483 | |
0d62e5e8 | 5484 | fi |
81ecdfbb | 5485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0d62e5e8 DJ |
5486 | fi |
5487 | ||
5488 | if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then | |
bec39cab | 5489 | |
81ecdfbb | 5490 | $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h |
0d62e5e8 DJ |
5491 | |
5492 | fi | |
81ecdfbb RW |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 |
5494 | $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } | |
0d62e5e8 DJ |
5495 | |
5496 | fi | |
5497 | ||
18f5fd81 TJB |
5498 | if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then |
5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5 | |
5500 | $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; } | |
5501 | if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then : | |
5502 | $as_echo_n "(cached) " >&6 | |
5503 | else | |
5504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5505 | /* end confdefs.h. */ | |
5506 | ||
5507 | #include <thread_db.h> | |
5508 | int | |
5509 | main () | |
5510 | { | |
5511 | lwpid_t avar | |
5512 | ; | |
5513 | return 0; | |
5514 | } | |
5515 | _ACEOF | |
5516 | if ac_fn_c_try_compile "$LINENO"; then : | |
5517 | gdbserver_cv_have_thread_db_type_lwpid_t=yes | |
5518 | else | |
5519 | gdbserver_cv_have_thread_db_type_lwpid_t=no | |
5520 | ||
5521 | fi | |
5522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5523 | fi | |
5524 | ||
5525 | if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then | |
5526 | ||
5527 | $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h | |
5528 | ||
5529 | fi | |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5 | |
5531 | $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; } | |
5532 | ||
5533 | fi | |
5534 | ||
5535 | if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then | |
5536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5 | |
5537 | $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; } | |
5538 | if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then : | |
5539 | $as_echo_n "(cached) " >&6 | |
5540 | else | |
5541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5542 | /* end confdefs.h. */ | |
5543 | ||
5544 | #include <thread_db.h> | |
5545 | int | |
5546 | main () | |
5547 | { | |
5548 | psaddr_t avar | |
5549 | ; | |
5550 | return 0; | |
5551 | } | |
5552 | _ACEOF | |
5553 | if ac_fn_c_try_compile "$LINENO"; then : | |
5554 | gdbserver_cv_have_thread_db_type_psaddr_t=yes | |
5555 | else | |
5556 | gdbserver_cv_have_thread_db_type_psaddr_t=no | |
5557 | ||
5558 | fi | |
5559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5560 | fi | |
5561 | ||
5562 | if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then | |
5563 | ||
5564 | $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h | |
5565 | ||
5566 | fi | |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5 | |
5568 | $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; } | |
5569 | ||
5570 | fi | |
5571 | ||
193f13e6 MK |
5572 | old_LIBS="$LIBS" |
5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
5574 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
5575 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
5576 | $as_echo_n "(cached) " >&6 | |
5577 | else | |
5578 | ac_check_lib_save_LIBS=$LIBS | |
5579 | LIBS="-ldl $LIBS" | |
5580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5581 | /* end confdefs.h. */ | |
5582 | ||
5583 | /* Override any GCC internal prototype to avoid an error. | |
5584 | Use char because int might match the return type of a GCC | |
5585 | builtin and then its argument prototype would still apply. */ | |
5586 | #ifdef __cplusplus | |
5587 | extern "C" | |
5588 | #endif | |
5589 | char dlopen (); | |
5590 | int | |
5591 | main () | |
5592 | { | |
5593 | return dlopen (); | |
5594 | ; | |
5595 | return 0; | |
5596 | } | |
5597 | _ACEOF | |
5598 | if ac_fn_c_try_link "$LINENO"; then : | |
5599 | ac_cv_lib_dl_dlopen=yes | |
5600 | else | |
5601 | ac_cv_lib_dl_dlopen=no | |
5602 | fi | |
5603 | rm -f core conftest.err conftest.$ac_objext \ | |
5604 | conftest$ac_exeext conftest.$ac_ext | |
5605 | LIBS=$ac_check_lib_save_LIBS | |
5606 | fi | |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
5608 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
5609 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
5610 | cat >>confdefs.h <<_ACEOF | |
5611 | #define HAVE_LIBDL 1 | |
5612 | _ACEOF | |
5613 | ||
5614 | LIBS="-ldl $LIBS" | |
5615 | ||
5616 | fi | |
5617 | ||
5618 | LIBS="$old_LIBS" | |
5619 | ||
0d62e5e8 DJ |
5620 | srv_thread_depfiles= |
5621 | srv_libs= | |
5622 | USE_THREAD_DB= | |
5623 | ||
5624 | if test "$srv_linux_thread_db" = "yes"; then | |
193f13e6 MK |
5625 | if test "$ac_cv_lib_dl_dlopen" = "yes"; then |
5626 | srv_libs="-ldl" | |
f6528abd JK |
5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5 |
5628 | $as_echo_n "checking for the dynamic export flag... " >&6; } | |
193f13e6 | 5629 | old_LDFLAGS="$LDFLAGS" |
f6528abd JK |
5630 | # Older GNU ld supports --export-dynamic but --dynamic-list may not be |
5631 | # supported there. | |
5632 | RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" | |
5633 | LDFLAGS="$LDFLAGS $RDYNAMIC" | |
193f13e6 | 5634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bec39cab AC |
5635 | /* end confdefs.h. */ |
5636 | ||
5637 | int | |
5638 | main () | |
5639 | { | |
5640 | ||
5641 | ; | |
5642 | return 0; | |
5643 | } | |
5644 | _ACEOF | |
81ecdfbb | 5645 | if ac_fn_c_try_link "$LINENO"; then : |
f6528abd JK |
5646 | found="-Wl,--dynamic-list" |
5647 | RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' | |
f6de3c42 | 5648 | else |
f6528abd JK |
5649 | RDYNAMIC="-rdynamic" |
5650 | LDFLAGS="$old_LDFLAGS $RDYNAMIC" | |
5651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5652 | /* end confdefs.h. */ | |
5653 | ||
5654 | int | |
5655 | main () | |
5656 | { | |
5657 | ||
5658 | ; | |
5659 | return 0; | |
5660 | } | |
5661 | _ACEOF | |
5662 | if ac_fn_c_try_link "$LINENO"; then : | |
5663 | found="-rdynamic" | |
5664 | else | |
5665 | found="no" | |
5666 | RDYNAMIC="" | |
770d76d7 PA |
5667 | fi |
5668 | rm -f core conftest.err conftest.$ac_objext \ | |
5669 | conftest$ac_exeext conftest.$ac_ext | |
5670 | fi | |
5671 | rm -f core conftest.err conftest.$ac_objext \ | |
5672 | conftest$ac_exeext conftest.$ac_ext | |
5673 | ||
5674 | LDFLAGS="$old_LDFLAGS" | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 | |
5676 | $as_echo "$found" >&6; } | |
5677 | else | |
5678 | srv_libs="-lthread_db" | |
5679 | fi | |
55a8c076 | 5680 | |
770d76d7 PA |
5681 | srv_thread_depfiles="thread-db.o proc-service.o" |
5682 | USE_THREAD_DB="-DUSE_THREAD_DB" | |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5 | |
5684 | $as_echo_n "checking for TD_VERSION... " >&6; } | |
5685 | if test "${gdbsrv_cv_have_td_version+set}" = set; then : | |
5686 | $as_echo_n "(cached) " >&6 | |
5687 | else | |
5688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5689 | /* end confdefs.h. */ | |
5690 | #include <thread_db.h> | |
55a8c076 YQ |
5691 | int |
5692 | main () | |
5693 | { | |
770d76d7 | 5694 | TD_VERSION; |
c9a1864a YQ |
5695 | ; |
5696 | return 0; | |
5697 | } | |
5698 | _ACEOF | |
55a8c076 | 5699 | if ac_fn_c_try_compile "$LINENO"; then : |
770d76d7 | 5700 | gdbsrv_cv_have_td_version=yes |
c9a1864a | 5701 | else |
770d76d7 PA |
5702 | gdbsrv_cv_have_td_version=no |
5703 | fi | |
5704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5705 | fi | |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5 | |
5707 | $as_echo "$gdbsrv_cv_have_td_version" >&6; } | |
5708 | if test $gdbsrv_cv_have_td_version = yes; then | |
c9a1864a | 5709 | |
770d76d7 | 5710 | $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h |
55a8c076 | 5711 | |
770d76d7 PA |
5712 | fi |
5713 | fi | |
c9a1864a YQ |
5714 | |
5715 | ||
770d76d7 PA |
5716 | # Check whether --with-libthread-db was given. |
5717 | if test "${with_libthread_db+set}" = set; then : | |
5718 | withval=$with_libthread_db; srv_libthread_db_path="${withval}" | |
5719 | srv_libs="$srv_libthread_db_path" | |
c9a1864a | 5720 | |
770d76d7 | 5721 | fi |
c9a1864a YQ |
5722 | |
5723 | ||
770d76d7 | 5724 | if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then |
c9a1864a | 5725 | |
770d76d7 | 5726 | $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h |
c9a1864a | 5727 | |
55a8c076 | 5728 | fi |
c9a1864a | 5729 | |
770d76d7 PA |
5730 | if test "$srv_xmlfiles" != ""; then |
5731 | srv_xmlbuiltin="xml-builtin.o" | |
c9a1864a | 5732 | |
770d76d7 | 5733 | $as_echo "#define USE_XML 1" >>confdefs.h |
c9a1864a | 5734 | |
c9a1864a | 5735 | |
770d76d7 PA |
5736 | tmp_xmlfiles=$srv_xmlfiles |
5737 | srv_xmlfiles="" | |
5738 | for f in $tmp_xmlfiles; do | |
5739 | srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f" | |
5740 | done | |
c9a1864a YQ |
5741 | fi |
5742 | ||
770d76d7 PA |
5743 | GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles" |
5744 | GDBSERVER_LIBS="$srv_libs" | |
c9a1864a | 5745 | |
770d76d7 PA |
5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 |
5747 | $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } | |
5748 | if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then : | |
5749 | $as_echo_n "(cached) " >&6 | |
5750 | else | |
c9a1864a | 5751 | |
770d76d7 PA |
5752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5753 | /* end confdefs.h. */ | |
c9a1864a | 5754 | |
770d76d7 PA |
5755 | int |
5756 | main () | |
5757 | { | |
5758 | int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); | |
5759 | ; | |
5760 | return 0; | |
5761 | } | |
5762 | _ACEOF | |
5763 | if ac_fn_c_try_link "$LINENO"; then : | |
5764 | gdbsrv_cv_have_sync_builtins=yes | |
5765 | else | |
c971b7fa | 5766 | gdbsrv_cv_have_sync_builtins=no |
c9a1864a | 5767 | fi |
c971b7fa PA |
5768 | rm -f core conftest.err conftest.$ac_objext \ |
5769 | conftest$ac_exeext conftest.$ac_ext | |
c9a1864a | 5770 | fi |
c971b7fa PA |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5 |
5772 | $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; } | |
5773 | if test $gdbsrv_cv_have_sync_builtins = yes; then | |
5774 | ||
5775 | $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h | |
5776 | ||
c9a1864a YQ |
5777 | fi |
5778 | ||
c971b7fa PA |
5779 | saved_cflags="$CFLAGS" |
5780 | CFLAGS="$CFLAGS -fvisibility=hidden" | |
5781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5782 | /* end confdefs.h. */ | |
c9a1864a | 5783 | |
c971b7fa PA |
5784 | int |
5785 | main () | |
5786 | { | |
c9a1864a | 5787 | |
c971b7fa PA |
5788 | ; |
5789 | return 0; | |
5790 | } | |
c9a1864a | 5791 | _ACEOF |
c971b7fa PA |
5792 | if ac_fn_c_try_compile "$LINENO"; then : |
5793 | gdbsrv_cv_have_visibility_hidden=yes | |
5794 | else | |
5795 | gdbsrv_cv_have_visibility_hidden=no | |
c9a1864a | 5796 | fi |
c971b7fa PA |
5797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5798 | CFLAGS="$saved_cflags" | |
5799 | ||
5800 | ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> | |
5801 | " | |
5802 | if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then : | |
5803 | ac_have_decl=1 | |
c9a1864a | 5804 | else |
c971b7fa | 5805 | ac_have_decl=0 |
c9a1864a YQ |
5806 | fi |
5807 | ||
c971b7fa PA |
5808 | cat >>confdefs.h <<_ACEOF |
5809 | #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl | |
5810 | _ACEOF | |
c9a1864a | 5811 | |
c9a1864a | 5812 | |
c971b7fa PA |
5813 | if test "$cross_compiling" = yes; then : |
5814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5815 | /* end confdefs.h. */ | |
5816 | #include <sys/personality.h> | |
5817 | int | |
5818 | main () | |
5819 | { | |
fb1e4ffc | 5820 | |
c971b7fa PA |
5821 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
5822 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
5823 | # endif | |
5824 | /* Test the flag could be set and stays set. */ | |
5825 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
5826 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
5827 | return 1 | |
5828 | ; | |
5829 | return 0; | |
5830 | } | |
5831 | _ACEOF | |
5832 | if ac_fn_c_try_link "$LINENO"; then : | |
5833 | gdbsrv_cv_have_personality=true | |
fa593d66 | 5834 | else |
c971b7fa | 5835 | gdbsrv_cv_have_personality=false |
c9a1864a | 5836 | fi |
c971b7fa PA |
5837 | rm -f core conftest.err conftest.$ac_objext \ |
5838 | conftest$ac_exeext conftest.$ac_ext | |
5839 | else | |
5840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5841 | /* end confdefs.h. */ | |
5842 | #include <sys/personality.h> | |
5843 | int | |
5844 | main () | |
5845 | { | |
fa593d66 | 5846 | |
c971b7fa PA |
5847 | # if !HAVE_DECL_ADDR_NO_RANDOMIZE |
5848 | # define ADDR_NO_RANDOMIZE 0x0040000 | |
5849 | # endif | |
5850 | /* Test the flag could be set and stays set. */ | |
5851 | personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); | |
5852 | if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) | |
5853 | return 1 | |
5854 | ; | |
5855 | return 0; | |
5856 | } | |
5857 | _ACEOF | |
5858 | if ac_fn_c_try_run "$LINENO"; then : | |
5859 | gdbsrv_cv_have_personality=true | |
5860 | else | |
5861 | gdbsrv_cv_have_personality=false | |
fa593d66 | 5862 | fi |
c971b7fa PA |
5863 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5864 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
fa593d66 | 5865 | fi |
fa593d66 | 5866 | |
c971b7fa PA |
5867 | if $gdbsrv_cv_have_personality |
5868 | then | |
fa593d66 | 5869 | |
c971b7fa | 5870 | $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h |
03583c20 | 5871 | |
c971b7fa | 5872 | fi |
03583c20 | 5873 | |
03583c20 | 5874 | |
c971b7fa PA |
5875 | IPA_DEPFILES="" |
5876 | extra_libraries="" | |
c2a66c29 | 5877 | |
c971b7fa PA |
5878 | # check whether to enable the inprocess agent |
5879 | if test "$ipa_obj" != "" \ | |
5880 | -a "$gdbsrv_cv_have_sync_builtins" = yes \ | |
5881 | -a "$gdbsrv_cv_have_visibility_hidden" = yes; then | |
5882 | have_ipa=true | |
5883 | else | |
5884 | have_ipa=false | |
5885 | fi | |
fa593d66 | 5886 | |
c971b7fa PA |
5887 | # Check whether --enable-inprocess-agent was given. |
5888 | if test "${enable_inprocess_agent+set}" = set; then : | |
5889 | enableval=$enable_inprocess_agent; case "$enableval" in | |
5890 | yes) want_ipa=true ;; | |
5891 | no) want_ipa=false ;; | |
5892 | *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;; | |
5893 | esac | |
5894 | else | |
5895 | want_ipa=$have_ipa | |
5896 | fi | |
c2a66c29 | 5897 | |
c9a1864a | 5898 | |
c971b7fa PA |
5899 | if $want_ipa ; then |
5900 | if $have_ipa ; then | |
5901 | IPA_DEPFILES="$ipa_obj" | |
5902 | extra_libraries="$extra_libraries libinproctrace.so" | |
5903 | else | |
5904 | as_fn_error "inprocess agent not supported for this target" "$LINENO" 5 | |
5905 | fi | |
5906 | fi | |
c9a1864a | 5907 | |
c9a1864a | 5908 | |
c2a66c29 NS |
5909 | |
5910 | ||
fa593d66 PA |
5911 | |
5912 | ||
5913 | ||
0d62e5e8 | 5914 | |
d6e9fb05 | 5915 | |
c971b7fa | 5916 | GNULIB=build-gnulib-gdbserver/import |
d6e9fb05 | 5917 | |
c9a1864a YQ |
5918 | GNULIB_STDINT_H= |
5919 | if test x"$STDINT_H" != x; then | |
c971b7fa | 5920 | GNULIB_STDINT_H=$GNULIB/$STDINT_H |
c9a1864a | 5921 | fi |
d6e9fb05 | 5922 | |
fb1e4ffc | 5923 | |
c971b7fa | 5924 | ac_config_files="$ac_config_files Makefile" |
81ecdfbb RW |
5925 | |
5926 | ac_config_commands="$ac_config_commands default" | |
5927 | ||
bec39cab | 5928 | cat >confcache <<\_ACEOF |
d6e9fb05 JK |
5929 | # This file is a shell script that caches the results of configure |
5930 | # tests run on this system so they can be shared between configure | |
bec39cab AC |
5931 | # scripts and configure runs, see configure's option --config-cache. |
5932 | # It is not useful on other systems. If it contains results you don't | |
5933 | # want to keep, you may remove or edit it. | |
d6e9fb05 | 5934 | # |
bec39cab AC |
5935 | # config.status only pays attention to the cache file if you give it |
5936 | # the --recheck option to rerun configure. | |
d6e9fb05 | 5937 | # |
bec39cab AC |
5938 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
5939 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5940 | # following values. | |
5941 | ||
5942 | _ACEOF | |
5943 | ||
d6e9fb05 JK |
5944 | # The following way of writing the cache mishandles newlines in values, |
5945 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 5946 | # So, we kill variables containing newlines. |
d6e9fb05 JK |
5947 | # Ultrix sh set writes to stderr and can't be redirected directly, |
5948 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
5949 | ( |
5950 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5951 | eval ac_val=\$$ac_var | |
5952 | case $ac_val in #( | |
5953 | *${as_nl}*) | |
5954 | case $ac_var in #( | |
5955 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
5956 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5957 | esac | |
5958 | case $ac_var in #( | |
5959 | _ | IFS | as_nl) ;; #( | |
5960 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
5961 | *) { eval $ac_var=; unset $ac_var;} ;; | |
5962 | esac ;; | |
5963 | esac | |
5964 | done | |
5965 | ||
bec39cab | 5966 | (set) 2>&1 | |
81ecdfbb RW |
5967 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5968 | *${as_nl}ac_space=\ *) | |
5969 | # `set' does not quote correctly, so add quotes: double-quote | |
5970 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
bec39cab AC |
5971 | sed -n \ |
5972 | "s/'/'\\\\''/g; | |
5973 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 5974 | ;; #( |
bec39cab AC |
5975 | *) |
5976 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 5977 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 5978 | ;; |
81ecdfbb RW |
5979 | esac | |
5980 | sort | |
5981 | ) | | |
bec39cab | 5982 | sed ' |
81ecdfbb | 5983 | /^ac_cv_env_/b end |
bec39cab | 5984 | t clear |
81ecdfbb | 5985 | :clear |
bec39cab AC |
5986 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5987 | t end | |
81ecdfbb RW |
5988 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5989 | :end' >>confcache | |
5990 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5991 | if test -w "$cache_file"; then | |
5992 | test "x$cache_file" != "x/dev/null" && | |
5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
5994 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
bec39cab | 5995 | cat confcache >$cache_file |
d6e9fb05 | 5996 | else |
81ecdfbb RW |
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5998 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
d6e9fb05 JK |
5999 | fi |
6000 | fi | |
6001 | rm -f confcache | |
6002 | ||
d6e9fb05 JK |
6003 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6004 | # Let make expand exec_prefix. | |
6005 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6006 | ||
84563040 | 6007 | DEFS=-DHAVE_CONFIG_H |
d6e9fb05 | 6008 | |
bec39cab AC |
6009 | ac_libobjs= |
6010 | ac_ltlibobjs= | |
6011 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6012 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
6013 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6014 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6015 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6016 | # will be set to the directory where LIBOBJS objects are built. | |
6017 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6018 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
bec39cab AC |
6019 | done |
6020 | LIBOBJS=$ac_libobjs | |
d6e9fb05 | 6021 | |
bec39cab AC |
6022 | LTLIBOBJS=$ac_ltlibobjs |
6023 | ||
6024 | ||
c9a1864a YQ |
6025 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
6026 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
6027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6028 | fi | |
61c125b9 TT |
6029 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
6030 | as_fn_error "conditional \"GMAKE\" was never defined. | |
6031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6032 | fi | |
bec39cab AC |
6033 | |
6034 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 6035 | ac_write_fail=0 |
bec39cab AC |
6036 | ac_clean_files_save=$ac_clean_files |
6037 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6039 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6040 | as_write_fail=0 | |
6041 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
bec39cab AC |
6042 | #! $SHELL |
6043 | # Generated by $as_me. | |
d6e9fb05 | 6044 | # Run this file to recreate the current configuration. |
d6e9fb05 | 6045 | # Compiler output produced by configure, useful for debugging |
bec39cab AC |
6046 | # configure, is in config.log if it exists. |
6047 | ||
6048 | debug=false | |
6049 | ac_cs_recheck=false | |
6050 | ac_cs_silent=false | |
bec39cab | 6051 | |
81ecdfbb RW |
6052 | SHELL=\${CONFIG_SHELL-$SHELL} |
6053 | export SHELL | |
6054 | _ASEOF | |
6055 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6056 | ## -------------------- ## | |
6057 | ## M4sh Initialization. ## | |
6058 | ## -------------------- ## | |
6059 | ||
6060 | # Be more Bourne compatible | |
6061 | DUALCASE=1; export DUALCASE # for MKS sh | |
6062 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
bec39cab AC |
6063 | emulate sh |
6064 | NULLCMD=: | |
81ecdfbb | 6065 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bec39cab AC |
6066 | # is contrary to our usage. Disable this feature. |
6067 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
6068 | setopt NO_GLOB_SUBST |
6069 | else | |
6070 | case `(set -o) 2>/dev/null` in #( | |
6071 | *posix*) : | |
6072 | set -o posix ;; #( | |
6073 | *) : | |
6074 | ;; | |
6075 | esac | |
bec39cab | 6076 | fi |
d6e9fb05 | 6077 | |
81ecdfbb RW |
6078 | |
6079 | as_nl=' | |
6080 | ' | |
6081 | export as_nl | |
6082 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6083 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6084 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6085 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6086 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6087 | # but without wasting forks for bash or zsh. | |
6088 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6089 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6090 | as_echo='print -r --' | |
6091 | as_echo_n='print -rn --' | |
6092 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6093 | as_echo='printf %s\n' | |
6094 | as_echo_n='printf %s' | |
bec39cab | 6095 | else |
81ecdfbb RW |
6096 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
6097 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6098 | as_echo_n='/usr/ucb/echo -n' | |
6099 | else | |
6100 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6101 | as_echo_n_body='eval | |
6102 | arg=$1; | |
6103 | case $arg in #( | |
6104 | *"$as_nl"*) | |
6105 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6106 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6107 | esac; | |
6108 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6109 | ' | |
6110 | export as_echo_n_body | |
6111 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6112 | fi | |
6113 | export as_echo_body | |
6114 | as_echo='sh -c $as_echo_body as_echo' | |
6115 | fi | |
6116 | ||
6117 | # The user is always right. | |
6118 | if test "${PATH_SEPARATOR+set}" != set; then | |
6119 | PATH_SEPARATOR=: | |
6120 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6121 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6122 | PATH_SEPARATOR=';' | |
6123 | } | |
bec39cab AC |
6124 | fi |
6125 | ||
6126 | ||
81ecdfbb RW |
6127 | # IFS |
6128 | # We need space, tab and new line, in precisely that order. Quoting is | |
6129 | # there to prevent editors from complaining about space-tab. | |
6130 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6131 | # splitting by setting IFS to empty value.) | |
6132 | IFS=" "" $as_nl" | |
6133 | ||
6134 | # Find who we are. Look in the path if we contain no directory separator. | |
6135 | case $0 in #(( | |
6136 | *[\\/]* ) as_myself=$0 ;; | |
6137 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6138 | for as_dir in $PATH | |
6139 | do | |
6140 | IFS=$as_save_IFS | |
6141 | test -z "$as_dir" && as_dir=. | |
6142 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6143 | done | |
6144 | IFS=$as_save_IFS | |
6145 | ||
6146 | ;; | |
6147 | esac | |
6148 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6149 | # in which case we are not to be found in the path. | |
6150 | if test "x$as_myself" = x; then | |
6151 | as_myself=$0 | |
6152 | fi | |
6153 | if test ! -f "$as_myself"; then | |
6154 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6155 | exit 1 | |
6156 | fi | |
6157 | ||
6158 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6159 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6160 | # suppresses any "Segmentation fault" message there. '((' could | |
6161 | # trigger a bug in pdksh 5.2.14. | |
6162 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6163 | do eval test x\${$as_var+set} = xset \ | |
6164 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6165 | done | |
bec39cab AC |
6166 | PS1='$ ' |
6167 | PS2='> ' | |
6168 | PS4='+ ' | |
6169 | ||
6170 | # NLS nuisances. | |
81ecdfbb RW |
6171 | LC_ALL=C |
6172 | export LC_ALL | |
6173 | LANGUAGE=C | |
6174 | export LANGUAGE | |
6175 | ||
6176 | # CDPATH. | |
6177 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6178 | ||
6179 | ||
6180 | # as_fn_error ERROR [LINENO LOG_FD] | |
6181 | # --------------------------------- | |
6182 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
6183 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6184 | # script with status $?, using 1 if that was 0. | |
6185 | as_fn_error () | |
6186 | { | |
6187 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
6188 | if test "$3"; then | |
6189 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6190 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
bec39cab | 6191 | fi |
81ecdfbb RW |
6192 | $as_echo "$as_me: error: $1" >&2 |
6193 | as_fn_exit $as_status | |
6194 | } # as_fn_error | |
6195 | ||
6196 | ||
6197 | # as_fn_set_status STATUS | |
6198 | # ----------------------- | |
6199 | # Set $? to STATUS, without forking. | |
6200 | as_fn_set_status () | |
6201 | { | |
6202 | return $1 | |
6203 | } # as_fn_set_status | |
6204 | ||
6205 | # as_fn_exit STATUS | |
6206 | # ----------------- | |
6207 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6208 | as_fn_exit () | |
6209 | { | |
6210 | set +e | |
6211 | as_fn_set_status $1 | |
6212 | exit $1 | |
6213 | } # as_fn_exit | |
6214 | ||
6215 | # as_fn_unset VAR | |
6216 | # --------------- | |
6217 | # Portably unset VAR. | |
6218 | as_fn_unset () | |
6219 | { | |
6220 | { eval $1=; unset $1;} | |
6221 | } | |
6222 | as_unset=as_fn_unset | |
6223 | # as_fn_append VAR VALUE | |
6224 | # ---------------------- | |
6225 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6226 | # advantage of any shell optimizations that allow amortized linear growth over | |
6227 | # repeated appends, instead of the typical quadratic growth present in naive | |
6228 | # implementations. | |
6229 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6230 | eval 'as_fn_append () | |
6231 | { | |
6232 | eval $1+=\$2 | |
6233 | }' | |
6234 | else | |
6235 | as_fn_append () | |
6236 | { | |
6237 | eval $1=\$$1\$2 | |
6238 | } | |
6239 | fi # as_fn_append | |
6240 | ||
6241 | # as_fn_arith ARG... | |
6242 | # ------------------ | |
6243 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6244 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6245 | # must be portable across $(()) and expr. | |
6246 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6247 | eval 'as_fn_arith () | |
6248 | { | |
6249 | as_val=$(( $* )) | |
6250 | }' | |
6251 | else | |
6252 | as_fn_arith () | |
6253 | { | |
6254 | as_val=`expr "$@" || test $? -eq 1` | |
6255 | } | |
6256 | fi # as_fn_arith | |
6257 | ||
d6e9fb05 | 6258 | |
81ecdfbb RW |
6259 | if expr a : '\(a\)' >/dev/null 2>&1 && |
6260 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
6261 | as_expr=expr |
6262 | else | |
6263 | as_expr=false | |
6264 | fi | |
d6e9fb05 | 6265 | |
81ecdfbb | 6266 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
6267 | as_basename=basename |
6268 | else | |
6269 | as_basename=false | |
6270 | fi | |
d6e9fb05 | 6271 | |
81ecdfbb RW |
6272 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6273 | as_dirname=dirname | |
6274 | else | |
6275 | as_dirname=false | |
6276 | fi | |
d6e9fb05 | 6277 | |
81ecdfbb | 6278 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
6279 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6280 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6281 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6282 | $as_echo X/"$0" | | |
6283 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6284 | s//\1/ | |
6285 | q | |
6286 | } | |
6287 | /^X\/\(\/\/\)$/{ | |
6288 | s//\1/ | |
6289 | q | |
6290 | } | |
6291 | /^X\/\(\/\).*/{ | |
6292 | s//\1/ | |
6293 | q | |
6294 | } | |
6295 | s/.*/./; q'` | |
bec39cab | 6296 | |
dae5f5cf DJ |
6297 | # Avoid depending upon Character Ranges. |
6298 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6299 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6300 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6301 | as_cr_digits='0123456789' | |
6302 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6303 | ||
81ecdfbb RW |
6304 | ECHO_C= ECHO_N= ECHO_T= |
6305 | case `echo -n x` in #((((( | |
6306 | -n*) | |
6307 | case `echo 'xy\c'` in | |
6308 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6309 | xy) ECHO_C='\c';; | |
6310 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6311 | ECHO_T=' ';; | |
6312 | esac;; | |
6313 | *) | |
6314 | ECHO_N='-n';; | |
bec39cab AC |
6315 | esac |
6316 | ||
81ecdfbb RW |
6317 | rm -f conf$$ conf$$.exe conf$$.file |
6318 | if test -d conf$$.dir; then | |
6319 | rm -f conf$$.dir/conf$$.file | |
bec39cab | 6320 | else |
81ecdfbb RW |
6321 | rm -f conf$$.dir |
6322 | mkdir conf$$.dir 2>/dev/null | |
bec39cab | 6323 | fi |
81ecdfbb RW |
6324 | if (echo >conf$$.file) 2>/dev/null; then |
6325 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
dae5f5cf | 6326 | as_ln_s='ln -s' |
81ecdfbb RW |
6327 | # ... but there are two gotchas: |
6328 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6329 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6330 | # In both cases, we have to default to `cp -p'. | |
6331 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6332 | as_ln_s='cp -p' | |
6333 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6334 | as_ln_s=ln | |
6335 | else | |
6336 | as_ln_s='cp -p' | |
dae5f5cf | 6337 | fi |
bec39cab AC |
6338 | else |
6339 | as_ln_s='cp -p' | |
6340 | fi | |
81ecdfbb RW |
6341 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6342 | rmdir conf$$.dir 2>/dev/null | |
6343 | ||
6344 | ||
6345 | # as_fn_mkdir_p | |
6346 | # ------------- | |
6347 | # Create "$as_dir" as a directory, including parents if necessary. | |
6348 | as_fn_mkdir_p () | |
6349 | { | |
6350 | ||
6351 | case $as_dir in #( | |
6352 | -*) as_dir=./$as_dir;; | |
6353 | esac | |
6354 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6355 | as_dirs= | |
6356 | while :; do | |
6357 | case $as_dir in #( | |
6358 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6359 | *) as_qdir=$as_dir;; | |
6360 | esac | |
6361 | as_dirs="'$as_qdir' $as_dirs" | |
6362 | as_dir=`$as_dirname -- "$as_dir" || | |
6363 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6364 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6365 | X"$as_dir" : 'X\(//\)$' \| \ | |
6366 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6367 | $as_echo X"$as_dir" | | |
6368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6369 | s//\1/ | |
6370 | q | |
6371 | } | |
6372 | /^X\(\/\/\)[^/].*/{ | |
6373 | s//\1/ | |
6374 | q | |
6375 | } | |
6376 | /^X\(\/\/\)$/{ | |
6377 | s//\1/ | |
6378 | q | |
6379 | } | |
6380 | /^X\(\/\).*/{ | |
6381 | s//\1/ | |
6382 | q | |
6383 | } | |
6384 | s/.*/./; q'` | |
6385 | test -d "$as_dir" && break | |
6386 | done | |
6387 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6388 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
bec39cab | 6389 | |
81ecdfbb RW |
6390 | |
6391 | } # as_fn_mkdir_p | |
bec39cab | 6392 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 6393 | as_mkdir_p='mkdir -p "$as_dir"' |
bec39cab AC |
6394 | else |
6395 | test -d ./-p && rmdir ./-p | |
6396 | as_mkdir_p=false | |
6397 | fi | |
6398 | ||
81ecdfbb RW |
6399 | if test -x / >/dev/null 2>&1; then |
6400 | as_test_x='test -x' | |
6401 | else | |
6402 | if ls -dL / >/dev/null 2>&1; then | |
6403 | as_ls_L_option=L | |
6404 | else | |
6405 | as_ls_L_option= | |
6406 | fi | |
6407 | as_test_x=' | |
6408 | eval sh -c '\'' | |
6409 | if test -d "$1"; then | |
6410 | test -d "$1/."; | |
6411 | else | |
6412 | case $1 in #( | |
6413 | -*)set "./$1";; | |
6414 | esac; | |
6415 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
6416 | ???[sx]*):;;*)false;;esac;fi | |
6417 | '\'' sh | |
6418 | ' | |
6419 | fi | |
6420 | as_executable_p=$as_test_x | |
bec39cab AC |
6421 | |
6422 | # Sed expression to map a string onto a valid CPP name. | |
6423 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6424 | ||
6425 | # Sed expression to map a string onto a valid variable name. | |
6426 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6427 | ||
6428 | ||
bec39cab | 6429 | exec 6>&1 |
81ecdfbb RW |
6430 | ## ----------------------------------- ## |
6431 | ## Main body of $CONFIG_STATUS script. ## | |
6432 | ## ----------------------------------- ## | |
6433 | _ASEOF | |
6434 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6435 | ||
6436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6437 | # Save the log message, to keep $0 and so on meaningful, and to | |
bec39cab | 6438 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
6439 | # values after options handling. |
6440 | ac_log=" | |
bec39cab | 6441 | This file was extended by $as_me, which was |
81ecdfbb | 6442 | generated by GNU Autoconf 2.64. Invocation command line was |
bec39cab AC |
6443 | |
6444 | CONFIG_FILES = $CONFIG_FILES | |
6445 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6446 | CONFIG_LINKS = $CONFIG_LINKS | |
6447 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6448 | $ $0 $@ | |
6449 | ||
81ecdfbb RW |
6450 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6451 | " | |
6452 | ||
bec39cab AC |
6453 | _ACEOF |
6454 | ||
81ecdfbb RW |
6455 | case $ac_config_files in *" |
6456 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6457 | esac | |
bec39cab | 6458 | |
81ecdfbb RW |
6459 | case $ac_config_headers in *" |
6460 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6461 | esac | |
dae5f5cf | 6462 | |
dae5f5cf | 6463 | |
81ecdfbb RW |
6464 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6465 | # Files that config.status was made for. | |
6466 | config_files="$ac_config_files" | |
6467 | config_headers="$ac_config_headers" | |
6468 | config_commands="$ac_config_commands" | |
bec39cab | 6469 | |
81ecdfbb | 6470 | _ACEOF |
dae5f5cf | 6471 | |
81ecdfbb | 6472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab | 6473 | ac_cs_usage="\ |
81ecdfbb RW |
6474 | \`$as_me' instantiates files and other configuration actions |
6475 | from templates according to the current configuration. Unless the files | |
6476 | and actions are specified as TAGs, all are instantiated by default. | |
bec39cab | 6477 | |
81ecdfbb | 6478 | Usage: $0 [OPTION]... [TAG]... |
bec39cab AC |
6479 | |
6480 | -h, --help print this help, then exit | |
81ecdfbb RW |
6481 | -V, --version print version number and configuration settings, then exit |
6482 | -q, --quiet, --silent | |
6483 | do not print progress messages | |
bec39cab AC |
6484 | -d, --debug don't remove temporary files |
6485 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
6486 | --file=FILE[:TEMPLATE] |
6487 | instantiate the configuration file FILE | |
6488 | --header=FILE[:TEMPLATE] | |
6489 | instantiate the configuration header FILE | |
bec39cab AC |
6490 | |
6491 | Configuration files: | |
6492 | $config_files | |
6493 | ||
6494 | Configuration headers: | |
6495 | $config_headers | |
6496 | ||
6497 | Configuration commands: | |
6498 | $config_commands | |
6499 | ||
81ecdfbb | 6500 | Report bugs to the package provider." |
dae5f5cf | 6501 | |
81ecdfbb RW |
6502 | _ACEOF |
6503 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
bec39cab AC |
6504 | ac_cs_version="\\ |
6505 | config.status | |
81ecdfbb RW |
6506 | configured by $0, generated by GNU Autoconf 2.64, |
6507 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
bec39cab | 6508 | |
81ecdfbb | 6509 | Copyright (C) 2009 Free Software Foundation, Inc. |
bec39cab AC |
6510 | This config.status script is free software; the Free Software Foundation |
6511 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
6512 | |
6513 | ac_pwd='$ac_pwd' | |
6514 | srcdir='$srcdir' | |
6515 | INSTALL='$INSTALL' | |
6516 | test -n "\$AWK" || AWK=awk | |
bec39cab AC |
6517 | _ACEOF |
6518 | ||
81ecdfbb RW |
6519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6520 | # The default lists apply if the user does not specify any file. | |
bec39cab AC |
6521 | ac_need_defaults=: |
6522 | while test $# != 0 | |
6523 | do | |
6524 | case $1 in | |
6525 | --*=*) | |
81ecdfbb RW |
6526 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6527 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bec39cab AC |
6528 | ac_shift=: |
6529 | ;; | |
81ecdfbb | 6530 | *) |
bec39cab AC |
6531 | ac_option=$1 |
6532 | ac_optarg=$2 | |
6533 | ac_shift=shift | |
6534 | ;; | |
bec39cab AC |
6535 | esac |
6536 | ||
6537 | case $ac_option in | |
6538 | # Handling of the options. | |
bec39cab AC |
6539 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6540 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
6541 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6542 | $as_echo "$ac_cs_version"; exit ;; | |
6543 | --debug | --debu | --deb | --de | --d | -d ) | |
bec39cab AC |
6544 | debug=: ;; |
6545 | --file | --fil | --fi | --f ) | |
6546 | $ac_shift | |
81ecdfbb RW |
6547 | case $ac_optarg in |
6548 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6549 | esac | |
6550 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
bec39cab AC |
6551 | ac_need_defaults=false;; |
6552 | --header | --heade | --head | --hea ) | |
6553 | $ac_shift | |
81ecdfbb RW |
6554 | case $ac_optarg in |
6555 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6556 | esac | |
6557 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
bec39cab | 6558 | ac_need_defaults=false;; |
81ecdfbb RW |
6559 | --he | --h) |
6560 | # Conflict between --help and --header | |
6561 | as_fn_error "ambiguous option: \`$1' | |
6562 | Try \`$0 --help' for more information.";; | |
6563 | --help | --hel | -h ) | |
6564 | $as_echo "$ac_cs_usage"; exit ;; | |
bec39cab AC |
6565 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6566 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6567 | ac_cs_silent=: ;; | |
6568 | ||
6569 | # This is an error. | |
81ecdfbb RW |
6570 | -*) as_fn_error "unrecognized option: \`$1' |
6571 | Try \`$0 --help' for more information." ;; | |
bec39cab | 6572 | |
81ecdfbb RW |
6573 | *) as_fn_append ac_config_targets " $1" |
6574 | ac_need_defaults=false ;; | |
bec39cab AC |
6575 | |
6576 | esac | |
6577 | shift | |
d6e9fb05 | 6578 | done |
bec39cab AC |
6579 | |
6580 | ac_configure_extra_args= | |
6581 | ||
6582 | if $ac_cs_silent; then | |
6583 | exec 6>/dev/null | |
6584 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d6e9fb05 | 6585 | fi |
d6e9fb05 | 6586 | |
bec39cab | 6587 | _ACEOF |
81ecdfbb | 6588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bec39cab | 6589 | if \$ac_cs_recheck; then |
81ecdfbb RW |
6590 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6591 | shift | |
6592 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6593 | CONFIG_SHELL='$SHELL' | |
6594 | export CONFIG_SHELL | |
6595 | exec "\$@" | |
bec39cab | 6596 | fi |
d6e9fb05 | 6597 | |
bec39cab | 6598 | _ACEOF |
81ecdfbb RW |
6599 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6600 | exec 5>>config.log | |
6601 | { | |
6602 | echo | |
6603 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6604 | ## Running $as_me. ## | |
6605 | _ASBOX | |
6606 | $as_echo "$ac_log" | |
6607 | } >&5 | |
bec39cab | 6608 | |
81ecdfbb RW |
6609 | _ACEOF |
6610 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
61c125b9 TT |
6611 | # |
6612 | # INIT-COMMANDS | |
6613 | # | |
6614 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
6615 | ||
81ecdfbb | 6616 | _ACEOF |
bec39cab | 6617 | |
81ecdfbb | 6618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b80864fb | 6619 | |
81ecdfbb | 6620 | # Handling of arguments. |
bec39cab AC |
6621 | for ac_config_target in $ac_config_targets |
6622 | do | |
81ecdfbb RW |
6623 | case $ac_config_target in |
6624 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
61c125b9 | 6625 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
81ecdfbb RW |
6626 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
6627 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
6628 | ||
6629 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
d6e9fb05 | 6630 | esac |
bec39cab AC |
6631 | done |
6632 | ||
81ecdfbb | 6633 | |
bec39cab AC |
6634 | # If the user did not use the arguments to specify the items to instantiate, |
6635 | # then the envvar interface is used. Set only those that are not. | |
6636 | # We use the long form for the default assignment because of an extremely | |
6637 | # bizarre bug on SunOS 4.1.3. | |
6638 | if $ac_need_defaults; then | |
6639 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6640 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6641 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6642 | fi | |
d6e9fb05 | 6643 | |
bec39cab | 6644 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 6645 | # simply because there is no reason against having it here, and in addition, |
bec39cab | 6646 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
6647 | # Hook for its removal unless debugging. |
6648 | # Note that there is a small window in which the directory will not be cleaned: | |
6649 | # after its creation but before its name has been assigned to `$tmp'. | |
bec39cab AC |
6650 | $debug || |
6651 | { | |
81ecdfbb RW |
6652 | tmp= |
6653 | trap 'exit_status=$? | |
6654 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6655 | ' 0 | |
6656 | trap 'as_fn_exit 1' 1 2 13 15 | |
bec39cab | 6657 | } |
bec39cab AC |
6658 | # Create a (secure) tmp directory for tmp files. |
6659 | ||
6660 | { | |
81ecdfbb | 6661 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bec39cab AC |
6662 | test -n "$tmp" && test -d "$tmp" |
6663 | } || | |
6664 | { | |
81ecdfbb RW |
6665 | tmp=./conf$$-$RANDOM |
6666 | (umask 077 && mkdir "$tmp") | |
6667 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
6668 | ||
6669 | # Set up the scripts for CONFIG_FILES section. | |
6670 | # No need to generate them if there are no CONFIG_FILES. | |
6671 | # This happens for instance with `./config.status config.h'. | |
6672 | if test -n "$CONFIG_FILES"; then | |
6673 | ||
6674 | ||
6675 | ac_cr=`echo X | tr X '\015'` | |
6676 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
6677 | # But we know of no other shell where ac_cr would be empty at this | |
6678 | # point, so we can use a bashism as a fallback. | |
6679 | if test "x$ac_cr" = x; then | |
6680 | eval ac_cr=\$\'\\r\' | |
6681 | fi | |
6682 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
6683 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
6684 | ac_cs_awk_cr='\r' | |
6685 | else | |
6686 | ac_cs_awk_cr=$ac_cr | |
6687 | fi | |
6688 | ||
6689 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
6690 | _ACEOF | |
6691 | ||
6692 | ||
6693 | { | |
6694 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
6695 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
6696 | echo "_ACEOF" | |
6697 | } >conf$$subs.sh || | |
6698 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6699 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
6700 | ac_delim='%!_!# ' | |
6701 | for ac_last_try in false false false false false :; do | |
6702 | . ./conf$$subs.sh || | |
6703 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6704 | ||
6705 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
6706 | if test $ac_delim_n = $ac_delim_num; then | |
6707 | break | |
6708 | elif $ac_last_try; then | |
6709 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
6710 | else | |
6711 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6712 | fi | |
6713 | done | |
6714 | rm -f conf$$subs.sh | |
6715 | ||
6716 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6717 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
6718 | _ACEOF | |
6719 | sed -n ' | |
6720 | h | |
6721 | s/^/S["/; s/!.*/"]=/ | |
6722 | p | |
6723 | g | |
6724 | s/^[^!]*!// | |
6725 | :repl | |
6726 | t repl | |
6727 | s/'"$ac_delim"'$// | |
6728 | t delim | |
6729 | :nl | |
6730 | h | |
6731 | s/\(.\{148\}\).*/\1/ | |
6732 | t more1 | |
6733 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
6734 | p | |
6735 | n | |
6736 | b repl | |
6737 | :more1 | |
6738 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6739 | p | |
6740 | g | |
6741 | s/.\{148\}// | |
6742 | t nl | |
6743 | :delim | |
6744 | h | |
6745 | s/\(.\{148\}\).*/\1/ | |
6746 | t more2 | |
6747 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
6748 | p | |
6749 | b | |
6750 | :more2 | |
6751 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6752 | p | |
6753 | g | |
6754 | s/.\{148\}// | |
6755 | t delim | |
6756 | ' <conf$$subs.awk | sed ' | |
6757 | /^[^""]/{ | |
6758 | N | |
6759 | s/\n// | |
6760 | } | |
6761 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
6762 | rm -f conf$$subs.awk | |
6763 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6764 | _ACAWK | |
6765 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
6766 | for (key in S) S_is_set[key] = 1 | |
6767 | FS = "\a" | |
6768 | ||
6769 | } | |
bec39cab | 6770 | { |
81ecdfbb RW |
6771 | line = $ 0 |
6772 | nfields = split(line, field, "@") | |
6773 | substed = 0 | |
6774 | len = length(field[1]) | |
6775 | for (i = 2; i < nfields; i++) { | |
6776 | key = field[i] | |
6777 | keylen = length(key) | |
6778 | if (S_is_set[key]) { | |
6779 | value = S[key] | |
6780 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6781 | len += length(value) + length(field[++i]) | |
6782 | substed = 1 | |
6783 | } else | |
6784 | len += 1 + keylen | |
6785 | } | |
6786 | ||
6787 | print line | |
bec39cab AC |
6788 | } |
6789 | ||
81ecdfbb RW |
6790 | _ACAWK |
6791 | _ACEOF | |
6792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6793 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6794 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6795 | else | |
6796 | cat | |
6797 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
6798 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
dae5f5cf DJ |
6799 | _ACEOF |
6800 | ||
81ecdfbb RW |
6801 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
6802 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6803 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6804 | # (actually we leave an empty line to preserve line numbers). | |
6805 | if test "x$srcdir" = x.; then | |
6806 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6807 | s/:*\$(srcdir):*/:/ | |
6808 | s/:*\${srcdir}:*/:/ | |
6809 | s/:*@srcdir@:*/:/ | |
6810 | s/^\([^=]*=[ ]*\):*/\1/ | |
6811 | s/:*$// | |
6812 | s/^[^=]*=[ ]*$// | |
6813 | }' | |
6814 | fi | |
bec39cab | 6815 | |
81ecdfbb RW |
6816 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6817 | fi # test -n "$CONFIG_FILES" | |
bec39cab | 6818 | |
81ecdfbb RW |
6819 | # Set up the scripts for CONFIG_HEADERS section. |
6820 | # No need to generate them if there are no CONFIG_HEADERS. | |
6821 | # This happens for instance with `./config.status Makefile'. | |
6822 | if test -n "$CONFIG_HEADERS"; then | |
6823 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
6824 | BEGIN { | |
b80864fb DJ |
6825 | _ACEOF |
6826 | ||
81ecdfbb RW |
6827 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
6828 | # here-document in config.status, that substitutes the proper values into | |
6829 | # config.h.in to produce config.h. | |
6830 | ||
6831 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
6832 | # handling of long lines. | |
6833 | ac_delim='%!_!# ' | |
6834 | for ac_last_try in false false :; do | |
6835 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
6836 | if test -z "$ac_t"; then | |
6837 | break | |
6838 | elif $ac_last_try; then | |
6839 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
6840 | else | |
6841 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
d6e9fb05 | 6842 | fi |
81ecdfbb | 6843 | done |
d6e9fb05 | 6844 | |
81ecdfbb RW |
6845 | # For the awk script, D is an array of macro values keyed by name, |
6846 | # likewise P contains macro parameters if any. Preserve backslash | |
6847 | # newline sequences. | |
6848 | ||
6849 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6850 | sed -n ' | |
6851 | s/.\{148\}/&'"$ac_delim"'/g | |
6852 | t rset | |
6853 | :rset | |
6854 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
6855 | t def | |
6856 | d | |
6857 | :def | |
6858 | s/\\$// | |
6859 | t bsnl | |
6860 | s/["\\]/\\&/g | |
6861 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6862 | D["\1"]=" \3"/p | |
6863 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
6864 | d | |
6865 | :bsnl | |
6866 | s/["\\]/\\&/g | |
6867 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6868 | D["\1"]=" \3\\\\\\n"\\/p | |
6869 | t cont | |
6870 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
6871 | t cont | |
6872 | d | |
6873 | :cont | |
6874 | n | |
6875 | s/.\{148\}/&'"$ac_delim"'/g | |
6876 | t clear | |
6877 | :clear | |
6878 | s/\\$// | |
6879 | t bsnlc | |
6880 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
6881 | d | |
6882 | :bsnlc | |
6883 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
6884 | b cont | |
6885 | ' <confdefs.h | sed ' | |
6886 | s/'"$ac_delim"'/"\\\ | |
6887 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
6888 | ||
6889 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6890 | for (key in D) D_is_set[key] = 1 | |
6891 | FS = "\a" | |
6892 | } | |
6893 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
6894 | line = \$ 0 | |
6895 | split(line, arg, " ") | |
6896 | if (arg[1] == "#") { | |
6897 | defundef = arg[2] | |
6898 | mac1 = arg[3] | |
6899 | } else { | |
6900 | defundef = substr(arg[1], 2) | |
6901 | mac1 = arg[2] | |
6902 | } | |
6903 | split(mac1, mac2, "(") #) | |
6904 | macro = mac2[1] | |
6905 | prefix = substr(line, 1, index(line, defundef) - 1) | |
6906 | if (D_is_set[macro]) { | |
6907 | # Preserve the white space surrounding the "#". | |
6908 | print prefix "define", macro P[macro] D[macro] | |
6909 | next | |
6910 | } else { | |
6911 | # Replace #undef with comments. This is necessary, for example, | |
6912 | # in the case of _POSIX_SOURCE, which is predefined and required | |
6913 | # on some systems where configure will not decide to define it. | |
6914 | if (defundef == "undef") { | |
6915 | print "/*", prefix defundef, macro, "*/" | |
6916 | next | |
6917 | } | |
6918 | } | |
6919 | } | |
6920 | { print } | |
6921 | _ACAWK | |
bec39cab | 6922 | _ACEOF |
81ecdfbb RW |
6923 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6924 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
6925 | fi # test -n "$CONFIG_HEADERS" | |
6926 | ||
6927 | ||
6928 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
6929 | shift | |
6930 | for ac_tag | |
6931 | do | |
6932 | case $ac_tag in | |
6933 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
6934 | esac | |
6935 | case $ac_mode$ac_tag in | |
6936 | :[FHL]*:*);; | |
6937 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
6938 | :[FH]-) ac_tag=-:-;; | |
6939 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6940 | esac | |
6941 | ac_save_IFS=$IFS | |
6942 | IFS=: | |
6943 | set x $ac_tag | |
6944 | IFS=$ac_save_IFS | |
6945 | shift | |
6946 | ac_file=$1 | |
6947 | shift | |
6948 | ||
6949 | case $ac_mode in | |
6950 | :L) ac_source=$1;; | |
6951 | :[FH]) | |
6952 | ac_file_inputs= | |
6953 | for ac_f | |
6954 | do | |
6955 | case $ac_f in | |
6956 | -) ac_f="$tmp/stdin";; | |
6957 | *) # Look for the file first in the build tree, then in the source tree | |
6958 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6959 | # because $ac_f cannot contain `:'. | |
6960 | test -f "$ac_f" || | |
6961 | case $ac_f in | |
6962 | [\\/$]*) false;; | |
6963 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6964 | esac || | |
6965 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
6966 | esac | |
6967 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
6968 | as_fn_append ac_file_inputs " '$ac_f'" | |
6969 | done | |
6970 | ||
6971 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6972 | # use $as_me), people would be surprised to read: | |
6973 | # /* config.h. Generated by config.status. */ | |
6974 | configure_input='Generated from '` | |
6975 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
6976 | `' by configure.' | |
6977 | if test x"$ac_file" != x-; then | |
6978 | configure_input="$ac_file. $configure_input" | |
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
6980 | $as_echo "$as_me: creating $ac_file" >&6;} | |
6981 | fi | |
6982 | # Neutralize special characters interpreted by sed in replacement strings. | |
6983 | case $configure_input in #( | |
6984 | *\&* | *\|* | *\\* ) | |
6985 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
6986 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
6987 | *) ac_sed_conf_input=$configure_input;; | |
6988 | esac | |
6989 | ||
6990 | case $ac_tag in | |
6991 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
6992 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
6993 | esac | |
6994 | ;; | |
d6e9fb05 JK |
6995 | esac |
6996 | ||
81ecdfbb | 6997 | ac_dir=`$as_dirname -- "$ac_file" || |
bec39cab AC |
6998 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6999 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7000 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7001 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7002 | $as_echo X"$ac_file" | | |
7003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7004 | s//\1/ | |
7005 | q | |
7006 | } | |
7007 | /^X\(\/\/\)[^/].*/{ | |
7008 | s//\1/ | |
7009 | q | |
7010 | } | |
7011 | /^X\(\/\/\)$/{ | |
7012 | s//\1/ | |
7013 | q | |
7014 | } | |
7015 | /^X\(\/\).*/{ | |
7016 | s//\1/ | |
7017 | q | |
7018 | } | |
7019 | s/.*/./; q'` | |
7020 | as_dir="$ac_dir"; as_fn_mkdir_p | |
bec39cab AC |
7021 | ac_builddir=. |
7022 | ||
81ecdfbb RW |
7023 | case "$ac_dir" in |
7024 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7025 | *) | |
7026 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7027 | # A ".." for each directory in $ac_dir_suffix. | |
7028 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7029 | case $ac_top_builddir_sub in | |
7030 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7031 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7032 | esac ;; | |
7033 | esac | |
7034 | ac_abs_top_builddir=$ac_pwd | |
7035 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7036 | # for backward compatibility: | |
7037 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
7038 | |
7039 | case $srcdir in | |
81ecdfbb | 7040 | .) # We are building in place. |
bec39cab | 7041 | ac_srcdir=. |
81ecdfbb RW |
7042 | ac_top_srcdir=$ac_top_builddir_sub |
7043 | ac_abs_top_srcdir=$ac_pwd ;; | |
7044 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 7045 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7046 | ac_top_srcdir=$srcdir |
7047 | ac_abs_top_srcdir=$srcdir ;; | |
7048 | *) # Relative name. | |
7049 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7050 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7051 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 7052 | esac |
81ecdfbb | 7053 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 7054 | |
bec39cab | 7055 | |
81ecdfbb RW |
7056 | case $ac_mode in |
7057 | :F) | |
7058 | # | |
7059 | # CONFIG_FILE | |
7060 | # | |
d6e9fb05 | 7061 | |
bec39cab AC |
7062 | case $INSTALL in |
7063 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 7064 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d6e9fb05 | 7065 | esac |
81ecdfbb | 7066 | _ACEOF |
3db0444b | 7067 | |
81ecdfbb RW |
7068 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7069 | # If the template does not know about datarootdir, expand it. | |
7070 | # FIXME: This hack should be removed a few years after 2.60. | |
7071 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7072 | ac_sed_dataroot=' | |
7073 | /datarootdir/ { | |
7074 | p | |
7075 | q | |
7076 | } | |
7077 | /@datadir@/p | |
7078 | /@docdir@/p | |
7079 | /@infodir@/p | |
7080 | /@localedir@/p | |
7081 | /@mandir@/p' | |
7082 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7083 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7084 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7086 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7087 | _ACEOF | |
7088 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7089 | ac_datarootdir_hack=' | |
7090 | s&@datadir@&$datadir&g | |
7091 | s&@docdir@&$docdir&g | |
7092 | s&@infodir@&$infodir&g | |
7093 | s&@localedir@&$localedir&g | |
7094 | s&@mandir@&$mandir&g | |
7095 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7096 | esac | |
bec39cab | 7097 | _ACEOF |
81ecdfbb RW |
7098 | |
7099 | # Neutralize VPATH when `$srcdir' = `.'. | |
7100 | # Shell code in configure.ac might set extrasub. | |
7101 | # FIXME: do we really want to maintain this feature? | |
7102 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7103 | ac_sed_extra="$ac_vpsub | |
bec39cab AC |
7104 | $extrasub |
7105 | _ACEOF | |
81ecdfbb | 7106 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bec39cab AC |
7107 | :t |
7108 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
7109 | s|@configure_input@|$ac_sed_conf_input|;t t |
7110 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7111 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7112 | s&@srcdir@&$ac_srcdir&;t t | |
7113 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7114 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7115 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7116 | s&@builddir@&$ac_builddir&;t t | |
7117 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7118 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7119 | s&@INSTALL@&$ac_INSTALL&;t t | |
7120 | $ac_datarootdir_hack | |
7121 | " | |
7122 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
7123 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7124 | ||
7125 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7126 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7127 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7129 | which seems to be undefined. Please make sure it is defined." >&5 | |
7130 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7131 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7132 | ||
7133 | rm -f "$tmp/stdin" | |
bec39cab | 7134 | case $ac_file in |
81ecdfbb RW |
7135 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
7136 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7137 | esac \ | |
7138 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7139 | ;; | |
7140 | :H) | |
7141 | # | |
7142 | # CONFIG_HEADER | |
7143 | # | |
bec39cab | 7144 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
7145 | { |
7146 | $as_echo "/* $configure_input */" \ | |
7147 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
7148 | } >"$tmp/config.h" \ | |
7149 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7150 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
7152 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
bec39cab | 7153 | else |
81ecdfbb RW |
7154 | rm -f "$ac_file" |
7155 | mv "$tmp/config.h" "$ac_file" \ | |
7156 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
84563040 | 7157 | fi |
bec39cab | 7158 | else |
81ecdfbb RW |
7159 | $as_echo "/* $configure_input */" \ |
7160 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
7161 | || as_fn_error "could not create -" "$LINENO" 5 | |
d6e9fb05 | 7162 | fi |
81ecdfbb | 7163 | ;; |
dae5f5cf | 7164 | |
81ecdfbb RW |
7165 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
7166 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7167 | ;; | |
7168 | esac | |
dae5f5cf DJ |
7169 | |
7170 | ||
81ecdfbb | 7171 | case $ac_file$ac_mode in |
61c125b9 | 7172 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
81ecdfbb | 7173 | "default":C) case x$CONFIG_HEADERS in |
c3a3ccc7 DJ |
7174 | xconfig.h:config.in) |
7175 | echo > stamp-h ;; | |
7176 | esac | |
bec39cab | 7177 | ;; |
81ecdfbb | 7178 | |
bec39cab | 7179 | esac |
81ecdfbb | 7180 | done # for ac_tag |
d6e9fb05 | 7181 | |
bec39cab | 7182 | |
81ecdfbb | 7183 | as_fn_exit 0 |
bec39cab | 7184 | _ACEOF |
bec39cab AC |
7185 | ac_clean_files=$ac_clean_files_save |
7186 | ||
81ecdfbb RW |
7187 | test $ac_write_fail = 0 || |
7188 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
7189 | ||
bec39cab AC |
7190 | |
7191 | # configure is writing to config.log, and then calls config.status. | |
7192 | # config.status does its own redirection, appending to config.log. | |
7193 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7194 | # by configure, so config.status won't be able to write to it; its | |
7195 | # output is simply discarded. So we exec the FD to /dev/null, | |
7196 | # effectively closing config.log, so it can be properly (re)opened and | |
7197 | # appended to by config.status. When coming back to configure, we | |
7198 | # need to make the FD available again. | |
7199 | if test "$no_create" != yes; then | |
7200 | ac_cs_success=: | |
7201 | ac_config_status_args= | |
7202 | test "$silent" = yes && | |
7203 | ac_config_status_args="$ac_config_status_args --quiet" | |
7204 | exec 5>/dev/null | |
7205 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7206 | exec 5>>config.log | |
7207 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7208 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
7209 | $ac_cs_success || as_fn_exit $? |
7210 | fi | |
7211 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7213 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
bec39cab | 7214 | fi |
d6e9fb05 | 7215 |