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