]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/gdbserver/configure
Remove -Wno-narrowing from warnings.m4
[thirdparty/binutils-gdb.git] / gdb / gdbserver / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
31 fi
32
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'
50 else
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 }
79 fi
80
81
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="server.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 GNULIB_STDINT_H
625 extra_libraries
626 IPA_DEPFILES
627 srv_xmlfiles
628 srv_xmlbuiltin
629 GDBSERVER_LIBS
630 GDBSERVER_DEPFILES
631 RDYNAMIC
632 REPORT_BUGS_TEXI
633 REPORT_BUGS_TO
634 PKGVERSION
635 WERROR_CFLAGS
636 WARN_CFLAGS
637 ustinc
638 ustlibs
639 ALLOCA
640 CCDEPMODE
641 CONFIG_SRC_SUBDIR
642 DEPDIR
643 am__leading_dot
644 host_noncanonical
645 target_noncanonical
646 CXX_DIALECT
647 HAVE_CXX11
648 RANLIB
649 AR
650 INSTALL_DATA
651 INSTALL_SCRIPT
652 INSTALL_PROGRAM
653 target_os
654 target_vendor
655 target_cpu
656 target
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 EGREP
666 GREP
667 CPP
668 ac_ct_CXX
669 CXXFLAGS
670 CXX
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
677 CC
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 target_alias
682 host_alias
683 build_alias
684 LIBS
685 ECHO_T
686 ECHO_N
687 ECHO_C
688 DEFS
689 mandir
690 localedir
691 libdir
692 psdir
693 pdfdir
694 dvidir
695 htmldir
696 infodir
697 docdir
698 oldincludedir
699 includedir
700 localstatedir
701 sharedstatedir
702 sysconfdir
703 datadir
704 datarootdir
705 libexecdir
706 sbindir
707 bindir
708 program_transform_name
709 prefix
710 exec_prefix
711 PACKAGE_URL
712 PACKAGE_BUGREPORT
713 PACKAGE_STRING
714 PACKAGE_VERSION
715 PACKAGE_TARNAME
716 PACKAGE_NAME
717 PATH_SEPARATOR
718 SHELL'
719 ac_subst_files=''
720 ac_user_opts='
721 enable_option_checking
722 enable_maintainer_mode
723 enable_largefile
724 enable_libmcheck
725 with_ust
726 with_ust_include
727 with_ust_lib
728 enable_werror
729 enable_build_warnings
730 enable_gdb_build_warnings
731 with_pkgversion
732 with_bugurl
733 with_libthread_db
734 enable_inprocess_agent
735 '
736 ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CC
740 CFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CXX
745 CXXFLAGS
746 CCC
747 CPP'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1205 fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error $? "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error $? "pwd does not report name of working directory"
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\).*/{
1245 s//\1/
1246 q
1247 }
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1252 fi
1253 else
1254 ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259 fi
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1267 fi
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1280
1281 #
1282 # Report the --help message.
1283 #
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 \`configure' configures this package to adapt to many kinds of systems.
1289
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1294
1295 Defaults for the options are specified in brackets.
1296
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking ...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1313
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1318
1319 For better control, use the options below.
1320
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1342
1343 cat <<\_ACEOF
1344
1345 Program names:
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349
1350 System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 --target=TARGET configure for building compilers for TARGET [HOST]
1354 _ACEOF
1355 fi
1356
1357 if test -n "$ac_init_help"; then
1358
1359 cat <<\_ACEOF
1360
1361 Optional Features:
1362 --disable-option-checking ignore unrecognized --enable/--with options
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode
1366 enable make rules and dependencies not useful (and
1367 sometimes confusing) to the casual installer
1368 --disable-largefile omit support for large files
1369 --enable-libmcheck Try linking with -lmcheck if available
1370 --enable-werror treat compile warnings as errors
1371 --enable-build-warnings enable build-time compiler warnings if gcc is used
1372 --enable-gdb-build-warnings
1373 enable GDB specific build-time compiler warnings if
1374 gcc is used
1375 --enable-inprocess-agent
1376 inprocess agent
1377
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-ust=PATH Specify prefix directory for the installed UST package
1382 Equivalent to --with-ust-include=PATH/include
1383 plus --with-ust-lib=PATH/lib
1384 --with-ust-include=PATH Specify directory for installed UST include files
1385 --with-ust-lib=PATH Specify the directory for the installed UST library
1386 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1387 --with-bugurl=URL Direct users to URL to report a bug
1388 --with-libthread-db=PATH
1389 use given libthread_db directly
1390
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CXX C++ compiler command
1400 CXXFLAGS C++ compiler flags
1401 CPP C preprocessor
1402
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1405
1406 Report bugs to the package provider.
1407 _ACEOF
1408 ac_status=$?
1409 fi
1410
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416 continue
1417 ac_builddir=.
1418
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *)
1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1434
1435 case $srcdir in
1436 .) # We are building in place.
1437 ac_srcdir=.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1444 *) # Relative name.
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1459 else
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 fi || ac_status=$?
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1463 done
1464 fi
1465
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468 cat <<\_ACEOF
1469 configure
1470 generated by GNU Autoconf 2.69
1471
1472 Copyright (C) 2012 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1477 fi
1478
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1482
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1487 {
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1491 case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1498 ac_status=$?
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1503 fi
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1509 ac_retval=0
1510 else
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1513
1514 ac_retval=1
1515 fi
1516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1517 as_fn_set_status $ac_retval
1518
1519 } # ac_fn_c_try_compile
1520
1521 # ac_fn_cxx_try_compile LINENO
1522 # ----------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_cxx_try_compile ()
1525 {
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_cxx_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553 fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_cxx_try_compile
1558
1559 # ac_fn_c_try_cpp LINENO
1560 # ----------------------
1561 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_cpp ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_cpp conftest.$ac_ext"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } > conftest.i && {
1581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 }; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_cpp
1595
1596 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1599 # the include files in INCLUDES and setting the cache variable VAR
1600 # accordingly.
1601 ac_fn_c_check_header_mongrel ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if eval \${$3+:} false; then :
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 fi
1610 eval ac_res=\$$3
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613 else
1614 # Is the header compilable?
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1616 $as_echo_n "checking $2 usability... " >&6; }
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1619 $4
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 ac_header_compiler=yes
1624 else
1625 ac_header_compiler=no
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1629 $as_echo "$ac_header_compiler" >&6; }
1630
1631 # Is the header present?
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1633 $as_echo_n "checking $2 presence... " >&6; }
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 #include <$2>
1637 _ACEOF
1638 if ac_fn_c_try_cpp "$LINENO"; then :
1639 ac_header_preproc=yes
1640 else
1641 ac_header_preproc=no
1642 fi
1643 rm -f conftest.err conftest.i conftest.$ac_ext
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1645 $as_echo "$ac_header_preproc" >&6; }
1646
1647 # So? What about this header?
1648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1649 yes:no: )
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1651 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ;;
1655 no:yes:* )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1657 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1659 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1661 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1663 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1665 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 ;;
1667 esac
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 eval "$3=\$ac_header_compiler"
1674 fi
1675 eval ac_res=\$$3
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677 $as_echo "$ac_res" >&6; }
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_mongrel
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=$ac_status
1718 fi
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 test -x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_link
1801
1802 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1803 # -------------------------------------------
1804 # Tests whether TYPE exists after having included INCLUDES, setting cache
1805 # variable VAR accordingly.
1806 ac_fn_c_check_type ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 eval "$3=no"
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 int
1819 main ()
1820 {
1821 if (sizeof ($2))
1822 return 0;
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_compile "$LINENO"; then :
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 $4
1831 int
1832 main ()
1833 {
1834 if (sizeof (($2)))
1835 return 0;
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841
1842 else
1843 eval "$3=yes"
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 fi
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_type
1855
1856 # ac_fn_c_check_func LINENO FUNC VAR
1857 # ----------------------------------
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1859 ac_fn_c_check_func ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1871 #define $2 innocuous_$2
1872
1873 /* System header to define __stub macros and hopefully few prototypes,
1874 which can conflict with char $2 (); below.
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1876 <limits.h> exists even on freestanding compilers. */
1877
1878 #ifdef __STDC__
1879 # include <limits.h>
1880 #else
1881 # include <assert.h>
1882 #endif
1883
1884 #undef $2
1885
1886 /* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1889 #ifdef __cplusplus
1890 extern "C"
1891 #endif
1892 char $2 ();
1893 /* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896 #if defined __stub_$2 || defined __stub___$2
1897 choke me
1898 #endif
1899
1900 int
1901 main ()
1902 {
1903 return $2 ();
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 if ac_fn_c_try_link "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext \
1914 conftest$ac_exeext conftest.$ac_ext
1915 fi
1916 eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920
1921 } # ac_fn_c_check_func
1922
1923 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1924 # ---------------------------------------------
1925 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1926 # accordingly.
1927 ac_fn_c_check_decl ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 as_decl_name=`echo $2|sed 's/ *(.*//'`
1931 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1933 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $4
1940 int
1941 main ()
1942 {
1943 #ifndef $as_decl_name
1944 #ifdef __cplusplus
1945 (void) $as_decl_use;
1946 #else
1947 (void) $as_decl_name;
1948 #endif
1949 #endif
1950
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$3=yes"
1957 else
1958 eval "$3=no"
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 fi
1962 eval ac_res=\$$3
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966
1967 } # ac_fn_c_check_decl
1968
1969 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1970 # --------------------------------------------
1971 # Tries to find the compile-time value of EXPR in a program that includes
1972 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1973 # computed
1974 ac_fn_c_compute_int ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if test "$cross_compiling" = yes; then
1978 # Depending upon the size, compute the lo and hi bounds.
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) >= 0)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_lo=0 ac_mid=0
1995 while :; do
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 int
2000 main ()
2001 {
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003 test_array [0] = 0;
2004 return test_array [0];
2005
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2012 else
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2015 ac_lo= ac_hi=
2016 break
2017 fi
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) < 0)];
2030 test_array [0] = 0;
2031 return test_array [0];
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_hi=-1 ac_mid=-1
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2047 test_array [0] = 0;
2048 return test_array [0];
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=$ac_mid; break
2056 else
2057 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2058 if test $ac_mid -le $ac_hi; then
2059 ac_lo= ac_hi=
2060 break
2061 fi
2062 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 done
2066 else
2067 ac_lo= ac_hi=
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 # Binary search between lo and hi bounds.
2073 while test "x$ac_lo" != "x$ac_hi"; do
2074 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0;
2083 return test_array [0];
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_hi=$ac_mid
2091 else
2092 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 case $ac_lo in #((
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2098 '') ac_retval=1 ;;
2099 esac
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2106 #include <stdio.h>
2107 #include <stdlib.h>
2108 int
2109 main ()
2110 {
2111
2112 FILE *f = fopen ("conftest.val", "w");
2113 if (! f)
2114 return 1;
2115 if (($2) < 0)
2116 {
2117 long int i = longval ();
2118 if (i != ($2))
2119 return 1;
2120 fprintf (f, "%ld", i);
2121 }
2122 else
2123 {
2124 unsigned long int i = ulongval ();
2125 if (i != ($2))
2126 return 1;
2127 fprintf (f, "%lu", i);
2128 }
2129 /* Do not output a trailing newline, as this causes \r\n confusion
2130 on some platforms. */
2131 return ferror (f) || fclose (f) != 0;
2132
2133 ;
2134 return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_run "$LINENO"; then :
2138 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2139 else
2140 ac_retval=1
2141 fi
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143 conftest.$ac_objext conftest.beam conftest.$ac_ext
2144 rm -f conftest.val
2145
2146 fi
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2149
2150 } # ac_fn_c_compute_int
2151
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2157 {
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval \${$4+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $5
2167 int
2168 main ()
2169 {
2170 static $2 ac_aggr;
2171 if (ac_aggr.$3)
2172 return 0;
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$4=yes"
2179 else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 $5
2183 int
2184 main ()
2185 {
2186 static $2 ac_aggr;
2187 if (sizeof ac_aggr.$3)
2188 return 0;
2189 ;
2190 return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 eval "$4=yes"
2195 else
2196 eval "$4=no"
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 eval ac_res=\$$4
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2211
2212 It was created by $as_me, which was
2213 generated by GNU Autoconf 2.69. Invocation command line was
2214
2215 $ $0 $@
2216
2217 _ACEOF
2218 exec 5>>config.log
2219 {
2220 cat <<_ASUNAME
2221 ## --------- ##
2222 ## Platform. ##
2223 ## --------- ##
2224
2225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2233
2234 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2235 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2238 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2239 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2240 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2241
2242 _ASUNAME
2243
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 $as_echo "PATH: $as_dir"
2250 done
2251 IFS=$as_save_IFS
2252
2253 } >&5
2254
2255 cat >&5 <<_ACEOF
2256
2257
2258 ## ----------- ##
2259 ## Core tests. ##
2260 ## ----------- ##
2261
2262 _ACEOF
2263
2264
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2270 ac_configure_args=
2271 ac_configure_args0=
2272 ac_configure_args1=
2273 ac_must_keep_next=false
2274 for ac_pass in 1 2
2275 do
2276 for ac_arg
2277 do
2278 case $ac_arg in
2279 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281 | -silent | --silent | --silen | --sile | --sil)
2282 continue ;;
2283 *\'*)
2284 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2285 esac
2286 case $ac_pass in
2287 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288 2)
2289 as_fn_append ac_configure_args1 " '$ac_arg'"
2290 if test $ac_must_keep_next = true; then
2291 ac_must_keep_next=false # Got value, back to normal.
2292 else
2293 case $ac_arg in
2294 *=* | --config-cache | -C | -disable-* | --disable-* \
2295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297 | -with-* | --with-* | -without-* | --without-* | --x)
2298 case "$ac_configure_args0 " in
2299 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2300 esac
2301 ;;
2302 -* ) ac_must_keep_next=true ;;
2303 esac
2304 fi
2305 as_fn_append ac_configure_args " '$ac_arg'"
2306 ;;
2307 esac
2308 done
2309 done
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2312
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log. We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319 # Save into config.log some information that might help in debugging.
2320 {
2321 echo
2322
2323 $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2326 echo
2327 # The following way of writing the cache mishandles newlines in values,
2328 (
2329 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330 eval ac_val=\$$ac_var
2331 case $ac_val in #(
2332 *${as_nl}*)
2333 case $ac_var in #(
2334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2336 esac
2337 case $ac_var in #(
2338 _ | IFS | as_nl) ;; #(
2339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340 *) { eval $ac_var=; unset $ac_var;} ;;
2341 esac ;;
2342 esac
2343 done
2344 (set) 2>&1 |
2345 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346 *${as_nl}ac_space=\ *)
2347 sed -n \
2348 "s/'\''/'\''\\\\'\'''\''/g;
2349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2350 ;; #(
2351 *)
2352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2353 ;;
2354 esac |
2355 sort
2356 )
2357 echo
2358
2359 $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2362 echo
2363 for ac_var in $ac_subst_vars
2364 do
2365 eval ac_val=\$$ac_var
2366 case $ac_val in
2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368 esac
2369 $as_echo "$ac_var='\''$ac_val'\''"
2370 done | sort
2371 echo
2372
2373 if test -n "$ac_subst_files"; then
2374 $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2377 echo
2378 for ac_var in $ac_subst_files
2379 do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in
2382 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383 esac
2384 $as_echo "$ac_var='\''$ac_val'\''"
2385 done | sort
2386 echo
2387 fi
2388
2389 if test -s confdefs.h; then
2390 $as_echo "## ----------- ##
2391 ## confdefs.h. ##
2392 ## ----------- ##"
2393 echo
2394 cat confdefs.h
2395 echo
2396 fi
2397 test "$ac_signal" != 0 &&
2398 $as_echo "$as_me: caught signal $ac_signal"
2399 $as_echo "$as_me: exit $exit_status"
2400 } >&5
2401 rm -f core *.core core.conftest.* &&
2402 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2403 exit $exit_status
2404 ' 0
2405 for ac_signal in 1 2 13 15; do
2406 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 done
2408 ac_signal=0
2409
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2412
2413 $as_echo "/* confdefs.h */" > confdefs.h
2414
2415 # Predefined preprocessor variables.
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2439 _ACEOF
2440
2441
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2444 ac_site_file1=NONE
2445 ac_site_file2=NONE
2446 if test -n "$CONFIG_SITE"; then
2447 # We do not want a PATH search for config.site.
2448 case $CONFIG_SITE in #((
2449 -*) ac_site_file1=./$CONFIG_SITE;;
2450 */*) ac_site_file1=$CONFIG_SITE;;
2451 *) ac_site_file1=./$CONFIG_SITE;;
2452 esac
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_file1=$prefix/share/config.site
2455 ac_site_file2=$prefix/etc/config.site
2456 else
2457 ac_site_file1=$ac_default_prefix/share/config.site
2458 ac_site_file2=$ac_default_prefix/etc/config.site
2459 fi
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2461 do
2462 test "x$ac_site_file" = xNONE && continue
2463 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466 sed 's/^/| /' "$ac_site_file" >&5
2467 . "$ac_site_file" \
2468 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site script $ac_site_file
2471 See \`config.log' for more details" "$LINENO" 5; }
2472 fi
2473 done
2474
2475 if test -r "$cache_file"; then
2476 # Some versions of bash will fail to source /dev/null (special files
2477 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2478 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2481 case $cache_file in
2482 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483 *) . "./$cache_file";;
2484 esac
2485 fi
2486 else
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2489 >$cache_file
2490 fi
2491
2492 # Check that the precious variables saved in the cache have kept the same
2493 # value.
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497 eval ac_new_set=\$ac_env_${ac_var}_set
2498 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499 eval ac_new_val=\$ac_env_${ac_var}_value
2500 case $ac_old_set,$ac_new_set in
2501 set,)
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504 ac_cache_corrupted=: ;;
2505 ,set)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508 ac_cache_corrupted=: ;;
2509 ,);;
2510 *)
2511 if test "x$ac_old_val" != "x$ac_new_val"; then
2512 # differences in whitespace do not lead to failure.
2513 ac_old_val_w=`echo x $ac_old_val`
2514 ac_new_val_w=`echo x $ac_new_val`
2515 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518 ac_cache_corrupted=:
2519 else
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522 eval $ac_var=\$ac_old_val
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2525 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2528 fi;;
2529 esac
2530 # Pass precious variables to config.status.
2531 if test "$ac_new_set" = set; then
2532 case $ac_new_val in
2533 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534 *) ac_arg=$ac_var=$ac_new_val ;;
2535 esac
2536 case " $ac_configure_args " in
2537 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2538 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539 esac
2540 fi
2541 done
2542 if $ac_cache_corrupted; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2548 fi
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2552
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560
2561
2562
2563 ac_config_headers="$ac_config_headers config.h:config.in"
2564
2565
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2568 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2569 # Check whether --enable-maintainer-mode was given.
2570 if test "${enable_maintainer_mode+set}" = set; then :
2571 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2572 else
2573 USE_MAINTAINER_MODE=no
2574 fi
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2577 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2578 if test $USE_MAINTAINER_MODE = yes; then
2579 MAINTAINER_MODE_TRUE=
2580 MAINTAINER_MODE_FALSE='#'
2581 else
2582 MAINTAINER_MODE_TRUE='#'
2583 MAINTAINER_MODE_FALSE=
2584 fi
2585
2586 MAINT=$MAINTAINER_MODE_TRUE
2587
2588
2589
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 if test -n "$ac_tool_prefix"; then
2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599 $as_echo_n "checking for $ac_word... " >&6; }
2600 if ${ac_cv_prog_CC+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 if test -n "$CC"; then
2604 ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 $as_echo "$CC" >&6; }
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 $as_echo "no" >&6; }
2630 fi
2631
2632
2633 fi
2634 if test -z "$ac_cv_prog_CC"; then
2635 ac_ct_CC=$CC
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637 set dummy gcc; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$ac_ct_CC"; then
2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_CC="gcc"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2664 if test -n "$ac_ct_CC"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2666 $as_echo "$ac_ct_CC" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681 CC=$ac_ct_CC
2682 fi
2683 else
2684 CC="$ac_cv_prog_CC"
2685 fi
2686
2687 if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_CC+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725
2726 fi
2727 fi
2728 if test -z "$CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 ac_prog_rejected=no
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748 ac_prog_rejected=yes
2749 continue
2750 fi
2751 ac_cv_prog_CC="cc"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 if test $ac_prog_rejected = yes; then
2760 # We found a bogon in the path, so make sure we never use it.
2761 set dummy $ac_cv_prog_CC
2762 shift
2763 if test $# != 0; then
2764 # We chose a different compiler from the bogus one.
2765 # However, it has the same basename, so the bogon will be chosen
2766 # first if we set CC to just the basename; use the full file name.
2767 shift
2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2769 fi
2770 fi
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 fi
2784 if test -z "$CC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in cl.exe
2787 do
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825 test -n "$CC" && break
2826 done
2827 fi
2828 if test -z "$CC"; then
2829 ac_ct_CC=$CC
2830 for ac_prog in cl.exe
2831 do
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$ac_ct_CC"; then
2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_ac_ct_CC="$ac_prog"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2862 $as_echo "$ac_ct_CC" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869 test -n "$ac_ct_CC" && break
2870 done
2871
2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881 CC=$ac_ct_CC
2882 fi
2883 fi
2884
2885 fi
2886
2887
2888 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 as_fn_error $? "no acceptable C compiler found in \$PATH
2891 See \`config.log' for more details" "$LINENO" 5; }
2892
2893 # Provide some information about the compiler.
2894 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2895 set X $ac_compile
2896 ac_compiler=$2
2897 for ac_option in --version -v -V -qversion; do
2898 { { ac_try="$ac_compiler $ac_option >&5"
2899 case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902 esac
2903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2906 ac_status=$?
2907 if test -s conftest.err; then
2908 sed '10a\
2909 ... rest of stderr output deleted ...
2910 10q' conftest.err >conftest.er1
2911 cat conftest.er1 >&5
2912 fi
2913 rm -f conftest.er1 conftest.err
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }
2916 done
2917
2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2920
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 ac_clean_files_save=$ac_clean_files
2930 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2931 # Try to create an executable without -o first, disregard a.out.
2932 # It will help us diagnose broken compilers, and finding out an intuition
2933 # of exeext.
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2935 $as_echo_n "checking whether the C compiler works... " >&6; }
2936 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2937
2938 # The possible output files:
2939 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2940
2941 ac_rmfiles=
2942 for ac_file in $ac_files
2943 do
2944 case $ac_file in
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2946 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2947 esac
2948 done
2949 rm -f $ac_rmfiles
2950
2951 if { { ac_try="$ac_link_default"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_link_default") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; then :
2962 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2963 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2964 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2966 # Autoconf.
2967 for ac_file in $ac_files ''
2968 do
2969 test -f "$ac_file" || continue
2970 case $ac_file in
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2972 ;;
2973 [ab].out )
2974 # We found the default executable, but exeext='' is most
2975 # certainly right.
2976 break;;
2977 *.* )
2978 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2979 then :; else
2980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981 fi
2982 # We set ac_cv_exeext here because the later test for it is not
2983 # safe: cross compilers may not add the suffix if given an `-o'
2984 # argument, so we may need to know it at that point already.
2985 # Even if this section looks crufty: it has the advantage of
2986 # actually working.
2987 break;;
2988 * )
2989 break;;
2990 esac
2991 done
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2993
2994 else
2995 ac_file=''
2996 fi
2997 if test -z "$ac_file"; then :
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 $as_echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 as_fn_error 77 "C compiler cannot create executables
3006 See \`config.log' for more details" "$LINENO" 5; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3009 $as_echo "yes" >&6; }
3010 fi
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3012 $as_echo_n "checking for C compiler default output file name... " >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3014 $as_echo "$ac_file" >&6; }
3015 ac_exeext=$ac_cv_exeext
3016
3017 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3018 ac_clean_files=$ac_clean_files_save
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3020 $as_echo_n "checking for suffix of executables... " >&6; }
3021 if { { ac_try="$ac_link"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_link") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }; then :
3032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3033 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3034 # work properly (i.e., refer to `conftest.exe'), while it won't with
3035 # `rm'.
3036 for ac_file in conftest.exe conftest conftest.*; do
3037 test -f "$ac_file" || continue
3038 case $ac_file in
3039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 break;;
3042 * ) break;;
3043 esac
3044 done
3045 else
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3049 See \`config.log' for more details" "$LINENO" 5; }
3050 fi
3051 rm -f conftest conftest$ac_cv_exeext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3053 $as_echo "$ac_cv_exeext" >&6; }
3054
3055 rm -f conftest.$ac_ext
3056 EXEEXT=$ac_cv_exeext
3057 ac_exeext=$EXEEXT
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3060 #include <stdio.h>
3061 int
3062 main ()
3063 {
3064 FILE *f = fopen ("conftest.out", "w");
3065 return ferror (f) || fclose (f) != 0;
3066
3067 ;
3068 return 0;
3069 }
3070 _ACEOF
3071 ac_clean_files="$ac_clean_files conftest.out"
3072 # Check that the compiler produces executables we can run. If not, either
3073 # the compiler is broken, or we cross compile.
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3075 $as_echo_n "checking whether we are cross compiling... " >&6; }
3076 if test "$cross_compiling" != yes; then
3077 { { ac_try="$ac_link"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_link") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3088 if { ac_try='./conftest$ac_cv_exeext'
3089 { { case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; }; then
3099 cross_compiling=no
3100 else
3101 if test "$cross_compiling" = maybe; then
3102 cross_compiling=yes
3103 else
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details" "$LINENO" 5; }
3109 fi
3110 fi
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3113 $as_echo "$cross_compiling" >&6; }
3114
3115 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3116 ac_clean_files=$ac_clean_files_save
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3118 $as_echo_n "checking for suffix of object files... " >&6; }
3119 if ${ac_cv_objext+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3124
3125 int
3126 main ()
3127 {
3128
3129 ;
3130 return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.o conftest.obj
3134 if { { ac_try="$ac_compile"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 $as_echo "$ac_try_echo"; } >&5
3141 (eval "$ac_compile") 2>&5
3142 ac_status=$?
3143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }; then :
3145 for ac_file in conftest.o conftest.obj conftest.*; do
3146 test -f "$ac_file" || continue;
3147 case $ac_file in
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3150 break;;
3151 esac
3152 done
3153 else
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error $? "cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details" "$LINENO" 5; }
3161 fi
3162 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3163 fi
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3165 $as_echo "$ac_cv_objext" >&6; }
3166 OBJEXT=$ac_cv_objext
3167 ac_objext=$OBJEXT
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3169 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3170 if ${ac_cv_c_compiler_gnu+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175
3176 int
3177 main ()
3178 {
3179 #ifndef __GNUC__
3180 choke me
3181 #endif
3182
3183 ;
3184 return 0;
3185 }
3186 _ACEOF
3187 if ac_fn_c_try_compile "$LINENO"; then :
3188 ac_compiler_gnu=yes
3189 else
3190 ac_compiler_gnu=no
3191 fi
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3194
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3197 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3198 if test $ac_compiler_gnu = yes; then
3199 GCC=yes
3200 else
3201 GCC=
3202 fi
3203 ac_test_CFLAGS=${CFLAGS+set}
3204 ac_save_CFLAGS=$CFLAGS
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3206 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3207 if ${ac_cv_prog_cc_g+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 ac_save_c_werror_flag=$ac_c_werror_flag
3211 ac_c_werror_flag=yes
3212 ac_cv_prog_cc_g=no
3213 CFLAGS="-g"
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3216
3217 int
3218 main ()
3219 {
3220
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 if ac_fn_c_try_compile "$LINENO"; then :
3226 ac_cv_prog_cc_g=yes
3227 else
3228 CFLAGS=""
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231
3232 int
3233 main ()
3234 {
3235
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 if ac_fn_c_try_compile "$LINENO"; then :
3241
3242 else
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3244 CFLAGS="-g"
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3247
3248 int
3249 main ()
3250 {
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 if ac_fn_c_try_compile "$LINENO"; then :
3257 ac_cv_prog_cc_g=yes
3258 fi
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_c_werror_flag=$ac_save_c_werror_flag
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3267 $as_echo "$ac_cv_prog_cc_g" >&6; }
3268 if test "$ac_test_CFLAGS" = set; then
3269 CFLAGS=$ac_save_CFLAGS
3270 elif test $ac_cv_prog_cc_g = yes; then
3271 if test "$GCC" = yes; then
3272 CFLAGS="-g -O2"
3273 else
3274 CFLAGS="-g"
3275 fi
3276 else
3277 if test "$GCC" = yes; then
3278 CFLAGS="-O2"
3279 else
3280 CFLAGS=
3281 fi
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3284 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3285 if ${ac_cv_prog_cc_c89+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 ac_cv_prog_cc_c89=no
3289 ac_save_CC=$CC
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3292 #include <stdarg.h>
3293 #include <stdio.h>
3294 struct stat;
3295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296 struct buf { int x; };
3297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298 static char *e (p, i)
3299 char **p;
3300 int i;
3301 {
3302 return p[i];
3303 }
3304 static char *f (char * (*g) (char **, int), char **p, ...)
3305 {
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312 }
3313
3314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
3317 as 'x'. The following induces an error, until -std is added to get
3318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
3320 that's true only with -std. */
3321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
3323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3325 #define FOO(x) 'x'
3326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
3328 int test (int i, double x);
3329 struct s1 {int (*f) (int a);};
3330 struct s2 {int (*f) (double a);};
3331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332 int argc;
3333 char **argv;
3334 int
3335 main ()
3336 {
3337 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344 do
3345 CC="$ac_save_CC $ac_arg"
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_c89=$ac_arg
3348 fi
3349 rm -f core conftest.err conftest.$ac_objext
3350 test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 done
3352 rm -f conftest.$ac_ext
3353 CC=$ac_save_CC
3354
3355 fi
3356 # AC_CACHE_VAL
3357 case "x$ac_cv_prog_cc_c89" in
3358 x)
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3360 $as_echo "none needed" >&6; } ;;
3361 xno)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3363 $as_echo "unsupported" >&6; } ;;
3364 *)
3365 CC="$CC $ac_cv_prog_cc_c89"
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3367 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3368 esac
3369 if test "x$ac_cv_prog_cc_c89" != xno; then :
3370
3371 fi
3372
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379 ac_ext=cpp
3380 ac_cpp='$CXXCPP $CPPFLAGS'
3381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3384 if test -z "$CXX"; then
3385 if test -n "$CCC"; then
3386 CXX=$CCC
3387 else
3388 if test -n "$ac_tool_prefix"; then
3389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3390 do
3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CXX+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$CXX"; then
3399 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 CXX=$ac_cv_prog_CXX
3419 if test -n "$CXX"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3421 $as_echo "$CXX" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 test -n "$CXX" && break
3429 done
3430 fi
3431 if test -z "$CXX"; then
3432 ac_ct_CXX=$CXX
3433 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3434 do
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436 set dummy $ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$ac_ct_CXX"; then
3443 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_ac_ct_CXX="$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3463 if test -n "$ac_ct_CXX"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3465 $as_echo "$ac_ct_CXX" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 fi
3470
3471
3472 test -n "$ac_ct_CXX" && break
3473 done
3474
3475 if test "x$ac_ct_CXX" = x; then
3476 CXX="g++"
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3483 esac
3484 CXX=$ac_ct_CXX
3485 fi
3486 fi
3487
3488 fi
3489 fi
3490 # Provide some information about the compiler.
3491 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3492 set X $ac_compile
3493 ac_compiler=$2
3494 for ac_option in --version -v -V -qversion; do
3495 { { ac_try="$ac_compiler $ac_option >&5"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3503 ac_status=$?
3504 if test -s conftest.err; then
3505 sed '10a\
3506 ... rest of stderr output deleted ...
3507 10q' conftest.err >conftest.er1
3508 cat conftest.er1 >&5
3509 fi
3510 rm -f conftest.er1 conftest.err
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 done
3514
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3516 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3517 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526 #ifndef __GNUC__
3527 choke me
3528 #endif
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 if ac_fn_cxx_try_compile "$LINENO"; then :
3535 ac_compiler_gnu=yes
3536 else
3537 ac_compiler_gnu=no
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3541
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3544 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3545 if test $ac_compiler_gnu = yes; then
3546 GXX=yes
3547 else
3548 GXX=
3549 fi
3550 ac_test_CXXFLAGS=${CXXFLAGS+set}
3551 ac_save_CXXFLAGS=$CXXFLAGS
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3553 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3554 if ${ac_cv_prog_cxx_g+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3558 ac_cxx_werror_flag=yes
3559 ac_cv_prog_cxx_g=no
3560 CXXFLAGS="-g"
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_cxx_try_compile "$LINENO"; then :
3573 ac_cv_prog_cxx_g=yes
3574 else
3575 CXXFLAGS=""
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578
3579 int
3580 main ()
3581 {
3582
3583 ;
3584 return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_cxx_try_compile "$LINENO"; then :
3588
3589 else
3590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591 CXXFLAGS="-g"
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_cxx_try_compile "$LINENO"; then :
3604 ac_cv_prog_cxx_g=yes
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3614 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616 CXXFLAGS=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618 if test "$GXX" = yes; then
3619 CXXFLAGS="-g -O2"
3620 else
3621 CXXFLAGS="-g"
3622 fi
3623 else
3624 if test "$GXX" = yes; then
3625 CXXFLAGS="-O2"
3626 else
3627 CXXFLAGS=
3628 fi
3629 fi
3630 ac_ext=c
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635
3636
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3643 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3644 # On Suns, sometimes $CPP names a directory.
3645 if test -n "$CPP" && test -d "$CPP"; then
3646 CPP=
3647 fi
3648 if test -z "$CPP"; then
3649 if ${ac_cv_prog_CPP+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 # Double quotes because CPP needs to be expanded
3653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3654 do
3655 ac_preproc_ok=false
3656 for ac_c_preproc_warn_flag in '' yes
3657 do
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666 #ifdef __STDC__
3667 # include <limits.h>
3668 #else
3669 # include <assert.h>
3670 #endif
3671 Syntax error
3672 _ACEOF
3673 if ac_fn_c_try_cpp "$LINENO"; then :
3674
3675 else
3676 # Broken: fails on valid input.
3677 continue
3678 fi
3679 rm -f conftest.err conftest.i conftest.$ac_ext
3680
3681 # OK, works on sane cases. Now check whether nonexistent headers
3682 # can be detected and how.
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <ac_nonexistent.h>
3686 _ACEOF
3687 if ac_fn_c_try_cpp "$LINENO"; then :
3688 # Broken: success on invalid input.
3689 continue
3690 else
3691 # Passes both tests.
3692 ac_preproc_ok=:
3693 break
3694 fi
3695 rm -f conftest.err conftest.i conftest.$ac_ext
3696
3697 done
3698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3699 rm -f conftest.i conftest.err conftest.$ac_ext
3700 if $ac_preproc_ok; then :
3701 break
3702 fi
3703
3704 done
3705 ac_cv_prog_CPP=$CPP
3706
3707 fi
3708 CPP=$ac_cv_prog_CPP
3709 else
3710 ac_cv_prog_CPP=$CPP
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3713 $as_echo "$CPP" >&6; }
3714 ac_preproc_ok=false
3715 for ac_c_preproc_warn_flag in '' yes
3716 do
3717 # Use a header file that comes with gcc, so configuring glibc
3718 # with a fresh cross-compiler works.
3719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3720 # <limits.h> exists even on freestanding compilers.
3721 # On the NeXT, cc -E runs the code through the compiler's parser,
3722 # not just through cpp. "Syntax error" is here to catch this case.
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 #ifdef __STDC__
3726 # include <limits.h>
3727 #else
3728 # include <assert.h>
3729 #endif
3730 Syntax error
3731 _ACEOF
3732 if ac_fn_c_try_cpp "$LINENO"; then :
3733
3734 else
3735 # Broken: fails on valid input.
3736 continue
3737 fi
3738 rm -f conftest.err conftest.i conftest.$ac_ext
3739
3740 # OK, works on sane cases. Now check whether nonexistent headers
3741 # can be detected and how.
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <ac_nonexistent.h>
3745 _ACEOF
3746 if ac_fn_c_try_cpp "$LINENO"; then :
3747 # Broken: success on invalid input.
3748 continue
3749 else
3750 # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3753 fi
3754 rm -f conftest.err conftest.i conftest.$ac_ext
3755
3756 done
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.i conftest.err conftest.$ac_ext
3759 if $ac_preproc_ok; then :
3760
3761 else
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details" "$LINENO" 5; }
3766 fi
3767
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773
3774
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3776 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3777 if ${ac_cv_path_GREP+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 if test -z "$GREP"; then
3781 ac_path_GREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785 do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in grep ggrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3791 as_fn_executable_p "$ac_path_GREP" || continue
3792 # Check for GNU ac_path_GREP and select it if it is found.
3793 # Check for GNU $ac_path_GREP
3794 case `"$ac_path_GREP" --version 2>&1` in
3795 *GNU*)
3796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3797 *)
3798 ac_count=0
3799 $as_echo_n 0123456789 >"conftest.in"
3800 while :
3801 do
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'GREP' >> "conftest.nl"
3806 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3809 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_GREP="$ac_path_GREP"
3812 ac_path_GREP_max=$ac_count
3813 fi
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3816 done
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818 esac
3819
3820 $ac_path_GREP_found && break 3
3821 done
3822 done
3823 done
3824 IFS=$as_save_IFS
3825 if test -z "$ac_cv_path_GREP"; then
3826 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3827 fi
3828 else
3829 ac_cv_path_GREP=$GREP
3830 fi
3831
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3834 $as_echo "$ac_cv_path_GREP" >&6; }
3835 GREP="$ac_cv_path_GREP"
3836
3837
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3839 $as_echo_n "checking for egrep... " >&6; }
3840 if ${ac_cv_path_EGREP+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3844 then ac_cv_path_EGREP="$GREP -E"
3845 else
3846 if test -z "$EGREP"; then
3847 ac_path_EGREP_found=false
3848 # Loop through the user's path and test for each of PROGNAME-LIST
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3851 do
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in egrep; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3857 as_fn_executable_p "$ac_path_EGREP" || continue
3858 # Check for GNU ac_path_EGREP and select it if it is found.
3859 # Check for GNU $ac_path_EGREP
3860 case `"$ac_path_EGREP" --version 2>&1` in
3861 *GNU*)
3862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3863 *)
3864 ac_count=0
3865 $as_echo_n 0123456789 >"conftest.in"
3866 while :
3867 do
3868 cat "conftest.in" "conftest.in" >"conftest.tmp"
3869 mv "conftest.tmp" "conftest.in"
3870 cp "conftest.in" "conftest.nl"
3871 $as_echo 'EGREP' >> "conftest.nl"
3872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3874 as_fn_arith $ac_count + 1 && ac_count=$as_val
3875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3876 # Best one so far, save it but keep looking for a better one
3877 ac_cv_path_EGREP="$ac_path_EGREP"
3878 ac_path_EGREP_max=$ac_count
3879 fi
3880 # 10*(2^10) chars as input seems more than enough
3881 test $ac_count -gt 10 && break
3882 done
3883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3884 esac
3885
3886 $ac_path_EGREP_found && break 3
3887 done
3888 done
3889 done
3890 IFS=$as_save_IFS
3891 if test -z "$ac_cv_path_EGREP"; then
3892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3893 fi
3894 else
3895 ac_cv_path_EGREP=$EGREP
3896 fi
3897
3898 fi
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3901 $as_echo "$ac_cv_path_EGREP" >&6; }
3902 EGREP="$ac_cv_path_EGREP"
3903
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3906 $as_echo_n "checking for ANSI C header files... " >&6; }
3907 if ${ac_cv_header_stdc+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 #include <stdlib.h>
3913 #include <stdarg.h>
3914 #include <string.h>
3915 #include <float.h>
3916
3917 int
3918 main ()
3919 {
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_header_stdc=yes
3927 else
3928 ac_cv_header_stdc=no
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931
3932 if test $ac_cv_header_stdc = yes; then
3933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <string.h>
3937
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "memchr" >/dev/null 2>&1; then :
3941
3942 else
3943 ac_cv_header_stdc=no
3944 fi
3945 rm -f conftest*
3946
3947 fi
3948
3949 if test $ac_cv_header_stdc = yes; then
3950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <stdlib.h>
3954
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then :
3958
3959 else
3960 ac_cv_header_stdc=no
3961 fi
3962 rm -f conftest*
3963
3964 fi
3965
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then :
3969 :
3970 else
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3985
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3987 int
3988 main ()
3989 {
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3994 return 2;
3995 return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_run "$LINENO"; then :
3999
4000 else
4001 ac_cv_header_stdc=no
4002 fi
4003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4004 conftest.$ac_objext conftest.beam conftest.$ac_ext
4005 fi
4006
4007 fi
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4010 $as_echo "$ac_cv_header_stdc" >&6; }
4011 if test $ac_cv_header_stdc = yes; then
4012
4013 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4014
4015 fi
4016
4017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4019 inttypes.h stdint.h unistd.h
4020 do :
4021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4023 "
4024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4025 cat >>confdefs.h <<_ACEOF
4026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4027 _ACEOF
4028
4029 fi
4030
4031 done
4032
4033
4034
4035 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4036 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4037 MINIX=yes
4038 else
4039 MINIX=
4040 fi
4041
4042
4043 if test "$MINIX" = yes; then
4044
4045 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4046
4047
4048 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4049
4050
4051 $as_echo "#define _MINIX 1" >>confdefs.h
4052
4053 fi
4054
4055
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4057 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4058 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063
4064 # define __EXTENSIONS__ 1
4065 $ac_includes_default
4066 int
4067 main ()
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 ac_cv_safe_to_define___extensions__=yes
4076 else
4077 ac_cv_safe_to_define___extensions__=no
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4082 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4083 test $ac_cv_safe_to_define___extensions__ = yes &&
4084 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4085
4086 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4087
4088 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4089
4090 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4091
4092 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4093
4094
4095
4096 # Check whether --enable-largefile was given.
4097 if test "${enable_largefile+set}" = set; then :
4098 enableval=$enable_largefile;
4099 fi
4100
4101 if test "$enable_largefile" != no; then
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4104 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4105 if ${ac_cv_sys_largefile_CC+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 ac_cv_sys_largefile_CC=no
4109 if test "$GCC" != yes; then
4110 ac_save_CC=$CC
4111 while :; do
4112 # IRIX 6.2 and later do not support large files by default,
4113 # so use the C compiler's -n32 option if that helps.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4124 ? 1 : -1];
4125 int
4126 main ()
4127 {
4128
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 break
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext
4137 CC="$CC -n32"
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_sys_largefile_CC=' -n32'; break
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext
4142 break
4143 done
4144 CC=$ac_save_CC
4145 rm -f conftest.$ac_ext
4146 fi
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4149 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4150 if test "$ac_cv_sys_largefile_CC" != no; then
4151 CC=$CC$ac_cv_sys_largefile_CC
4152 fi
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4155 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4156 if ${ac_cv_sys_file_offset_bits+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 while :; do
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <sys/types.h>
4163 /* Check that off_t can represent 2**63 - 1 correctly.
4164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4165 since some C++ compilers masquerading as C compilers
4166 incorrectly reject 9223372036854775807. */
4167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4169 && LARGE_OFF_T % 2147483647 == 1)
4170 ? 1 : -1];
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_sys_file_offset_bits=no; break
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #define _FILE_OFFSET_BITS 64
4186 #include <sys/types.h>
4187 /* Check that off_t can represent 2**63 - 1 correctly.
4188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189 since some C++ compilers masquerading as C compilers
4190 incorrectly reject 9223372036854775807. */
4191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193 && LARGE_OFF_T % 2147483647 == 1)
4194 ? 1 : -1];
4195 int
4196 main ()
4197 {
4198
4199 ;
4200 return 0;
4201 }
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_sys_file_offset_bits=64; break
4205 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 ac_cv_sys_file_offset_bits=unknown
4208 break
4209 done
4210 fi
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4212 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4213 case $ac_cv_sys_file_offset_bits in #(
4214 no | unknown) ;;
4215 *)
4216 cat >>confdefs.h <<_ACEOF
4217 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4218 _ACEOF
4219 ;;
4220 esac
4221 rm -rf conftest*
4222 if test $ac_cv_sys_file_offset_bits = unknown; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4224 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4225 if ${ac_cv_sys_large_files+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 while :; do
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #include <sys/types.h>
4232 /* Check that off_t can represent 2**63 - 1 correctly.
4233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4234 since some C++ compilers masquerading as C compilers
4235 incorrectly reject 9223372036854775807. */
4236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4238 && LARGE_OFF_T % 2147483647 == 1)
4239 ? 1 : -1];
4240 int
4241 main ()
4242 {
4243
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_sys_large_files=no; break
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4254 #define _LARGE_FILES 1
4255 #include <sys/types.h>
4256 /* Check that off_t can represent 2**63 - 1 correctly.
4257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4258 since some C++ compilers masquerading as C compilers
4259 incorrectly reject 9223372036854775807. */
4260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4262 && LARGE_OFF_T % 2147483647 == 1)
4263 ? 1 : -1];
4264 int
4265 main ()
4266 {
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_sys_large_files=1; break
4274 fi
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4276 ac_cv_sys_large_files=unknown
4277 break
4278 done
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4281 $as_echo "$ac_cv_sys_large_files" >&6; }
4282 case $ac_cv_sys_large_files in #(
4283 no | unknown) ;;
4284 *)
4285 cat >>confdefs.h <<_ACEOF
4286 #define _LARGE_FILES $ac_cv_sys_large_files
4287 _ACEOF
4288 ;;
4289 esac
4290 rm -rf conftest*
4291 fi
4292
4293
4294 fi
4295
4296
4297 ac_aux_dir=
4298 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4299 if test -f "$ac_dir/install-sh"; then
4300 ac_aux_dir=$ac_dir
4301 ac_install_sh="$ac_aux_dir/install-sh -c"
4302 break
4303 elif test -f "$ac_dir/install.sh"; then
4304 ac_aux_dir=$ac_dir
4305 ac_install_sh="$ac_aux_dir/install.sh -c"
4306 break
4307 elif test -f "$ac_dir/shtool"; then
4308 ac_aux_dir=$ac_dir
4309 ac_install_sh="$ac_aux_dir/shtool install -c"
4310 break
4311 fi
4312 done
4313 if test -z "$ac_aux_dir"; then
4314 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4315 fi
4316
4317 # These three variables are undocumented and unsupported,
4318 # and are intended to be withdrawn in a future Autoconf release.
4319 # They can cause serious problems if a builder's source tree is in a directory
4320 # whose full name contains unusual characters.
4321 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4322 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4323 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4324
4325
4326 # Make sure we can run config.sub.
4327 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4328 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4329
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4331 $as_echo_n "checking build system type... " >&6; }
4332 if ${ac_cv_build+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 ac_build_alias=$build_alias
4336 test "x$ac_build_alias" = x &&
4337 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4338 test "x$ac_build_alias" = x &&
4339 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4340 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4341 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4342
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4345 $as_echo "$ac_cv_build" >&6; }
4346 case $ac_cv_build in
4347 *-*-*) ;;
4348 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4349 esac
4350 build=$ac_cv_build
4351 ac_save_IFS=$IFS; IFS='-'
4352 set x $ac_cv_build
4353 shift
4354 build_cpu=$1
4355 build_vendor=$2
4356 shift; shift
4357 # Remember, the first character of IFS is used to create $*,
4358 # except with old shells:
4359 build_os=$*
4360 IFS=$ac_save_IFS
4361 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4362
4363
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4365 $as_echo_n "checking host system type... " >&6; }
4366 if ${ac_cv_host+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test "x$host_alias" = x; then
4370 ac_cv_host=$ac_cv_build
4371 else
4372 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4373 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4374 fi
4375
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4378 $as_echo "$ac_cv_host" >&6; }
4379 case $ac_cv_host in
4380 *-*-*) ;;
4381 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4382 esac
4383 host=$ac_cv_host
4384 ac_save_IFS=$IFS; IFS='-'
4385 set x $ac_cv_host
4386 shift
4387 host_cpu=$1
4388 host_vendor=$2
4389 shift; shift
4390 # Remember, the first character of IFS is used to create $*,
4391 # except with old shells:
4392 host_os=$*
4393 IFS=$ac_save_IFS
4394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4395
4396
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4398 $as_echo_n "checking target system type... " >&6; }
4399 if ${ac_cv_target+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test "x$target_alias" = x; then
4403 ac_cv_target=$ac_cv_host
4404 else
4405 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4406 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4407 fi
4408
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4411 $as_echo "$ac_cv_target" >&6; }
4412 case $ac_cv_target in
4413 *-*-*) ;;
4414 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4415 esac
4416 target=$ac_cv_target
4417 ac_save_IFS=$IFS; IFS='-'
4418 set x $ac_cv_target
4419 shift
4420 target_cpu=$1
4421 target_vendor=$2
4422 shift; shift
4423 # Remember, the first character of IFS is used to create $*,
4424 # except with old shells:
4425 target_os=$*
4426 IFS=$ac_save_IFS
4427 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4428
4429
4430 # The aliases save the names the user supplied, while $host etc.
4431 # will get canonicalized.
4432 test -n "$target_alias" &&
4433 test "$program_prefix$program_suffix$program_transform_name" = \
4434 NONENONEs,x,x, &&
4435 program_prefix=${target_alias}-
4436
4437
4438 # Find a good install program. We prefer a C program (faster),
4439 # so one script is as good as another. But avoid the broken or
4440 # incompatible versions:
4441 # SysV /etc/install, /usr/sbin/install
4442 # SunOS /usr/etc/install
4443 # IRIX /sbin/install
4444 # AIX /bin/install
4445 # AmigaOS /C/install, which installs bootblocks on floppy discs
4446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4449 # OS/2's system install, which has a completely different semantic
4450 # ./install, which can be erroneously created by make from ./install.sh.
4451 # Reject install programs that cannot install multiple files.
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4454 if test -z "$INSTALL"; then
4455 if ${ac_cv_path_install+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 # Account for people who put trailing slashes in PATH elements.
4464 case $as_dir/ in #((
4465 ./ | .// | /[cC]/* | \
4466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4467 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4468 /usr/ucb/* ) ;;
4469 *)
4470 # OSF1 and SCO ODT 3.0 have their own names for install.
4471 # Don't use installbsd from OSF since it installs stuff as root
4472 # by default.
4473 for ac_prog in ginstall scoinst install; do
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4476 if test $ac_prog = install &&
4477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4478 # AIX install. It has an incompatible calling convention.
4479 :
4480 elif test $ac_prog = install &&
4481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4482 # program-specific install script used by HP pwplus--don't use.
4483 :
4484 else
4485 rm -rf conftest.one conftest.two conftest.dir
4486 echo one > conftest.one
4487 echo two > conftest.two
4488 mkdir conftest.dir
4489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4490 test -s conftest.one && test -s conftest.two &&
4491 test -s conftest.dir/conftest.one &&
4492 test -s conftest.dir/conftest.two
4493 then
4494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4495 break 3
4496 fi
4497 fi
4498 fi
4499 done
4500 done
4501 ;;
4502 esac
4503
4504 done
4505 IFS=$as_save_IFS
4506
4507 rm -rf conftest.one conftest.two conftest.dir
4508
4509 fi
4510 if test "${ac_cv_path_install+set}" = set; then
4511 INSTALL=$ac_cv_path_install
4512 else
4513 # As a last resort, use the slow shell script. Don't cache a
4514 # value for INSTALL within a source directory, because that will
4515 # break other packages using the cache if that directory is
4516 # removed, or if the value is a relative name.
4517 INSTALL=$ac_install_sh
4518 fi
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4521 $as_echo "$INSTALL" >&6; }
4522
4523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4524 # It thinks the first close brace ends the variable substitution.
4525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4526
4527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4528
4529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4530
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}ar; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_AR+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$AR"; then
4540 ac_cv_prog_AR="$AR" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4544 do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_AR="${ac_tool_prefix}ar"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553 done
4554 done
4555 IFS=$as_save_IFS
4556
4557 fi
4558 fi
4559 AR=$ac_cv_prog_AR
4560 if test -n "$AR"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4562 $as_echo "$AR" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4566 fi
4567
4568
4569 fi
4570 if test -z "$ac_cv_prog_AR"; then
4571 ac_ct_AR=$AR
4572 # Extract the first word of "ar", so it can be a program name with args.
4573 set dummy ar; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$ac_ct_AR"; then
4580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_ac_ct_AR="ar"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593 done
4594 done
4595 IFS=$as_save_IFS
4596
4597 fi
4598 fi
4599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4600 if test -n "$ac_ct_AR"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4602 $as_echo "$ac_ct_AR" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 fi
4607
4608 if test "x$ac_ct_AR" = x; then
4609 AR=""
4610 else
4611 case $cross_compiling:$ac_tool_warned in
4612 yes:)
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615 ac_tool_warned=yes ;;
4616 esac
4617 AR=$ac_ct_AR
4618 fi
4619 else
4620 AR="$ac_cv_prog_AR"
4621 fi
4622
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_RANLIB+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$RANLIB"; then
4632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 RANLIB=$ac_cv_prog_RANLIB
4652 if test -n "$RANLIB"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4654 $as_echo "$RANLIB" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 fi
4662 if test -z "$ac_cv_prog_RANLIB"; then
4663 ac_ct_RANLIB=$RANLIB
4664 # Extract the first word of "ranlib", so it can be a program name with args.
4665 set dummy ranlib; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$ac_ct_RANLIB"; then
4672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_RANLIB="ranlib"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4692 if test -n "$ac_ct_RANLIB"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4694 $as_echo "$ac_ct_RANLIB" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700 if test "x$ac_ct_RANLIB" = x; then
4701 RANLIB=":"
4702 else
4703 case $cross_compiling:$ac_tool_warned in
4704 yes:)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4708 esac
4709 RANLIB=$ac_ct_RANLIB
4710 fi
4711 else
4712 RANLIB="$ac_cv_prog_RANLIB"
4713 fi
4714
4715
4716 test "$program_prefix" != NONE &&
4717 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4718 # Use a double $ so make ignores it.
4719 test "$program_suffix" != NONE &&
4720 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4721 # Double any \ or $.
4722 # By default was `s,x,x', remove it if useless.
4723 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4724 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4725
4726
4727 # We require a C++11 compiler. Check if one is available, and if
4728 # necessary, set CXX_DIALECT to some -std=xxx switch.
4729
4730 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
4731 ac_ext=cpp
4732 ac_cpp='$CXXCPP $CPPFLAGS'
4733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4736 CXX_DIALECT=""
4737 ac_success=no
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4739 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4740 if ${ax_cv_cxx_compile_cxx11+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745
4746
4747 // If the compiler admits that it is not ready for C++11, why torture it?
4748 // Hopefully, this will speed up the test.
4749
4750 #ifndef __cplusplus
4751
4752 #error "This is not a C++ compiler"
4753
4754 #elif __cplusplus < 201103L
4755
4756 #error "This is not a C++11 compiler"
4757
4758 #else
4759
4760 namespace cxx11
4761 {
4762
4763 namespace test_static_assert
4764 {
4765
4766 template <typename T>
4767 struct check
4768 {
4769 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4770 };
4771
4772 }
4773
4774 namespace test_final_override
4775 {
4776
4777 struct Base
4778 {
4779 virtual void f() {}
4780 };
4781
4782 struct Derived : public Base
4783 {
4784 virtual void f() override {}
4785 };
4786
4787 }
4788
4789 namespace test_double_right_angle_brackets
4790 {
4791
4792 template < typename T >
4793 struct check {};
4794
4795 typedef check<void> single_type;
4796 typedef check<check<void>> double_type;
4797 typedef check<check<check<void>>> triple_type;
4798 typedef check<check<check<check<void>>>> quadruple_type;
4799
4800 }
4801
4802 namespace test_decltype
4803 {
4804
4805 int
4806 f()
4807 {
4808 int a = 1;
4809 decltype(a) b = 2;
4810 return a + b;
4811 }
4812
4813 }
4814
4815 namespace test_type_deduction
4816 {
4817
4818 template < typename T1, typename T2 >
4819 struct is_same
4820 {
4821 static const bool value = false;
4822 };
4823
4824 template < typename T >
4825 struct is_same<T, T>
4826 {
4827 static const bool value = true;
4828 };
4829
4830 template < typename T1, typename T2 >
4831 auto
4832 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4833 {
4834 return a1 + a2;
4835 }
4836
4837 int
4838 test(const int c, volatile int v)
4839 {
4840 static_assert(is_same<int, decltype(0)>::value == true, "");
4841 static_assert(is_same<int, decltype(c)>::value == false, "");
4842 static_assert(is_same<int, decltype(v)>::value == false, "");
4843 auto ac = c;
4844 auto av = v;
4845 auto sumi = ac + av + 'x';
4846 auto sumf = ac + av + 1.0;
4847 static_assert(is_same<int, decltype(ac)>::value == true, "");
4848 static_assert(is_same<int, decltype(av)>::value == true, "");
4849 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4850 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4851 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4852 return (sumf > 0.0) ? sumi : add(c, v);
4853 }
4854
4855 }
4856
4857 namespace test_noexcept
4858 {
4859
4860 int f() { return 0; }
4861 int g() noexcept { return 0; }
4862
4863 static_assert(noexcept(f()) == false, "");
4864 static_assert(noexcept(g()) == true, "");
4865
4866 }
4867
4868 namespace test_constexpr
4869 {
4870
4871 template < typename CharT >
4872 unsigned long constexpr
4873 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4874 {
4875 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4876 }
4877
4878 template < typename CharT >
4879 unsigned long constexpr
4880 strlen_c(const CharT *const s) noexcept
4881 {
4882 return strlen_c_r(s, 0UL);
4883 }
4884
4885 static_assert(strlen_c("") == 0UL, "");
4886 static_assert(strlen_c("1") == 1UL, "");
4887 static_assert(strlen_c("example") == 7UL, "");
4888 static_assert(strlen_c("another\0example") == 7UL, "");
4889
4890 }
4891
4892 namespace test_rvalue_references
4893 {
4894
4895 template < int N >
4896 struct answer
4897 {
4898 static constexpr int value = N;
4899 };
4900
4901 answer<1> f(int&) { return answer<1>(); }
4902 answer<2> f(const int&) { return answer<2>(); }
4903 answer<3> f(int&&) { return answer<3>(); }
4904
4905 void
4906 test()
4907 {
4908 int i = 0;
4909 const int c = 0;
4910 static_assert(decltype(f(i))::value == 1, "");
4911 static_assert(decltype(f(c))::value == 2, "");
4912 static_assert(decltype(f(0))::value == 3, "");
4913 }
4914
4915 }
4916
4917 namespace test_uniform_initialization
4918 {
4919
4920 struct test
4921 {
4922 static const int zero {};
4923 static const int one {1};
4924 };
4925
4926 static_assert(test::zero == 0, "");
4927 static_assert(test::one == 1, "");
4928
4929 }
4930
4931 namespace test_lambdas
4932 {
4933
4934 void
4935 test1()
4936 {
4937 auto lambda1 = [](){};
4938 auto lambda2 = lambda1;
4939 lambda1();
4940 lambda2();
4941 }
4942
4943 int
4944 test2()
4945 {
4946 auto a = [](int i, int j){ return i + j; }(1, 2);
4947 auto b = []() -> int { return '0'; }();
4948 auto c = [=](){ return a + b; }();
4949 auto d = [&](){ return c; }();
4950 auto e = [a, &b](int x) mutable {
4951 const auto identity = [](int y){ return y; };
4952 for (auto i = 0; i < a; ++i)
4953 a += b--;
4954 return x + identity(a + b);
4955 }(0);
4956 return a + b + c + d + e;
4957 }
4958
4959 int
4960 test3()
4961 {
4962 const auto nullary = [](){ return 0; };
4963 const auto unary = [](int x){ return x; };
4964 using nullary_t = decltype(nullary);
4965 using unary_t = decltype(unary);
4966 const auto higher1st = [](nullary_t f){ return f(); };
4967 const auto higher2nd = [unary](nullary_t f1){
4968 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4969 };
4970 return higher1st(nullary) + higher2nd(nullary)(unary);
4971 }
4972
4973 }
4974
4975 namespace test_variadic_templates
4976 {
4977
4978 template <int...>
4979 struct sum;
4980
4981 template <int N0, int... N1toN>
4982 struct sum<N0, N1toN...>
4983 {
4984 static constexpr auto value = N0 + sum<N1toN...>::value;
4985 };
4986
4987 template <>
4988 struct sum<>
4989 {
4990 static constexpr auto value = 0;
4991 };
4992
4993 static_assert(sum<>::value == 0, "");
4994 static_assert(sum<1>::value == 1, "");
4995 static_assert(sum<23>::value == 23, "");
4996 static_assert(sum<1, 2>::value == 3, "");
4997 static_assert(sum<5, 5, 11>::value == 21, "");
4998 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
4999
5000 }
5001
5002 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5003 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5004 // because of this.
5005 namespace test_template_alias_sfinae
5006 {
5007
5008 struct foo {};
5009
5010 template<typename T>
5011 using member = typename T::member_type;
5012
5013 template<typename T>
5014 void func(...) {}
5015
5016 template<typename T>
5017 void func(member<T>*) {}
5018
5019 void test();
5020
5021 void test() { func<foo>(0); }
5022
5023 }
5024
5025 } // namespace cxx11
5026
5027 #endif // __cplusplus >= 201103L
5028
5029
5030
5031 _ACEOF
5032 if ac_fn_cxx_try_compile "$LINENO"; then :
5033 ax_cv_cxx_compile_cxx11=yes
5034 else
5035 ax_cv_cxx_compile_cxx11=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5040 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5041 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5042 ac_success=yes
5043 fi
5044
5045 if test x$ac_success = xno; then
5046 for alternative in ${ax_cxx_compile_alternatives}; do
5047 switch="-std=gnu++${alternative}"
5048 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5050 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5051 if eval \${$cachevar+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 ac_save_CXX="$CXX"
5055 CXX="$CXX $switch"
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058
5059
5060 // If the compiler admits that it is not ready for C++11, why torture it?
5061 // Hopefully, this will speed up the test.
5062
5063 #ifndef __cplusplus
5064
5065 #error "This is not a C++ compiler"
5066
5067 #elif __cplusplus < 201103L
5068
5069 #error "This is not a C++11 compiler"
5070
5071 #else
5072
5073 namespace cxx11
5074 {
5075
5076 namespace test_static_assert
5077 {
5078
5079 template <typename T>
5080 struct check
5081 {
5082 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5083 };
5084
5085 }
5086
5087 namespace test_final_override
5088 {
5089
5090 struct Base
5091 {
5092 virtual void f() {}
5093 };
5094
5095 struct Derived : public Base
5096 {
5097 virtual void f() override {}
5098 };
5099
5100 }
5101
5102 namespace test_double_right_angle_brackets
5103 {
5104
5105 template < typename T >
5106 struct check {};
5107
5108 typedef check<void> single_type;
5109 typedef check<check<void>> double_type;
5110 typedef check<check<check<void>>> triple_type;
5111 typedef check<check<check<check<void>>>> quadruple_type;
5112
5113 }
5114
5115 namespace test_decltype
5116 {
5117
5118 int
5119 f()
5120 {
5121 int a = 1;
5122 decltype(a) b = 2;
5123 return a + b;
5124 }
5125
5126 }
5127
5128 namespace test_type_deduction
5129 {
5130
5131 template < typename T1, typename T2 >
5132 struct is_same
5133 {
5134 static const bool value = false;
5135 };
5136
5137 template < typename T >
5138 struct is_same<T, T>
5139 {
5140 static const bool value = true;
5141 };
5142
5143 template < typename T1, typename T2 >
5144 auto
5145 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5146 {
5147 return a1 + a2;
5148 }
5149
5150 int
5151 test(const int c, volatile int v)
5152 {
5153 static_assert(is_same<int, decltype(0)>::value == true, "");
5154 static_assert(is_same<int, decltype(c)>::value == false, "");
5155 static_assert(is_same<int, decltype(v)>::value == false, "");
5156 auto ac = c;
5157 auto av = v;
5158 auto sumi = ac + av + 'x';
5159 auto sumf = ac + av + 1.0;
5160 static_assert(is_same<int, decltype(ac)>::value == true, "");
5161 static_assert(is_same<int, decltype(av)>::value == true, "");
5162 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5163 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5164 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5165 return (sumf > 0.0) ? sumi : add(c, v);
5166 }
5167
5168 }
5169
5170 namespace test_noexcept
5171 {
5172
5173 int f() { return 0; }
5174 int g() noexcept { return 0; }
5175
5176 static_assert(noexcept(f()) == false, "");
5177 static_assert(noexcept(g()) == true, "");
5178
5179 }
5180
5181 namespace test_constexpr
5182 {
5183
5184 template < typename CharT >
5185 unsigned long constexpr
5186 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5187 {
5188 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5189 }
5190
5191 template < typename CharT >
5192 unsigned long constexpr
5193 strlen_c(const CharT *const s) noexcept
5194 {
5195 return strlen_c_r(s, 0UL);
5196 }
5197
5198 static_assert(strlen_c("") == 0UL, "");
5199 static_assert(strlen_c("1") == 1UL, "");
5200 static_assert(strlen_c("example") == 7UL, "");
5201 static_assert(strlen_c("another\0example") == 7UL, "");
5202
5203 }
5204
5205 namespace test_rvalue_references
5206 {
5207
5208 template < int N >
5209 struct answer
5210 {
5211 static constexpr int value = N;
5212 };
5213
5214 answer<1> f(int&) { return answer<1>(); }
5215 answer<2> f(const int&) { return answer<2>(); }
5216 answer<3> f(int&&) { return answer<3>(); }
5217
5218 void
5219 test()
5220 {
5221 int i = 0;
5222 const int c = 0;
5223 static_assert(decltype(f(i))::value == 1, "");
5224 static_assert(decltype(f(c))::value == 2, "");
5225 static_assert(decltype(f(0))::value == 3, "");
5226 }
5227
5228 }
5229
5230 namespace test_uniform_initialization
5231 {
5232
5233 struct test
5234 {
5235 static const int zero {};
5236 static const int one {1};
5237 };
5238
5239 static_assert(test::zero == 0, "");
5240 static_assert(test::one == 1, "");
5241
5242 }
5243
5244 namespace test_lambdas
5245 {
5246
5247 void
5248 test1()
5249 {
5250 auto lambda1 = [](){};
5251 auto lambda2 = lambda1;
5252 lambda1();
5253 lambda2();
5254 }
5255
5256 int
5257 test2()
5258 {
5259 auto a = [](int i, int j){ return i + j; }(1, 2);
5260 auto b = []() -> int { return '0'; }();
5261 auto c = [=](){ return a + b; }();
5262 auto d = [&](){ return c; }();
5263 auto e = [a, &b](int x) mutable {
5264 const auto identity = [](int y){ return y; };
5265 for (auto i = 0; i < a; ++i)
5266 a += b--;
5267 return x + identity(a + b);
5268 }(0);
5269 return a + b + c + d + e;
5270 }
5271
5272 int
5273 test3()
5274 {
5275 const auto nullary = [](){ return 0; };
5276 const auto unary = [](int x){ return x; };
5277 using nullary_t = decltype(nullary);
5278 using unary_t = decltype(unary);
5279 const auto higher1st = [](nullary_t f){ return f(); };
5280 const auto higher2nd = [unary](nullary_t f1){
5281 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5282 };
5283 return higher1st(nullary) + higher2nd(nullary)(unary);
5284 }
5285
5286 }
5287
5288 namespace test_variadic_templates
5289 {
5290
5291 template <int...>
5292 struct sum;
5293
5294 template <int N0, int... N1toN>
5295 struct sum<N0, N1toN...>
5296 {
5297 static constexpr auto value = N0 + sum<N1toN...>::value;
5298 };
5299
5300 template <>
5301 struct sum<>
5302 {
5303 static constexpr auto value = 0;
5304 };
5305
5306 static_assert(sum<>::value == 0, "");
5307 static_assert(sum<1>::value == 1, "");
5308 static_assert(sum<23>::value == 23, "");
5309 static_assert(sum<1, 2>::value == 3, "");
5310 static_assert(sum<5, 5, 11>::value == 21, "");
5311 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5312
5313 }
5314
5315 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5316 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5317 // because of this.
5318 namespace test_template_alias_sfinae
5319 {
5320
5321 struct foo {};
5322
5323 template<typename T>
5324 using member = typename T::member_type;
5325
5326 template<typename T>
5327 void func(...) {}
5328
5329 template<typename T>
5330 void func(member<T>*) {}
5331
5332 void test();
5333
5334 void test() { func<foo>(0); }
5335
5336 }
5337
5338 } // namespace cxx11
5339
5340 #endif // __cplusplus >= 201103L
5341
5342
5343
5344 _ACEOF
5345 if ac_fn_cxx_try_compile "$LINENO"; then :
5346 eval $cachevar=yes
5347 else
5348 eval $cachevar=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 CXX="$ac_save_CXX"
5352 fi
5353 eval ac_res=\$$cachevar
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5355 $as_echo "$ac_res" >&6; }
5356 if eval test x\$$cachevar = xyes; then
5357 CXX_DIALECT="$switch"
5358 ac_success=yes
5359 break
5360 fi
5361 done
5362 fi
5363
5364 if test x$ac_success = xno; then
5365 for alternative in ${ax_cxx_compile_alternatives}; do
5366 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5367 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5369 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5370 if eval \${$cachevar+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 ac_save_CXX="$CXX"
5374 CXX="$CXX $switch"
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377
5378
5379 // If the compiler admits that it is not ready for C++11, why torture it?
5380 // Hopefully, this will speed up the test.
5381
5382 #ifndef __cplusplus
5383
5384 #error "This is not a C++ compiler"
5385
5386 #elif __cplusplus < 201103L
5387
5388 #error "This is not a C++11 compiler"
5389
5390 #else
5391
5392 namespace cxx11
5393 {
5394
5395 namespace test_static_assert
5396 {
5397
5398 template <typename T>
5399 struct check
5400 {
5401 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5402 };
5403
5404 }
5405
5406 namespace test_final_override
5407 {
5408
5409 struct Base
5410 {
5411 virtual void f() {}
5412 };
5413
5414 struct Derived : public Base
5415 {
5416 virtual void f() override {}
5417 };
5418
5419 }
5420
5421 namespace test_double_right_angle_brackets
5422 {
5423
5424 template < typename T >
5425 struct check {};
5426
5427 typedef check<void> single_type;
5428 typedef check<check<void>> double_type;
5429 typedef check<check<check<void>>> triple_type;
5430 typedef check<check<check<check<void>>>> quadruple_type;
5431
5432 }
5433
5434 namespace test_decltype
5435 {
5436
5437 int
5438 f()
5439 {
5440 int a = 1;
5441 decltype(a) b = 2;
5442 return a + b;
5443 }
5444
5445 }
5446
5447 namespace test_type_deduction
5448 {
5449
5450 template < typename T1, typename T2 >
5451 struct is_same
5452 {
5453 static const bool value = false;
5454 };
5455
5456 template < typename T >
5457 struct is_same<T, T>
5458 {
5459 static const bool value = true;
5460 };
5461
5462 template < typename T1, typename T2 >
5463 auto
5464 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5465 {
5466 return a1 + a2;
5467 }
5468
5469 int
5470 test(const int c, volatile int v)
5471 {
5472 static_assert(is_same<int, decltype(0)>::value == true, "");
5473 static_assert(is_same<int, decltype(c)>::value == false, "");
5474 static_assert(is_same<int, decltype(v)>::value == false, "");
5475 auto ac = c;
5476 auto av = v;
5477 auto sumi = ac + av + 'x';
5478 auto sumf = ac + av + 1.0;
5479 static_assert(is_same<int, decltype(ac)>::value == true, "");
5480 static_assert(is_same<int, decltype(av)>::value == true, "");
5481 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5482 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5483 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5484 return (sumf > 0.0) ? sumi : add(c, v);
5485 }
5486
5487 }
5488
5489 namespace test_noexcept
5490 {
5491
5492 int f() { return 0; }
5493 int g() noexcept { return 0; }
5494
5495 static_assert(noexcept(f()) == false, "");
5496 static_assert(noexcept(g()) == true, "");
5497
5498 }
5499
5500 namespace test_constexpr
5501 {
5502
5503 template < typename CharT >
5504 unsigned long constexpr
5505 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5506 {
5507 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5508 }
5509
5510 template < typename CharT >
5511 unsigned long constexpr
5512 strlen_c(const CharT *const s) noexcept
5513 {
5514 return strlen_c_r(s, 0UL);
5515 }
5516
5517 static_assert(strlen_c("") == 0UL, "");
5518 static_assert(strlen_c("1") == 1UL, "");
5519 static_assert(strlen_c("example") == 7UL, "");
5520 static_assert(strlen_c("another\0example") == 7UL, "");
5521
5522 }
5523
5524 namespace test_rvalue_references
5525 {
5526
5527 template < int N >
5528 struct answer
5529 {
5530 static constexpr int value = N;
5531 };
5532
5533 answer<1> f(int&) { return answer<1>(); }
5534 answer<2> f(const int&) { return answer<2>(); }
5535 answer<3> f(int&&) { return answer<3>(); }
5536
5537 void
5538 test()
5539 {
5540 int i = 0;
5541 const int c = 0;
5542 static_assert(decltype(f(i))::value == 1, "");
5543 static_assert(decltype(f(c))::value == 2, "");
5544 static_assert(decltype(f(0))::value == 3, "");
5545 }
5546
5547 }
5548
5549 namespace test_uniform_initialization
5550 {
5551
5552 struct test
5553 {
5554 static const int zero {};
5555 static const int one {1};
5556 };
5557
5558 static_assert(test::zero == 0, "");
5559 static_assert(test::one == 1, "");
5560
5561 }
5562
5563 namespace test_lambdas
5564 {
5565
5566 void
5567 test1()
5568 {
5569 auto lambda1 = [](){};
5570 auto lambda2 = lambda1;
5571 lambda1();
5572 lambda2();
5573 }
5574
5575 int
5576 test2()
5577 {
5578 auto a = [](int i, int j){ return i + j; }(1, 2);
5579 auto b = []() -> int { return '0'; }();
5580 auto c = [=](){ return a + b; }();
5581 auto d = [&](){ return c; }();
5582 auto e = [a, &b](int x) mutable {
5583 const auto identity = [](int y){ return y; };
5584 for (auto i = 0; i < a; ++i)
5585 a += b--;
5586 return x + identity(a + b);
5587 }(0);
5588 return a + b + c + d + e;
5589 }
5590
5591 int
5592 test3()
5593 {
5594 const auto nullary = [](){ return 0; };
5595 const auto unary = [](int x){ return x; };
5596 using nullary_t = decltype(nullary);
5597 using unary_t = decltype(unary);
5598 const auto higher1st = [](nullary_t f){ return f(); };
5599 const auto higher2nd = [unary](nullary_t f1){
5600 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5601 };
5602 return higher1st(nullary) + higher2nd(nullary)(unary);
5603 }
5604
5605 }
5606
5607 namespace test_variadic_templates
5608 {
5609
5610 template <int...>
5611 struct sum;
5612
5613 template <int N0, int... N1toN>
5614 struct sum<N0, N1toN...>
5615 {
5616 static constexpr auto value = N0 + sum<N1toN...>::value;
5617 };
5618
5619 template <>
5620 struct sum<>
5621 {
5622 static constexpr auto value = 0;
5623 };
5624
5625 static_assert(sum<>::value == 0, "");
5626 static_assert(sum<1>::value == 1, "");
5627 static_assert(sum<23>::value == 23, "");
5628 static_assert(sum<1, 2>::value == 3, "");
5629 static_assert(sum<5, 5, 11>::value == 21, "");
5630 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5631
5632 }
5633
5634 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5635 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5636 // because of this.
5637 namespace test_template_alias_sfinae
5638 {
5639
5640 struct foo {};
5641
5642 template<typename T>
5643 using member = typename T::member_type;
5644
5645 template<typename T>
5646 void func(...) {}
5647
5648 template<typename T>
5649 void func(member<T>*) {}
5650
5651 void test();
5652
5653 void test() { func<foo>(0); }
5654
5655 }
5656
5657 } // namespace cxx11
5658
5659 #endif // __cplusplus >= 201103L
5660
5661
5662
5663 _ACEOF
5664 if ac_fn_cxx_try_compile "$LINENO"; then :
5665 eval $cachevar=yes
5666 else
5667 eval $cachevar=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 CXX="$ac_save_CXX"
5671 fi
5672 eval ac_res=\$$cachevar
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5674 $as_echo "$ac_res" >&6; }
5675 if eval test x\$$cachevar = xyes; then
5676 CXX_DIALECT="$switch"
5677 ac_success=yes
5678 break
5679 fi
5680 done
5681 if test x$ac_success = xyes; then
5682 break
5683 fi
5684 done
5685 fi
5686 ac_ext=c
5687 ac_cpp='$CPP $CPPFLAGS'
5688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691
5692 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5693 if test x$ac_success = xno; then
5694 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5695 fi
5696 fi
5697 if test x$ac_success = xno; then
5698 HAVE_CXX11=0
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5700 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5701 else
5702 HAVE_CXX11=1
5703
5704 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5705
5706 fi
5707
5708
5709
5710
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5712 $as_echo_n "checking for ANSI C header files... " >&6; }
5713 if ${ac_cv_header_stdc+:} false; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include <stdlib.h>
5719 #include <stdarg.h>
5720 #include <string.h>
5721 #include <float.h>
5722
5723 int
5724 main ()
5725 {
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 ac_cv_header_stdc=yes
5733 else
5734 ac_cv_header_stdc=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737
5738 if test $ac_cv_header_stdc = yes; then
5739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <string.h>
5743
5744 _ACEOF
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 $EGREP "memchr" >/dev/null 2>&1; then :
5747
5748 else
5749 ac_cv_header_stdc=no
5750 fi
5751 rm -f conftest*
5752
5753 fi
5754
5755 if test $ac_cv_header_stdc = yes; then
5756 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <stdlib.h>
5760
5761 _ACEOF
5762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5763 $EGREP "free" >/dev/null 2>&1; then :
5764
5765 else
5766 ac_cv_header_stdc=no
5767 fi
5768 rm -f conftest*
5769
5770 fi
5771
5772 if test $ac_cv_header_stdc = yes; then
5773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5774 if test "$cross_compiling" = yes; then :
5775 :
5776 else
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <ctype.h>
5780 #include <stdlib.h>
5781 #if ((' ' & 0x0FF) == 0x020)
5782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5784 #else
5785 # define ISLOWER(c) \
5786 (('a' <= (c) && (c) <= 'i') \
5787 || ('j' <= (c) && (c) <= 'r') \
5788 || ('s' <= (c) && (c) <= 'z'))
5789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5790 #endif
5791
5792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5793 int
5794 main ()
5795 {
5796 int i;
5797 for (i = 0; i < 256; i++)
5798 if (XOR (islower (i), ISLOWER (i))
5799 || toupper (i) != TOUPPER (i))
5800 return 2;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_run "$LINENO"; then :
5805
5806 else
5807 ac_cv_header_stdc=no
5808 fi
5809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5810 conftest.$ac_objext conftest.beam conftest.$ac_ext
5811 fi
5812
5813 fi
5814 fi
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5816 $as_echo "$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5818
5819 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5820
5821 fi
5822
5823
5824 # Set the 'development' global.
5825 . $srcdir/../../bfd/development.sh
5826
5827 # Enable -lmcheck by default (it provides cheap-enough memory
5828 # mangling), but turn it off for releases.
5829 if $development; then
5830 libmcheck_default=yes
5831 else
5832 libmcheck_default=no
5833 fi
5834
5835 # Check whether --enable-libmcheck was given.
5836 if test "${enable_libmcheck+set}" = set; then :
5837 enableval=$enable_libmcheck; case "${enableval}" in
5838 yes | y) ENABLE_LIBMCHECK="yes" ;;
5839 no | n) ENABLE_LIBMCHECK="no" ;;
5840 *) as_fn_error $? "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
5841 esac
5842 fi
5843
5844
5845 if test -z "${ENABLE_LIBMCHECK}"; then
5846 ENABLE_LIBMCHECK=${libmcheck_default}
5847 fi
5848
5849 if test "$ENABLE_LIBMCHECK" = "yes" ; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
5851 $as_echo_n "checking for main in -lmcheck... " >&6; }
5852 if ${ac_cv_lib_mcheck_main+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-lmcheck $LIBS"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859
5860
5861 int
5862 main ()
5863 {
5864 return main ();
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_link "$LINENO"; then :
5870 ac_cv_lib_mcheck_main=yes
5871 else
5872 ac_cv_lib_mcheck_main=no
5873 fi
5874 rm -f core conftest.err conftest.$ac_objext \
5875 conftest$ac_exeext conftest.$ac_ext
5876 LIBS=$ac_check_lib_save_LIBS
5877 fi
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
5879 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
5880 if test "x$ac_cv_lib_mcheck_main" = xyes; then :
5881 cat >>confdefs.h <<_ACEOF
5882 #define HAVE_LIBMCHECK 1
5883 _ACEOF
5884
5885 LIBS="-lmcheck $LIBS"
5886
5887 fi
5888
5889 fi
5890
5891
5892 if $development; then
5893 srv_selftest_objs="common/selftest.o"
5894
5895 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
5896
5897 fi
5898
5899 case ${build_alias} in
5900 "") build_noncanonical=${build} ;;
5901 *) build_noncanonical=${build_alias} ;;
5902 esac
5903
5904 case ${host_alias} in
5905 "") host_noncanonical=${build_noncanonical} ;;
5906 *) host_noncanonical=${host_alias} ;;
5907 esac
5908
5909 case ${target_alias} in
5910 "") target_noncanonical=${host_noncanonical} ;;
5911 *) target_noncanonical=${target_alias} ;;
5912 esac
5913
5914
5915
5916
5917
5918
5919 # Dependency checking.
5920 rm -rf .tst 2>/dev/null
5921 mkdir .tst 2>/dev/null
5922 if test -d .tst; then
5923 am__leading_dot=.
5924 else
5925 am__leading_dot=_
5926 fi
5927 rmdir .tst 2>/dev/null
5928
5929 DEPDIR="${am__leading_dot}deps"
5930
5931 ac_config_commands="$ac_config_commands depdir"
5932
5933
5934
5935 # Create sub-directories for objects and dependencies.
5936 CONFIG_SRC_SUBDIR="arch common"
5937
5938
5939 ac_config_commands="$ac_config_commands gdbdepdir"
5940
5941
5942 depcc="$CC" am_compiler_list=
5943
5944 am_depcomp=$ac_aux_dir/depcomp
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5946 $as_echo_n "checking dependency style of $depcc... " >&6; }
5947 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -f "$am_depcomp"; then
5951 # We make a subdir and do the tests there. Otherwise we can end up
5952 # making bogus files that we don't know about and never remove. For
5953 # instance it was reported that on HP-UX the gcc test will end up
5954 # making a dummy file named `D' -- because `-MD' means `put the output
5955 # in D'.
5956 mkdir conftest.dir
5957 # Copy depcomp to subdir because otherwise we won't find it if we're
5958 # using a relative directory.
5959 cp "$am_depcomp" conftest.dir
5960 cd conftest.dir
5961 # We will build objects and dependencies in a subdirectory because
5962 # it helps to detect inapplicable dependency modes. For instance
5963 # both Tru64's cc and ICC support -MD to output dependencies as a
5964 # side effect of compilation, but ICC will put the dependencies in
5965 # the current directory while Tru64 will put them in the object
5966 # directory.
5967 mkdir sub
5968
5969 am_cv_CC_dependencies_compiler_type=none
5970 if test "$am_compiler_list" = ""; then
5971 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5972 fi
5973 for depmode in $am_compiler_list; do
5974 if test $depmode = none; then break; fi
5975
5976 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5977 # Setup a source with many dependencies, because some compilers
5978 # like to wrap large dependency lists on column 80 (with \), and
5979 # we should not choose a depcomp mode which is confused by this.
5980 #
5981 # We need to recreate these files for each test, as the compiler may
5982 # overwrite some of them when testing with obscure command lines.
5983 # This happens at least with the AIX C compiler.
5984 : > sub/conftest.c
5985 for i in 1 2 3 4 5 6; do
5986 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5987 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5988 # Solaris 8's {/usr,}/bin/sh.
5989 touch sub/conftst$i.h
5990 done
5991 echo "include sub/conftest.Po" > confmf
5992
5993 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5994 # mode. It turns out that the SunPro C++ compiler does not properly
5995 # handle `-M -o', and we need to detect this.
5996 depcmd="depmode=$depmode \
5997 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5998 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5999 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6000 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6001 if env $depcmd > conftest.err 2>&1 &&
6002 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6003 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6004 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6005 # icc doesn't choke on unknown options, it will just issue warnings
6006 # or remarks (even with -Werror). So we grep stderr for any message
6007 # that says an option was ignored or not supported.
6008 # When given -MP, icc 7.0 and 7.1 complain thusly:
6009 # icc: Command line warning: ignoring option '-M'; no argument required
6010 # The diagnosis changed in icc 8.0:
6011 # icc: Command line remark: option '-MP' not supported
6012 if (grep 'ignoring option' conftest.err ||
6013 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6014 am_cv_CC_dependencies_compiler_type=$depmode
6015 $as_echo "$as_me:$LINENO: success" >&5
6016 break
6017 fi
6018 fi
6019 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6020 sed -e 's/^/| /' < conftest.err >&5
6021 done
6022
6023 cd ..
6024 rm -rf conftest.dir
6025 else
6026 am_cv_CC_dependencies_compiler_type=none
6027 fi
6028
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6032 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6033 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6034 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6035
6036 fi
6037
6038
6039 gnulib_extra_configure_args=
6040 # If large-file support is disabled, make sure gnulib does the same.
6041 if test "$enable_largefile" = no; then
6042 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
6043 fi
6044
6045 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
6046 # to find the the source subdir to be configured directly under
6047 # gdbserver/. We need to build gnulib under some other directory not
6048 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
6049 # build it in the same directory, when building in the source dir.
6050
6051 in_src="../gnulib"
6052 in_build="build-gnulib-gdbserver"
6053 in_extra_args="$gnulib_extra_configure_args"
6054
6055 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6056 # so they do not pile up.
6057 ac_sub_configure_args=
6058 ac_prev=
6059 eval "set x $ac_configure_args"
6060 shift
6061 for ac_arg
6062 do
6063 if test -n "$ac_prev"; then
6064 ac_prev=
6065 continue
6066 fi
6067 case $ac_arg in
6068 -cache-file | --cache-file | --cache-fil | --cache-fi \
6069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6070 ac_prev=cache_file ;;
6071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6073 | --c=*)
6074 ;;
6075 --config-cache | -C)
6076 ;;
6077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6078 ac_prev=srcdir ;;
6079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6080 ;;
6081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6082 ac_prev=prefix ;;
6083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6084 ;;
6085 --disable-option-checking)
6086 ;;
6087 *)
6088 case $ac_arg in
6089 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6090 esac
6091 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6092 esac
6093 done
6094
6095 # Always prepend --prefix to ensure using the same prefix
6096 # in subdir configurations.
6097 ac_arg="--prefix=$prefix"
6098 case $ac_arg in
6099 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6100 esac
6101 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6102
6103 # Pass --silent
6104 if test "$silent" = yes; then
6105 ac_sub_configure_args="--silent $ac_sub_configure_args"
6106 fi
6107
6108 # Always prepend --disable-option-checking to silence warnings, since
6109 # different subdirs can have different --enable and --with options.
6110 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6111
6112 ac_popdir=`pwd`
6113 ac_dir=$in_build
6114
6115 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6117 $as_echo "$ac_msg" >&6
6118 as_dir="$ac_dir"; as_fn_mkdir_p
6119
6120 case $srcdir in
6121 [\\/]* | ?:[\\/]* )
6122 ac_srcdir=$srcdir/$in_src ;;
6123 *) # Relative name.
6124 ac_srcdir=../$srcdir/$in_src ;;
6125 esac
6126
6127 cd "$ac_dir"
6128
6129 ac_sub_configure=$ac_srcdir/configure
6130
6131 # Make the cache file name correct relative to the subdirectory.
6132 case $cache_file in
6133 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6134 *) # Relative name.
6135 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6136 esac
6137
6138 if test -n "$in_extra_args"; then
6139 # Add the extra args at the end.
6140 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6141 fi
6142
6143 { $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
6144 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6145 # The eval makes quoting arguments work.
6146 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6147 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6148 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6149
6150 cd "$ac_popdir"
6151
6152
6153
6154 in_src="../../libiberty"
6155 in_build="build-libiberty-gdbserver"
6156 in_extra_args=
6157
6158 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6159 # so they do not pile up.
6160 ac_sub_configure_args=
6161 ac_prev=
6162 eval "set x $ac_configure_args"
6163 shift
6164 for ac_arg
6165 do
6166 if test -n "$ac_prev"; then
6167 ac_prev=
6168 continue
6169 fi
6170 case $ac_arg in
6171 -cache-file | --cache-file | --cache-fil | --cache-fi \
6172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6173 ac_prev=cache_file ;;
6174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6176 | --c=*)
6177 ;;
6178 --config-cache | -C)
6179 ;;
6180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6181 ac_prev=srcdir ;;
6182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6183 ;;
6184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6185 ac_prev=prefix ;;
6186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6187 ;;
6188 --disable-option-checking)
6189 ;;
6190 *)
6191 case $ac_arg in
6192 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6193 esac
6194 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6195 esac
6196 done
6197
6198 # Always prepend --prefix to ensure using the same prefix
6199 # in subdir configurations.
6200 ac_arg="--prefix=$prefix"
6201 case $ac_arg in
6202 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6203 esac
6204 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6205
6206 # Pass --silent
6207 if test "$silent" = yes; then
6208 ac_sub_configure_args="--silent $ac_sub_configure_args"
6209 fi
6210
6211 # Always prepend --disable-option-checking to silence warnings, since
6212 # different subdirs can have different --enable and --with options.
6213 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6214
6215 ac_popdir=`pwd`
6216 ac_dir=$in_build
6217
6218 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6220 $as_echo "$ac_msg" >&6
6221 as_dir="$ac_dir"; as_fn_mkdir_p
6222
6223 case $srcdir in
6224 [\\/]* | ?:[\\/]* )
6225 ac_srcdir=$srcdir/$in_src ;;
6226 *) # Relative name.
6227 ac_srcdir=../$srcdir/$in_src ;;
6228 esac
6229
6230 cd "$ac_dir"
6231
6232 ac_sub_configure=$ac_srcdir/configure
6233
6234 # Make the cache file name correct relative to the subdirectory.
6235 case $cache_file in
6236 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6237 *) # Relative name.
6238 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6239 esac
6240
6241 if test -n "$in_extra_args"; then
6242 # Add the extra args at the end.
6243 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6244 fi
6245
6246 { $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
6247 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6248 # The eval makes quoting arguments work.
6249 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6250 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6251 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6252
6253 cd "$ac_popdir"
6254
6255
6256 for ac_header in termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
6257 do :
6258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6259 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6260 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6261 cat >>confdefs.h <<_ACEOF
6262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6263 _ACEOF
6264
6265 fi
6266
6267 done
6268
6269 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_pid_t" = xyes; then :
6271
6272 else
6273
6274 cat >>confdefs.h <<_ACEOF
6275 #define pid_t int
6276 _ACEOF
6277
6278 fi
6279
6280 for ac_header in vfork.h
6281 do :
6282 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6283 if test "x$ac_cv_header_vfork_h" = xyes; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_VFORK_H 1
6286 _ACEOF
6287
6288 fi
6289
6290 done
6291
6292 for ac_func in fork vfork
6293 do :
6294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6297 cat >>confdefs.h <<_ACEOF
6298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6299 _ACEOF
6300
6301 fi
6302 done
6303
6304 if test "x$ac_cv_func_fork" = xyes; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6306 $as_echo_n "checking for working fork... " >&6; }
6307 if ${ac_cv_func_fork_works+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test "$cross_compiling" = yes; then :
6311 ac_cv_func_fork_works=cross
6312 else
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 $ac_includes_default
6316 int
6317 main ()
6318 {
6319
6320 /* By Ruediger Kuhlmann. */
6321 return fork () < 0;
6322
6323 ;
6324 return 0;
6325 }
6326 _ACEOF
6327 if ac_fn_c_try_run "$LINENO"; then :
6328 ac_cv_func_fork_works=yes
6329 else
6330 ac_cv_func_fork_works=no
6331 fi
6332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6333 conftest.$ac_objext conftest.beam conftest.$ac_ext
6334 fi
6335
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6338 $as_echo "$ac_cv_func_fork_works" >&6; }
6339
6340 else
6341 ac_cv_func_fork_works=$ac_cv_func_fork
6342 fi
6343 if test "x$ac_cv_func_fork_works" = xcross; then
6344 case $host in
6345 *-*-amigaos* | *-*-msdosdjgpp*)
6346 # Override, as these systems have only a dummy fork() stub
6347 ac_cv_func_fork_works=no
6348 ;;
6349 *)
6350 ac_cv_func_fork_works=yes
6351 ;;
6352 esac
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6354 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6355 fi
6356 ac_cv_func_vfork_works=$ac_cv_func_vfork
6357 if test "x$ac_cv_func_vfork" = xyes; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6359 $as_echo_n "checking for working vfork... " >&6; }
6360 if ${ac_cv_func_vfork_works+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test "$cross_compiling" = yes; then :
6364 ac_cv_func_vfork_works=cross
6365 else
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 /* Thanks to Paul Eggert for this test. */
6369 $ac_includes_default
6370 #include <sys/wait.h>
6371 #ifdef HAVE_VFORK_H
6372 # include <vfork.h>
6373 #endif
6374 /* On some sparc systems, changes by the child to local and incoming
6375 argument registers are propagated back to the parent. The compiler
6376 is told about this with #include <vfork.h>, but some compilers
6377 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6378 static variable whose address is put into a register that is
6379 clobbered by the vfork. */
6380 static void
6381 #ifdef __cplusplus
6382 sparc_address_test (int arg)
6383 # else
6384 sparc_address_test (arg) int arg;
6385 #endif
6386 {
6387 static pid_t child;
6388 if (!child) {
6389 child = vfork ();
6390 if (child < 0) {
6391 perror ("vfork");
6392 _exit(2);
6393 }
6394 if (!child) {
6395 arg = getpid();
6396 write(-1, "", 0);
6397 _exit (arg);
6398 }
6399 }
6400 }
6401
6402 int
6403 main ()
6404 {
6405 pid_t parent = getpid ();
6406 pid_t child;
6407
6408 sparc_address_test (0);
6409
6410 child = vfork ();
6411
6412 if (child == 0) {
6413 /* Here is another test for sparc vfork register problems. This
6414 test uses lots of local variables, at least as many local
6415 variables as main has allocated so far including compiler
6416 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6417 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6418 reuse the register of parent for one of the local variables,
6419 since it will think that parent can't possibly be used any more
6420 in this routine. Assigning to the local variable will thus
6421 munge parent in the parent process. */
6422 pid_t
6423 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6424 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6425 /* Convince the compiler that p..p7 are live; otherwise, it might
6426 use the same hardware register for all 8 local variables. */
6427 if (p != p1 || p != p2 || p != p3 || p != p4
6428 || p != p5 || p != p6 || p != p7)
6429 _exit(1);
6430
6431 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6432 from child file descriptors. If the child closes a descriptor
6433 before it execs or exits, this munges the parent's descriptor
6434 as well. Test for this by closing stdout in the child. */
6435 _exit(close(fileno(stdout)) != 0);
6436 } else {
6437 int status;
6438 struct stat st;
6439
6440 while (wait(&status) != child)
6441 ;
6442 return (
6443 /* Was there some problem with vforking? */
6444 child < 0
6445
6446 /* Did the child fail? (This shouldn't happen.) */
6447 || status
6448
6449 /* Did the vfork/compiler bug occur? */
6450 || parent != getpid()
6451
6452 /* Did the file descriptor bug occur? */
6453 || fstat(fileno(stdout), &st) != 0
6454 );
6455 }
6456 }
6457 _ACEOF
6458 if ac_fn_c_try_run "$LINENO"; then :
6459 ac_cv_func_vfork_works=yes
6460 else
6461 ac_cv_func_vfork_works=no
6462 fi
6463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6464 conftest.$ac_objext conftest.beam conftest.$ac_ext
6465 fi
6466
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6469 $as_echo "$ac_cv_func_vfork_works" >&6; }
6470
6471 fi;
6472 if test "x$ac_cv_func_fork_works" = xcross; then
6473 ac_cv_func_vfork_works=$ac_cv_func_vfork
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6475 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6476 fi
6477
6478 if test "x$ac_cv_func_vfork_works" = xyes; then
6479
6480 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6481
6482 else
6483
6484 $as_echo "#define vfork fork" >>confdefs.h
6485
6486 fi
6487 if test "x$ac_cv_func_fork_works" = xyes; then
6488
6489 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6490
6491 fi
6492
6493 for ac_func in getauxval pread pwrite pread64 setns
6494 do :
6495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6497 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6498 cat >>confdefs.h <<_ACEOF
6499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6500 _ACEOF
6501
6502 fi
6503 done
6504
6505
6506 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6507 if test "x$ac_cv_type_size_t" = xyes; then :
6508
6509 else
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define size_t unsigned int
6513 _ACEOF
6514
6515 fi
6516
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6519 $as_echo_n "checking for ANSI C header files... " >&6; }
6520 if ${ac_cv_header_stdc+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <stdlib.h>
6526 #include <stdarg.h>
6527 #include <string.h>
6528 #include <float.h>
6529
6530 int
6531 main ()
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_compile "$LINENO"; then :
6539 ac_cv_header_stdc=yes
6540 else
6541 ac_cv_header_stdc=no
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544
6545 if test $ac_cv_header_stdc = yes; then
6546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <string.h>
6550
6551 _ACEOF
6552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6553 $EGREP "memchr" >/dev/null 2>&1; then :
6554
6555 else
6556 ac_cv_header_stdc=no
6557 fi
6558 rm -f conftest*
6559
6560 fi
6561
6562 if test $ac_cv_header_stdc = yes; then
6563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 #include <stdlib.h>
6567
6568 _ACEOF
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 $EGREP "free" >/dev/null 2>&1; then :
6571
6572 else
6573 ac_cv_header_stdc=no
6574 fi
6575 rm -f conftest*
6576
6577 fi
6578
6579 if test $ac_cv_header_stdc = yes; then
6580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6581 if test "$cross_compiling" = yes; then :
6582 :
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 #include <ctype.h>
6587 #include <stdlib.h>
6588 #if ((' ' & 0x0FF) == 0x020)
6589 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6590 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6591 #else
6592 # define ISLOWER(c) \
6593 (('a' <= (c) && (c) <= 'i') \
6594 || ('j' <= (c) && (c) <= 'r') \
6595 || ('s' <= (c) && (c) <= 'z'))
6596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6597 #endif
6598
6599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6600 int
6601 main ()
6602 {
6603 int i;
6604 for (i = 0; i < 256; i++)
6605 if (XOR (islower (i), ISLOWER (i))
6606 || toupper (i) != TOUPPER (i))
6607 return 2;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_run "$LINENO"; then :
6612
6613 else
6614 ac_cv_header_stdc=no
6615 fi
6616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6617 conftest.$ac_objext conftest.beam conftest.$ac_ext
6618 fi
6619
6620 fi
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6623 $as_echo "$ac_cv_header_stdc" >&6; }
6624 if test $ac_cv_header_stdc = yes; then
6625
6626 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6627
6628 fi
6629
6630 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6631 # for constant arguments. Useless!
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6633 $as_echo_n "checking for working alloca.h... " >&6; }
6634 if ${ac_cv_working_alloca_h+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 #include <alloca.h>
6640 int
6641 main ()
6642 {
6643 char *p = (char *) alloca (2 * sizeof (int));
6644 if (p) return 0;
6645 ;
6646 return 0;
6647 }
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 ac_cv_working_alloca_h=yes
6651 else
6652 ac_cv_working_alloca_h=no
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6658 $as_echo "$ac_cv_working_alloca_h" >&6; }
6659 if test $ac_cv_working_alloca_h = yes; then
6660
6661 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6662
6663 fi
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6666 $as_echo_n "checking for alloca... " >&6; }
6667 if ${ac_cv_func_alloca_works+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #ifdef __GNUC__
6673 # define alloca __builtin_alloca
6674 #else
6675 # ifdef _MSC_VER
6676 # include <malloc.h>
6677 # define alloca _alloca
6678 # else
6679 # ifdef HAVE_ALLOCA_H
6680 # include <alloca.h>
6681 # else
6682 # ifdef _AIX
6683 #pragma alloca
6684 # else
6685 # ifndef alloca /* predefined by HP cc +Olibcalls */
6686 void *alloca (size_t);
6687 # endif
6688 # endif
6689 # endif
6690 # endif
6691 #endif
6692
6693 int
6694 main ()
6695 {
6696 char *p = (char *) alloca (1);
6697 if (p) return 0;
6698 ;
6699 return 0;
6700 }
6701 _ACEOF
6702 if ac_fn_c_try_link "$LINENO"; then :
6703 ac_cv_func_alloca_works=yes
6704 else
6705 ac_cv_func_alloca_works=no
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6711 $as_echo "$ac_cv_func_alloca_works" >&6; }
6712
6713 if test $ac_cv_func_alloca_works = yes; then
6714
6715 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6716
6717 else
6718 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6719 # that cause trouble. Some versions do not even contain alloca or
6720 # contain a buggy version. If you still want to use their alloca,
6721 # use ar to extract alloca.o from them instead of compiling alloca.c.
6722
6723 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6724
6725 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6726
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6729 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6730 if ${ac_cv_os_cray+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #if defined CRAY && ! defined CRAY2
6736 webecray
6737 #else
6738 wenotbecray
6739 #endif
6740
6741 _ACEOF
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "webecray" >/dev/null 2>&1; then :
6744 ac_cv_os_cray=yes
6745 else
6746 ac_cv_os_cray=no
6747 fi
6748 rm -f conftest*
6749
6750 fi
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6752 $as_echo "$ac_cv_os_cray" >&6; }
6753 if test $ac_cv_os_cray = yes; then
6754 for ac_func in _getb67 GETB67 getb67; do
6755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6757 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6758
6759 cat >>confdefs.h <<_ACEOF
6760 #define CRAY_STACKSEG_END $ac_func
6761 _ACEOF
6762
6763 break
6764 fi
6765
6766 done
6767 fi
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6770 $as_echo_n "checking stack direction for C alloca... " >&6; }
6771 if ${ac_cv_c_stack_direction+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test "$cross_compiling" = yes; then :
6775 ac_cv_c_stack_direction=0
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 $ac_includes_default
6780 int
6781 find_stack_direction (int *addr, int depth)
6782 {
6783 int dir, dummy = 0;
6784 if (! addr)
6785 addr = &dummy;
6786 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6787 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6788 return dir + dummy;
6789 }
6790
6791 int
6792 main (int argc, char **argv)
6793 {
6794 return find_stack_direction (0, argc + !argv + 20) < 0;
6795 }
6796 _ACEOF
6797 if ac_fn_c_try_run "$LINENO"; then :
6798 ac_cv_c_stack_direction=1
6799 else
6800 ac_cv_c_stack_direction=-1
6801 fi
6802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6803 conftest.$ac_objext conftest.beam conftest.$ac_ext
6804 fi
6805
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6808 $as_echo "$ac_cv_c_stack_direction" >&6; }
6809 cat >>confdefs.h <<_ACEOF
6810 #define STACK_DIRECTION $ac_cv_c_stack_direction
6811 _ACEOF
6812
6813
6814 fi
6815
6816
6817
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6819 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6820 if ${am_cv_langinfo_codeset+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <langinfo.h>
6826 int
6827 main ()
6828 {
6829 char* cs = nl_langinfo(CODESET);
6830 ;
6831 return 0;
6832 }
6833 _ACEOF
6834 if ac_fn_c_try_link "$LINENO"; then :
6835 am_cv_langinfo_codeset=yes
6836 else
6837 am_cv_langinfo_codeset=no
6838 fi
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6844 $as_echo "$am_cv_langinfo_codeset" >&6; }
6845 if test $am_cv_langinfo_codeset = yes; then
6846
6847 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6848
6849 fi
6850
6851
6852 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h
6853 do :
6854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6857 cat >>confdefs.h <<_ACEOF
6858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6859 _ACEOF
6860
6861 fi
6862
6863 done
6864
6865
6866 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
6867 do :
6868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6873 _ACEOF
6874
6875 fi
6876 done
6877
6878
6879 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6880 if test "x$ac_cv_have_decl_strerror" = xyes; then :
6881 ac_have_decl=1
6882 else
6883 ac_have_decl=0
6884 fi
6885
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_STRERROR $ac_have_decl
6888 _ACEOF
6889 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
6890 if test "x$ac_cv_have_decl_strstr" = xyes; then :
6891 ac_have_decl=1
6892 else
6893 ac_have_decl=0
6894 fi
6895
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_DECL_STRSTR $ac_have_decl
6898 _ACEOF
6899
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
6902 $as_echo_n "checking for sigsetjmp... " >&6; }
6903 if ${gdb_cv_func_sigsetjmp+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908
6909 #include <setjmp.h>
6910
6911 int
6912 main ()
6913 {
6914 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
6915 ;
6916 return 0;
6917 }
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 gdb_cv_func_sigsetjmp=yes
6921 else
6922 gdb_cv_func_sigsetjmp=no
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
6927 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
6928 if test $gdb_cv_func_sigsetjmp = yes; then
6929
6930 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
6931
6932 fi
6933
6934
6935 # Check the return and argument types of ptrace.
6936
6937
6938 for ac_header in sys/ptrace.h ptrace.h
6939 do :
6940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6943 cat >>confdefs.h <<_ACEOF
6944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6945 _ACEOF
6946
6947 fi
6948
6949 done
6950
6951
6952 gdb_ptrace_headers='
6953 #include <sys/types.h>
6954 #if HAVE_SYS_PTRACE_H
6955 # include <sys/ptrace.h>
6956 #endif
6957 #if HAVE_UNISTD_H
6958 # include <unistd.h>
6959 #endif
6960 '
6961 # There is no point in checking if we don't have a prototype.
6962 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
6963 "
6964 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
6965 ac_have_decl=1
6966 else
6967 ac_have_decl=0
6968 fi
6969
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_DECL_PTRACE $ac_have_decl
6972 _ACEOF
6973 if test $ac_have_decl = 1; then :
6974
6975 else
6976
6977 : ${gdb_cv_func_ptrace_ret='int'}
6978 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
6979
6980 fi
6981
6982 # Check return type. Varargs (used on GNU/Linux) conflict with the
6983 # empty argument list, so check for that explicitly.
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
6985 $as_echo_n "checking return type of ptrace... " >&6; }
6986 if ${gdb_cv_func_ptrace_ret+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 $gdb_ptrace_headers
6992 int
6993 main ()
6994 {
6995 extern long ptrace (enum __ptrace_request, ...);
6996 ;
6997 return 0;
6998 }
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 gdb_cv_func_ptrace_ret='long'
7002 else
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7005 $gdb_ptrace_headers
7006 int
7007 main ()
7008 {
7009 extern int ptrace ();
7010 ;
7011 return 0;
7012 }
7013 _ACEOF
7014 if ac_fn_c_try_compile "$LINENO"; then :
7015 gdb_cv_func_ptrace_ret='int'
7016 else
7017 gdb_cv_func_ptrace_ret='long'
7018 fi
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
7024 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
7025
7026 cat >>confdefs.h <<_ACEOF
7027 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
7028 _ACEOF
7029
7030 # Check argument types.
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
7032 $as_echo_n "checking types of arguments for ptrace... " >&6; }
7033 if ${gdb_cv_func_ptrace_args+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 $gdb_ptrace_headers
7040 int
7041 main ()
7042 {
7043 extern long ptrace (enum __ptrace_request, ...);
7044 ;
7045 return 0;
7046 }
7047 _ACEOF
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
7050 else
7051
7052 for gdb_arg1 in 'int' 'long'; do
7053 for gdb_arg2 in 'pid_t' 'int' 'long'; do
7054 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
7055 for gdb_arg4 in 'int' 'long' 'void *'; do
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 $gdb_ptrace_headers
7059 int
7060 main ()
7061 {
7062
7063 extern $gdb_cv_func_ptrace_ret
7064 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
7065
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 if ac_fn_c_try_compile "$LINENO"; then :
7071 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
7072 break 4;
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 for gdb_arg5 in 'int *' 'int' 'long'; do
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 $gdb_ptrace_headers
7079 int
7080 main ()
7081 {
7082
7083 extern $gdb_cv_func_ptrace_ret
7084 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
7085
7086 ;
7087 return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091
7092 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
7093 break 5;
7094 fi
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7096 done
7097 done
7098 done
7099 done
7100 done
7101 # Provide a safe default value.
7102 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
7103
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 fi
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
7108 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
7109 ac_save_IFS=$IFS; IFS=','
7110 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
7111 IFS=$ac_save_IFS
7112 shift
7113
7114 cat >>confdefs.h <<_ACEOF
7115 #define PTRACE_TYPE_ARG1 $1
7116 _ACEOF
7117
7118
7119 cat >>confdefs.h <<_ACEOF
7120 #define PTRACE_TYPE_ARG3 $3
7121 _ACEOF
7122
7123
7124 cat >>confdefs.h <<_ACEOF
7125 #define PTRACE_TYPE_ARG4 $4
7126 _ACEOF
7127
7128 if test -n "$5"; then
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define PTRACE_TYPE_ARG5 $5
7132 _ACEOF
7133
7134 fi
7135
7136
7137 # Check for UST
7138 ustlibs=""
7139 ustinc=""
7140
7141
7142 # Check whether --with-ust was given.
7143 if test "${with_ust+set}" = set; then :
7144 withval=$with_ust;
7145 fi
7146
7147
7148 # Check whether --with-ust_include was given.
7149 if test "${with_ust_include+set}" = set; then :
7150 withval=$with_ust_include;
7151 fi
7152
7153
7154 # Check whether --with-ust_lib was given.
7155 if test "${with_ust_lib+set}" = set; then :
7156 withval=$with_ust_lib;
7157 fi
7158
7159
7160 case $with_ust in
7161 no)
7162 ustlibs=
7163 ustinc=
7164 ;;
7165 "" | yes)
7166 ustlibs=" -lust "
7167 ustinc=""
7168 ;;
7169 *)
7170 ustlibs="-L$with_ust/lib -lust"
7171 ustinc="-I$with_ust/include "
7172 ;;
7173 esac
7174 if test "x$with_ust_include" != x; then
7175 ustinc="-I$with_ust_include "
7176 fi
7177 if test "x$with_ust_lib" != x; then
7178 ustlibs="-L$with_ust_lib -lust"
7179 fi
7180
7181 if test "x$with_ust" != "xno"; then
7182 saved_CFLAGS="$CFLAGS"
7183 CFLAGS="$CFLAGS $ustinc"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
7185 $as_echo_n "checking for ust... " >&6; }
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188
7189 #define CONFIG_UST_GDB_INTEGRATION
7190 #include <ust/ust.h>
7191
7192 int
7193 main ()
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 $as_echo "yes" >&6; };
7203 $as_echo "#define HAVE_UST 1" >>confdefs.h
7204
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }; ustlibs= ; ustinc=
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 CFLAGS="$saved_CFLAGS"
7211 fi
7212
7213 # Flags needed for UST
7214
7215
7216
7217
7218 # Check whether --enable-werror was given.
7219 if test "${enable_werror+set}" = set; then :
7220 enableval=$enable_werror; case "${enableval}" in
7221 yes | y) ERROR_ON_WARNING="yes" ;;
7222 no | n) ERROR_ON_WARNING="no" ;;
7223 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
7224 esac
7225 fi
7226
7227
7228 # Enable -Werror by default when using gcc. Turn it off for releases.
7229 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
7230 ERROR_ON_WARNING=yes
7231 fi
7232
7233 WERROR_CFLAGS=""
7234 if test "${ERROR_ON_WARNING}" = yes ; then
7235 WERROR_CFLAGS="-Werror"
7236 fi
7237
7238 # The options we'll try to enable.
7239 build_warnings="-Wall -Wpointer-arith \
7240 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
7241 -Wno-switch -Wno-char-subscripts \
7242 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
7243 -Wno-sign-compare -Wno-error=maybe-uninitialized \
7244 -Wno-mismatched-tags \
7245 -Wno-error=deprecated-register \
7246 -Wsuggest-override \
7247 -Wimplicit-fallthrough=3 \
7248 -Wduplicated-cond"
7249
7250 case "${host}" in
7251 *-*-mingw32*)
7252 # Enable -Wno-format by default when using gcc on mingw since many
7253 # GCC versions complain about %I64.
7254 build_warnings="$build_warnings -Wno-format" ;;
7255 *-*-solaris*)
7256 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
7257 # doesn't understand.
7258 build_warnings="$build_warnings -Wno-unknown-pragmas"
7259 # Solaris 11 <unistd.h> marks vfork deprecated.
7260 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
7261 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
7262 esac
7263
7264 # Check whether --enable-build-warnings was given.
7265 if test "${enable_build_warnings+set}" = set; then :
7266 enableval=$enable_build_warnings; case "${enableval}" in
7267 yes) ;;
7268 no) build_warnings="-w";;
7269 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7270 build_warnings="${build_warnings} ${t}";;
7271 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7272 build_warnings="${t} ${build_warnings}";;
7273 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7274 esac
7275 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7276 echo "Setting compiler warning flags = $build_warnings" 6>&1
7277 fi
7278 fi
7279 # Check whether --enable-gdb-build-warnings was given.
7280 if test "${enable_gdb_build_warnings+set}" = set; then :
7281 enableval=$enable_gdb_build_warnings; case "${enableval}" in
7282 yes) ;;
7283 no) build_warnings="-w";;
7284 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7285 build_warnings="${build_warnings} ${t}";;
7286 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7287 build_warnings="${t} ${build_warnings}";;
7288 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7289 esac
7290 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7291 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7292 fi
7293 fi
7294
7295 # The set of warnings supported by a C++ compiler is not the same as
7296 # of the C compiler.
7297 ac_ext=cpp
7298 ac_cpp='$CXXCPP $CPPFLAGS'
7299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7302
7303
7304 WARN_CFLAGS=""
7305 if test "x${build_warnings}" != x -a "x$GCC" = xyes
7306 then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
7308 $as_echo_n "checking compiler warning flags... " >&6; }
7309 # Separate out the -Werror flag as some files just cannot be
7310 # compiled with it enabled.
7311 for w in ${build_warnings}; do
7312 # GCC does not complain about -Wno-unknown-warning. Invert
7313 # and test -Wunknown-warning instead.
7314 case $w in
7315 -Wno-*)
7316 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
7317 *)
7318 wtest=$w ;;
7319 esac
7320
7321 case $w in
7322 -Werr*) WERROR_CFLAGS=-Werror ;;
7323 *)
7324 # Check whether GCC accepts it.
7325 saved_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -Werror $wtest"
7327 saved_CXXFLAGS="$CXXFLAGS"
7328 CXXFLAGS="$CXXFLAGS -Werror $wtest"
7329 if test "x$w" = "x-Wunused-variable"; then
7330 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
7331 # fixed in GCC 4.9. This test is derived from the gdb
7332 # source code that triggered this bug in GCC.
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 struct scoped_restore_base {};
7336 struct scoped_restore_tmpl : public scoped_restore_base {
7337 ~scoped_restore_tmpl() {}
7338 };
7339 int
7340 main ()
7341 {
7342 const scoped_restore_base &b = scoped_restore_tmpl();
7343 ;
7344 return 0;
7345 }
7346 _ACEOF
7347 if ac_fn_cxx_try_compile "$LINENO"; then :
7348 WARN_CFLAGS="${WARN_CFLAGS} $w"
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 else
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354
7355 int
7356 main ()
7357 {
7358
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_cxx_try_compile "$LINENO"; then :
7364 WARN_CFLAGS="${WARN_CFLAGS} $w"
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 fi
7368 CFLAGS="$saved_CFLAGS"
7369 CXXFLAGS="$saved_CXXFLAGS"
7370 esac
7371 done
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
7373 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
7374 fi
7375
7376
7377
7378 ac_ext=c
7379 ac_cpp='$CPP $CPPFLAGS'
7380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383
7384
7385 case " $WARN_CFLAGS " in
7386 *" -Wmissing-prototypes "*)
7387 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
7388 ;;
7389 esac
7390
7391 old_LIBS="$LIBS"
7392 LIBS="$LIBS -ldl"
7393 for ac_func in dladdr
7394 do :
7395 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
7396 if test "x$ac_cv_func_dladdr" = xyes; then :
7397 cat >>confdefs.h <<_ACEOF
7398 #define HAVE_DLADDR 1
7399 _ACEOF
7400
7401 fi
7402 done
7403
7404 LIBS="$old_LIBS"
7405
7406
7407 # Check for presence and size of long long.
7408 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7409 if test "x$ac_cv_type_long_long" = xyes; then :
7410
7411 cat >>confdefs.h <<_ACEOF
7412 #define HAVE_LONG_LONG 1
7413 _ACEOF
7414
7415 # The cast to long int works around a bug in the HP C Compiler
7416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7418 # This bug is HP SR number 8606223364.
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7420 $as_echo_n "checking size of long long... " >&6; }
7421 if ${ac_cv_sizeof_long_long+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7425
7426 else
7427 if test "$ac_cv_type_long_long" = yes; then
7428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7430 as_fn_error 77 "cannot compute sizeof (long long)
7431 See \`config.log' for more details" "$LINENO" 5; }
7432 else
7433 ac_cv_sizeof_long_long=0
7434 fi
7435 fi
7436
7437 fi
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7439 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7440
7441
7442
7443 cat >>confdefs.h <<_ACEOF
7444 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7445 _ACEOF
7446
7447
7448 fi
7449
7450
7451 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7452 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7453 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7454 ac_have_decl=1
7455 else
7456 ac_have_decl=0
7457 fi
7458
7459 cat >>confdefs.h <<_ACEOF
7460 #define HAVE_DECL_BASENAME $ac_have_decl
7461 _ACEOF
7462 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7463 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7464 ac_have_decl=1
7465 else
7466 ac_have_decl=0
7467 fi
7468
7469 cat >>confdefs.h <<_ACEOF
7470 #define HAVE_DECL_FFS $ac_have_decl
7471 _ACEOF
7472 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7473 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7474 ac_have_decl=1
7475 else
7476 ac_have_decl=0
7477 fi
7478
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_DECL_ASPRINTF $ac_have_decl
7481 _ACEOF
7482 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7483 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7484 ac_have_decl=1
7485 else
7486 ac_have_decl=0
7487 fi
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define HAVE_DECL_VASPRINTF $ac_have_decl
7491 _ACEOF
7492 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7493 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7494 ac_have_decl=1
7495 else
7496 ac_have_decl=0
7497 fi
7498
7499 cat >>confdefs.h <<_ACEOF
7500 #define HAVE_DECL_SNPRINTF $ac_have_decl
7501 _ACEOF
7502 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7503 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7504 ac_have_decl=1
7505 else
7506 ac_have_decl=0
7507 fi
7508
7509 cat >>confdefs.h <<_ACEOF
7510 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7511 _ACEOF
7512
7513 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7514 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7515 ac_have_decl=1
7516 else
7517 ac_have_decl=0
7518 fi
7519
7520 cat >>confdefs.h <<_ACEOF
7521 #define HAVE_DECL_STRTOL $ac_have_decl
7522 _ACEOF
7523 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7524 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7525 ac_have_decl=1
7526 else
7527 ac_have_decl=0
7528 fi
7529
7530 cat >>confdefs.h <<_ACEOF
7531 #define HAVE_DECL_STRTOUL $ac_have_decl
7532 _ACEOF
7533 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7534 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7535 ac_have_decl=1
7536 else
7537 ac_have_decl=0
7538 fi
7539
7540 cat >>confdefs.h <<_ACEOF
7541 #define HAVE_DECL_STRTOLL $ac_have_decl
7542 _ACEOF
7543 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7544 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7545 ac_have_decl=1
7546 else
7547 ac_have_decl=0
7548 fi
7549
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_DECL_STRTOULL $ac_have_decl
7552 _ACEOF
7553
7554 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7555 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7556 ac_have_decl=1
7557 else
7558 ac_have_decl=0
7559 fi
7560
7561 cat >>confdefs.h <<_ACEOF
7562 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7563 _ACEOF
7564
7565
7566
7567 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
7568 if test "x$ac_cv_have_decl_strerror" = xyes; then :
7569 ac_have_decl=1
7570 else
7571 ac_have_decl=0
7572 fi
7573
7574 cat >>confdefs.h <<_ACEOF
7575 #define HAVE_DECL_STRERROR $ac_have_decl
7576 _ACEOF
7577 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
7578 if test "x$ac_cv_have_decl_perror" = xyes; then :
7579 ac_have_decl=1
7580 else
7581 ac_have_decl=0
7582 fi
7583
7584 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_DECL_PERROR $ac_have_decl
7586 _ACEOF
7587 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7588 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7589 ac_have_decl=1
7590 else
7591 ac_have_decl=0
7592 fi
7593
7594 cat >>confdefs.h <<_ACEOF
7595 #define HAVE_DECL_VASPRINTF $ac_have_decl
7596 _ACEOF
7597 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7598 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7599 ac_have_decl=1
7600 else
7601 ac_have_decl=0
7602 fi
7603
7604 cat >>confdefs.h <<_ACEOF
7605 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7606 _ACEOF
7607
7608
7609 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
7610 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
7611
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
7614 _ACEOF
7615
7616
7617 fi
7618 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
7619 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
7620
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
7623 _ACEOF
7624
7625
7626 fi
7627
7628
7629 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
7630 # Older amd64 Linux's don't have the fs_base and gs_base members of
7631 # `struct user_regs_struct'.
7632 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
7633 #include <sys/user.h>
7634 "
7635 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
7636
7637 cat >>confdefs.h <<_ACEOF
7638 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
7639 _ACEOF
7640
7641
7642 fi
7643 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
7644 #include <sys/user.h>
7645 "
7646 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
7647
7648 cat >>confdefs.h <<_ACEOF
7649 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
7650 _ACEOF
7651
7652
7653 fi
7654
7655
7656
7657 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
7658 #include <sys/socket.h>
7659
7660 "
7661 if test "x$ac_cv_type_socklen_t" = xyes; then :
7662
7663 cat >>confdefs.h <<_ACEOF
7664 #define HAVE_SOCKLEN_T 1
7665 _ACEOF
7666
7667
7668 fi
7669
7670
7671 case "${target}" in
7672 *-android*)
7673 # Starting with NDK version 9, <elf.h> actually includes definitions
7674 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
7675 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
7676 # leading to conflicts with the defintions from <linux/elf.h>.
7677 # This makes it impossible for us to include both <elf.h> and
7678 # <linux/elf.h>, which means that, in practice, we do not have
7679 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
7680 # Therefore, do not try to auto-detect availability, as it would
7681 # get it wrong on this platform.
7682 ;;
7683 *)
7684 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
7685
7686 "
7687 if test "x$ac_cv_type_Elf32_auxv_t" = xyes; then :
7688
7689 cat >>confdefs.h <<_ACEOF
7690 #define HAVE_ELF32_AUXV_T 1
7691 _ACEOF
7692
7693
7694 fi
7695 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
7696
7697 "
7698 if test "x$ac_cv_type_Elf64_auxv_t" = xyes; then :
7699
7700 cat >>confdefs.h <<_ACEOF
7701 #define HAVE_ELF64_AUXV_T 1
7702 _ACEOF
7703
7704
7705 fi
7706
7707 esac
7708
7709
7710
7711 # Check whether --with-pkgversion was given.
7712 if test "${with_pkgversion+set}" = set; then :
7713 withval=$with_pkgversion; case "$withval" in
7714 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7715 no) PKGVERSION= ;;
7716 *) PKGVERSION="($withval) " ;;
7717 esac
7718 else
7719 PKGVERSION="(GDB) "
7720
7721 fi
7722
7723
7724
7725
7726
7727 # Check whether --with-bugurl was given.
7728 if test "${with_bugurl+set}" = set; then :
7729 withval=$with_bugurl; case "$withval" in
7730 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7731 no) BUGURL=
7732 ;;
7733 *) BUGURL="$withval"
7734 ;;
7735 esac
7736 else
7737 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7738
7739 fi
7740
7741 case ${BUGURL} in
7742 "")
7743 REPORT_BUGS_TO=
7744 REPORT_BUGS_TEXI=
7745 ;;
7746 *)
7747 REPORT_BUGS_TO="<$BUGURL>"
7748 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7749 ;;
7750 esac;
7751
7752
7753
7754
7755 cat >>confdefs.h <<_ACEOF
7756 #define PKGVERSION "$PKGVERSION"
7757 _ACEOF
7758
7759
7760 cat >>confdefs.h <<_ACEOF
7761 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7762 _ACEOF
7763
7764
7765 # Check for various supplementary target information (beyond the
7766 # triplet) which might affect the choices in configure.srv.
7767 case "${target}" in
7768 i[34567]86-*-linux*)
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
7770 $as_echo_n "checking if building for x86-64... " >&6; }
7771 if ${gdb_cv_i386_is_x86_64+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 save_CPPFLAGS="$CPPFLAGS"
7775 CPPFLAGS="$CPPFLAGS $CFLAGS"
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778
7779 #if __x86_64__
7780 got it
7781 #endif
7782
7783 _ACEOF
7784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7785 $EGREP "got it" >/dev/null 2>&1; then :
7786 gdb_cv_i386_is_x86_64=yes
7787 else
7788 gdb_cv_i386_is_x86_64=no
7789 fi
7790 rm -f conftest*
7791
7792 CPPFLAGS="$save_CPPFLAGS"
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
7795 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
7796 ;;
7797
7798 x86_64-*-linux*)
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x32" >&5
7800 $as_echo_n "checking if building for x32... " >&6; }
7801 if ${gdb_cv_x86_is_x32+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 save_CPPFLAGS="$CPPFLAGS"
7805 CPPFLAGS="$CPPFLAGS $CFLAGS"
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808
7809 #if __x86_64__ && __ILP32__
7810 got it
7811 #endif
7812
7813 _ACEOF
7814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7815 $EGREP "got it" >/dev/null 2>&1; then :
7816 gdb_cv_x86_is_x32=yes
7817 else
7818 gdb_cv_x86_is_x32=no
7819 fi
7820 rm -f conftest*
7821
7822 CPPFLAGS="$save_CPPFLAGS"
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_x86_is_x32" >&5
7825 $as_echo "$gdb_cv_x86_is_x32" >&6; }
7826 ;;
7827
7828 m68k-*-*)
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
7830 $as_echo_n "checking if building for Coldfire... " >&6; }
7831 if ${gdb_cv_m68k_is_coldfire+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 save_CPPFLAGS="$CPPFLAGS"
7835 CPPFLAGS="$CPPFLAGS $CFLAGS"
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838
7839 #ifdef __mcoldfire__
7840 got it
7841 #endif
7842
7843 _ACEOF
7844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7845 $EGREP "got it" >/dev/null 2>&1; then :
7846 gdb_cv_m68k_is_coldfire=yes
7847 else
7848 gdb_cv_m68k_is_coldfire=no
7849 fi
7850 rm -f conftest*
7851
7852 CPPFLAGS="$save_CPPFLAGS"
7853 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
7855 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
7856 ;;
7857 esac
7858
7859 . ${srcdir}/configure.srv
7860
7861 # Add in the common host objects.
7862 . ${srcdir}/../common/common.host
7863 srv_host_obs="$common_host_obs"
7864
7865 if test "${srv_mingwce}" = "yes"; then
7866 LIBS="$LIBS -lws2"
7867 elif test "${srv_mingw}" = "yes"; then
7868 LIBS="$LIBS -lws2_32"
7869 elif test "${srv_qnx}" = "yes"; then
7870 LIBS="$LIBS -lsocket"
7871 elif test "${srv_lynxos}" = "yes"; then
7872 LIBS="$LIBS -lnetinet"
7873 fi
7874
7875 if test "${srv_mingw}" = "yes"; then
7876
7877 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7878
7879 fi
7880
7881 if test "${srv_linux_usrregs}" = "yes"; then
7882
7883 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
7884
7885 fi
7886
7887 if test "${srv_linux_regsets}" = "yes"; then
7888
7889 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
7890
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
7893 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
7894 if ${gdbsrv_cv_have_ptrace_getregs+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 #include <sys/ptrace.h>
7900 int
7901 main ()
7902 {
7903 PTRACE_GETREGS;
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 if ac_fn_c_try_compile "$LINENO"; then :
7909 gdbsrv_cv_have_ptrace_getregs=yes
7910 else
7911 gdbsrv_cv_have_ptrace_getregs=no
7912 fi
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7914 fi
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
7917 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
7918 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
7919
7920 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
7921
7922 fi
7923
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
7925 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
7926 if ${gdbsrv_cv_have_ptrace_getfpxregs+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 #include <sys/ptrace.h>
7932 int
7933 main ()
7934 {
7935 PTRACE_GETFPXREGS;
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 if ac_fn_c_try_compile "$LINENO"; then :
7941 gdbsrv_cv_have_ptrace_getfpxregs=yes
7942 else
7943 gdbsrv_cv_have_ptrace_getfpxregs=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 fi
7947
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
7949 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
7950 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
7951
7952 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
7953
7954 fi
7955 fi
7956
7957 if test "${srv_linux_btrace}" = "yes"; then
7958
7959 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
7960
7961 fi
7962
7963 if test "$ac_cv_header_sys_procfs_h" = yes; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
7965 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
7966 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971
7972 #define _SYSCALL32
7973 /* Needed for new procfs interface on sparc-solaris. */
7974 #define _STRUCTURED_PROC 1
7975 #include <sys/procfs.h>
7976 int
7977 main ()
7978 {
7979 lwpid_t avar
7980 ;
7981 return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7985 bfd_cv_have_sys_procfs_type_lwpid_t=yes
7986 else
7987 bfd_cv_have_sys_procfs_type_lwpid_t=no
7988
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 fi
7992
7993 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
7994
7995 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
7996
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
7999 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
8002 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
8003 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008
8009 #define _SYSCALL32
8010 /* Needed for new procfs interface on sparc-solaris. */
8011 #define _STRUCTURED_PROC 1
8012 #include <sys/procfs.h>
8013 int
8014 main ()
8015 {
8016 psaddr_t avar
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 bfd_cv_have_sys_procfs_type_psaddr_t=yes
8023 else
8024 bfd_cv_have_sys_procfs_type_psaddr_t=no
8025
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028 fi
8029
8030 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
8031
8032 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8033
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
8036 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
8039 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
8040 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045
8046 #define _SYSCALL32
8047 /* Needed for new procfs interface on sparc-solaris. */
8048 #define _STRUCTURED_PROC 1
8049 #include <sys/procfs.h>
8050 int
8051 main ()
8052 {
8053 prgregset_t avar
8054 ;
8055 return 0;
8056 }
8057 _ACEOF
8058 if ac_fn_c_try_compile "$LINENO"; then :
8059 bfd_cv_have_sys_procfs_type_prgregset_t=yes
8060 else
8061 bfd_cv_have_sys_procfs_type_prgregset_t=no
8062
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066
8067 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
8068
8069 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
8070
8071 fi
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
8073 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
8076 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
8077 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082
8083 #define _SYSCALL32
8084 /* Needed for new procfs interface on sparc-solaris. */
8085 #define _STRUCTURED_PROC 1
8086 #include <sys/procfs.h>
8087 int
8088 main ()
8089 {
8090 prfpregset_t avar
8091 ;
8092 return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
8097 else
8098 bfd_cv_have_sys_procfs_type_prfpregset_t=no
8099
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103
8104 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
8105
8106 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
8107
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
8110 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
8111
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
8113 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
8114 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119
8120 #define _SYSCALL32
8121 /* Needed for new procfs interface on sparc-solaris. */
8122 #define _STRUCTURED_PROC 1
8123 #include <sys/procfs.h>
8124 int
8125 main ()
8126 {
8127 elf_fpregset_t avar
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 if ac_fn_c_try_compile "$LINENO"; then :
8133 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
8134 else
8135 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
8136
8137 fi
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 fi
8140
8141 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
8142
8143 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
8144
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
8147 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
8148
8149 fi
8150
8151 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
8153 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
8154 if ${gdbserver_cv_have_thread_db_type_lwpid_t+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159
8160 #include <thread_db.h>
8161 int
8162 main ()
8163 {
8164 lwpid_t avar
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 gdbserver_cv_have_thread_db_type_lwpid_t=yes
8171 else
8172 gdbserver_cv_have_thread_db_type_lwpid_t=no
8173
8174 fi
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176 fi
8177
8178 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
8179
8180 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
8181
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
8184 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
8185
8186 fi
8187
8188 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
8190 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
8191 if ${gdbserver_cv_have_thread_db_type_psaddr_t+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196
8197 #include <thread_db.h>
8198 int
8199 main ()
8200 {
8201 psaddr_t avar
8202 ;
8203 return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_compile "$LINENO"; then :
8207 gdbserver_cv_have_thread_db_type_psaddr_t=yes
8208 else
8209 gdbserver_cv_have_thread_db_type_psaddr_t=no
8210
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214
8215 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
8216
8217 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
8218
8219 fi
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
8221 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
8222
8223 fi
8224
8225 old_LIBS="$LIBS"
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8228 if ${ac_cv_lib_dl_dlopen+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 ac_check_lib_save_LIBS=$LIBS
8232 LIBS="-ldl $LIBS"
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235
8236 /* Override any GCC internal prototype to avoid an error.
8237 Use char because int might match the return type of a GCC
8238 builtin and then its argument prototype would still apply. */
8239 #ifdef __cplusplus
8240 extern "C"
8241 #endif
8242 char dlopen ();
8243 int
8244 main ()
8245 {
8246 return dlopen ();
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 ac_cv_lib_dl_dlopen=yes
8253 else
8254 ac_cv_lib_dl_dlopen=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258 LIBS=$ac_check_lib_save_LIBS
8259 fi
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8263 cat >>confdefs.h <<_ACEOF
8264 #define HAVE_LIBDL 1
8265 _ACEOF
8266
8267 LIBS="-ldl $LIBS"
8268
8269 fi
8270
8271 LIBS="$old_LIBS"
8272
8273 srv_thread_depfiles=
8274 srv_libs=
8275
8276 if test "$srv_linux_thread_db" = "yes"; then
8277 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
8278 srv_libs="-ldl"
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
8280 $as_echo_n "checking for the dynamic export flag... " >&6; }
8281 old_LDFLAGS="$LDFLAGS"
8282 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
8283 # supported there.
8284 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
8285 LDFLAGS="$LDFLAGS $RDYNAMIC"
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288
8289 int
8290 main ()
8291 {
8292
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 found="-Wl,--dynamic-list"
8299 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
8300 else
8301 RDYNAMIC="-rdynamic"
8302 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305
8306 int
8307 main ()
8308 {
8309
8310 ;
8311 return 0;
8312 }
8313 _ACEOF
8314 if ac_fn_c_try_link "$LINENO"; then :
8315 found="-rdynamic"
8316 else
8317 found="no"
8318 RDYNAMIC=""
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325
8326 LDFLAGS="$old_LDFLAGS"
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8328 $as_echo "$found" >&6; }
8329 else
8330 srv_libs="-lthread_db"
8331 fi
8332
8333 srv_thread_depfiles="thread-db.o proc-service.o"
8334
8335 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
8338 $as_echo_n "checking for TD_VERSION... " >&6; }
8339 if ${gdbsrv_cv_have_td_version+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8344 #include <thread_db.h>
8345 int
8346 main ()
8347 {
8348 TD_VERSION;
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"; then :
8354 gdbsrv_cv_have_td_version=yes
8355 else
8356 gdbsrv_cv_have_td_version=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
8361 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
8362 if test $gdbsrv_cv_have_td_version = yes; then
8363
8364 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
8365
8366 fi
8367 fi
8368
8369
8370 # Check whether --with-libthread-db was given.
8371 if test "${with_libthread_db+set}" = set; then :
8372 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
8373 srv_libs="$srv_libthread_db_path"
8374
8375 fi
8376
8377
8378 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
8379
8380 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
8381
8382 fi
8383
8384 if test "$srv_xmlfiles" != ""; then
8385 srv_xmlbuiltin="xml-builtin.o"
8386
8387 $as_echo "#define USE_XML 1" >>confdefs.h
8388
8389
8390 tmp_xmlfiles=$srv_xmlfiles
8391 srv_xmlfiles=""
8392 for f in $tmp_xmlfiles; do
8393 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
8394 done
8395 fi
8396
8397 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs $srv_selftest_objs"
8398 GDBSERVER_LIBS="$srv_libs"
8399
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
8401 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
8402 if ${gdbsrv_cv_have_sync_builtins+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h. */
8408
8409 int
8410 main ()
8411 {
8412 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 if ac_fn_c_try_link "$LINENO"; then :
8418 gdbsrv_cv_have_sync_builtins=yes
8419 else
8420 gdbsrv_cv_have_sync_builtins=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext \
8423 conftest$ac_exeext conftest.$ac_ext
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
8426 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
8427 if test $gdbsrv_cv_have_sync_builtins = yes; then
8428
8429 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
8430
8431 fi
8432
8433 saved_cflags="$CFLAGS"
8434 CFLAGS="$CFLAGS -fvisibility=hidden"
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437
8438 int
8439 main ()
8440 {
8441
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 gdbsrv_cv_have_visibility_hidden=yes
8448 else
8449 gdbsrv_cv_have_visibility_hidden=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 CFLAGS="$saved_cflags"
8453
8454 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8455 "
8456 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8457 ac_have_decl=1
8458 else
8459 ac_have_decl=0
8460 fi
8461
8462 cat >>confdefs.h <<_ACEOF
8463 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8464 _ACEOF
8465
8466
8467 if test "$cross_compiling" = yes; then :
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 #include <sys/personality.h>
8471 int
8472 main ()
8473 {
8474
8475 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8476 # define ADDR_NO_RANDOMIZE 0x0040000
8477 # endif
8478 /* Test the flag could be set and stays set. */
8479 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8480 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8481 return 1
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_link "$LINENO"; then :
8487 gdbsrv_cv_have_personality=true
8488 else
8489 gdbsrv_cv_have_personality=false
8490 fi
8491 rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <sys/personality.h>
8497 int
8498 main ()
8499 {
8500
8501 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8502 # define ADDR_NO_RANDOMIZE 0x0040000
8503 # endif
8504 /* Test the flag could be set and stays set. */
8505 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8506 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8507 return 1
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_run "$LINENO"; then :
8513 gdbsrv_cv_have_personality=true
8514 else
8515 gdbsrv_cv_have_personality=false
8516 fi
8517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8518 conftest.$ac_objext conftest.beam conftest.$ac_ext
8519 fi
8520
8521 if $gdbsrv_cv_have_personality
8522 then
8523
8524 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8525
8526 fi
8527
8528
8529 IPA_DEPFILES=""
8530 extra_libraries=""
8531
8532 # check whether to enable the inprocess agent
8533 if test "$ipa_obj" != "" \
8534 -a "$gdbsrv_cv_have_sync_builtins" = yes \
8535 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
8536 have_ipa=true
8537 else
8538 have_ipa=false
8539 fi
8540
8541 # Check whether --enable-inprocess-agent was given.
8542 if test "${enable_inprocess_agent+set}" = set; then :
8543 enableval=$enable_inprocess_agent; case "$enableval" in
8544 yes) want_ipa=true ;;
8545 no) want_ipa=false ;;
8546 *) as_fn_error $? "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
8547 esac
8548 else
8549 want_ipa=$have_ipa
8550 fi
8551
8552
8553 if $want_ipa ; then
8554 if $have_ipa ; then
8555 IPA_DEPFILES="$ipa_obj"
8556 extra_libraries="$extra_libraries libinproctrace.so"
8557 else
8558 as_fn_error $? "inprocess agent not supported for this target" "$LINENO" 5
8559 fi
8560 fi
8561
8562
8563
8564
8565
8566
8567
8568
8569 GNULIB=build-gnulib-gdbserver/import
8570
8571 GNULIB_STDINT_H=
8572 if test x"$STDINT_H" != x; then
8573 GNULIB_STDINT_H=$GNULIB/$STDINT_H
8574 fi
8575
8576
8577 ac_config_files="$ac_config_files Makefile"
8578
8579
8580 cat >confcache <<\_ACEOF
8581 # This file is a shell script that caches the results of configure
8582 # tests run on this system so they can be shared between configure
8583 # scripts and configure runs, see configure's option --config-cache.
8584 # It is not useful on other systems. If it contains results you don't
8585 # want to keep, you may remove or edit it.
8586 #
8587 # config.status only pays attention to the cache file if you give it
8588 # the --recheck option to rerun configure.
8589 #
8590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8592 # following values.
8593
8594 _ACEOF
8595
8596 # The following way of writing the cache mishandles newlines in values,
8597 # but we know of no workaround that is simple, portable, and efficient.
8598 # So, we kill variables containing newlines.
8599 # Ultrix sh set writes to stderr and can't be redirected directly,
8600 # and sets the high bit in the cache file unless we assign to the vars.
8601 (
8602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8603 eval ac_val=\$$ac_var
8604 case $ac_val in #(
8605 *${as_nl}*)
8606 case $ac_var in #(
8607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8609 esac
8610 case $ac_var in #(
8611 _ | IFS | as_nl) ;; #(
8612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8613 *) { eval $ac_var=; unset $ac_var;} ;;
8614 esac ;;
8615 esac
8616 done
8617
8618 (set) 2>&1 |
8619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8620 *${as_nl}ac_space=\ *)
8621 # `set' does not quote correctly, so add quotes: double-quote
8622 # substitution turns \\\\ into \\, and sed turns \\ into \.
8623 sed -n \
8624 "s/'/'\\\\''/g;
8625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8626 ;; #(
8627 *)
8628 # `set' quotes correctly as required by POSIX, so do not add quotes.
8629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8630 ;;
8631 esac |
8632 sort
8633 ) |
8634 sed '
8635 /^ac_cv_env_/b end
8636 t clear
8637 :clear
8638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8639 t end
8640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8641 :end' >>confcache
8642 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8643 if test -w "$cache_file"; then
8644 if test "x$cache_file" != "x/dev/null"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8646 $as_echo "$as_me: updating cache $cache_file" >&6;}
8647 if test ! -f "$cache_file" || test -h "$cache_file"; then
8648 cat confcache >"$cache_file"
8649 else
8650 case $cache_file in #(
8651 */* | ?:*)
8652 mv -f confcache "$cache_file"$$ &&
8653 mv -f "$cache_file"$$ "$cache_file" ;; #(
8654 *)
8655 mv -f confcache "$cache_file" ;;
8656 esac
8657 fi
8658 fi
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8661 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8662 fi
8663 fi
8664 rm -f confcache
8665
8666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8667 # Let make expand exec_prefix.
8668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8669
8670 DEFS=-DHAVE_CONFIG_H
8671
8672 ac_libobjs=
8673 ac_ltlibobjs=
8674 U=
8675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8676 # 1. Remove the extension, and $U if already installed.
8677 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8678 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8679 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8680 # will be set to the directory where LIBOBJS objects are built.
8681 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8682 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8683 done
8684 LIBOBJS=$ac_libobjs
8685
8686 LTLIBOBJS=$ac_ltlibobjs
8687
8688
8689 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8690 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
8691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8692 fi
8693
8694 : "${CONFIG_STATUS=./config.status}"
8695 ac_write_fail=0
8696 ac_clean_files_save=$ac_clean_files
8697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8700 as_write_fail=0
8701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8702 #! $SHELL
8703 # Generated by $as_me.
8704 # Run this file to recreate the current configuration.
8705 # Compiler output produced by configure, useful for debugging
8706 # configure, is in config.log if it exists.
8707
8708 debug=false
8709 ac_cs_recheck=false
8710 ac_cs_silent=false
8711
8712 SHELL=\${CONFIG_SHELL-$SHELL}
8713 export SHELL
8714 _ASEOF
8715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8716 ## -------------------- ##
8717 ## M4sh Initialization. ##
8718 ## -------------------- ##
8719
8720 # Be more Bourne compatible
8721 DUALCASE=1; export DUALCASE # for MKS sh
8722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8723 emulate sh
8724 NULLCMD=:
8725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8726 # is contrary to our usage. Disable this feature.
8727 alias -g '${1+"$@"}'='"$@"'
8728 setopt NO_GLOB_SUBST
8729 else
8730 case `(set -o) 2>/dev/null` in #(
8731 *posix*) :
8732 set -o posix ;; #(
8733 *) :
8734 ;;
8735 esac
8736 fi
8737
8738
8739 as_nl='
8740 '
8741 export as_nl
8742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8743 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8746 # Prefer a ksh shell builtin over an external printf program on Solaris,
8747 # but without wasting forks for bash or zsh.
8748 if test -z "$BASH_VERSION$ZSH_VERSION" \
8749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8750 as_echo='print -r --'
8751 as_echo_n='print -rn --'
8752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8753 as_echo='printf %s\n'
8754 as_echo_n='printf %s'
8755 else
8756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8758 as_echo_n='/usr/ucb/echo -n'
8759 else
8760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8761 as_echo_n_body='eval
8762 arg=$1;
8763 case $arg in #(
8764 *"$as_nl"*)
8765 expr "X$arg" : "X\\(.*\\)$as_nl";
8766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8767 esac;
8768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8769 '
8770 export as_echo_n_body
8771 as_echo_n='sh -c $as_echo_n_body as_echo'
8772 fi
8773 export as_echo_body
8774 as_echo='sh -c $as_echo_body as_echo'
8775 fi
8776
8777 # The user is always right.
8778 if test "${PATH_SEPARATOR+set}" != set; then
8779 PATH_SEPARATOR=:
8780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8782 PATH_SEPARATOR=';'
8783 }
8784 fi
8785
8786
8787 # IFS
8788 # We need space, tab and new line, in precisely that order. Quoting is
8789 # there to prevent editors from complaining about space-tab.
8790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8791 # splitting by setting IFS to empty value.)
8792 IFS=" "" $as_nl"
8793
8794 # Find who we are. Look in the path if we contain no directory separator.
8795 as_myself=
8796 case $0 in #((
8797 *[\\/]* ) as_myself=$0 ;;
8798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801 IFS=$as_save_IFS
8802 test -z "$as_dir" && as_dir=.
8803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8804 done
8805 IFS=$as_save_IFS
8806
8807 ;;
8808 esac
8809 # We did not find ourselves, most probably we were run as `sh COMMAND'
8810 # in which case we are not to be found in the path.
8811 if test "x$as_myself" = x; then
8812 as_myself=$0
8813 fi
8814 if test ! -f "$as_myself"; then
8815 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8816 exit 1
8817 fi
8818
8819 # Unset variables that we do not need and which cause bugs (e.g. in
8820 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8821 # suppresses any "Segmentation fault" message there. '((' could
8822 # trigger a bug in pdksh 5.2.14.
8823 for as_var in BASH_ENV ENV MAIL MAILPATH
8824 do eval test x\${$as_var+set} = xset \
8825 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8826 done
8827 PS1='$ '
8828 PS2='> '
8829 PS4='+ '
8830
8831 # NLS nuisances.
8832 LC_ALL=C
8833 export LC_ALL
8834 LANGUAGE=C
8835 export LANGUAGE
8836
8837 # CDPATH.
8838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8839
8840
8841 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8842 # ----------------------------------------
8843 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8844 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8845 # script with STATUS, using 1 if that was 0.
8846 as_fn_error ()
8847 {
8848 as_status=$1; test $as_status -eq 0 && as_status=1
8849 if test "$4"; then
8850 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8851 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8852 fi
8853 $as_echo "$as_me: error: $2" >&2
8854 as_fn_exit $as_status
8855 } # as_fn_error
8856
8857
8858 # as_fn_set_status STATUS
8859 # -----------------------
8860 # Set $? to STATUS, without forking.
8861 as_fn_set_status ()
8862 {
8863 return $1
8864 } # as_fn_set_status
8865
8866 # as_fn_exit STATUS
8867 # -----------------
8868 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8869 as_fn_exit ()
8870 {
8871 set +e
8872 as_fn_set_status $1
8873 exit $1
8874 } # as_fn_exit
8875
8876 # as_fn_unset VAR
8877 # ---------------
8878 # Portably unset VAR.
8879 as_fn_unset ()
8880 {
8881 { eval $1=; unset $1;}
8882 }
8883 as_unset=as_fn_unset
8884 # as_fn_append VAR VALUE
8885 # ----------------------
8886 # Append the text in VALUE to the end of the definition contained in VAR. Take
8887 # advantage of any shell optimizations that allow amortized linear growth over
8888 # repeated appends, instead of the typical quadratic growth present in naive
8889 # implementations.
8890 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8891 eval 'as_fn_append ()
8892 {
8893 eval $1+=\$2
8894 }'
8895 else
8896 as_fn_append ()
8897 {
8898 eval $1=\$$1\$2
8899 }
8900 fi # as_fn_append
8901
8902 # as_fn_arith ARG...
8903 # ------------------
8904 # Perform arithmetic evaluation on the ARGs, and store the result in the
8905 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8906 # must be portable across $(()) and expr.
8907 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8908 eval 'as_fn_arith ()
8909 {
8910 as_val=$(( $* ))
8911 }'
8912 else
8913 as_fn_arith ()
8914 {
8915 as_val=`expr "$@" || test $? -eq 1`
8916 }
8917 fi # as_fn_arith
8918
8919
8920 if expr a : '\(a\)' >/dev/null 2>&1 &&
8921 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8922 as_expr=expr
8923 else
8924 as_expr=false
8925 fi
8926
8927 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8928 as_basename=basename
8929 else
8930 as_basename=false
8931 fi
8932
8933 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8934 as_dirname=dirname
8935 else
8936 as_dirname=false
8937 fi
8938
8939 as_me=`$as_basename -- "$0" ||
8940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8941 X"$0" : 'X\(//\)$' \| \
8942 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8943 $as_echo X/"$0" |
8944 sed '/^.*\/\([^/][^/]*\)\/*$/{
8945 s//\1/
8946 q
8947 }
8948 /^X\/\(\/\/\)$/{
8949 s//\1/
8950 q
8951 }
8952 /^X\/\(\/\).*/{
8953 s//\1/
8954 q
8955 }
8956 s/.*/./; q'`
8957
8958 # Avoid depending upon Character Ranges.
8959 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8960 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8961 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8962 as_cr_digits='0123456789'
8963 as_cr_alnum=$as_cr_Letters$as_cr_digits
8964
8965 ECHO_C= ECHO_N= ECHO_T=
8966 case `echo -n x` in #(((((
8967 -n*)
8968 case `echo 'xy\c'` in
8969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8970 xy) ECHO_C='\c';;
8971 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8972 ECHO_T=' ';;
8973 esac;;
8974 *)
8975 ECHO_N='-n';;
8976 esac
8977
8978 rm -f conf$$ conf$$.exe conf$$.file
8979 if test -d conf$$.dir; then
8980 rm -f conf$$.dir/conf$$.file
8981 else
8982 rm -f conf$$.dir
8983 mkdir conf$$.dir 2>/dev/null
8984 fi
8985 if (echo >conf$$.file) 2>/dev/null; then
8986 if ln -s conf$$.file conf$$ 2>/dev/null; then
8987 as_ln_s='ln -s'
8988 # ... but there are two gotchas:
8989 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8990 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8991 # In both cases, we have to default to `cp -pR'.
8992 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8993 as_ln_s='cp -pR'
8994 elif ln conf$$.file conf$$ 2>/dev/null; then
8995 as_ln_s=ln
8996 else
8997 as_ln_s='cp -pR'
8998 fi
8999 else
9000 as_ln_s='cp -pR'
9001 fi
9002 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9003 rmdir conf$$.dir 2>/dev/null
9004
9005
9006 # as_fn_mkdir_p
9007 # -------------
9008 # Create "$as_dir" as a directory, including parents if necessary.
9009 as_fn_mkdir_p ()
9010 {
9011
9012 case $as_dir in #(
9013 -*) as_dir=./$as_dir;;
9014 esac
9015 test -d "$as_dir" || eval $as_mkdir_p || {
9016 as_dirs=
9017 while :; do
9018 case $as_dir in #(
9019 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9020 *) as_qdir=$as_dir;;
9021 esac
9022 as_dirs="'$as_qdir' $as_dirs"
9023 as_dir=`$as_dirname -- "$as_dir" ||
9024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9025 X"$as_dir" : 'X\(//\)[^/]' \| \
9026 X"$as_dir" : 'X\(//\)$' \| \
9027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9028 $as_echo X"$as_dir" |
9029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9030 s//\1/
9031 q
9032 }
9033 /^X\(\/\/\)[^/].*/{
9034 s//\1/
9035 q
9036 }
9037 /^X\(\/\/\)$/{
9038 s//\1/
9039 q
9040 }
9041 /^X\(\/\).*/{
9042 s//\1/
9043 q
9044 }
9045 s/.*/./; q'`
9046 test -d "$as_dir" && break
9047 done
9048 test -z "$as_dirs" || eval "mkdir $as_dirs"
9049 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9050
9051
9052 } # as_fn_mkdir_p
9053 if mkdir -p . 2>/dev/null; then
9054 as_mkdir_p='mkdir -p "$as_dir"'
9055 else
9056 test -d ./-p && rmdir ./-p
9057 as_mkdir_p=false
9058 fi
9059
9060
9061 # as_fn_executable_p FILE
9062 # -----------------------
9063 # Test if FILE is an executable regular file.
9064 as_fn_executable_p ()
9065 {
9066 test -f "$1" && test -x "$1"
9067 } # as_fn_executable_p
9068 as_test_x='test -x'
9069 as_executable_p=as_fn_executable_p
9070
9071 # Sed expression to map a string onto a valid CPP name.
9072 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9073
9074 # Sed expression to map a string onto a valid variable name.
9075 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9076
9077
9078 exec 6>&1
9079 ## ----------------------------------- ##
9080 ## Main body of $CONFIG_STATUS script. ##
9081 ## ----------------------------------- ##
9082 _ASEOF
9083 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9084
9085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9086 # Save the log message, to keep $0 and so on meaningful, and to
9087 # report actual input values of CONFIG_FILES etc. instead of their
9088 # values after options handling.
9089 ac_log="
9090 This file was extended by $as_me, which was
9091 generated by GNU Autoconf 2.69. Invocation command line was
9092
9093 CONFIG_FILES = $CONFIG_FILES
9094 CONFIG_HEADERS = $CONFIG_HEADERS
9095 CONFIG_LINKS = $CONFIG_LINKS
9096 CONFIG_COMMANDS = $CONFIG_COMMANDS
9097 $ $0 $@
9098
9099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9100 "
9101
9102 _ACEOF
9103
9104 case $ac_config_files in *"
9105 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9106 esac
9107
9108 case $ac_config_headers in *"
9109 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9110 esac
9111
9112
9113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9114 # Files that config.status was made for.
9115 config_files="$ac_config_files"
9116 config_headers="$ac_config_headers"
9117 config_commands="$ac_config_commands"
9118
9119 _ACEOF
9120
9121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9122 ac_cs_usage="\
9123 \`$as_me' instantiates files and other configuration actions
9124 from templates according to the current configuration. Unless the files
9125 and actions are specified as TAGs, all are instantiated by default.
9126
9127 Usage: $0 [OPTION]... [TAG]...
9128
9129 -h, --help print this help, then exit
9130 -V, --version print version number and configuration settings, then exit
9131 --config print configuration, then exit
9132 -q, --quiet, --silent
9133 do not print progress messages
9134 -d, --debug don't remove temporary files
9135 --recheck update $as_me by reconfiguring in the same conditions
9136 --file=FILE[:TEMPLATE]
9137 instantiate the configuration file FILE
9138 --header=FILE[:TEMPLATE]
9139 instantiate the configuration header FILE
9140
9141 Configuration files:
9142 $config_files
9143
9144 Configuration headers:
9145 $config_headers
9146
9147 Configuration commands:
9148 $config_commands
9149
9150 Report bugs to the package provider."
9151
9152 _ACEOF
9153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9154 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9155 ac_cs_version="\\
9156 config.status
9157 configured by $0, generated by GNU Autoconf 2.69,
9158 with options \\"\$ac_cs_config\\"
9159
9160 Copyright (C) 2012 Free Software Foundation, Inc.
9161 This config.status script is free software; the Free Software Foundation
9162 gives unlimited permission to copy, distribute and modify it."
9163
9164 ac_pwd='$ac_pwd'
9165 srcdir='$srcdir'
9166 INSTALL='$INSTALL'
9167 test -n "\$AWK" || AWK=awk
9168 _ACEOF
9169
9170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9171 # The default lists apply if the user does not specify any file.
9172 ac_need_defaults=:
9173 while test $# != 0
9174 do
9175 case $1 in
9176 --*=?*)
9177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9179 ac_shift=:
9180 ;;
9181 --*=)
9182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9183 ac_optarg=
9184 ac_shift=:
9185 ;;
9186 *)
9187 ac_option=$1
9188 ac_optarg=$2
9189 ac_shift=shift
9190 ;;
9191 esac
9192
9193 case $ac_option in
9194 # Handling of the options.
9195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9196 ac_cs_recheck=: ;;
9197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9198 $as_echo "$ac_cs_version"; exit ;;
9199 --config | --confi | --conf | --con | --co | --c )
9200 $as_echo "$ac_cs_config"; exit ;;
9201 --debug | --debu | --deb | --de | --d | -d )
9202 debug=: ;;
9203 --file | --fil | --fi | --f )
9204 $ac_shift
9205 case $ac_optarg in
9206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9207 '') as_fn_error $? "missing file argument" ;;
9208 esac
9209 as_fn_append CONFIG_FILES " '$ac_optarg'"
9210 ac_need_defaults=false;;
9211 --header | --heade | --head | --hea )
9212 $ac_shift
9213 case $ac_optarg in
9214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9215 esac
9216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9217 ac_need_defaults=false;;
9218 --he | --h)
9219 # Conflict between --help and --header
9220 as_fn_error $? "ambiguous option: \`$1'
9221 Try \`$0 --help' for more information.";;
9222 --help | --hel | -h )
9223 $as_echo "$ac_cs_usage"; exit ;;
9224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9226 ac_cs_silent=: ;;
9227
9228 # This is an error.
9229 -*) as_fn_error $? "unrecognized option: \`$1'
9230 Try \`$0 --help' for more information." ;;
9231
9232 *) as_fn_append ac_config_targets " $1"
9233 ac_need_defaults=false ;;
9234
9235 esac
9236 shift
9237 done
9238
9239 ac_configure_extra_args=
9240
9241 if $ac_cs_silent; then
9242 exec 6>/dev/null
9243 ac_configure_extra_args="$ac_configure_extra_args --silent"
9244 fi
9245
9246 _ACEOF
9247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9248 if \$ac_cs_recheck; then
9249 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9250 shift
9251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9252 CONFIG_SHELL='$SHELL'
9253 export CONFIG_SHELL
9254 exec "\$@"
9255 fi
9256
9257 _ACEOF
9258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9259 exec 5>>config.log
9260 {
9261 echo
9262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9263 ## Running $as_me. ##
9264 _ASBOX
9265 $as_echo "$ac_log"
9266 } >&5
9267
9268 _ACEOF
9269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9270 #
9271 # INIT-COMMANDS
9272 #
9273 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
9274 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
9275
9276 _ACEOF
9277
9278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9279
9280 # Handling of arguments.
9281 for ac_config_target in $ac_config_targets
9282 do
9283 case $ac_config_target in
9284 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9285 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
9286 "gdbdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbdepdir" ;;
9287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9288
9289 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9290 esac
9291 done
9292
9293
9294 # If the user did not use the arguments to specify the items to instantiate,
9295 # then the envvar interface is used. Set only those that are not.
9296 # We use the long form for the default assignment because of an extremely
9297 # bizarre bug on SunOS 4.1.3.
9298 if $ac_need_defaults; then
9299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9301 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9302 fi
9303
9304 # Have a temporary directory for convenience. Make it in the build tree
9305 # simply because there is no reason against having it here, and in addition,
9306 # creating and moving files from /tmp can sometimes cause problems.
9307 # Hook for its removal unless debugging.
9308 # Note that there is a small window in which the directory will not be cleaned:
9309 # after its creation but before its name has been assigned to `$tmp'.
9310 $debug ||
9311 {
9312 tmp= ac_tmp=
9313 trap 'exit_status=$?
9314 : "${ac_tmp:=$tmp}"
9315 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9316 ' 0
9317 trap 'as_fn_exit 1' 1 2 13 15
9318 }
9319 # Create a (secure) tmp directory for tmp files.
9320
9321 {
9322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9323 test -d "$tmp"
9324 } ||
9325 {
9326 tmp=./conf$$-$RANDOM
9327 (umask 077 && mkdir "$tmp")
9328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9329 ac_tmp=$tmp
9330
9331 # Set up the scripts for CONFIG_FILES section.
9332 # No need to generate them if there are no CONFIG_FILES.
9333 # This happens for instance with `./config.status config.h'.
9334 if test -n "$CONFIG_FILES"; then
9335
9336
9337 ac_cr=`echo X | tr X '\015'`
9338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9339 # But we know of no other shell where ac_cr would be empty at this
9340 # point, so we can use a bashism as a fallback.
9341 if test "x$ac_cr" = x; then
9342 eval ac_cr=\$\'\\r\'
9343 fi
9344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9346 ac_cs_awk_cr='\\r'
9347 else
9348 ac_cs_awk_cr=$ac_cr
9349 fi
9350
9351 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9352 _ACEOF
9353
9354
9355 {
9356 echo "cat >conf$$subs.awk <<_ACEOF" &&
9357 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9358 echo "_ACEOF"
9359 } >conf$$subs.sh ||
9360 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9362 ac_delim='%!_!# '
9363 for ac_last_try in false false false false false :; do
9364 . ./conf$$subs.sh ||
9365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9366
9367 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9368 if test $ac_delim_n = $ac_delim_num; then
9369 break
9370 elif $ac_last_try; then
9371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9372 else
9373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9374 fi
9375 done
9376 rm -f conf$$subs.sh
9377
9378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9379 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9380 _ACEOF
9381 sed -n '
9382 h
9383 s/^/S["/; s/!.*/"]=/
9384 p
9385 g
9386 s/^[^!]*!//
9387 :repl
9388 t repl
9389 s/'"$ac_delim"'$//
9390 t delim
9391 :nl
9392 h
9393 s/\(.\{148\}\)..*/\1/
9394 t more1
9395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9396 p
9397 n
9398 b repl
9399 :more1
9400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9401 p
9402 g
9403 s/.\{148\}//
9404 t nl
9405 :delim
9406 h
9407 s/\(.\{148\}\)..*/\1/
9408 t more2
9409 s/["\\]/\\&/g; s/^/"/; s/$/"/
9410 p
9411 b
9412 :more2
9413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9414 p
9415 g
9416 s/.\{148\}//
9417 t delim
9418 ' <conf$$subs.awk | sed '
9419 /^[^""]/{
9420 N
9421 s/\n//
9422 }
9423 ' >>$CONFIG_STATUS || ac_write_fail=1
9424 rm -f conf$$subs.awk
9425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9426 _ACAWK
9427 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9428 for (key in S) S_is_set[key] = 1
9429 FS = "\a"
9430
9431 }
9432 {
9433 line = $ 0
9434 nfields = split(line, field, "@")
9435 substed = 0
9436 len = length(field[1])
9437 for (i = 2; i < nfields; i++) {
9438 key = field[i]
9439 keylen = length(key)
9440 if (S_is_set[key]) {
9441 value = S[key]
9442 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9443 len += length(value) + length(field[++i])
9444 substed = 1
9445 } else
9446 len += 1 + keylen
9447 }
9448
9449 print line
9450 }
9451
9452 _ACAWK
9453 _ACEOF
9454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9456 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9457 else
9458 cat
9459 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9460 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9461 _ACEOF
9462
9463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9465 # trailing colons and then remove the whole line if VPATH becomes empty
9466 # (actually we leave an empty line to preserve line numbers).
9467 if test "x$srcdir" = x.; then
9468 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9469 h
9470 s///
9471 s/^/:/
9472 s/[ ]*$/:/
9473 s/:\$(srcdir):/:/g
9474 s/:\${srcdir}:/:/g
9475 s/:@srcdir@:/:/g
9476 s/^:*//
9477 s/:*$//
9478 x
9479 s/\(=[ ]*\).*/\1/
9480 G
9481 s/\n//
9482 s/^[^=]*=[ ]*$//
9483 }'
9484 fi
9485
9486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9487 fi # test -n "$CONFIG_FILES"
9488
9489 # Set up the scripts for CONFIG_HEADERS section.
9490 # No need to generate them if there are no CONFIG_HEADERS.
9491 # This happens for instance with `./config.status Makefile'.
9492 if test -n "$CONFIG_HEADERS"; then
9493 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9494 BEGIN {
9495 _ACEOF
9496
9497 # Transform confdefs.h into an awk script `defines.awk', embedded as
9498 # here-document in config.status, that substitutes the proper values into
9499 # config.h.in to produce config.h.
9500
9501 # Create a delimiter string that does not exist in confdefs.h, to ease
9502 # handling of long lines.
9503 ac_delim='%!_!# '
9504 for ac_last_try in false false :; do
9505 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9506 if test -z "$ac_tt"; then
9507 break
9508 elif $ac_last_try; then
9509 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9510 else
9511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9512 fi
9513 done
9514
9515 # For the awk script, D is an array of macro values keyed by name,
9516 # likewise P contains macro parameters if any. Preserve backslash
9517 # newline sequences.
9518
9519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9520 sed -n '
9521 s/.\{148\}/&'"$ac_delim"'/g
9522 t rset
9523 :rset
9524 s/^[ ]*#[ ]*define[ ][ ]*/ /
9525 t def
9526 d
9527 :def
9528 s/\\$//
9529 t bsnl
9530 s/["\\]/\\&/g
9531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9532 D["\1"]=" \3"/p
9533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9534 d
9535 :bsnl
9536 s/["\\]/\\&/g
9537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9538 D["\1"]=" \3\\\\\\n"\\/p
9539 t cont
9540 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9541 t cont
9542 d
9543 :cont
9544 n
9545 s/.\{148\}/&'"$ac_delim"'/g
9546 t clear
9547 :clear
9548 s/\\$//
9549 t bsnlc
9550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9551 d
9552 :bsnlc
9553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9554 b cont
9555 ' <confdefs.h | sed '
9556 s/'"$ac_delim"'/"\\\
9557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9558
9559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9560 for (key in D) D_is_set[key] = 1
9561 FS = "\a"
9562 }
9563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9564 line = \$ 0
9565 split(line, arg, " ")
9566 if (arg[1] == "#") {
9567 defundef = arg[2]
9568 mac1 = arg[3]
9569 } else {
9570 defundef = substr(arg[1], 2)
9571 mac1 = arg[2]
9572 }
9573 split(mac1, mac2, "(") #)
9574 macro = mac2[1]
9575 prefix = substr(line, 1, index(line, defundef) - 1)
9576 if (D_is_set[macro]) {
9577 # Preserve the white space surrounding the "#".
9578 print prefix "define", macro P[macro] D[macro]
9579 next
9580 } else {
9581 # Replace #undef with comments. This is necessary, for example,
9582 # in the case of _POSIX_SOURCE, which is predefined and required
9583 # on some systems where configure will not decide to define it.
9584 if (defundef == "undef") {
9585 print "/*", prefix defundef, macro, "*/"
9586 next
9587 }
9588 }
9589 }
9590 { print }
9591 _ACAWK
9592 _ACEOF
9593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9594 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9595 fi # test -n "$CONFIG_HEADERS"
9596
9597
9598 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9599 shift
9600 for ac_tag
9601 do
9602 case $ac_tag in
9603 :[FHLC]) ac_mode=$ac_tag; continue;;
9604 esac
9605 case $ac_mode$ac_tag in
9606 :[FHL]*:*);;
9607 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9608 :[FH]-) ac_tag=-:-;;
9609 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9610 esac
9611 ac_save_IFS=$IFS
9612 IFS=:
9613 set x $ac_tag
9614 IFS=$ac_save_IFS
9615 shift
9616 ac_file=$1
9617 shift
9618
9619 case $ac_mode in
9620 :L) ac_source=$1;;
9621 :[FH])
9622 ac_file_inputs=
9623 for ac_f
9624 do
9625 case $ac_f in
9626 -) ac_f="$ac_tmp/stdin";;
9627 *) # Look for the file first in the build tree, then in the source tree
9628 # (if the path is not absolute). The absolute path cannot be DOS-style,
9629 # because $ac_f cannot contain `:'.
9630 test -f "$ac_f" ||
9631 case $ac_f in
9632 [\\/$]*) false;;
9633 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9634 esac ||
9635 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9636 esac
9637 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9638 as_fn_append ac_file_inputs " '$ac_f'"
9639 done
9640
9641 # Let's still pretend it is `configure' which instantiates (i.e., don't
9642 # use $as_me), people would be surprised to read:
9643 # /* config.h. Generated by config.status. */
9644 configure_input='Generated from '`
9645 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9646 `' by configure.'
9647 if test x"$ac_file" != x-; then
9648 configure_input="$ac_file. $configure_input"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9650 $as_echo "$as_me: creating $ac_file" >&6;}
9651 fi
9652 # Neutralize special characters interpreted by sed in replacement strings.
9653 case $configure_input in #(
9654 *\&* | *\|* | *\\* )
9655 ac_sed_conf_input=`$as_echo "$configure_input" |
9656 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9657 *) ac_sed_conf_input=$configure_input;;
9658 esac
9659
9660 case $ac_tag in
9661 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9663 esac
9664 ;;
9665 esac
9666
9667 ac_dir=`$as_dirname -- "$ac_file" ||
9668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9669 X"$ac_file" : 'X\(//\)[^/]' \| \
9670 X"$ac_file" : 'X\(//\)$' \| \
9671 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9672 $as_echo X"$ac_file" |
9673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9674 s//\1/
9675 q
9676 }
9677 /^X\(\/\/\)[^/].*/{
9678 s//\1/
9679 q
9680 }
9681 /^X\(\/\/\)$/{
9682 s//\1/
9683 q
9684 }
9685 /^X\(\/\).*/{
9686 s//\1/
9687 q
9688 }
9689 s/.*/./; q'`
9690 as_dir="$ac_dir"; as_fn_mkdir_p
9691 ac_builddir=.
9692
9693 case "$ac_dir" in
9694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9695 *)
9696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9697 # A ".." for each directory in $ac_dir_suffix.
9698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9699 case $ac_top_builddir_sub in
9700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9702 esac ;;
9703 esac
9704 ac_abs_top_builddir=$ac_pwd
9705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9706 # for backward compatibility:
9707 ac_top_builddir=$ac_top_build_prefix
9708
9709 case $srcdir in
9710 .) # We are building in place.
9711 ac_srcdir=.
9712 ac_top_srcdir=$ac_top_builddir_sub
9713 ac_abs_top_srcdir=$ac_pwd ;;
9714 [\\/]* | ?:[\\/]* ) # Absolute name.
9715 ac_srcdir=$srcdir$ac_dir_suffix;
9716 ac_top_srcdir=$srcdir
9717 ac_abs_top_srcdir=$srcdir ;;
9718 *) # Relative name.
9719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9720 ac_top_srcdir=$ac_top_build_prefix$srcdir
9721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9722 esac
9723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9724
9725
9726 case $ac_mode in
9727 :F)
9728 #
9729 # CONFIG_FILE
9730 #
9731
9732 case $INSTALL in
9733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9735 esac
9736 _ACEOF
9737
9738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9739 # If the template does not know about datarootdir, expand it.
9740 # FIXME: This hack should be removed a few years after 2.60.
9741 ac_datarootdir_hack=; ac_datarootdir_seen=
9742 ac_sed_dataroot='
9743 /datarootdir/ {
9744 p
9745 q
9746 }
9747 /@datadir@/p
9748 /@docdir@/p
9749 /@infodir@/p
9750 /@localedir@/p
9751 /@mandir@/p'
9752 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9753 *datarootdir*) ac_datarootdir_seen=yes;;
9754 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9756 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9757 _ACEOF
9758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9759 ac_datarootdir_hack='
9760 s&@datadir@&$datadir&g
9761 s&@docdir@&$docdir&g
9762 s&@infodir@&$infodir&g
9763 s&@localedir@&$localedir&g
9764 s&@mandir@&$mandir&g
9765 s&\\\${datarootdir}&$datarootdir&g' ;;
9766 esac
9767 _ACEOF
9768
9769 # Neutralize VPATH when `$srcdir' = `.'.
9770 # Shell code in configure.ac might set extrasub.
9771 # FIXME: do we really want to maintain this feature?
9772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9773 ac_sed_extra="$ac_vpsub
9774 $extrasub
9775 _ACEOF
9776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9777 :t
9778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9779 s|@configure_input@|$ac_sed_conf_input|;t t
9780 s&@top_builddir@&$ac_top_builddir_sub&;t t
9781 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9782 s&@srcdir@&$ac_srcdir&;t t
9783 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9784 s&@top_srcdir@&$ac_top_srcdir&;t t
9785 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9786 s&@builddir@&$ac_builddir&;t t
9787 s&@abs_builddir@&$ac_abs_builddir&;t t
9788 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9789 s&@INSTALL@&$ac_INSTALL&;t t
9790 $ac_datarootdir_hack
9791 "
9792 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9793 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9794
9795 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9796 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9798 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9800 which seems to be undefined. Please make sure it is defined" >&5
9801 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9802 which seems to be undefined. Please make sure it is defined" >&2;}
9803
9804 rm -f "$ac_tmp/stdin"
9805 case $ac_file in
9806 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9807 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9808 esac \
9809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9810 ;;
9811 :H)
9812 #
9813 # CONFIG_HEADER
9814 #
9815 if test x"$ac_file" != x-; then
9816 {
9817 $as_echo "/* $configure_input */" \
9818 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9819 } >"$ac_tmp/config.h" \
9820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9821 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9823 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9824 else
9825 rm -f "$ac_file"
9826 mv "$ac_tmp/config.h" "$ac_file" \
9827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9828 fi
9829 else
9830 $as_echo "/* $configure_input */" \
9831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9832 || as_fn_error $? "could not create -" "$LINENO" 5
9833 fi
9834 ;;
9835
9836 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9837 $as_echo "$as_me: executing $ac_file commands" >&6;}
9838 ;;
9839 esac
9840
9841
9842 case $ac_file$ac_mode in
9843 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9844 "gdbdepdir":C)
9845 for subdir in ${CONFIG_SRC_SUBDIR}
9846 do
9847 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
9848 done ;;
9849 "Makefile":F) case x$CONFIG_HEADERS in
9850 xconfig.h:config.in)
9851 echo > stamp-h ;;
9852 esac
9853 ;;
9854
9855 esac
9856 done # for ac_tag
9857
9858
9859 as_fn_exit 0
9860 _ACEOF
9861 ac_clean_files=$ac_clean_files_save
9862
9863 test $ac_write_fail = 0 ||
9864 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9865
9866
9867 # configure is writing to config.log, and then calls config.status.
9868 # config.status does its own redirection, appending to config.log.
9869 # Unfortunately, on DOS this fails, as config.log is still kept open
9870 # by configure, so config.status won't be able to write to it; its
9871 # output is simply discarded. So we exec the FD to /dev/null,
9872 # effectively closing config.log, so it can be properly (re)opened and
9873 # appended to by config.status. When coming back to configure, we
9874 # need to make the FD available again.
9875 if test "$no_create" != yes; then
9876 ac_cs_success=:
9877 ac_config_status_args=
9878 test "$silent" = yes &&
9879 ac_config_status_args="$ac_config_status_args --quiet"
9880 exec 5>/dev/null
9881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9882 exec 5>>config.log
9883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9884 # would make configure fail if this is the last instruction.
9885 $ac_cs_success || as_fn_exit 1
9886 fi
9887 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9889 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9890 fi
9891