Automatic date update in version.in
[binutils-gdb.git] / gdbsupport / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
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='gdbsupport'
579 PACKAGE_TARNAME='gdbsupport'
580 PACKAGE_VERSION='1.0'
581 PACKAGE_STRING='gdbsupport 1.0'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="common-defs.h"
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_header_list=
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 LIBOBJS
627 WERROR_CFLAGS
628 WARN_CFLAGS
629 SELFTEST_FALSE
630 SELFTEST_TRUE
631 LTLIBIPT
632 LIBIPT
633 HAVE_LIBIPT
634 PTHREAD_CFLAGS
635 PTHREAD_LIBS
636 PTHREAD_CC
637 ax_pthread_config
638 SED
639 ALLOCA
640 CATOBJEXT
641 GENCAT
642 INSTOBJEXT
643 DATADIRNAME
644 CATALOGS
645 POSUB
646 GMSGFMT
647 XGETTEXT
648 INCINTL
649 LIBINTL_DEP
650 LIBINTL
651 USE_NLS
652 CXX_DIALECT
653 HAVE_CXX11
654 LARGEFILE_CPPFLAGS
655 EGREP
656 GREP
657 CPP
658 RANLIB
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 ac_ct_CXX
663 CXXFLAGS
664 CXX
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 am__nodep
669 AMDEPBACKSLASH
670 AMDEP_FALSE
671 AMDEP_TRUE
672 am__quote
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 AM_BACKSLASH
683 AM_DEFAULT_VERBOSITY
684 AM_DEFAULT_V
685 AM_V
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 MAINT
710 MAINTAINER_MODE_FALSE
711 MAINTAINER_MODE_TRUE
712 target_os
713 target_vendor
714 target_cpu
715 target
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_maintainer_mode
766 enable_silent_rules
767 enable_dependency_tracking
768 enable_plugins
769 enable_largefile
770 enable_threading
771 with_intel_pt
772 with_gnu_ld
773 enable_rpath
774 with_libipt_prefix
775 with_libipt_type
776 enable_unit_tests
777 enable_werror
778 enable_build_warnings
779 enable_gdb_build_warnings
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CXX
790 CXXFLAGS
791 CCC
792 CPP'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1143
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 ;;
1199
1200 esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221 do
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 --target=TARGET configure for building compilers for TARGET [HOST]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of gdbsupport 1.0:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-maintainer-mode
1413 enable make rules and dependencies not useful (and
1414 sometimes confusing) to the casual installer
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-dependency-tracking
1418 do not reject slow dependency extractors
1419 --disable-dependency-tracking
1420 speeds up one-time build
1421 --enable-plugins Enable support for plugins
1422 --disable-largefile omit support for large files
1423 --enable-threading include support for parallel processing of data
1424 (yes/no)
1425 --disable-rpath do not hardcode runtime library paths
1426 --enable-unit-tests Enable the inclusion of unit tests when compiling
1427 GDB
1428 --enable-werror treat compile warnings as errors
1429 --enable-build-warnings enable build-time compiler warnings if gcc is used
1430 --enable-gdb-build-warnings
1431 enable GDB specific build-time compiler warnings if
1432 gcc is used
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1438 --with-gnu-ld assume the C compiler uses GNU ld default=no
1439 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1440 --without-libipt-prefix don't search for libipt in includedir and libdir
1441 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1442
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1453 CPP C preprocessor
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to the package provider.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 gdbsupport configure 1.0
1522 generated by GNU Autoconf 2.69
1523
1524 Copyright (C) 2012 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562 else
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566 ac_retval=1
1567 fi
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_cxx_try_compile LINENO
1574 # ----------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_cxx_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_cxx_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_cxx_try_compile
1610
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_cpp ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_cpp
1647
1648 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651 # the include files in INCLUDES and setting the cache variable VAR
1652 # accordingly.
1653 ac_fn_c_check_header_mongrel ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if eval \${$3+:} false; then :
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 else
1666 # Is the header compilable?
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668 $as_echo_n "checking $2 usability... " >&6; }
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_header_compiler=yes
1676 else
1677 ac_header_compiler=no
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681 $as_echo "$ac_header_compiler" >&6; }
1682
1683 # Is the header present?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685 $as_echo_n "checking $2 presence... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_cpp "$LINENO"; then :
1691 ac_header_preproc=yes
1692 else
1693 ac_header_preproc=no
1694 fi
1695 rm -f conftest.err conftest.i conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697 $as_echo "$ac_header_preproc" >&6; }
1698
1699 # So? What about this header?
1700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1701 yes:no: )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ;;
1707 no:yes:* )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1711 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1715 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 ;;
1719 esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 eval "$3=\$ac_header_compiler"
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_mongrel
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_header_compile
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_link
1853
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type ()
1859 {
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 eval "$3=no"
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 int
1871 main ()
1872 {
1873 if (sizeof ($2))
1874 return 0;
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 $4
1883 int
1884 main ()
1885 {
1886 if (sizeof (($2)))
1887 return 0;
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893
1894 else
1895 eval "$3=yes"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
1906 } # ac_fn_c_check_type
1907
1908 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1909 # --------------------------------------------
1910 # Tries to find the compile-time value of EXPR in a program that includes
1911 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1912 # computed
1913 ac_fn_c_compute_int ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if test "$cross_compiling" = yes; then
1917 # Depending upon the size, compute the lo and hi bounds.
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 static int test_array [1 - 2 * !(($2) >= 0)];
1925 test_array [0] = 0;
1926 return test_array [0];
1927
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_lo=0 ac_mid=0
1934 while :; do
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1942 test_array [0] = 0;
1943 return test_array [0];
1944
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_hi=$ac_mid; break
1951 else
1952 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1953 if test $ac_lo -le $ac_mid; then
1954 ac_lo= ac_hi=
1955 break
1956 fi
1957 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1958 fi
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 done
1961 else
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) < 0)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 ac_hi=-1 ac_mid=-1
1978 while :; do
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $4
1982 int
1983 main ()
1984 {
1985 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1986 test_array [0] = 0;
1987 return test_array [0];
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_lo=$ac_mid; break
1995 else
1996 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1997 if test $ac_mid -le $ac_hi; then
1998 ac_lo= ac_hi=
1999 break
2000 fi
2001 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 done
2005 else
2006 ac_lo= ac_hi=
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 # Binary search between lo and hi bounds.
2012 while test "x$ac_lo" != "x$ac_hi"; do
2013 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 test_array [0] = 0;
2022 return test_array [0];
2023
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid
2030 else
2031 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 done
2035 case $ac_lo in #((
2036 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2037 '') ac_retval=1 ;;
2038 esac
2039 else
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $4
2043 static long int longval () { return $2; }
2044 static unsigned long int ulongval () { return $2; }
2045 #include <stdio.h>
2046 #include <stdlib.h>
2047 int
2048 main ()
2049 {
2050
2051 FILE *f = fopen ("conftest.val", "w");
2052 if (! f)
2053 return 1;
2054 if (($2) < 0)
2055 {
2056 long int i = longval ();
2057 if (i != ($2))
2058 return 1;
2059 fprintf (f, "%ld", i);
2060 }
2061 else
2062 {
2063 unsigned long int i = ulongval ();
2064 if (i != ($2))
2065 return 1;
2066 fprintf (f, "%lu", i);
2067 }
2068 /* Do not output a trailing newline, as this causes \r\n confusion
2069 on some platforms. */
2070 return ferror (f) || fclose (f) != 0;
2071
2072 ;
2073 return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_run "$LINENO"; then :
2077 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2078 else
2079 ac_retval=1
2080 fi
2081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2082 conftest.$ac_objext conftest.beam conftest.$ac_ext
2083 rm -f conftest.val
2084
2085 fi
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2088
2089 } # ac_fn_c_compute_int
2090
2091 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2092 # ---------------------------------------------
2093 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2094 # accordingly.
2095 ac_fn_c_check_decl ()
2096 {
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 as_decl_name=`echo $2|sed 's/ *(.*//'`
2099 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2101 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 $4
2108 int
2109 main ()
2110 {
2111 #ifndef $as_decl_name
2112 #ifdef __cplusplus
2113 (void) $as_decl_use;
2114 #else
2115 (void) $as_decl_name;
2116 #endif
2117 #endif
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 eval "$3=yes"
2125 else
2126 eval "$3=no"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_decl
2136
2137 # ac_fn_c_check_func LINENO FUNC VAR
2138 # ----------------------------------
2139 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2140 ac_fn_c_check_func ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2152 #define $2 innocuous_$2
2153
2154 /* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char $2 (); below.
2156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2157 <limits.h> exists even on freestanding compilers. */
2158
2159 #ifdef __STDC__
2160 # include <limits.h>
2161 #else
2162 # include <assert.h>
2163 #endif
2164
2165 #undef $2
2166
2167 /* Override any GCC internal prototype to avoid an error.
2168 Use char because int might match the return type of a GCC
2169 builtin and then its argument prototype would still apply. */
2170 #ifdef __cplusplus
2171 extern "C"
2172 #endif
2173 char $2 ();
2174 /* The GNU C library defines this for functions which it implements
2175 to always fail with ENOSYS. Some functions are actually named
2176 something starting with __ and the normal name is an alias. */
2177 #if defined __stub_$2 || defined __stub___$2
2178 choke me
2179 #endif
2180
2181 int
2182 main ()
2183 {
2184 return $2 ();
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_link "$LINENO"; then :
2190 eval "$3=yes"
2191 else
2192 eval "$3=no"
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext \
2195 conftest$ac_exeext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_func
2203
2204 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2205 # ----------------------------------------------------
2206 # Tries to find if the field MEMBER exists in type AGGR, after including
2207 # INCLUDES, setting cache variable VAR accordingly.
2208 ac_fn_c_check_member ()
2209 {
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2212 $as_echo_n "checking for $2.$3... " >&6; }
2213 if eval \${$4+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 $5
2219 int
2220 main ()
2221 {
2222 static $2 ac_aggr;
2223 if (ac_aggr.$3)
2224 return 0;
2225 ;
2226 return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$4=yes"
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $5
2235 int
2236 main ()
2237 {
2238 static $2 ac_aggr;
2239 if (sizeof ac_aggr.$3)
2240 return 0;
2241 ;
2242 return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 eval "$4=yes"
2247 else
2248 eval "$4=no"
2249 fi
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 fi
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 fi
2254 eval ac_res=\$$4
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259 } # ac_fn_c_check_member
2260
2261 # ac_fn_cxx_try_link LINENO
2262 # -------------------------
2263 # Try to link conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_cxx_try_link ()
2265 {
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 rm -f conftest.$ac_objext conftest$ac_exeext
2268 if { { ac_try="$ac_link"
2269 case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>conftest.err
2276 ac_status=$?
2277 if test -s conftest.err; then
2278 grep -v '^ *+' conftest.err >conftest.er1
2279 cat conftest.er1 >&5
2280 mv -f conftest.er1 conftest.err
2281 fi
2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2283 test $ac_status = 0; } && {
2284 test -z "$ac_cxx_werror_flag" ||
2285 test ! -s conftest.err
2286 } && test -s conftest$ac_exeext && {
2287 test "$cross_compiling" = yes ||
2288 test -x conftest$ac_exeext
2289 }; then :
2290 ac_retval=0
2291 else
2292 $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 ac_retval=1
2296 fi
2297 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2298 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2299 # interfere with the next link command; also delete a directory that is
2300 # left behind by Apple's compiler. We do this before executing the actions.
2301 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 as_fn_set_status $ac_retval
2304
2305 } # ac_fn_cxx_try_link
2306
2307 # ac_fn_cxx_check_func LINENO FUNC VAR
2308 # ------------------------------------
2309 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2310 ac_fn_cxx_check_func ()
2311 {
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2314 $as_echo_n "checking for $2... " >&6; }
2315 if eval \${$3+:} false; then :
2316 $as_echo_n "(cached) " >&6
2317 else
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2320 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2322 #define $2 innocuous_$2
2323
2324 /* System header to define __stub macros and hopefully few prototypes,
2325 which can conflict with char $2 (); below.
2326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2327 <limits.h> exists even on freestanding compilers. */
2328
2329 #ifdef __STDC__
2330 # include <limits.h>
2331 #else
2332 # include <assert.h>
2333 #endif
2334
2335 #undef $2
2336
2337 /* Override any GCC internal prototype to avoid an error.
2338 Use char because int might match the return type of a GCC
2339 builtin and then its argument prototype would still apply. */
2340 #ifdef __cplusplus
2341 extern "C"
2342 #endif
2343 char $2 ();
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined __stub_$2 || defined __stub___$2
2348 choke me
2349 #endif
2350
2351 int
2352 main ()
2353 {
2354 return $2 ();
2355 ;
2356 return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_cxx_try_link "$LINENO"; then :
2360 eval "$3=yes"
2361 else
2362 eval "$3=no"
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext \
2365 conftest$ac_exeext conftest.$ac_ext
2366 fi
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371
2372 } # ac_fn_cxx_check_func
2373 cat >config.log <<_ACEOF
2374 This file contains any messages produced by compilers while
2375 running configure, to aid debugging if configure makes a mistake.
2376
2377 It was created by gdbsupport $as_me 1.0, which was
2378 generated by GNU Autoconf 2.69. Invocation command line was
2379
2380 $ $0 $@
2381
2382 _ACEOF
2383 exec 5>>config.log
2384 {
2385 cat <<_ASUNAME
2386 ## --------- ##
2387 ## Platform. ##
2388 ## --------- ##
2389
2390 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2391 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2392 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2393 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2394 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2395
2396 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2397 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2398
2399 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2400 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2401 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2402 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2403 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2404 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2405 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2406
2407 _ASUNAME
2408
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 $as_echo "PATH: $as_dir"
2415 done
2416 IFS=$as_save_IFS
2417
2418 } >&5
2419
2420 cat >&5 <<_ACEOF
2421
2422
2423 ## ----------- ##
2424 ## Core tests. ##
2425 ## ----------- ##
2426
2427 _ACEOF
2428
2429
2430 # Keep a trace of the command line.
2431 # Strip out --no-create and --no-recursion so they do not pile up.
2432 # Strip out --silent because we don't want to record it for future runs.
2433 # Also quote any args containing shell meta-characters.
2434 # Make two passes to allow for proper duplicate-argument suppression.
2435 ac_configure_args=
2436 ac_configure_args0=
2437 ac_configure_args1=
2438 ac_must_keep_next=false
2439 for ac_pass in 1 2
2440 do
2441 for ac_arg
2442 do
2443 case $ac_arg in
2444 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2446 | -silent | --silent | --silen | --sile | --sil)
2447 continue ;;
2448 *\'*)
2449 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 esac
2451 case $ac_pass in
2452 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2453 2)
2454 as_fn_append ac_configure_args1 " '$ac_arg'"
2455 if test $ac_must_keep_next = true; then
2456 ac_must_keep_next=false # Got value, back to normal.
2457 else
2458 case $ac_arg in
2459 *=* | --config-cache | -C | -disable-* | --disable-* \
2460 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2461 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2462 | -with-* | --with-* | -without-* | --without-* | --x)
2463 case "$ac_configure_args0 " in
2464 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2465 esac
2466 ;;
2467 -* ) ac_must_keep_next=true ;;
2468 esac
2469 fi
2470 as_fn_append ac_configure_args " '$ac_arg'"
2471 ;;
2472 esac
2473 done
2474 done
2475 { ac_configure_args0=; unset ac_configure_args0;}
2476 { ac_configure_args1=; unset ac_configure_args1;}
2477
2478 # When interrupted or exit'd, cleanup temporary files, and complete
2479 # config.log. We remove comments because anyway the quotes in there
2480 # would cause problems or look ugly.
2481 # WARNING: Use '\'' to represent an apostrophe within the trap.
2482 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2483 trap 'exit_status=$?
2484 # Save into config.log some information that might help in debugging.
2485 {
2486 echo
2487
2488 $as_echo "## ---------------- ##
2489 ## Cache variables. ##
2490 ## ---------------- ##"
2491 echo
2492 # The following way of writing the cache mishandles newlines in values,
2493 (
2494 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in #(
2497 *${as_nl}*)
2498 case $ac_var in #(
2499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2500 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2501 esac
2502 case $ac_var in #(
2503 _ | IFS | as_nl) ;; #(
2504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2505 *) { eval $ac_var=; unset $ac_var;} ;;
2506 esac ;;
2507 esac
2508 done
2509 (set) 2>&1 |
2510 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2511 *${as_nl}ac_space=\ *)
2512 sed -n \
2513 "s/'\''/'\''\\\\'\'''\''/g;
2514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2515 ;; #(
2516 *)
2517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 ;;
2519 esac |
2520 sort
2521 )
2522 echo
2523
2524 $as_echo "## ----------------- ##
2525 ## Output variables. ##
2526 ## ----------------- ##"
2527 echo
2528 for ac_var in $ac_subst_vars
2529 do
2530 eval ac_val=\$$ac_var
2531 case $ac_val in
2532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 esac
2534 $as_echo "$ac_var='\''$ac_val'\''"
2535 done | sort
2536 echo
2537
2538 if test -n "$ac_subst_files"; then
2539 $as_echo "## ------------------- ##
2540 ## File substitutions. ##
2541 ## ------------------- ##"
2542 echo
2543 for ac_var in $ac_subst_files
2544 do
2545 eval ac_val=\$$ac_var
2546 case $ac_val in
2547 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 esac
2549 $as_echo "$ac_var='\''$ac_val'\''"
2550 done | sort
2551 echo
2552 fi
2553
2554 if test -s confdefs.h; then
2555 $as_echo "## ----------- ##
2556 ## confdefs.h. ##
2557 ## ----------- ##"
2558 echo
2559 cat confdefs.h
2560 echo
2561 fi
2562 test "$ac_signal" != 0 &&
2563 $as_echo "$as_me: caught signal $ac_signal"
2564 $as_echo "$as_me: exit $exit_status"
2565 } >&5
2566 rm -f core *.core core.conftest.* &&
2567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568 exit $exit_status
2569 ' 0
2570 for ac_signal in 1 2 13 15; do
2571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2572 done
2573 ac_signal=0
2574
2575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2576 rm -f -r conftest* confdefs.h
2577
2578 $as_echo "/* confdefs.h */" > confdefs.h
2579
2580 # Predefined preprocessor variables.
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_NAME "$PACKAGE_NAME"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_STRING "$PACKAGE_STRING"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_URL "$PACKAGE_URL"
2604 _ACEOF
2605
2606
2607 # Let the site file select an alternate cache file if it wants to.
2608 # Prefer an explicitly selected file to automatically selected ones.
2609 ac_site_file1=NONE
2610 ac_site_file2=NONE
2611 if test -n "$CONFIG_SITE"; then
2612 # We do not want a PATH search for config.site.
2613 case $CONFIG_SITE in #((
2614 -*) ac_site_file1=./$CONFIG_SITE;;
2615 */*) ac_site_file1=$CONFIG_SITE;;
2616 *) ac_site_file1=./$CONFIG_SITE;;
2617 esac
2618 elif test "x$prefix" != xNONE; then
2619 ac_site_file1=$prefix/share/config.site
2620 ac_site_file2=$prefix/etc/config.site
2621 else
2622 ac_site_file1=$ac_default_prefix/share/config.site
2623 ac_site_file2=$ac_default_prefix/etc/config.site
2624 fi
2625 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2626 do
2627 test "x$ac_site_file" = xNONE && continue
2628 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2632 . "$ac_site_file" \
2633 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 as_fn_error $? "failed to load site script $ac_site_file
2636 See \`config.log' for more details" "$LINENO" 5; }
2637 fi
2638 done
2639
2640 if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645 $as_echo "$as_me: loading cache $cache_file" >&6;}
2646 case $cache_file in
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2649 esac
2650 fi
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653 $as_echo "$as_me: creating cache $cache_file" >&6;}
2654 >$cache_file
2655 fi
2656
2657 as_fn_append ac_header_list " stdlib.h"
2658 as_fn_append ac_header_list " unistd.h"
2659 as_fn_append ac_header_list " sys/param.h"
2660 # Check that the precious variables saved in the cache have kept the same
2661 # value.
2662 ac_cache_corrupted=false
2663 for ac_var in $ac_precious_vars; do
2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665 eval ac_new_set=\$ac_env_${ac_var}_set
2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667 eval ac_new_val=\$ac_env_${ac_var}_value
2668 case $ac_old_set,$ac_new_set in
2669 set,)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2671 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,set)
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2675 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,);;
2678 *)
2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2685 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2686 ac_cache_corrupted=:
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2693 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2695 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2696 fi;;
2697 esac
2698 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then
2700 case $ac_new_val in
2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;;
2703 esac
2704 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 esac
2708 fi
2709 done
2710 if $ac_cache_corrupted; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2715 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2716 fi
2717 ## -------------------- ##
2718 ## Main body of script. ##
2719 ## -------------------- ##
2720
2721 ac_ext=c
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728
2729
2730
2731
2732 ac_config_headers="$ac_config_headers config.h:config.in"
2733
2734
2735 # Set build, build_cpu, build_vendor and build_os.
2736 ac_aux_dir=
2737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2738 if test -f "$ac_dir/install-sh"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/install-sh -c"
2741 break
2742 elif test -f "$ac_dir/install.sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install.sh -c"
2745 break
2746 elif test -f "$ac_dir/shtool"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/shtool install -c"
2749 break
2750 fi
2751 done
2752 if test -z "$ac_aux_dir"; then
2753 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2754 fi
2755
2756 # These three variables are undocumented and unsupported,
2757 # and are intended to be withdrawn in a future Autoconf release.
2758 # They can cause serious problems if a builder's source tree is in a directory
2759 # whose full name contains unusual characters.
2760 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2763
2764
2765 # Make sure we can run config.sub.
2766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770 $as_echo_n "checking build system type... " >&6; }
2771 if ${ac_cv_build+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 ac_build_alias=$build_alias
2775 test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777 test "x$ac_build_alias" = x &&
2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784 $as_echo "$ac_cv_build" >&6; }
2785 case $ac_cv_build in
2786 *-*-*) ;;
2787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 esac
2789 build=$ac_cv_build
2790 ac_save_IFS=$IFS; IFS='-'
2791 set x $ac_cv_build
2792 shift
2793 build_cpu=$1
2794 build_vendor=$2
2795 shift; shift
2796 # Remember, the first character of IFS is used to create $*,
2797 # except with old shells:
2798 build_os=$*
2799 IFS=$ac_save_IFS
2800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
2803
2804 # Set host, host_cpu, host_vendor, and host_os.
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2806 $as_echo_n "checking host system type... " >&6; }
2807 if ${ac_cv_host+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test "x$host_alias" = x; then
2811 ac_cv_host=$ac_cv_build
2812 else
2813 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2814 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2815 fi
2816
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2819 $as_echo "$ac_cv_host" >&6; }
2820 case $ac_cv_host in
2821 *-*-*) ;;
2822 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2823 esac
2824 host=$ac_cv_host
2825 ac_save_IFS=$IFS; IFS='-'
2826 set x $ac_cv_host
2827 shift
2828 host_cpu=$1
2829 host_vendor=$2
2830 shift; shift
2831 # Remember, the first character of IFS is used to create $*,
2832 # except with old shells:
2833 host_os=$*
2834 IFS=$ac_save_IFS
2835 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2836
2837
2838
2839 # Set target, target_cpu, target_vendor, and target_os.
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2841 $as_echo_n "checking target system type... " >&6; }
2842 if ${ac_cv_target+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test "x$target_alias" = x; then
2846 ac_cv_target=$ac_cv_host
2847 else
2848 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2849 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2850 fi
2851
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2854 $as_echo "$ac_cv_target" >&6; }
2855 case $ac_cv_target in
2856 *-*-*) ;;
2857 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2858 esac
2859 target=$ac_cv_target
2860 ac_save_IFS=$IFS; IFS='-'
2861 set x $ac_cv_target
2862 shift
2863 target_cpu=$1
2864 target_vendor=$2
2865 shift; shift
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2868 target_os=$*
2869 IFS=$ac_save_IFS
2870 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2871
2872
2873 # The aliases save the names the user supplied, while $host etc.
2874 # will get canonicalized.
2875 test -n "$target_alias" &&
2876 test "$program_prefix$program_suffix$program_transform_name" = \
2877 NONENONEs,x,x, &&
2878 program_prefix=${target_alias}-
2879
2880
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2882 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2883 # Check whether --enable-maintainer-mode was given.
2884 if test "${enable_maintainer_mode+set}" = set; then :
2885 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2886 else
2887 USE_MAINTAINER_MODE=no
2888 fi
2889
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2891 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2892 if test $USE_MAINTAINER_MODE = yes; then
2893 MAINTAINER_MODE_TRUE=
2894 MAINTAINER_MODE_FALSE='#'
2895 else
2896 MAINTAINER_MODE_TRUE='#'
2897 MAINTAINER_MODE_FALSE=
2898 fi
2899
2900 MAINT=$MAINTAINER_MODE_TRUE
2901
2902
2903 ac_aux_dir=
2904 for ac_dir in .. "$srcdir"/..; do
2905 if test -f "$ac_dir/install-sh"; then
2906 ac_aux_dir=$ac_dir
2907 ac_install_sh="$ac_aux_dir/install-sh -c"
2908 break
2909 elif test -f "$ac_dir/install.sh"; then
2910 ac_aux_dir=$ac_dir
2911 ac_install_sh="$ac_aux_dir/install.sh -c"
2912 break
2913 elif test -f "$ac_dir/shtool"; then
2914 ac_aux_dir=$ac_dir
2915 ac_install_sh="$ac_aux_dir/shtool install -c"
2916 break
2917 fi
2918 done
2919 if test -z "$ac_aux_dir"; then
2920 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2921 fi
2922
2923 # These three variables are undocumented and unsupported,
2924 # and are intended to be withdrawn in a future Autoconf release.
2925 # They can cause serious problems if a builder's source tree is in a directory
2926 # whose full name contains unusual characters.
2927 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2928 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2929 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2930
2931
2932 am__api_version='1.15'
2933
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2940 # AIX /bin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # OS/2's system install, which has a completely different semantic
2946 # ./install, which can be erroneously created by make from ./install.sh.
2947 # Reject install programs that cannot install multiple files.
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2949 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2950 if test -z "$INSTALL"; then
2951 if ${ac_cv_path_install+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 # Account for people who put trailing slashes in PATH elements.
2960 case $as_dir/ in #((
2961 ./ | .// | /[cC]/* | \
2962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2964 /usr/ucb/* ) ;;
2965 *)
2966 # OSF1 and SCO ODT 3.0 have their own names for install.
2967 # Don't use installbsd from OSF since it installs stuff as root
2968 # by default.
2969 for ac_prog in ginstall scoinst install; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2972 if test $ac_prog = install &&
2973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # AIX install. It has an incompatible calling convention.
2975 :
2976 elif test $ac_prog = install &&
2977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # program-specific install script used by HP pwplus--don't use.
2979 :
2980 else
2981 rm -rf conftest.one conftest.two conftest.dir
2982 echo one > conftest.one
2983 echo two > conftest.two
2984 mkdir conftest.dir
2985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2986 test -s conftest.one && test -s conftest.two &&
2987 test -s conftest.dir/conftest.one &&
2988 test -s conftest.dir/conftest.two
2989 then
2990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991 break 3
2992 fi
2993 fi
2994 fi
2995 done
2996 done
2997 ;;
2998 esac
2999
3000 done
3001 IFS=$as_save_IFS
3002
3003 rm -rf conftest.one conftest.two conftest.dir
3004
3005 fi
3006 if test "${ac_cv_path_install+set}" = set; then
3007 INSTALL=$ac_cv_path_install
3008 else
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for INSTALL within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 INSTALL=$ac_install_sh
3014 fi
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3017 $as_echo "$INSTALL" >&6; }
3018
3019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020 # It thinks the first close brace ends the variable substitution.
3021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3022
3023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3024
3025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3028 $as_echo_n "checking whether build environment is sane... " >&6; }
3029 # Reject unsafe characters in $srcdir or the absolute working directory
3030 # name. Accept space and tab only in the latter.
3031 am_lf='
3032 '
3033 case `pwd` in
3034 *[\\\"\#\$\&\'\`$am_lf]*)
3035 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3036 esac
3037 case $srcdir in
3038 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3039 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3040 esac
3041
3042 # Do 'set' in a subshell so we don't clobber the current shell's
3043 # arguments. Must try -L first in case configure is actually a
3044 # symlink; some systems play weird games with the mod time of symlinks
3045 # (eg FreeBSD returns the mod time of the symlink's containing
3046 # directory).
3047 if (
3048 am_has_slept=no
3049 for am_try in 1 2; do
3050 echo "timestamp, slept: $am_has_slept" > conftest.file
3051 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3052 if test "$*" = "X"; then
3053 # -L didn't work.
3054 set X `ls -t "$srcdir/configure" conftest.file`
3055 fi
3056 if test "$*" != "X $srcdir/configure conftest.file" \
3057 && test "$*" != "X conftest.file $srcdir/configure"; then
3058
3059 # If neither matched, then we have a broken ls. This can happen
3060 # if, for instance, CONFIG_SHELL is bash and it inherits a
3061 # broken ls alias from the environment. This has actually
3062 # happened. Such a system could not be considered "sane".
3063 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3064 alias in your environment" "$LINENO" 5
3065 fi
3066 if test "$2" = conftest.file || test $am_try -eq 2; then
3067 break
3068 fi
3069 # Just in case.
3070 sleep 1
3071 am_has_slept=yes
3072 done
3073 test "$2" = conftest.file
3074 )
3075 then
3076 # Ok.
3077 :
3078 else
3079 as_fn_error $? "newly created file is older than distributed files!
3080 Check your system clock" "$LINENO" 5
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3083 $as_echo "yes" >&6; }
3084 # If we didn't sleep, we still need to ensure time stamps of config.status and
3085 # generated files are strictly newer.
3086 am_sleep_pid=
3087 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3088 ( sleep 1 ) &
3089 am_sleep_pid=$!
3090 fi
3091
3092 rm -f conftest.file
3093
3094 test "$program_prefix" != NONE &&
3095 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3096 # Use a double $ so make ignores it.
3097 test "$program_suffix" != NONE &&
3098 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3099 # Double any \ or $.
3100 # By default was `s,x,x', remove it if useless.
3101 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3102 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3103
3104 # Expand $ac_aux_dir to an absolute path.
3105 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3106
3107 if test x"${MISSING+set}" != xset; then
3108 case $am_aux_dir in
3109 *\ * | *\ *)
3110 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3111 *)
3112 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3113 esac
3114 fi
3115 # Use eval to expand $SHELL
3116 if eval "$MISSING --is-lightweight"; then
3117 am_missing_run="$MISSING "
3118 else
3119 am_missing_run=
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3121 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3122 fi
3123
3124 if test x"${install_sh+set}" != xset; then
3125 case $am_aux_dir in
3126 *\ * | *\ *)
3127 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3128 *)
3129 install_sh="\${SHELL} $am_aux_dir/install-sh"
3130 esac
3131 fi
3132
3133 # Installed binaries are usually stripped using 'strip' when the user
3134 # run "make install-strip". However 'strip' might not be the right
3135 # tool to use in cross-compilation environments, therefore Automake
3136 # will honor the 'STRIP' environment variable to overrule this program.
3137 if test "$cross_compiling" != no; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}strip; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_STRIP+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$STRIP"; then
3147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 STRIP=$ac_cv_prog_STRIP
3167 if test -n "$STRIP"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3169 $as_echo "$STRIP" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176 fi
3177 if test -z "$ac_cv_prog_STRIP"; then
3178 ac_ct_STRIP=$STRIP
3179 # Extract the first word of "strip", so it can be a program name with args.
3180 set dummy strip; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$ac_ct_STRIP"; then
3187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_ac_ct_STRIP="strip"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202 IFS=$as_save_IFS
3203
3204 fi
3205 fi
3206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3207 if test -n "$ac_ct_STRIP"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3209 $as_echo "$ac_ct_STRIP" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3213 fi
3214
3215 if test "x$ac_ct_STRIP" = x; then
3216 STRIP=":"
3217 else
3218 case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224 STRIP=$ac_ct_STRIP
3225 fi
3226 else
3227 STRIP="$ac_cv_prog_STRIP"
3228 fi
3229
3230 fi
3231 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3232
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3234 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3235 if test -z "$MKDIR_P"; then
3236 if ${ac_cv_path_mkdir+:} false; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_prog in mkdir gmkdir; do
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3247 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3248 'mkdir (GNU coreutils) '* | \
3249 'mkdir (coreutils) '* | \
3250 'mkdir (fileutils) '4.1*)
3251 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3252 break 3;;
3253 esac
3254 done
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260
3261 test -d ./--version && rmdir ./--version
3262 if test "${ac_cv_path_mkdir+set}" = set; then
3263 MKDIR_P="$ac_cv_path_mkdir -p"
3264 else
3265 # As a last resort, use the slow shell script. Don't cache a
3266 # value for MKDIR_P within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the value is a relative name.
3269 MKDIR_P="$ac_install_sh -d"
3270 fi
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3273 $as_echo "$MKDIR_P" >&6; }
3274
3275 for ac_prog in gawk mawk nawk awk
3276 do
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy $ac_prog; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_AWK+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$AWK"; then
3285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AWK="$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298 done
3299 done
3300 IFS=$as_save_IFS
3301
3302 fi
3303 fi
3304 AWK=$ac_cv_prog_AWK
3305 if test -n "$AWK"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3307 $as_echo "$AWK" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314 test -n "$AWK" && break
3315 done
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3318 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3319 set x ${MAKE-make}
3320 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3321 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 cat >conftest.make <<\_ACEOF
3325 SHELL = /bin/sh
3326 all:
3327 @echo '@@@%%%=$(MAKE)=@@@%%%'
3328 _ACEOF
3329 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3330 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3331 *@@@%%%=?*=@@@%%%*)
3332 eval ac_cv_prog_make_${ac_make}_set=yes;;
3333 *)
3334 eval ac_cv_prog_make_${ac_make}_set=no;;
3335 esac
3336 rm -f conftest.make
3337 fi
3338 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340 $as_echo "yes" >&6; }
3341 SET_MAKE=
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 SET_MAKE="MAKE=${MAKE-make}"
3346 fi
3347
3348 rm -rf .tst 2>/dev/null
3349 mkdir .tst 2>/dev/null
3350 if test -d .tst; then
3351 am__leading_dot=.
3352 else
3353 am__leading_dot=_
3354 fi
3355 rmdir .tst 2>/dev/null
3356
3357 # Check whether --enable-silent-rules was given.
3358 if test "${enable_silent_rules+set}" = set; then :
3359 enableval=$enable_silent_rules;
3360 fi
3361
3362 case $enable_silent_rules in # (((
3363 yes) AM_DEFAULT_VERBOSITY=0;;
3364 no) AM_DEFAULT_VERBOSITY=1;;
3365 *) AM_DEFAULT_VERBOSITY=1;;
3366 esac
3367 am_make=${MAKE-make}
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3369 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3370 if ${am_cv_make_support_nested_variables+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if $as_echo 'TRUE=$(BAR$(V))
3374 BAR0=false
3375 BAR1=true
3376 V=1
3377 am__doit:
3378 @$(TRUE)
3379 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3380 am_cv_make_support_nested_variables=yes
3381 else
3382 am_cv_make_support_nested_variables=no
3383 fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3386 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3387 if test $am_cv_make_support_nested_variables = yes; then
3388 AM_V='$(V)'
3389 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3390 else
3391 AM_V=$AM_DEFAULT_VERBOSITY
3392 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3393 fi
3394 AM_BACKSLASH='\'
3395
3396 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3397 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3398 # is not polluted with repeated "-I."
3399 am__isrc=' -I$(srcdir)'
3400 # test to see if srcdir already configured
3401 if test -f $srcdir/config.status; then
3402 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3403 fi
3404 fi
3405
3406 # test whether we have cygpath
3407 if test -z "$CYGPATH_W"; then
3408 if (cygpath --version) >/dev/null 2>/dev/null; then
3409 CYGPATH_W='cygpath -w'
3410 else
3411 CYGPATH_W=echo
3412 fi
3413 fi
3414
3415
3416 # Define the identity of the package.
3417 PACKAGE='gdbsupport'
3418 VERSION='1.0'
3419
3420
3421 cat >>confdefs.h <<_ACEOF
3422 #define PACKAGE "$PACKAGE"
3423 _ACEOF
3424
3425
3426 cat >>confdefs.h <<_ACEOF
3427 #define VERSION "$VERSION"
3428 _ACEOF
3429
3430 # Some tools Automake needs.
3431
3432 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3433
3434
3435 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3436
3437
3438 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3439
3440
3441 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3442
3443
3444 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3445
3446 # For better backward compatibility. To be removed once Automake 1.9.x
3447 # dies out for good. For more background, see:
3448 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3449 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3450 mkdir_p='$(MKDIR_P)'
3451
3452 # We need awk for the "check" target (and possibly the TAP driver). The
3453 # system "awk" is bad on some platforms.
3454 # Always define AMTAR for backward compatibility. Yes, it's still used
3455 # in the wild :-( We should find a proper way to deprecate it ...
3456 AMTAR='$${TAR-tar}'
3457
3458
3459 # We'll loop over all known methods to create a tar archive until one works.
3460 _am_tools='gnutar pax cpio none'
3461
3462 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3463
3464
3465
3466
3467
3468
3469 # POSIX will say in a future version that running "rm -f" with no argument
3470 # is OK; and we want to be able to make that assumption in our Makefile
3471 # recipes. So use an aggressive probe to check that the usage we want is
3472 # actually supported "in the wild" to an acceptable degree.
3473 # See automake bug#10828.
3474 # To make any issue more visible, cause the running configure to be aborted
3475 # by default if the 'rm' program in use doesn't match our expectations; the
3476 # user can still override this though.
3477 if rm -f && rm -fr && rm -rf; then : OK; else
3478 cat >&2 <<'END'
3479 Oops!
3480
3481 Your 'rm' program seems unable to run without file operands specified
3482 on the command line, even when the '-f' option is present. This is contrary
3483 to the behaviour of most rm programs out there, and not conforming with
3484 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3485
3486 Please tell bug-automake@gnu.org about your system, including the value
3487 of your $PATH and any error possibly output before this message. This
3488 can help us improve future automake versions.
3489
3490 END
3491 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3492 echo 'Configuration will proceed anyway, since you have set the' >&2
3493 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3494 echo >&2
3495 else
3496 cat >&2 <<'END'
3497 Aborting the configuration process, to ensure you take notice of the issue.
3498
3499 You can download and install GNU coreutils to get an 'rm' implementation
3500 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3501
3502 If you want to complete the configuration process using your problematic
3503 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3504 to "yes", and re-run configure.
3505
3506 END
3507 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3508 fi
3509 fi
3510
3511 # Check whether --enable-silent-rules was given.
3512 if test "${enable_silent_rules+set}" = set; then :
3513 enableval=$enable_silent_rules;
3514 fi
3515
3516 case $enable_silent_rules in # (((
3517 yes) AM_DEFAULT_VERBOSITY=0;;
3518 no) AM_DEFAULT_VERBOSITY=1;;
3519 *) AM_DEFAULT_VERBOSITY=0;;
3520 esac
3521 am_make=${MAKE-make}
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3523 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3524 if ${am_cv_make_support_nested_variables+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 if $as_echo 'TRUE=$(BAR$(V))
3528 BAR0=false
3529 BAR1=true
3530 V=1
3531 am__doit:
3532 @$(TRUE)
3533 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3534 am_cv_make_support_nested_variables=yes
3535 else
3536 am_cv_make_support_nested_variables=no
3537 fi
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3540 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3541 if test $am_cv_make_support_nested_variables = yes; then
3542 AM_V='$(V)'
3543 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3544 else
3545 AM_V=$AM_DEFAULT_VERBOSITY
3546 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3547 fi
3548 AM_BACKSLASH='\'
3549
3550
3551 ac_ext=c
3552 ac_cpp='$CPP $CPPFLAGS'
3553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if ${ac_cv_prog_CC+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578 done
3579 done
3580 IFS=$as_save_IFS
3581
3582 fi
3583 fi
3584 CC=$ac_cv_prog_CC
3585 if test -n "$CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587 $as_echo "$CC" >&6; }
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 fi
3592
3593
3594 fi
3595 if test -z "$ac_cv_prog_CC"; then
3596 ac_ct_CC=$CC
3597 # Extract the first word of "gcc", so it can be a program name with args.
3598 set dummy gcc; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -n "$ac_ct_CC"; then
3605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_ac_ct_CC="gcc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622 fi
3623 fi
3624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3625 if test -n "$ac_ct_CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3627 $as_echo "$ac_ct_CC" >&6; }
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 fi
3632
3633 if test "x$ac_ct_CC" = x; then
3634 CC=""
3635 else
3636 case $cross_compiling:$ac_tool_warned in
3637 yes:)
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640 ac_tool_warned=yes ;;
3641 esac
3642 CC=$ac_ct_CC
3643 fi
3644 else
3645 CC="$ac_cv_prog_CC"
3646 fi
3647
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3651 set dummy ${ac_tool_prefix}cc; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if ${ac_cv_prog_CC+:} false; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC="${ac_tool_prefix}cc"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673 IFS=$as_save_IFS
3674
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 fi
3685
3686
3687 fi
3688 fi
3689 if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691 set dummy cc; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 ac_prog_rejected=no
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3709 ac_prog_rejected=yes
3710 continue
3711 fi
3712 ac_cv_prog_CC="cc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 if test $ac_prog_rejected = yes; then
3721 # We found a bogon in the path, so make sure we never use it.
3722 set dummy $ac_cv_prog_CC
3723 shift
3724 if test $# != 0; then
3725 # We chose a different compiler from the bogus one.
3726 # However, it has the same basename, so the bogon will be chosen
3727 # first if we set CC to just the basename; use the full file name.
3728 shift
3729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3730 fi
3731 fi
3732 fi
3733 fi
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3741 fi
3742
3743
3744 fi
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 for ac_prog in cl.exe
3748 do
3749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770 done
3771 done
3772 IFS=$as_save_IFS
3773
3774 fi
3775 fi
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3783 fi
3784
3785
3786 test -n "$CC" && break
3787 done
3788 fi
3789 if test -z "$CC"; then
3790 ac_ct_CC=$CC
3791 for ac_prog in cl.exe
3792 do
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794 set dummy $ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$ac_ct_CC"; then
3801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_CC="$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814 done
3815 done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821 if test -n "$ac_ct_CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823 $as_echo "$ac_ct_CC" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 fi
3828
3829
3830 test -n "$ac_ct_CC" && break
3831 done
3832
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837 yes:)
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3841 esac
3842 CC=$ac_ct_CC
3843 fi
3844 fi
3845
3846 fi
3847
3848
3849 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error $? "no acceptable C compiler found in \$PATH
3852 See \`config.log' for more details" "$LINENO" 5; }
3853
3854 # Provide some information about the compiler.
3855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3856 set X $ac_compile
3857 ac_compiler=$2
3858 for ac_option in --version -v -V -qversion; do
3859 { { ac_try="$ac_compiler $ac_option >&5"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3867 ac_status=$?
3868 if test -s conftest.err; then
3869 sed '10a\
3870 ... rest of stderr output deleted ...
3871 10q' conftest.err >conftest.er1
3872 cat conftest.er1 >&5
3873 fi
3874 rm -f conftest.er1 conftest.err
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877 done
3878
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 ac_clean_files_save=$ac_clean_files
3891 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3892 # Try to create an executable without -o first, disregard a.out.
3893 # It will help us diagnose broken compilers, and finding out an intuition
3894 # of exeext.
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3896 $as_echo_n "checking whether the C compiler works... " >&6; }
3897 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3898
3899 # The possible output files:
3900 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3901
3902 ac_rmfiles=
3903 for ac_file in $ac_files
3904 do
3905 case $ac_file in
3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3908 esac
3909 done
3910 rm -f $ac_rmfiles
3911
3912 if { { ac_try="$ac_link_default"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_link_default") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; then :
3923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3924 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3925 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3926 # so that the user can short-circuit this test for compilers unknown to
3927 # Autoconf.
3928 for ac_file in $ac_files ''
3929 do
3930 test -f "$ac_file" || continue
3931 case $ac_file in
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3933 ;;
3934 [ab].out )
3935 # We found the default executable, but exeext='' is most
3936 # certainly right.
3937 break;;
3938 *.* )
3939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3940 then :; else
3941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 fi
3943 # We set ac_cv_exeext here because the later test for it is not
3944 # safe: cross compilers may not add the suffix if given an `-o'
3945 # argument, so we may need to know it at that point already.
3946 # Even if this section looks crufty: it has the advantage of
3947 # actually working.
3948 break;;
3949 * )
3950 break;;
3951 esac
3952 done
3953 test "$ac_cv_exeext" = no && ac_cv_exeext=
3954
3955 else
3956 ac_file=''
3957 fi
3958 if test -z "$ac_file"; then :
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 $as_echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error 77 "C compiler cannot create executables
3967 See \`config.log' for more details" "$LINENO" 5; }
3968 else
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3970 $as_echo "yes" >&6; }
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3973 $as_echo_n "checking for C compiler default output file name... " >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3975 $as_echo "$ac_file" >&6; }
3976 ac_exeext=$ac_cv_exeext
3977
3978 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3981 $as_echo_n "checking for suffix of executables... " >&6; }
3982 if { { ac_try="$ac_link"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3988 $as_echo "$ac_try_echo"; } >&5
3989 (eval "$ac_link") 2>&5
3990 ac_status=$?
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; }; then :
3993 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3994 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3995 # work properly (i.e., refer to `conftest.exe'), while it won't with
3996 # `rm'.
3997 for ac_file in conftest.exe conftest conftest.*; do
3998 test -f "$ac_file" || continue
3999 case $ac_file in
4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4001 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4002 break;;
4003 * ) break;;
4004 esac
4005 done
4006 else
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4010 See \`config.log' for more details" "$LINENO" 5; }
4011 fi
4012 rm -f conftest conftest$ac_cv_exeext
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4014 $as_echo "$ac_cv_exeext" >&6; }
4015
4016 rm -f conftest.$ac_ext
4017 EXEEXT=$ac_cv_exeext
4018 ac_exeext=$EXEEXT
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <stdio.h>
4022 int
4023 main ()
4024 {
4025 FILE *f = fopen ("conftest.out", "w");
4026 return ferror (f) || fclose (f) != 0;
4027
4028 ;
4029 return 0;
4030 }
4031 _ACEOF
4032 ac_clean_files="$ac_clean_files conftest.out"
4033 # Check that the compiler produces executables we can run. If not, either
4034 # the compiler is broken, or we cross compile.
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4036 $as_echo_n "checking whether we are cross compiling... " >&6; }
4037 if test "$cross_compiling" != yes; then
4038 { { ac_try="$ac_link"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044 $as_echo "$ac_try_echo"; } >&5
4045 (eval "$ac_link") 2>&5
4046 ac_status=$?
4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048 test $ac_status = 0; }
4049 if { ac_try='./conftest$ac_cv_exeext'
4050 { { case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_try") 2>&5
4057 ac_status=$?
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }; }; then
4060 cross_compiling=no
4061 else
4062 if test "$cross_compiling" = maybe; then
4063 cross_compiling=yes
4064 else
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $? "cannot run C compiled programs.
4068 If you meant to cross compile, use \`--host'.
4069 See \`config.log' for more details" "$LINENO" 5; }
4070 fi
4071 fi
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4074 $as_echo "$cross_compiling" >&6; }
4075
4076 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4077 ac_clean_files=$ac_clean_files_save
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079 $as_echo_n "checking for suffix of object files... " >&6; }
4080 if ${ac_cv_objext+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085
4086 int
4087 main ()
4088 {
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 rm -f conftest.o conftest.obj
4095 if { { ac_try="$ac_compile"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compile") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 for ac_file in conftest.o conftest.obj conftest.*; do
4107 test -f "$ac_file" || continue;
4108 case $ac_file in
4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4111 break;;
4112 esac
4113 done
4114 else
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4117
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120 as_fn_error $? "cannot compute suffix of object files: cannot compile
4121 See \`config.log' for more details" "$LINENO" 5; }
4122 fi
4123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126 $as_echo "$ac_cv_objext" >&6; }
4127 OBJEXT=$ac_cv_objext
4128 ac_objext=$OBJEXT
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4130 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4131 if ${ac_cv_c_compiler_gnu+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136
4137 int
4138 main ()
4139 {
4140 #ifndef __GNUC__
4141 choke me
4142 #endif
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_compiler_gnu=yes
4150 else
4151 ac_compiler_gnu=no
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4155
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4158 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4159 if test $ac_compiler_gnu = yes; then
4160 GCC=yes
4161 else
4162 GCC=
4163 fi
4164 ac_test_CFLAGS=${CFLAGS+set}
4165 ac_save_CFLAGS=$CFLAGS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4168 if ${ac_cv_prog_cc_g+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 ac_save_c_werror_flag=$ac_c_werror_flag
4172 ac_c_werror_flag=yes
4173 ac_cv_prog_cc_g=no
4174 CFLAGS="-g"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177
4178 int
4179 main ()
4180 {
4181
4182 ;
4183 return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_prog_cc_g=yes
4188 else
4189 CFLAGS=""
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192
4193 int
4194 main ()
4195 {
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202
4203 else
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4205 CFLAGS="-g"
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208
4209 int
4210 main ()
4211 {
4212
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_g=yes
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4228 $as_echo "$ac_cv_prog_cc_g" >&6; }
4229 if test "$ac_test_CFLAGS" = set; then
4230 CFLAGS=$ac_save_CFLAGS
4231 elif test $ac_cv_prog_cc_g = yes; then
4232 if test "$GCC" = yes; then
4233 CFLAGS="-g -O2"
4234 else
4235 CFLAGS="-g"
4236 fi
4237 else
4238 if test "$GCC" = yes; then
4239 CFLAGS="-O2"
4240 else
4241 CFLAGS=
4242 fi
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4245 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4246 if ${ac_cv_prog_cc_c89+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_cv_prog_cc_c89=no
4250 ac_save_CC=$CC
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <stdarg.h>
4254 #include <stdio.h>
4255 struct stat;
4256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4257 struct buf { int x; };
4258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4259 static char *e (p, i)
4260 char **p;
4261 int i;
4262 {
4263 return p[i];
4264 }
4265 static char *f (char * (*g) (char **, int), char **p, ...)
4266 {
4267 char *s;
4268 va_list v;
4269 va_start (v,p);
4270 s = g (p, va_arg (v,int));
4271 va_end (v);
4272 return s;
4273 }
4274
4275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4276 function prototypes and stuff, but not '\xHH' hex character constants.
4277 These don't provoke an error unfortunately, instead are silently treated
4278 as 'x'. The following induces an error, until -std is added to get
4279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4280 array size at least. It's necessary to write '\x00'==0 to get something
4281 that's true only with -std. */
4282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283
4284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4285 inside strings and character constants. */
4286 #define FOO(x) 'x'
4287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288
4289 int test (int i, double x);
4290 struct s1 {int (*f) (int a);};
4291 struct s2 {int (*f) (double a);};
4292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4293 int argc;
4294 char **argv;
4295 int
4296 main ()
4297 {
4298 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 do
4306 CC="$ac_save_CC $ac_arg"
4307 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_cv_prog_cc_c89=$ac_arg
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext
4311 test "x$ac_cv_prog_cc_c89" != "xno" && break
4312 done
4313 rm -f conftest.$ac_ext
4314 CC=$ac_save_CC
4315
4316 fi
4317 # AC_CACHE_VAL
4318 case "x$ac_cv_prog_cc_c89" in
4319 x)
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4321 $as_echo "none needed" >&6; } ;;
4322 xno)
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4324 $as_echo "unsupported" >&6; } ;;
4325 *)
4326 CC="$CC $ac_cv_prog_cc_c89"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4328 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4329 esac
4330 if test "x$ac_cv_prog_cc_c89" != xno; then :
4331
4332 fi
4333
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4346 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4347 if ${am_cv_prog_cc_c_o+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352
4353 int
4354 main ()
4355 {
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 # Make sure it works both with $CC and with simple cc.
4362 # Following AC_PROG_CC_C_O, we do the test twice because some
4363 # compilers refuse to overwrite an existing .o file with -o,
4364 # though they will create one.
4365 am_cv_prog_cc_c_o=yes
4366 for am_i in 1 2; do
4367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } \
4372 && test -f conftest2.$ac_objext; then
4373 : OK
4374 else
4375 am_cv_prog_cc_c_o=no
4376 break
4377 fi
4378 done
4379 rm -f core conftest*
4380 unset am_i
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4383 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4384 if test "$am_cv_prog_cc_c_o" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC="$am_aux_dir/compile $CC"
4391 fi
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398 DEPDIR="${am__leading_dot}deps"
4399
4400 ac_config_commands="$ac_config_commands depfiles"
4401
4402
4403 am_make=${MAKE-make}
4404 cat > confinc << 'END'
4405 am__doit:
4406 @echo this is the am__doit target
4407 .PHONY: am__doit
4408 END
4409 # If we don't find an include directive, just comment out the code.
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4411 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4412 am__include="#"
4413 am__quote=
4414 _am_result=none
4415 # First try GNU make style include.
4416 echo "include confinc" > confmf
4417 # Ignore all kinds of additional output from 'make'.
4418 case `$am_make -s -f confmf 2> /dev/null` in #(
4419 *the\ am__doit\ target*)
4420 am__include=include
4421 am__quote=
4422 _am_result=GNU
4423 ;;
4424 esac
4425 # Now try BSD make style include.
4426 if test "$am__include" = "#"; then
4427 echo '.include "confinc"' > confmf
4428 case `$am_make -s -f confmf 2> /dev/null` in #(
4429 *the\ am__doit\ target*)
4430 am__include=.include
4431 am__quote="\""
4432 _am_result=BSD
4433 ;;
4434 esac
4435 fi
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4439 $as_echo "$_am_result" >&6; }
4440 rm -f confinc confmf
4441
4442 # Check whether --enable-dependency-tracking was given.
4443 if test "${enable_dependency_tracking+set}" = set; then :
4444 enableval=$enable_dependency_tracking;
4445 fi
4446
4447 if test "x$enable_dependency_tracking" != xno; then
4448 am_depcomp="$ac_aux_dir/depcomp"
4449 AMDEPBACKSLASH='\'
4450 am__nodep='_no'
4451 fi
4452 if test "x$enable_dependency_tracking" != xno; then
4453 AMDEP_TRUE=
4454 AMDEP_FALSE='#'
4455 else
4456 AMDEP_TRUE='#'
4457 AMDEP_FALSE=
4458 fi
4459
4460
4461
4462 depcc="$CC" am_compiler_list=
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4465 $as_echo_n "checking dependency style of $depcc... " >&6; }
4466 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4470 # We make a subdir and do the tests there. Otherwise we can end up
4471 # making bogus files that we don't know about and never remove. For
4472 # instance it was reported that on HP-UX the gcc test will end up
4473 # making a dummy file named 'D' -- because '-MD' means "put the output
4474 # in D".
4475 rm -rf conftest.dir
4476 mkdir conftest.dir
4477 # Copy depcomp to subdir because otherwise we won't find it if we're
4478 # using a relative directory.
4479 cp "$am_depcomp" conftest.dir
4480 cd conftest.dir
4481 # We will build objects and dependencies in a subdirectory because
4482 # it helps to detect inapplicable dependency modes. For instance
4483 # both Tru64's cc and ICC support -MD to output dependencies as a
4484 # side effect of compilation, but ICC will put the dependencies in
4485 # the current directory while Tru64 will put them in the object
4486 # directory.
4487 mkdir sub
4488
4489 am_cv_CC_dependencies_compiler_type=none
4490 if test "$am_compiler_list" = ""; then
4491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4492 fi
4493 am__universal=false
4494 case " $depcc " in #(
4495 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4496 esac
4497
4498 for depmode in $am_compiler_list; do
4499 # Setup a source with many dependencies, because some compilers
4500 # like to wrap large dependency lists on column 80 (with \), and
4501 # we should not choose a depcomp mode which is confused by this.
4502 #
4503 # We need to recreate these files for each test, as the compiler may
4504 # overwrite some of them when testing with obscure command lines.
4505 # This happens at least with the AIX C compiler.
4506 : > sub/conftest.c
4507 for i in 1 2 3 4 5 6; do
4508 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4509 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4510 # Solaris 10 /bin/sh.
4511 echo '/* dummy */' > sub/conftst$i.h
4512 done
4513 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514
4515 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4516 # mode. It turns out that the SunPro C++ compiler does not properly
4517 # handle '-M -o', and we need to detect this. Also, some Intel
4518 # versions had trouble with output in subdirs.
4519 am__obj=sub/conftest.${OBJEXT-o}
4520 am__minus_obj="-o $am__obj"
4521 case $depmode in
4522 gcc)
4523 # This depmode causes a compiler race in universal mode.
4524 test "$am__universal" = false || continue
4525 ;;
4526 nosideeffect)
4527 # After this tag, mechanisms are not by side-effect, so they'll
4528 # only be used when explicitly requested.
4529 if test "x$enable_dependency_tracking" = xyes; then
4530 continue
4531 else
4532 break
4533 fi
4534 ;;
4535 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4536 # This compiler won't grok '-c -o', but also, the minuso test has
4537 # not run yet. These depmodes are late enough in the game, and
4538 # so weak that their functioning should not be impacted.
4539 am__obj=conftest.${OBJEXT-o}
4540 am__minus_obj=
4541 ;;
4542 none) break ;;
4543 esac
4544 if depmode=$depmode \
4545 source=sub/conftest.c object=$am__obj \
4546 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4547 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4548 >/dev/null 2>conftest.err &&
4549 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4551 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4553 # icc doesn't choke on unknown options, it will just issue warnings
4554 # or remarks (even with -Werror). So we grep stderr for any message
4555 # that says an option was ignored or not supported.
4556 # When given -MP, icc 7.0 and 7.1 complain thusly:
4557 # icc: Command line warning: ignoring option '-M'; no argument required
4558 # The diagnosis changed in icc 8.0:
4559 # icc: Command line remark: option '-MP' not supported
4560 if (grep 'ignoring option' conftest.err ||
4561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4562 am_cv_CC_dependencies_compiler_type=$depmode
4563 break
4564 fi
4565 fi
4566 done
4567
4568 cd ..
4569 rm -rf conftest.dir
4570 else
4571 am_cv_CC_dependencies_compiler_type=none
4572 fi
4573
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4576 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4578
4579 if
4580 test "x$enable_dependency_tracking" != xno \
4581 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4582 am__fastdepCC_TRUE=
4583 am__fastdepCC_FALSE='#'
4584 else
4585 am__fastdepCC_TRUE='#'
4586 am__fastdepCC_FALSE=
4587 fi
4588
4589
4590 ac_ext=cpp
4591 ac_cpp='$CXXCPP $CPPFLAGS'
4592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4595 if test -z "$CXX"; then
4596 if test -n "$CCC"; then
4597 CXX=$CCC
4598 else
4599 if test -n "$ac_tool_prefix"; then
4600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4601 do
4602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_CXX+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$CXX"; then
4610 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627 fi
4628 fi
4629 CXX=$ac_cv_prog_CXX
4630 if test -n "$CXX"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4632 $as_echo "$CXX" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4636 fi
4637
4638
4639 test -n "$CXX" && break
4640 done
4641 fi
4642 if test -z "$CXX"; then
4643 ac_ct_CXX=$CXX
4644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4645 do
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$ac_ct_CXX"; then
4654 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_ac_ct_CXX="$ac_prog"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671 fi
4672 fi
4673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4674 if test -n "$ac_ct_CXX"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4676 $as_echo "$ac_ct_CXX" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 fi
4681
4682
4683 test -n "$ac_ct_CXX" && break
4684 done
4685
4686 if test "x$ac_ct_CXX" = x; then
4687 CXX="g++"
4688 else
4689 case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695 CXX=$ac_ct_CXX
4696 fi
4697 fi
4698
4699 fi
4700 fi
4701 # Provide some information about the compiler.
4702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4703 set X $ac_compile
4704 ac_compiler=$2
4705 for ac_option in --version -v -V -qversion; do
4706 { { ac_try="$ac_compiler $ac_option >&5"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4714 ac_status=$?
4715 if test -s conftest.err; then
4716 sed '10a\
4717 ... rest of stderr output deleted ...
4718 10q' conftest.err >conftest.er1
4719 cat conftest.er1 >&5
4720 fi
4721 rm -f conftest.er1 conftest.err
4722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4723 test $ac_status = 0; }
4724 done
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4727 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4728 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main ()
4736 {
4737 #ifndef __GNUC__
4738 choke me
4739 #endif
4740
4741 ;
4742 return 0;
4743 }
4744 _ACEOF
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4746 ac_compiler_gnu=yes
4747 else
4748 ac_compiler_gnu=no
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4752
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4756 if test $ac_compiler_gnu = yes; then
4757 GXX=yes
4758 else
4759 GXX=
4760 fi
4761 ac_test_CXXFLAGS=${CXXFLAGS+set}
4762 ac_save_CXXFLAGS=$CXXFLAGS
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4765 if ${ac_cv_prog_cxx_g+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4769 ac_cxx_werror_flag=yes
4770 ac_cv_prog_cxx_g=no
4771 CXXFLAGS="-g"
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main ()
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_cxx_try_compile "$LINENO"; then :
4784 ac_cv_prog_cxx_g=yes
4785 else
4786 CXXFLAGS=""
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789
4790 int
4791 main ()
4792 {
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_cxx_try_compile "$LINENO"; then :
4799
4800 else
4801 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4802 CXXFLAGS="-g"
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805
4806 int
4807 main ()
4808 {
4809
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 if ac_fn_cxx_try_compile "$LINENO"; then :
4815 ac_cv_prog_cxx_g=yes
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4826 if test "$ac_test_CXXFLAGS" = set; then
4827 CXXFLAGS=$ac_save_CXXFLAGS
4828 elif test $ac_cv_prog_cxx_g = yes; then
4829 if test "$GXX" = yes; then
4830 CXXFLAGS="-g -O2"
4831 else
4832 CXXFLAGS="-g"
4833 fi
4834 else
4835 if test "$GXX" = yes; then
4836 CXXFLAGS="-O2"
4837 else
4838 CXXFLAGS=
4839 fi
4840 fi
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847 depcc="$CXX" am_compiler_list=
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4850 $as_echo_n "checking dependency style of $depcc... " >&6; }
4851 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4855 # We make a subdir and do the tests there. Otherwise we can end up
4856 # making bogus files that we don't know about and never remove. For
4857 # instance it was reported that on HP-UX the gcc test will end up
4858 # making a dummy file named 'D' -- because '-MD' means "put the output
4859 # in D".
4860 rm -rf conftest.dir
4861 mkdir conftest.dir
4862 # Copy depcomp to subdir because otherwise we won't find it if we're
4863 # using a relative directory.
4864 cp "$am_depcomp" conftest.dir
4865 cd conftest.dir
4866 # We will build objects and dependencies in a subdirectory because
4867 # it helps to detect inapplicable dependency modes. For instance
4868 # both Tru64's cc and ICC support -MD to output dependencies as a
4869 # side effect of compilation, but ICC will put the dependencies in
4870 # the current directory while Tru64 will put them in the object
4871 # directory.
4872 mkdir sub
4873
4874 am_cv_CXX_dependencies_compiler_type=none
4875 if test "$am_compiler_list" = ""; then
4876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4877 fi
4878 am__universal=false
4879 case " $depcc " in #(
4880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4881 esac
4882
4883 for depmode in $am_compiler_list; do
4884 # Setup a source with many dependencies, because some compilers
4885 # like to wrap large dependency lists on column 80 (with \), and
4886 # we should not choose a depcomp mode which is confused by this.
4887 #
4888 # We need to recreate these files for each test, as the compiler may
4889 # overwrite some of them when testing with obscure command lines.
4890 # This happens at least with the AIX C compiler.
4891 : > sub/conftest.c
4892 for i in 1 2 3 4 5 6; do
4893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4894 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4895 # Solaris 10 /bin/sh.
4896 echo '/* dummy */' > sub/conftst$i.h
4897 done
4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899
4900 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4901 # mode. It turns out that the SunPro C++ compiler does not properly
4902 # handle '-M -o', and we need to detect this. Also, some Intel
4903 # versions had trouble with output in subdirs.
4904 am__obj=sub/conftest.${OBJEXT-o}
4905 am__minus_obj="-o $am__obj"
4906 case $depmode in
4907 gcc)
4908 # This depmode causes a compiler race in universal mode.
4909 test "$am__universal" = false || continue
4910 ;;
4911 nosideeffect)
4912 # After this tag, mechanisms are not by side-effect, so they'll
4913 # only be used when explicitly requested.
4914 if test "x$enable_dependency_tracking" = xyes; then
4915 continue
4916 else
4917 break
4918 fi
4919 ;;
4920 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4921 # This compiler won't grok '-c -o', but also, the minuso test has
4922 # not run yet. These depmodes are late enough in the game, and
4923 # so weak that their functioning should not be impacted.
4924 am__obj=conftest.${OBJEXT-o}
4925 am__minus_obj=
4926 ;;
4927 none) break ;;
4928 esac
4929 if depmode=$depmode \
4930 source=sub/conftest.c object=$am__obj \
4931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4933 >/dev/null 2>conftest.err &&
4934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4938 # icc doesn't choke on unknown options, it will just issue warnings
4939 # or remarks (even with -Werror). So we grep stderr for any message
4940 # that says an option was ignored or not supported.
4941 # When given -MP, icc 7.0 and 7.1 complain thusly:
4942 # icc: Command line warning: ignoring option '-M'; no argument required
4943 # The diagnosis changed in icc 8.0:
4944 # icc: Command line remark: option '-MP' not supported
4945 if (grep 'ignoring option' conftest.err ||
4946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4947 am_cv_CXX_dependencies_compiler_type=$depmode
4948 break
4949 fi
4950 fi
4951 done
4952
4953 cd ..
4954 rm -rf conftest.dir
4955 else
4956 am_cv_CXX_dependencies_compiler_type=none
4957 fi
4958
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4961 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4962 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4963
4964 if
4965 test "x$enable_dependency_tracking" != xno \
4966 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4967 am__fastdepCXX_TRUE=
4968 am__fastdepCXX_FALSE='#'
4969 else
4970 am__fastdepCXX_TRUE='#'
4971 am__fastdepCXX_FALSE=
4972 fi
4973
4974
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_RANLIB+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$RANLIB"; then
4984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 RANLIB=$ac_cv_prog_RANLIB
5004 if test -n "$RANLIB"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5006 $as_echo "$RANLIB" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013 fi
5014 if test -z "$ac_cv_prog_RANLIB"; then
5015 ac_ct_RANLIB=$RANLIB
5016 # Extract the first word of "ranlib", so it can be a program name with args.
5017 set dummy ranlib; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$ac_ct_RANLIB"; then
5024 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_ac_ct_RANLIB="ranlib"
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5044 if test -n "$ac_ct_RANLIB"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5046 $as_echo "$ac_ct_RANLIB" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052 if test "x$ac_ct_RANLIB" = x; then
5053 RANLIB=":"
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056 yes:)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059 ac_tool_warned=yes ;;
5060 esac
5061 RANLIB=$ac_ct_RANLIB
5062 fi
5063 else
5064 RANLIB="$ac_cv_prog_RANLIB"
5065 fi
5066
5067
5068
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5075 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5076 # On Suns, sometimes $CPP names a directory.
5077 if test -n "$CPP" && test -d "$CPP"; then
5078 CPP=
5079 fi
5080 if test -z "$CPP"; then
5081 if ${ac_cv_prog_CPP+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 # Double quotes because CPP needs to be expanded
5085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5086 do
5087 ac_preproc_ok=false
5088 for ac_c_preproc_warn_flag in '' yes
5089 do
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103 Syntax error
5104 _ACEOF
5105 if ac_fn_c_try_cpp "$LINENO"; then :
5106
5107 else
5108 # Broken: fails on valid input.
5109 continue
5110 fi
5111 rm -f conftest.err conftest.i conftest.$ac_ext
5112
5113 # OK, works on sane cases. Now check whether nonexistent headers
5114 # can be detected and how.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #include <ac_nonexistent.h>
5118 _ACEOF
5119 if ac_fn_c_try_cpp "$LINENO"; then :
5120 # Broken: success on invalid input.
5121 continue
5122 else
5123 # Passes both tests.
5124 ac_preproc_ok=:
5125 break
5126 fi
5127 rm -f conftest.err conftest.i conftest.$ac_ext
5128
5129 done
5130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131 rm -f conftest.i conftest.err conftest.$ac_ext
5132 if $ac_preproc_ok; then :
5133 break
5134 fi
5135
5136 done
5137 ac_cv_prog_CPP=$CPP
5138
5139 fi
5140 CPP=$ac_cv_prog_CPP
5141 else
5142 ac_cv_prog_CPP=$CPP
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5145 $as_echo "$CPP" >&6; }
5146 ac_preproc_ok=false
5147 for ac_c_preproc_warn_flag in '' yes
5148 do
5149 # Use a header file that comes with gcc, so configuring glibc
5150 # with a fresh cross-compiler works.
5151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 # <limits.h> exists even on freestanding compilers.
5153 # On the NeXT, cc -E runs the code through the compiler's parser,
5154 # not just through cpp. "Syntax error" is here to catch this case.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #ifdef __STDC__
5158 # include <limits.h>
5159 #else
5160 # include <assert.h>
5161 #endif
5162 Syntax error
5163 _ACEOF
5164 if ac_fn_c_try_cpp "$LINENO"; then :
5165
5166 else
5167 # Broken: fails on valid input.
5168 continue
5169 fi
5170 rm -f conftest.err conftest.i conftest.$ac_ext
5171
5172 # OK, works on sane cases. Now check whether nonexistent headers
5173 # can be detected and how.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5179 # Broken: success on invalid input.
5180 continue
5181 else
5182 # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186 rm -f conftest.err conftest.i conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.i conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then :
5192
5193 else
5194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5197 See \`config.log' for more details" "$LINENO" 5; }
5198 fi
5199
5200 ac_ext=c
5201 ac_cpp='$CPP $CPPFLAGS'
5202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5208 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5209 if ${ac_cv_path_GREP+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -z "$GREP"; then
5213 ac_path_GREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in grep ggrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5223 as_fn_executable_p "$ac_path_GREP" || continue
5224 # Check for GNU ac_path_GREP and select it if it is found.
5225 # Check for GNU $ac_path_GREP
5226 case `"$ac_path_GREP" --version 2>&1` in
5227 *GNU*)
5228 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5229 *)
5230 ac_count=0
5231 $as_echo_n 0123456789 >"conftest.in"
5232 while :
5233 do
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 $as_echo 'GREP' >> "conftest.nl"
5238 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_GREP="$ac_path_GREP"
5244 ac_path_GREP_max=$ac_count
5245 fi
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5251
5252 $ac_path_GREP_found && break 3
5253 done
5254 done
5255 done
5256 IFS=$as_save_IFS
5257 if test -z "$ac_cv_path_GREP"; then
5258 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259 fi
5260 else
5261 ac_cv_path_GREP=$GREP
5262 fi
5263
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5266 $as_echo "$ac_cv_path_GREP" >&6; }
5267 GREP="$ac_cv_path_GREP"
5268
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5271 $as_echo_n "checking for egrep... " >&6; }
5272 if ${ac_cv_path_EGREP+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5276 then ac_cv_path_EGREP="$GREP -E"
5277 else
5278 if test -z "$EGREP"; then
5279 ac_path_EGREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in egrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_EGREP" || continue
5290 # Check for GNU ac_path_EGREP and select it if it is found.
5291 # Check for GNU $ac_path_EGREP
5292 case `"$ac_path_EGREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5295 *)
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5299 do
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'EGREP' >> "conftest.nl"
5304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_EGREP="$ac_path_EGREP"
5310 ac_path_EGREP_max=$ac_count
5311 fi
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5317
5318 $ac_path_EGREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_EGREP"; then
5324 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5325 fi
5326 else
5327 ac_cv_path_EGREP=$EGREP
5328 fi
5329
5330 fi
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5333 $as_echo "$ac_cv_path_EGREP" >&6; }
5334 EGREP="$ac_cv_path_EGREP"
5335
5336
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5338 $as_echo_n "checking for ANSI C header files... " >&6; }
5339 if ${ac_cv_header_stdc+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <stdlib.h>
5345 #include <stdarg.h>
5346 #include <string.h>
5347 #include <float.h>
5348
5349 int
5350 main ()
5351 {
5352
5353 ;
5354 return 0;
5355 }
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 ac_cv_header_stdc=yes
5359 else
5360 ac_cv_header_stdc=no
5361 fi
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363
5364 if test $ac_cv_header_stdc = yes; then
5365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <string.h>
5369
5370 _ACEOF
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "memchr" >/dev/null 2>&1; then :
5373
5374 else
5375 ac_cv_header_stdc=no
5376 fi
5377 rm -f conftest*
5378
5379 fi
5380
5381 if test $ac_cv_header_stdc = yes; then
5382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <stdlib.h>
5386
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "free" >/dev/null 2>&1; then :
5390
5391 else
5392 ac_cv_header_stdc=no
5393 fi
5394 rm -f conftest*
5395
5396 fi
5397
5398 if test $ac_cv_header_stdc = yes; then
5399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5400 if test "$cross_compiling" = yes; then :
5401 :
5402 else
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <ctype.h>
5406 #include <stdlib.h>
5407 #if ((' ' & 0x0FF) == 0x020)
5408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5410 #else
5411 # define ISLOWER(c) \
5412 (('a' <= (c) && (c) <= 'i') \
5413 || ('j' <= (c) && (c) <= 'r') \
5414 || ('s' <= (c) && (c) <= 'z'))
5415 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5416 #endif
5417
5418 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5419 int
5420 main ()
5421 {
5422 int i;
5423 for (i = 0; i < 256; i++)
5424 if (XOR (islower (i), ISLOWER (i))
5425 || toupper (i) != TOUPPER (i))
5426 return 2;
5427 return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_c_try_run "$LINENO"; then :
5431
5432 else
5433 ac_cv_header_stdc=no
5434 fi
5435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5436 conftest.$ac_objext conftest.beam conftest.$ac_ext
5437 fi
5438
5439 fi
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5442 $as_echo "$ac_cv_header_stdc" >&6; }
5443 if test $ac_cv_header_stdc = yes; then
5444
5445 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5446
5447 fi
5448
5449 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5451 inttypes.h stdint.h unistd.h
5452 do :
5453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5455 "
5456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5457 cat >>confdefs.h <<_ACEOF
5458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459 _ACEOF
5460
5461 fi
5462
5463 done
5464
5465
5466
5467 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5468 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5469 MINIX=yes
5470 else
5471 MINIX=
5472 fi
5473
5474
5475 if test "$MINIX" = yes; then
5476
5477 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5478
5479
5480 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5481
5482
5483 $as_echo "#define _MINIX 1" >>confdefs.h
5484
5485 fi
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5489 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5490 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495
5496 # define __EXTENSIONS__ 1
5497 $ac_includes_default
5498 int
5499 main ()
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 if ac_fn_c_try_compile "$LINENO"; then :
5507 ac_cv_safe_to_define___extensions__=yes
5508 else
5509 ac_cv_safe_to_define___extensions__=no
5510 fi
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5514 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5515 test $ac_cv_safe_to_define___extensions__ = yes &&
5516 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5517
5518 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5519
5520 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5521
5522 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5523
5524 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5525
5526
5527
5528 # The tests for host and target for $enable_largefile require
5529 # canonical names.
5530
5531
5532
5533 # As the $enable_largefile decision depends on --enable-plugins we must set it
5534 # even in directories otherwise not depending on the $plugins option.
5535
5536
5537 maybe_plugins=no
5538 for ac_header in dlfcn.h
5539 do :
5540 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5541 "
5542 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5543 cat >>confdefs.h <<_ACEOF
5544 #define HAVE_DLFCN_H 1
5545 _ACEOF
5546 maybe_plugins=yes
5547 fi
5548
5549 done
5550
5551 for ac_header in windows.h
5552 do :
5553 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5554 "
5555 if test "x$ac_cv_header_windows_h" = xyes; then :
5556 cat >>confdefs.h <<_ACEOF
5557 #define HAVE_WINDOWS_H 1
5558 _ACEOF
5559 maybe_plugins=yes
5560 fi
5561
5562 done
5563
5564
5565 # Check whether --enable-plugins was given.
5566 if test "${enable_plugins+set}" = set; then :
5567 enableval=$enable_plugins; case "${enableval}" in
5568 no) plugins=no ;;
5569 *) plugins=yes
5570 if test "$maybe_plugins" != "yes" ; then
5571 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5572 fi ;;
5573 esac
5574 else
5575 plugins=$maybe_plugins
5576
5577 fi
5578
5579 if test "$plugins" = "yes"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5581 $as_echo_n "checking for library containing dlsym... " >&6; }
5582 if ${ac_cv_search_dlsym+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 ac_func_search_save_LIBS=$LIBS
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588
5589 /* Override any GCC internal prototype to avoid an error.
5590 Use char because int might match the return type of a GCC
5591 builtin and then its argument prototype would still apply. */
5592 #ifdef __cplusplus
5593 extern "C"
5594 #endif
5595 char dlsym ();
5596 int
5597 main ()
5598 {
5599 return dlsym ();
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 for ac_lib in '' dl; do
5605 if test -z "$ac_lib"; then
5606 ac_res="none required"
5607 else
5608 ac_res=-l$ac_lib
5609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5610 fi
5611 if ac_fn_c_try_link "$LINENO"; then :
5612 ac_cv_search_dlsym=$ac_res
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext \
5615 conftest$ac_exeext
5616 if ${ac_cv_search_dlsym+:} false; then :
5617 break
5618 fi
5619 done
5620 if ${ac_cv_search_dlsym+:} false; then :
5621
5622 else
5623 ac_cv_search_dlsym=no
5624 fi
5625 rm conftest.$ac_ext
5626 LIBS=$ac_func_search_save_LIBS
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5629 $as_echo "$ac_cv_search_dlsym" >&6; }
5630 ac_res=$ac_cv_search_dlsym
5631 if test "$ac_res" != no; then :
5632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5633
5634 fi
5635
5636 fi
5637
5638
5639 case "${host}" in
5640 sparc-*-solaris*|i?86-*-solaris*)
5641 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5642 # were mutually exclusive until Solaris 11.3. Without procfs support,
5643 # the bfd/ elf module cannot provide certain routines such as
5644 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5645 # explicitly requested large-file support through the
5646 # --enable-largefile switch, disable large-file support in favor of
5647 # procfs support.
5648 #
5649 # Check if <sys/procfs.h> is incompatible with large-file support.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #define _FILE_OFFSET_BITS 64
5653 #define _STRUCTURED_PROC 1
5654 #include <sys/procfs.h>
5655 int
5656 main ()
5657 {
5658
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 acx_cv_procfs_lfs=yes
5665 else
5666 acx_cv_procfs_lfs=no
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669 #
5670 # Forcefully disable large-file support only if necessary, gdb is in
5671 # tree and enabled.
5672 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5673 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
5674 : ${enable_largefile="no"}
5675 if test "$plugins" = yes; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5677 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5678 $as_echo "$as_me: WARNING:
5679 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5680 plugins=no
5681 fi
5682 fi
5683 #
5684 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5685 # benefit of g++ 9+ which predefines it on Solaris.
5686 if test "$enable_largefile" = no; then
5687 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
5688
5689 fi
5690 ;;
5691 esac
5692
5693 # Check whether --enable-largefile was given.
5694 if test "${enable_largefile+set}" = set; then :
5695 enableval=$enable_largefile;
5696 fi
5697
5698 if test "$enable_largefile" != no; then
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5701 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5702 if ${ac_cv_sys_largefile_CC+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 ac_cv_sys_largefile_CC=no
5706 if test "$GCC" != yes; then
5707 ac_save_CC=$CC
5708 while :; do
5709 # IRIX 6.2 and later do not support large files by default,
5710 # so use the C compiler's -n32 option if that helps.
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 /* Check that off_t can represent 2**63 - 1 correctly.
5715 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5716 since some C++ compilers masquerading as C compilers
5717 incorrectly reject 9223372036854775807. */
5718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5720 && LARGE_OFF_T % 2147483647 == 1)
5721 ? 1 : -1];
5722 int
5723 main ()
5724 {
5725
5726 ;
5727 return 0;
5728 }
5729 _ACEOF
5730 if ac_fn_c_try_compile "$LINENO"; then :
5731 break
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext
5734 CC="$CC -n32"
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 ac_cv_sys_largefile_CC=' -n32'; break
5737 fi
5738 rm -f core conftest.err conftest.$ac_objext
5739 break
5740 done
5741 CC=$ac_save_CC
5742 rm -f conftest.$ac_ext
5743 fi
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5746 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5747 if test "$ac_cv_sys_largefile_CC" != no; then
5748 CC=$CC$ac_cv_sys_largefile_CC
5749 fi
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5752 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5753 if ${ac_cv_sys_file_offset_bits+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 while :; do
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777 ac_cv_sys_file_offset_bits=no; break
5778 fi
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 #define _FILE_OFFSET_BITS 64
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5791 ? 1 : -1];
5792 int
5793 main ()
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 ac_cv_sys_file_offset_bits=64; break
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_cv_sys_file_offset_bits=unknown
5805 break
5806 done
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5809 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5810 case $ac_cv_sys_file_offset_bits in #(
5811 no | unknown) ;;
5812 *)
5813 cat >>confdefs.h <<_ACEOF
5814 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5815 _ACEOF
5816 ;;
5817 esac
5818 rm -rf conftest*
5819 if test $ac_cv_sys_file_offset_bits = unknown; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5821 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5822 if ${ac_cv_sys_large_files+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 while :; do
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5829 /* Check that off_t can represent 2**63 - 1 correctly.
5830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5831 since some C++ compilers masquerading as C compilers
5832 incorrectly reject 9223372036854775807. */
5833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5835 && LARGE_OFF_T % 2147483647 == 1)
5836 ? 1 : -1];
5837 int
5838 main ()
5839 {
5840
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"; then :
5846 ac_cv_sys_large_files=no; break
5847 fi
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #define _LARGE_FILES 1
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5860 ? 1 : -1];
5861 int
5862 main ()
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870 ac_cv_sys_large_files=1; break
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 ac_cv_sys_large_files=unknown
5874 break
5875 done
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5878 $as_echo "$ac_cv_sys_large_files" >&6; }
5879 case $ac_cv_sys_large_files in #(
5880 no | unknown) ;;
5881 *)
5882 cat >>confdefs.h <<_ACEOF
5883 #define _LARGE_FILES $ac_cv_sys_large_files
5884 _ACEOF
5885 ;;
5886 esac
5887 rm -rf conftest*
5888 fi
5889
5890
5891 fi
5892
5893
5894
5895 # We require a C++11 compiler. Check if one is available, and if
5896 # necessary, set CXX_DIALECT to some -std=xxx switch.
5897
5898 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5899 ac_ext=cpp
5900 ac_cpp='$CXXCPP $CPPFLAGS'
5901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5904 CXX_DIALECT=""
5905 ac_success=no
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5907 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5908 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913
5914
5915 // If the compiler admits that it is not ready for C++11, why torture it?
5916 // Hopefully, this will speed up the test.
5917
5918 #ifndef __cplusplus
5919
5920 #error "This is not a C++ compiler"
5921
5922 #elif __cplusplus < 201103L
5923
5924 #error "This is not a C++11 compiler"
5925
5926 #else
5927
5928 namespace cxx11
5929 {
5930
5931 namespace test_static_assert
5932 {
5933
5934 template <typename T>
5935 struct check
5936 {
5937 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5938 };
5939
5940 }
5941
5942 namespace test_final_override
5943 {
5944
5945 struct Base
5946 {
5947 virtual void f() {}
5948 };
5949
5950 struct Derived : public Base
5951 {
5952 virtual void f() override {}
5953 };
5954
5955 }
5956
5957 namespace test_double_right_angle_brackets
5958 {
5959
5960 template < typename T >
5961 struct check {};
5962
5963 typedef check<void> single_type;
5964 typedef check<check<void>> double_type;
5965 typedef check<check<check<void>>> triple_type;
5966 typedef check<check<check<check<void>>>> quadruple_type;
5967
5968 }
5969
5970 namespace test_decltype
5971 {
5972
5973 int
5974 f()
5975 {
5976 int a = 1;
5977 decltype(a) b = 2;
5978 return a + b;
5979 }
5980
5981 }
5982
5983 namespace test_type_deduction
5984 {
5985
5986 template < typename T1, typename T2 >
5987 struct is_same
5988 {
5989 static const bool value = false;
5990 };
5991
5992 template < typename T >
5993 struct is_same<T, T>
5994 {
5995 static const bool value = true;
5996 };
5997
5998 template < typename T1, typename T2 >
5999 auto
6000 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6001 {
6002 return a1 + a2;
6003 }
6004
6005 int
6006 test(const int c, volatile int v)
6007 {
6008 static_assert(is_same<int, decltype(0)>::value == true, "");
6009 static_assert(is_same<int, decltype(c)>::value == false, "");
6010 static_assert(is_same<int, decltype(v)>::value == false, "");
6011 auto ac = c;
6012 auto av = v;
6013 auto sumi = ac + av + 'x';
6014 auto sumf = ac + av + 1.0;
6015 static_assert(is_same<int, decltype(ac)>::value == true, "");
6016 static_assert(is_same<int, decltype(av)>::value == true, "");
6017 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6018 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6019 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6020 return (sumf > 0.0) ? sumi : add(c, v);
6021 }
6022
6023 }
6024
6025 namespace test_noexcept
6026 {
6027
6028 int f() { return 0; }
6029 int g() noexcept { return 0; }
6030
6031 static_assert(noexcept(f()) == false, "");
6032 static_assert(noexcept(g()) == true, "");
6033
6034 }
6035
6036 namespace test_constexpr
6037 {
6038
6039 template < typename CharT >
6040 unsigned long constexpr
6041 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6042 {
6043 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6044 }
6045
6046 template < typename CharT >
6047 unsigned long constexpr
6048 strlen_c(const CharT *const s) noexcept
6049 {
6050 return strlen_c_r(s, 0UL);
6051 }
6052
6053 static_assert(strlen_c("") == 0UL, "");
6054 static_assert(strlen_c("1") == 1UL, "");
6055 static_assert(strlen_c("example") == 7UL, "");
6056 static_assert(strlen_c("another\0example") == 7UL, "");
6057
6058 }
6059
6060 namespace test_rvalue_references
6061 {
6062
6063 template < int N >
6064 struct answer
6065 {
6066 static constexpr int value = N;
6067 };
6068
6069 answer<1> f(int&) { return answer<1>(); }
6070 answer<2> f(const int&) { return answer<2>(); }
6071 answer<3> f(int&&) { return answer<3>(); }
6072
6073 void
6074 test()
6075 {
6076 int i = 0;
6077 const int c = 0;
6078 static_assert(decltype(f(i))::value == 1, "");
6079 static_assert(decltype(f(c))::value == 2, "");
6080 static_assert(decltype(f(0))::value == 3, "");
6081 }
6082
6083 }
6084
6085 namespace test_uniform_initialization
6086 {
6087
6088 struct test
6089 {
6090 static const int zero {};
6091 static const int one {1};
6092 };
6093
6094 static_assert(test::zero == 0, "");
6095 static_assert(test::one == 1, "");
6096
6097 }
6098
6099 namespace test_lambdas
6100 {
6101
6102 void
6103 test1()
6104 {
6105 auto lambda1 = [](){};
6106 auto lambda2 = lambda1;
6107 lambda1();
6108 lambda2();
6109 }
6110
6111 int
6112 test2()
6113 {
6114 auto a = [](int i, int j){ return i + j; }(1, 2);
6115 auto b = []() -> int { return '0'; }();
6116 auto c = [=](){ return a + b; }();
6117 auto d = [&](){ return c; }();
6118 auto e = [a, &b](int x) mutable {
6119 const auto identity = [](int y){ return y; };
6120 for (auto i = 0; i < a; ++i)
6121 a += b--;
6122 return x + identity(a + b);
6123 }(0);
6124 return a + b + c + d + e;
6125 }
6126
6127 int
6128 test3()
6129 {
6130 const auto nullary = [](){ return 0; };
6131 const auto unary = [](int x){ return x; };
6132 using nullary_t = decltype(nullary);
6133 using unary_t = decltype(unary);
6134 const auto higher1st = [](nullary_t f){ return f(); };
6135 const auto higher2nd = [unary](nullary_t f1){
6136 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6137 };
6138 return higher1st(nullary) + higher2nd(nullary)(unary);
6139 }
6140
6141 }
6142
6143 namespace test_variadic_templates
6144 {
6145
6146 template <int...>
6147 struct sum;
6148
6149 template <int N0, int... N1toN>
6150 struct sum<N0, N1toN...>
6151 {
6152 static constexpr auto value = N0 + sum<N1toN...>::value;
6153 };
6154
6155 template <>
6156 struct sum<>
6157 {
6158 static constexpr auto value = 0;
6159 };
6160
6161 static_assert(sum<>::value == 0, "");
6162 static_assert(sum<1>::value == 1, "");
6163 static_assert(sum<23>::value == 23, "");
6164 static_assert(sum<1, 2>::value == 3, "");
6165 static_assert(sum<5, 5, 11>::value == 21, "");
6166 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6167
6168 }
6169
6170 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6171 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6172 // because of this.
6173 namespace test_template_alias_sfinae
6174 {
6175
6176 struct foo {};
6177
6178 template<typename T>
6179 using member = typename T::member_type;
6180
6181 template<typename T>
6182 void func(...) {}
6183
6184 template<typename T>
6185 void func(member<T>*) {}
6186
6187 void test();
6188
6189 void test() { func<foo>(0); }
6190
6191 }
6192
6193 } // namespace cxx11
6194
6195 #endif // __cplusplus >= 201103L
6196
6197
6198
6199 _ACEOF
6200 if ac_fn_cxx_try_compile "$LINENO"; then :
6201 ax_cv_cxx_compile_cxx11=yes
6202 else
6203 ax_cv_cxx_compile_cxx11=no
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 fi
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6208 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6209 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6210 ac_success=yes
6211 fi
6212
6213 if test x$ac_success = xno; then
6214 for alternative in ${ax_cxx_compile_alternatives}; do
6215 switch="-std=gnu++${alternative}"
6216 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6218 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6219 if eval \${$cachevar+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 ac_save_CXX="$CXX"
6223 CXX="$CXX $switch"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226
6227
6228 // If the compiler admits that it is not ready for C++11, why torture it?
6229 // Hopefully, this will speed up the test.
6230
6231 #ifndef __cplusplus
6232
6233 #error "This is not a C++ compiler"
6234
6235 #elif __cplusplus < 201103L
6236
6237 #error "This is not a C++11 compiler"
6238
6239 #else
6240
6241 namespace cxx11
6242 {
6243
6244 namespace test_static_assert
6245 {
6246
6247 template <typename T>
6248 struct check
6249 {
6250 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6251 };
6252
6253 }
6254
6255 namespace test_final_override
6256 {
6257
6258 struct Base
6259 {
6260 virtual void f() {}
6261 };
6262
6263 struct Derived : public Base
6264 {
6265 virtual void f() override {}
6266 };
6267
6268 }
6269
6270 namespace test_double_right_angle_brackets
6271 {
6272
6273 template < typename T >
6274 struct check {};
6275
6276 typedef check<void> single_type;
6277 typedef check<check<void>> double_type;
6278 typedef check<check<check<void>>> triple_type;
6279 typedef check<check<check<check<void>>>> quadruple_type;
6280
6281 }
6282
6283 namespace test_decltype
6284 {
6285
6286 int
6287 f()
6288 {
6289 int a = 1;
6290 decltype(a) b = 2;
6291 return a + b;
6292 }
6293
6294 }
6295
6296 namespace test_type_deduction
6297 {
6298
6299 template < typename T1, typename T2 >
6300 struct is_same
6301 {
6302 static const bool value = false;
6303 };
6304
6305 template < typename T >
6306 struct is_same<T, T>
6307 {
6308 static const bool value = true;
6309 };
6310
6311 template < typename T1, typename T2 >
6312 auto
6313 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6314 {
6315 return a1 + a2;
6316 }
6317
6318 int
6319 test(const int c, volatile int v)
6320 {
6321 static_assert(is_same<int, decltype(0)>::value == true, "");
6322 static_assert(is_same<int, decltype(c)>::value == false, "");
6323 static_assert(is_same<int, decltype(v)>::value == false, "");
6324 auto ac = c;
6325 auto av = v;
6326 auto sumi = ac + av + 'x';
6327 auto sumf = ac + av + 1.0;
6328 static_assert(is_same<int, decltype(ac)>::value == true, "");
6329 static_assert(is_same<int, decltype(av)>::value == true, "");
6330 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6331 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6332 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6333 return (sumf > 0.0) ? sumi : add(c, v);
6334 }
6335
6336 }
6337
6338 namespace test_noexcept
6339 {
6340
6341 int f() { return 0; }
6342 int g() noexcept { return 0; }
6343
6344 static_assert(noexcept(f()) == false, "");
6345 static_assert(noexcept(g()) == true, "");
6346
6347 }
6348
6349 namespace test_constexpr
6350 {
6351
6352 template < typename CharT >
6353 unsigned long constexpr
6354 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6355 {
6356 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6357 }
6358
6359 template < typename CharT >
6360 unsigned long constexpr
6361 strlen_c(const CharT *const s) noexcept
6362 {
6363 return strlen_c_r(s, 0UL);
6364 }
6365
6366 static_assert(strlen_c("") == 0UL, "");
6367 static_assert(strlen_c("1") == 1UL, "");
6368 static_assert(strlen_c("example") == 7UL, "");
6369 static_assert(strlen_c("another\0example") == 7UL, "");
6370
6371 }
6372
6373 namespace test_rvalue_references
6374 {
6375
6376 template < int N >
6377 struct answer
6378 {
6379 static constexpr int value = N;
6380 };
6381
6382 answer<1> f(int&) { return answer<1>(); }
6383 answer<2> f(const int&) { return answer<2>(); }
6384 answer<3> f(int&&) { return answer<3>(); }
6385
6386 void
6387 test()
6388 {
6389 int i = 0;
6390 const int c = 0;
6391 static_assert(decltype(f(i))::value == 1, "");
6392 static_assert(decltype(f(c))::value == 2, "");
6393 static_assert(decltype(f(0))::value == 3, "");
6394 }
6395
6396 }
6397
6398 namespace test_uniform_initialization
6399 {
6400
6401 struct test
6402 {
6403 static const int zero {};
6404 static const int one {1};
6405 };
6406
6407 static_assert(test::zero == 0, "");
6408 static_assert(test::one == 1, "");
6409
6410 }
6411
6412 namespace test_lambdas
6413 {
6414
6415 void
6416 test1()
6417 {
6418 auto lambda1 = [](){};
6419 auto lambda2 = lambda1;
6420 lambda1();
6421 lambda2();
6422 }
6423
6424 int
6425 test2()
6426 {
6427 auto a = [](int i, int j){ return i + j; }(1, 2);
6428 auto b = []() -> int { return '0'; }();
6429 auto c = [=](){ return a + b; }();
6430 auto d = [&](){ return c; }();
6431 auto e = [a, &b](int x) mutable {
6432 const auto identity = [](int y){ return y; };
6433 for (auto i = 0; i < a; ++i)
6434 a += b--;
6435 return x + identity(a + b);
6436 }(0);
6437 return a + b + c + d + e;
6438 }
6439
6440 int
6441 test3()
6442 {
6443 const auto nullary = [](){ return 0; };
6444 const auto unary = [](int x){ return x; };
6445 using nullary_t = decltype(nullary);
6446 using unary_t = decltype(unary);
6447 const auto higher1st = [](nullary_t f){ return f(); };
6448 const auto higher2nd = [unary](nullary_t f1){
6449 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6450 };
6451 return higher1st(nullary) + higher2nd(nullary)(unary);
6452 }
6453
6454 }
6455
6456 namespace test_variadic_templates
6457 {
6458
6459 template <int...>
6460 struct sum;
6461
6462 template <int N0, int... N1toN>
6463 struct sum<N0, N1toN...>
6464 {
6465 static constexpr auto value = N0 + sum<N1toN...>::value;
6466 };
6467
6468 template <>
6469 struct sum<>
6470 {
6471 static constexpr auto value = 0;
6472 };
6473
6474 static_assert(sum<>::value == 0, "");
6475 static_assert(sum<1>::value == 1, "");
6476 static_assert(sum<23>::value == 23, "");
6477 static_assert(sum<1, 2>::value == 3, "");
6478 static_assert(sum<5, 5, 11>::value == 21, "");
6479 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6480
6481 }
6482
6483 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6484 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6485 // because of this.
6486 namespace test_template_alias_sfinae
6487 {
6488
6489 struct foo {};
6490
6491 template<typename T>
6492 using member = typename T::member_type;
6493
6494 template<typename T>
6495 void func(...) {}
6496
6497 template<typename T>
6498 void func(member<T>*) {}
6499
6500 void test();
6501
6502 void test() { func<foo>(0); }
6503
6504 }
6505
6506 } // namespace cxx11
6507
6508 #endif // __cplusplus >= 201103L
6509
6510
6511
6512 _ACEOF
6513 if ac_fn_cxx_try_compile "$LINENO"; then :
6514 eval $cachevar=yes
6515 else
6516 eval $cachevar=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 CXX="$ac_save_CXX"
6520 fi
6521 eval ac_res=\$$cachevar
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6524 if eval test x\$$cachevar = xyes; then
6525 CXX_DIALECT="$switch"
6526 CXX="$CXX $switch"
6527 if test -n "$CXXCPP" ; then
6528 CXXCPP="$CXXCPP $switch"
6529 fi
6530 ac_success=yes
6531 break
6532 fi
6533 done
6534 fi
6535
6536 if test x$ac_success = xno; then
6537 for alternative in ${ax_cxx_compile_alternatives}; do
6538 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6539 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6541 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6542 if eval \${$cachevar+:} false; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6545 ac_save_CXX="$CXX"
6546 CXX="$CXX $switch"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549
6550
6551 // If the compiler admits that it is not ready for C++11, why torture it?
6552 // Hopefully, this will speed up the test.
6553
6554 #ifndef __cplusplus
6555
6556 #error "This is not a C++ compiler"
6557
6558 #elif __cplusplus < 201103L
6559
6560 #error "This is not a C++11 compiler"
6561
6562 #else
6563
6564 namespace cxx11
6565 {
6566
6567 namespace test_static_assert
6568 {
6569
6570 template <typename T>
6571 struct check
6572 {
6573 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6574 };
6575
6576 }
6577
6578 namespace test_final_override
6579 {
6580
6581 struct Base
6582 {
6583 virtual void f() {}
6584 };
6585
6586 struct Derived : public Base
6587 {
6588 virtual void f() override {}
6589 };
6590
6591 }
6592
6593 namespace test_double_right_angle_brackets
6594 {
6595
6596 template < typename T >
6597 struct check {};
6598
6599 typedef check<void> single_type;
6600 typedef check<check<void>> double_type;
6601 typedef check<check<check<void>>> triple_type;
6602 typedef check<check<check<check<void>>>> quadruple_type;
6603
6604 }
6605
6606 namespace test_decltype
6607 {
6608
6609 int
6610 f()
6611 {
6612 int a = 1;
6613 decltype(a) b = 2;
6614 return a + b;
6615 }
6616
6617 }
6618
6619 namespace test_type_deduction
6620 {
6621
6622 template < typename T1, typename T2 >
6623 struct is_same
6624 {
6625 static const bool value = false;
6626 };
6627
6628 template < typename T >
6629 struct is_same<T, T>
6630 {
6631 static const bool value = true;
6632 };
6633
6634 template < typename T1, typename T2 >
6635 auto
6636 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6637 {
6638 return a1 + a2;
6639 }
6640
6641 int
6642 test(const int c, volatile int v)
6643 {
6644 static_assert(is_same<int, decltype(0)>::value == true, "");
6645 static_assert(is_same<int, decltype(c)>::value == false, "");
6646 static_assert(is_same<int, decltype(v)>::value == false, "");
6647 auto ac = c;
6648 auto av = v;
6649 auto sumi = ac + av + 'x';
6650 auto sumf = ac + av + 1.0;
6651 static_assert(is_same<int, decltype(ac)>::value == true, "");
6652 static_assert(is_same<int, decltype(av)>::value == true, "");
6653 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6654 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6655 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6656 return (sumf > 0.0) ? sumi : add(c, v);
6657 }
6658
6659 }
6660
6661 namespace test_noexcept
6662 {
6663
6664 int f() { return 0; }
6665 int g() noexcept { return 0; }
6666
6667 static_assert(noexcept(f()) == false, "");
6668 static_assert(noexcept(g()) == true, "");
6669
6670 }
6671
6672 namespace test_constexpr
6673 {
6674
6675 template < typename CharT >
6676 unsigned long constexpr
6677 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6678 {
6679 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6680 }
6681
6682 template < typename CharT >
6683 unsigned long constexpr
6684 strlen_c(const CharT *const s) noexcept
6685 {
6686 return strlen_c_r(s, 0UL);
6687 }
6688
6689 static_assert(strlen_c("") == 0UL, "");
6690 static_assert(strlen_c("1") == 1UL, "");
6691 static_assert(strlen_c("example") == 7UL, "");
6692 static_assert(strlen_c("another\0example") == 7UL, "");
6693
6694 }
6695
6696 namespace test_rvalue_references
6697 {
6698
6699 template < int N >
6700 struct answer
6701 {
6702 static constexpr int value = N;
6703 };
6704
6705 answer<1> f(int&) { return answer<1>(); }
6706 answer<2> f(const int&) { return answer<2>(); }
6707 answer<3> f(int&&) { return answer<3>(); }
6708
6709 void
6710 test()
6711 {
6712 int i = 0;
6713 const int c = 0;
6714 static_assert(decltype(f(i))::value == 1, "");
6715 static_assert(decltype(f(c))::value == 2, "");
6716 static_assert(decltype(f(0))::value == 3, "");
6717 }
6718
6719 }
6720
6721 namespace test_uniform_initialization
6722 {
6723
6724 struct test
6725 {
6726 static const int zero {};
6727 static const int one {1};
6728 };
6729
6730 static_assert(test::zero == 0, "");
6731 static_assert(test::one == 1, "");
6732
6733 }
6734
6735 namespace test_lambdas
6736 {
6737
6738 void
6739 test1()
6740 {
6741 auto lambda1 = [](){};
6742 auto lambda2 = lambda1;
6743 lambda1();
6744 lambda2();
6745 }
6746
6747 int
6748 test2()
6749 {
6750 auto a = [](int i, int j){ return i + j; }(1, 2);
6751 auto b = []() -> int { return '0'; }();
6752 auto c = [=](){ return a + b; }();
6753 auto d = [&](){ return c; }();
6754 auto e = [a, &b](int x) mutable {
6755 const auto identity = [](int y){ return y; };
6756 for (auto i = 0; i < a; ++i)
6757 a += b--;
6758 return x + identity(a + b);
6759 }(0);
6760 return a + b + c + d + e;
6761 }
6762
6763 int
6764 test3()
6765 {
6766 const auto nullary = [](){ return 0; };
6767 const auto unary = [](int x){ return x; };
6768 using nullary_t = decltype(nullary);
6769 using unary_t = decltype(unary);
6770 const auto higher1st = [](nullary_t f){ return f(); };
6771 const auto higher2nd = [unary](nullary_t f1){
6772 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6773 };
6774 return higher1st(nullary) + higher2nd(nullary)(unary);
6775 }
6776
6777 }
6778
6779 namespace test_variadic_templates
6780 {
6781
6782 template <int...>
6783 struct sum;
6784
6785 template <int N0, int... N1toN>
6786 struct sum<N0, N1toN...>
6787 {
6788 static constexpr auto value = N0 + sum<N1toN...>::value;
6789 };
6790
6791 template <>
6792 struct sum<>
6793 {
6794 static constexpr auto value = 0;
6795 };
6796
6797 static_assert(sum<>::value == 0, "");
6798 static_assert(sum<1>::value == 1, "");
6799 static_assert(sum<23>::value == 23, "");
6800 static_assert(sum<1, 2>::value == 3, "");
6801 static_assert(sum<5, 5, 11>::value == 21, "");
6802 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6803
6804 }
6805
6806 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6807 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6808 // because of this.
6809 namespace test_template_alias_sfinae
6810 {
6811
6812 struct foo {};
6813
6814 template<typename T>
6815 using member = typename T::member_type;
6816
6817 template<typename T>
6818 void func(...) {}
6819
6820 template<typename T>
6821 void func(member<T>*) {}
6822
6823 void test();
6824
6825 void test() { func<foo>(0); }
6826
6827 }
6828
6829 } // namespace cxx11
6830
6831 #endif // __cplusplus >= 201103L
6832
6833
6834
6835 _ACEOF
6836 if ac_fn_cxx_try_compile "$LINENO"; then :
6837 eval $cachevar=yes
6838 else
6839 eval $cachevar=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 CXX="$ac_save_CXX"
6843 fi
6844 eval ac_res=\$$cachevar
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if eval test x\$$cachevar = xyes; then
6848 CXX_DIALECT="$switch"
6849 CXX="$CXX $switch"
6850 if test -n "$CXXCPP" ; then
6851 CXXCPP="$CXXCPP $switch"
6852 fi
6853 ac_success=yes
6854 break
6855 fi
6856 done
6857 if test x$ac_success = xyes; then
6858 break
6859 fi
6860 done
6861 fi
6862 ac_ext=c
6863 ac_cpp='$CPP $CPPFLAGS'
6864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867
6868 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6869 if test x$ac_success = xno; then
6870 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6871 fi
6872 fi
6873 if test x$ac_success = xno; then
6874 HAVE_CXX11=0
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6876 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6877 else
6878 HAVE_CXX11=1
6879
6880 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6881
6882 fi
6883
6884
6885
6886
6887 # If we haven't got the data from the intl directory,
6888 # assume NLS is disabled.
6889 USE_NLS=no
6890 LIBINTL=
6891 LIBINTL_DEP=
6892 INCINTL=
6893 XGETTEXT=
6894 GMSGFMT=
6895 POSUB=
6896
6897 if test -f ../intl/config.intl; then
6898 . ../intl/config.intl
6899 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6901 $as_echo_n "checking whether NLS is requested... " >&6; }
6902 if test x"$USE_NLS" != xyes; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6907 $as_echo "yes" >&6; }
6908
6909 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6910
6911
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6913 $as_echo_n "checking for catalogs to be installed... " >&6; }
6914 # Look for .po and .gmo files in the source directory.
6915 CATALOGS=
6916 XLINGUAS=
6917 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6918 # If there aren't any .gmo files the shell will give us the
6919 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6920 # weeded out.
6921 case "$cat" in *\**)
6922 continue;;
6923 esac
6924 # The quadruple backslash is collapsed to a double backslash
6925 # by the backticks, then collapsed again by the double quotes,
6926 # leaving us with one backslash in the sed expression (right
6927 # before the dot that mustn't act as a wildcard).
6928 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6929 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6930 # The user is allowed to set LINGUAS to a list of languages to
6931 # install catalogs for. If it's empty that means "all of them."
6932 if test "x$LINGUAS" = x; then
6933 CATALOGS="$CATALOGS $cat"
6934 XLINGUAS="$XLINGUAS $lang"
6935 else
6936 case "$LINGUAS" in *$lang*)
6937 CATALOGS="$CATALOGS $cat"
6938 XLINGUAS="$XLINGUAS $lang"
6939 ;;
6940 esac
6941 fi
6942 done
6943 LINGUAS="$XLINGUAS"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6945 $as_echo "$LINGUAS" >&6; }
6946
6947
6948 DATADIRNAME=share
6949
6950 INSTOBJEXT=.mo
6951
6952 GENCAT=gencat
6953
6954 CATOBJEXT=.gmo
6955
6956 fi
6957
6958
6959 # Check for presence and size of long long.
6960 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6961 if test "x$ac_cv_type_long_long" = xyes; then :
6962
6963 cat >>confdefs.h <<_ACEOF
6964 #define HAVE_LONG_LONG 1
6965 _ACEOF
6966
6967 # The cast to long int works around a bug in the HP C Compiler
6968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6970 # This bug is HP SR number 8606223364.
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6972 $as_echo_n "checking size of long long... " >&6; }
6973 if ${ac_cv_sizeof_long_long+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6977
6978 else
6979 if test "$ac_cv_type_long_long" = yes; then
6980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6982 as_fn_error 77 "cannot compute sizeof (long long)
6983 See \`config.log' for more details" "$LINENO" 5; }
6984 else
6985 ac_cv_sizeof_long_long=0
6986 fi
6987 fi
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6991 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6992
6993
6994
6995 cat >>confdefs.h <<_ACEOF
6996 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6997 _ACEOF
6998
6999
7000 fi
7001
7002
7003 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7004 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7005 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7006 ac_have_decl=1
7007 else
7008 ac_have_decl=0
7009 fi
7010
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_DECL_BASENAME $ac_have_decl
7013 _ACEOF
7014 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7015 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7016 ac_have_decl=1
7017 else
7018 ac_have_decl=0
7019 fi
7020
7021 cat >>confdefs.h <<_ACEOF
7022 #define HAVE_DECL_FFS $ac_have_decl
7023 _ACEOF
7024 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7025 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7026 ac_have_decl=1
7027 else
7028 ac_have_decl=0
7029 fi
7030
7031 cat >>confdefs.h <<_ACEOF
7032 #define HAVE_DECL_ASPRINTF $ac_have_decl
7033 _ACEOF
7034 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7035 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7036 ac_have_decl=1
7037 else
7038 ac_have_decl=0
7039 fi
7040
7041 cat >>confdefs.h <<_ACEOF
7042 #define HAVE_DECL_VASPRINTF $ac_have_decl
7043 _ACEOF
7044 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7045 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7046 ac_have_decl=1
7047 else
7048 ac_have_decl=0
7049 fi
7050
7051 cat >>confdefs.h <<_ACEOF
7052 #define HAVE_DECL_SNPRINTF $ac_have_decl
7053 _ACEOF
7054 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7055 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7056 ac_have_decl=1
7057 else
7058 ac_have_decl=0
7059 fi
7060
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7063 _ACEOF
7064
7065 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7066 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7067 ac_have_decl=1
7068 else
7069 ac_have_decl=0
7070 fi
7071
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_DECL_STRTOL $ac_have_decl
7074 _ACEOF
7075 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7076 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7077 ac_have_decl=1
7078 else
7079 ac_have_decl=0
7080 fi
7081
7082 cat >>confdefs.h <<_ACEOF
7083 #define HAVE_DECL_STRTOUL $ac_have_decl
7084 _ACEOF
7085 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7086 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7087 ac_have_decl=1
7088 else
7089 ac_have_decl=0
7090 fi
7091
7092 cat >>confdefs.h <<_ACEOF
7093 #define HAVE_DECL_STRTOLL $ac_have_decl
7094 _ACEOF
7095 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7096 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7097 ac_have_decl=1
7098 else
7099 ac_have_decl=0
7100 fi
7101
7102 cat >>confdefs.h <<_ACEOF
7103 #define HAVE_DECL_STRTOULL $ac_have_decl
7104 _ACEOF
7105
7106 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7107 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7108 ac_have_decl=1
7109 else
7110 ac_have_decl=0
7111 fi
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7115 _ACEOF
7116
7117
7118 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7119 if test "x$ac_cv_type_size_t" = xyes; then :
7120
7121 else
7122
7123 cat >>confdefs.h <<_ACEOF
7124 #define size_t unsigned int
7125 _ACEOF
7126
7127 fi
7128
7129
7130
7131
7132 for ac_header in $ac_header_list
7133 do :
7134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7136 "
7137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7138 cat >>confdefs.h <<_ACEOF
7139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7140 _ACEOF
7141
7142 fi
7143
7144 done
7145
7146
7147
7148
7149
7150
7151
7152 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7153 if test "x$ac_cv_type_pid_t" = xyes; then :
7154
7155 else
7156
7157 cat >>confdefs.h <<_ACEOF
7158 #define pid_t int
7159 _ACEOF
7160
7161 fi
7162
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7164 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7165 if ${ac_cv_path_SED+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7169 for ac_i in 1 2 3 4 5 6 7; do
7170 ac_script="$ac_script$as_nl$ac_script"
7171 done
7172 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7173 { ac_script=; unset ac_script;}
7174 if test -z "$SED"; then
7175 ac_path_SED_found=false
7176 # Loop through the user's path and test for each of PROGNAME-LIST
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_prog in sed gsed; do
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7185 as_fn_executable_p "$ac_path_SED" || continue
7186 # Check for GNU ac_path_SED and select it if it is found.
7187 # Check for GNU $ac_path_SED
7188 case `"$ac_path_SED" --version 2>&1` in
7189 *GNU*)
7190 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7191 *)
7192 ac_count=0
7193 $as_echo_n 0123456789 >"conftest.in"
7194 while :
7195 do
7196 cat "conftest.in" "conftest.in" >"conftest.tmp"
7197 mv "conftest.tmp" "conftest.in"
7198 cp "conftest.in" "conftest.nl"
7199 $as_echo '' >> "conftest.nl"
7200 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7202 as_fn_arith $ac_count + 1 && ac_count=$as_val
7203 if test $ac_count -gt ${ac_path_SED_max-0}; then
7204 # Best one so far, save it but keep looking for a better one
7205 ac_cv_path_SED="$ac_path_SED"
7206 ac_path_SED_max=$ac_count
7207 fi
7208 # 10*(2^10) chars as input seems more than enough
7209 test $ac_count -gt 10 && break
7210 done
7211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7212 esac
7213
7214 $ac_path_SED_found && break 3
7215 done
7216 done
7217 done
7218 IFS=$as_save_IFS
7219 if test -z "$ac_cv_path_SED"; then
7220 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7221 fi
7222 else
7223 ac_cv_path_SED=$SED
7224 fi
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7228 $as_echo "$ac_cv_path_SED" >&6; }
7229 SED="$ac_cv_path_SED"
7230 rm -f conftest.sed
7231
7232
7233 if test "X$prefix" = "XNONE"; then
7234 acl_final_prefix="$ac_default_prefix"
7235 else
7236 acl_final_prefix="$prefix"
7237 fi
7238 if test "X$exec_prefix" = "XNONE"; then
7239 acl_final_exec_prefix='${prefix}'
7240 else
7241 acl_final_exec_prefix="$exec_prefix"
7242 fi
7243 acl_save_prefix="$prefix"
7244 prefix="$acl_final_prefix"
7245 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7246 prefix="$acl_save_prefix"
7247
7248
7249 # Check whether --with-gnu-ld was given.
7250 if test "${with_gnu_ld+set}" = set; then :
7251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7252 else
7253 with_gnu_ld=no
7254 fi
7255
7256 # Prepare PATH_SEPARATOR.
7257 # The user is always right.
7258 if test "${PATH_SEPARATOR+set}" != set; then
7259 echo "#! /bin/sh" >conf$$.sh
7260 echo "exit 0" >>conf$$.sh
7261 chmod +x conf$$.sh
7262 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7263 PATH_SEPARATOR=';'
7264 else
7265 PATH_SEPARATOR=:
7266 fi
7267 rm -f conf$$.sh
7268 fi
7269 ac_prog=ld
7270 if test "$GCC" = yes; then
7271 # Check if gcc -print-prog-name=ld gives a path.
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7273 $as_echo_n "checking for ld used by GCC... " >&6; }
7274 case $host in
7275 *-*-mingw*)
7276 # gcc leaves a trailing carriage return which upsets mingw
7277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7278 *)
7279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7280 esac
7281 case $ac_prog in
7282 # Accept absolute paths.
7283 [\\/]* | [A-Za-z]:[\\/]*)
7284 re_direlt='/[^/][^/]*/\.\./'
7285 # Canonicalize the path of ld
7286 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7287 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7288 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7289 done
7290 test -z "$LD" && LD="$ac_prog"
7291 ;;
7292 "")
7293 # If it fails, then pretend we aren't using GCC.
7294 ac_prog=ld
7295 ;;
7296 *)
7297 # If it is relative, then search for the first ld in PATH.
7298 with_gnu_ld=unknown
7299 ;;
7300 esac
7301 elif test "$with_gnu_ld" = yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7303 $as_echo_n "checking for GNU ld... " >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7306 $as_echo_n "checking for non-GNU ld... " >&6; }
7307 fi
7308 if ${acl_cv_path_LD+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -z "$LD"; then
7312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7313 for ac_dir in $PATH; do
7314 test -z "$ac_dir" && ac_dir=.
7315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7316 acl_cv_path_LD="$ac_dir/$ac_prog"
7317 # Check to see if the program is GNU ld. I'd rather use --version,
7318 # but apparently some GNU ld's only accept -v.
7319 # Break only if it was the GNU/non-GNU ld that we prefer.
7320 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7321 test "$with_gnu_ld" != no && break
7322 else
7323 test "$with_gnu_ld" != yes && break
7324 fi
7325 fi
7326 done
7327 IFS="$ac_save_ifs"
7328 else
7329 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7330 fi
7331 fi
7332
7333 LD="$acl_cv_path_LD"
7334 if test -n "$LD"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7336 $as_echo "$LD" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7343 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7344 if ${acl_cv_prog_gnu_ld+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7348 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7349 acl_cv_prog_gnu_ld=yes
7350 else
7351 acl_cv_prog_gnu_ld=no
7352 fi
7353 fi
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7355 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7356 with_gnu_ld=$acl_cv_prog_gnu_ld
7357
7358
7359
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7361 $as_echo_n "checking for shared library run path origin... " >&6; }
7362 if ${acl_cv_rpath+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365
7366 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7367 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7368 . ./conftest.sh
7369 rm -f ./conftest.sh
7370 acl_cv_rpath=done
7371
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7374 $as_echo "$acl_cv_rpath" >&6; }
7375 wl="$acl_cv_wl"
7376 libext="$acl_cv_libext"
7377 shlibext="$acl_cv_shlibext"
7378 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7379 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7380 hardcode_direct="$acl_cv_hardcode_direct"
7381 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7382 # Check whether --enable-rpath was given.
7383 if test "${enable_rpath+set}" = set; then :
7384 enableval=$enable_rpath; :
7385 else
7386 enable_rpath=yes
7387 fi
7388
7389
7390
7391 # Set the 'development' global.
7392 . $srcdir/../bfd/development.sh
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7395 $as_echo_n "checking for ANSI C header files... " >&6; }
7396 if ${ac_cv_header_stdc+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 #include <stdlib.h>
7402 #include <stdarg.h>
7403 #include <string.h>
7404 #include <float.h>
7405
7406 int
7407 main ()
7408 {
7409
7410 ;
7411 return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_compile "$LINENO"; then :
7415 ac_cv_header_stdc=yes
7416 else
7417 ac_cv_header_stdc=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420
7421 if test $ac_cv_header_stdc = yes; then
7422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <string.h>
7426
7427 _ACEOF
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429 $EGREP "memchr" >/dev/null 2>&1; then :
7430
7431 else
7432 ac_cv_header_stdc=no
7433 fi
7434 rm -f conftest*
7435
7436 fi
7437
7438 if test $ac_cv_header_stdc = yes; then
7439 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <stdlib.h>
7443
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "free" >/dev/null 2>&1; then :
7447
7448 else
7449 ac_cv_header_stdc=no
7450 fi
7451 rm -f conftest*
7452
7453 fi
7454
7455 if test $ac_cv_header_stdc = yes; then
7456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7457 if test "$cross_compiling" = yes; then :
7458 :
7459 else
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <ctype.h>
7463 #include <stdlib.h>
7464 #if ((' ' & 0x0FF) == 0x020)
7465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7467 #else
7468 # define ISLOWER(c) \
7469 (('a' <= (c) && (c) <= 'i') \
7470 || ('j' <= (c) && (c) <= 'r') \
7471 || ('s' <= (c) && (c) <= 'z'))
7472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7473 #endif
7474
7475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7476 int
7477 main ()
7478 {
7479 int i;
7480 for (i = 0; i < 256; i++)
7481 if (XOR (islower (i), ISLOWER (i))
7482 || toupper (i) != TOUPPER (i))
7483 return 2;
7484 return 0;
7485 }
7486 _ACEOF
7487 if ac_fn_c_try_run "$LINENO"; then :
7488
7489 else
7490 ac_cv_header_stdc=no
7491 fi
7492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7493 conftest.$ac_objext conftest.beam conftest.$ac_ext
7494 fi
7495
7496 fi
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7499 $as_echo "$ac_cv_header_stdc" >&6; }
7500 if test $ac_cv_header_stdc = yes; then
7501
7502 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7503
7504 fi
7505
7506 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7507 # for constant arguments. Useless!
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7509 $as_echo_n "checking for working alloca.h... " >&6; }
7510 if ${ac_cv_working_alloca_h+:} false; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 #include <alloca.h>
7516 int
7517 main ()
7518 {
7519 char *p = (char *) alloca (2 * sizeof (int));
7520 if (p) return 0;
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 if ac_fn_c_try_link "$LINENO"; then :
7526 ac_cv_working_alloca_h=yes
7527 else
7528 ac_cv_working_alloca_h=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7534 $as_echo "$ac_cv_working_alloca_h" >&6; }
7535 if test $ac_cv_working_alloca_h = yes; then
7536
7537 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7538
7539 fi
7540
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7542 $as_echo_n "checking for alloca... " >&6; }
7543 if ${ac_cv_func_alloca_works+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 #ifdef __GNUC__
7549 # define alloca __builtin_alloca
7550 #else
7551 # ifdef _MSC_VER
7552 # include <malloc.h>
7553 # define alloca _alloca
7554 # else
7555 # ifdef HAVE_ALLOCA_H
7556 # include <alloca.h>
7557 # else
7558 # ifdef _AIX
7559 #pragma alloca
7560 # else
7561 # ifndef alloca /* predefined by HP cc +Olibcalls */
7562 void *alloca (size_t);
7563 # endif
7564 # endif
7565 # endif
7566 # endif
7567 #endif
7568
7569 int
7570 main ()
7571 {
7572 char *p = (char *) alloca (1);
7573 if (p) return 0;
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 ac_cv_func_alloca_works=yes
7580 else
7581 ac_cv_func_alloca_works=no
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7587 $as_echo "$ac_cv_func_alloca_works" >&6; }
7588
7589 if test $ac_cv_func_alloca_works = yes; then
7590
7591 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7592
7593 else
7594 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7595 # that cause trouble. Some versions do not even contain alloca or
7596 # contain a buggy version. If you still want to use their alloca,
7597 # use ar to extract alloca.o from them instead of compiling alloca.c.
7598
7599 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7600
7601 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7602
7603
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7605 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7606 if ${ac_cv_os_cray+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #if defined CRAY && ! defined CRAY2
7612 webecray
7613 #else
7614 wenotbecray
7615 #endif
7616
7617 _ACEOF
7618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7619 $EGREP "webecray" >/dev/null 2>&1; then :
7620 ac_cv_os_cray=yes
7621 else
7622 ac_cv_os_cray=no
7623 fi
7624 rm -f conftest*
7625
7626 fi
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7628 $as_echo "$ac_cv_os_cray" >&6; }
7629 if test $ac_cv_os_cray = yes; then
7630 for ac_func in _getb67 GETB67 getb67; do
7631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7632 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7633 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7634
7635 cat >>confdefs.h <<_ACEOF
7636 #define CRAY_STACKSEG_END $ac_func
7637 _ACEOF
7638
7639 break
7640 fi
7641
7642 done
7643 fi
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7646 $as_echo_n "checking stack direction for C alloca... " >&6; }
7647 if ${ac_cv_c_stack_direction+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 if test "$cross_compiling" = yes; then :
7651 ac_cv_c_stack_direction=0
7652 else
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 $ac_includes_default
7656 int
7657 find_stack_direction (int *addr, int depth)
7658 {
7659 int dir, dummy = 0;
7660 if (! addr)
7661 addr = &dummy;
7662 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7663 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7664 return dir + dummy;
7665 }
7666
7667 int
7668 main (int argc, char **argv)
7669 {
7670 return find_stack_direction (0, argc + !argv + 20) < 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_run "$LINENO"; then :
7674 ac_cv_c_stack_direction=1
7675 else
7676 ac_cv_c_stack_direction=-1
7677 fi
7678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7679 conftest.$ac_objext conftest.beam conftest.$ac_ext
7680 fi
7681
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7684 $as_echo "$ac_cv_c_stack_direction" >&6; }
7685 cat >>confdefs.h <<_ACEOF
7686 #define STACK_DIRECTION $ac_cv_c_stack_direction
7687 _ACEOF
7688
7689
7690 fi
7691
7692
7693 WIN32APILIBS=
7694 case ${host} in
7695 *mingw32*)
7696
7697 $as_echo "#define USE_WIN32API 1" >>confdefs.h
7698
7699 WIN32APILIBS="-lws2_32"
7700 ;;
7701 esac
7702
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7705 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7706 if ${am_cv_langinfo_codeset+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <langinfo.h>
7712 int
7713 main ()
7714 {
7715 char* cs = nl_langinfo(CODESET);
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"; then :
7721 am_cv_langinfo_codeset=yes
7722 else
7723 am_cv_langinfo_codeset=no
7724 fi
7725 rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7727
7728 fi
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7730 $as_echo "$am_cv_langinfo_codeset" >&6; }
7731 if test $am_cv_langinfo_codeset = yes; then
7732
7733 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7734
7735 fi
7736
7737
7738 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 dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h
7739 do :
7740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7741 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7743 cat >>confdefs.h <<_ACEOF
7744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7745 _ACEOF
7746
7747 fi
7748
7749 done
7750
7751
7752
7753 for ac_func in getpagesize
7754 do :
7755 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7756 if test "x$ac_cv_func_getpagesize" = xyes; then :
7757 cat >>confdefs.h <<_ACEOF
7758 #define HAVE_GETPAGESIZE 1
7759 _ACEOF
7760
7761 fi
7762 done
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7765 $as_echo_n "checking for working mmap... " >&6; }
7766 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test "$cross_compiling" = yes; then :
7770 ac_cv_func_mmap_fixed_mapped=no
7771 else
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 /* malloc might have been renamed as rpl_malloc. */
7776 #undef malloc
7777
7778 /* Thanks to Mike Haertel and Jim Avera for this test.
7779 Here is a matrix of mmap possibilities:
7780 mmap private not fixed
7781 mmap private fixed at somewhere currently unmapped
7782 mmap private fixed at somewhere already mapped
7783 mmap shared not fixed
7784 mmap shared fixed at somewhere currently unmapped
7785 mmap shared fixed at somewhere already mapped
7786 For private mappings, we should verify that changes cannot be read()
7787 back from the file, nor mmap's back from the file at a different
7788 address. (There have been systems where private was not correctly
7789 implemented like the infamous i386 svr4.0, and systems where the
7790 VM page cache was not coherent with the file system buffer cache
7791 like early versions of FreeBSD and possibly contemporary NetBSD.)
7792 For shared mappings, we should conversely verify that changes get
7793 propagated back to all the places they're supposed to be.
7794
7795 Grep wants private fixed already mapped.
7796 The main things grep needs to know about mmap are:
7797 * does it exist and is it safe to write into the mmap'd area
7798 * how to use it (BSD variants) */
7799
7800 #include <fcntl.h>
7801 #include <sys/mman.h>
7802
7803 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7804 char *malloc ();
7805 #endif
7806
7807 /* This mess was copied from the GNU getpagesize.h. */
7808 #ifndef HAVE_GETPAGESIZE
7809 # ifdef _SC_PAGESIZE
7810 # define getpagesize() sysconf(_SC_PAGESIZE)
7811 # else /* no _SC_PAGESIZE */
7812 # ifdef HAVE_SYS_PARAM_H
7813 # include <sys/param.h>
7814 # ifdef EXEC_PAGESIZE
7815 # define getpagesize() EXEC_PAGESIZE
7816 # else /* no EXEC_PAGESIZE */
7817 # ifdef NBPG
7818 # define getpagesize() NBPG * CLSIZE
7819 # ifndef CLSIZE
7820 # define CLSIZE 1
7821 # endif /* no CLSIZE */
7822 # else /* no NBPG */
7823 # ifdef NBPC
7824 # define getpagesize() NBPC
7825 # else /* no NBPC */
7826 # ifdef PAGESIZE
7827 # define getpagesize() PAGESIZE
7828 # endif /* PAGESIZE */
7829 # endif /* no NBPC */
7830 # endif /* no NBPG */
7831 # endif /* no EXEC_PAGESIZE */
7832 # else /* no HAVE_SYS_PARAM_H */
7833 # define getpagesize() 8192 /* punt totally */
7834 # endif /* no HAVE_SYS_PARAM_H */
7835 # endif /* no _SC_PAGESIZE */
7836
7837 #endif /* no HAVE_GETPAGESIZE */
7838
7839 int
7840 main ()
7841 {
7842 char *data, *data2, *data3;
7843 const char *cdata2;
7844 int i, pagesize;
7845 int fd, fd2;
7846
7847 pagesize = getpagesize ();
7848
7849 /* First, make a file with some known garbage in it. */
7850 data = (char *) malloc (pagesize);
7851 if (!data)
7852 return 1;
7853 for (i = 0; i < pagesize; ++i)
7854 *(data + i) = rand ();
7855 umask (0);
7856 fd = creat ("conftest.mmap", 0600);
7857 if (fd < 0)
7858 return 2;
7859 if (write (fd, data, pagesize) != pagesize)
7860 return 3;
7861 close (fd);
7862
7863 /* Next, check that the tail of a page is zero-filled. File must have
7864 non-zero length, otherwise we risk SIGBUS for entire page. */
7865 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7866 if (fd2 < 0)
7867 return 4;
7868 cdata2 = "";
7869 if (write (fd2, cdata2, 1) != 1)
7870 return 5;
7871 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7872 if (data2 == MAP_FAILED)
7873 return 6;
7874 for (i = 0; i < pagesize; ++i)
7875 if (*(data2 + i))
7876 return 7;
7877 close (fd2);
7878 if (munmap (data2, pagesize))
7879 return 8;
7880
7881 /* Next, try to mmap the file at a fixed address which already has
7882 something else allocated at it. If we can, also make sure that
7883 we see the same garbage. */
7884 fd = open ("conftest.mmap", O_RDWR);
7885 if (fd < 0)
7886 return 9;
7887 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7888 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7889 return 10;
7890 for (i = 0; i < pagesize; ++i)
7891 if (*(data + i) != *(data2 + i))
7892 return 11;
7893
7894 /* Finally, make sure that changes to the mapped area do not
7895 percolate back to the file as seen by read(). (This is a bug on
7896 some variants of i386 svr4.0.) */
7897 for (i = 0; i < pagesize; ++i)
7898 *(data2 + i) = *(data2 + i) + 1;
7899 data3 = (char *) malloc (pagesize);
7900 if (!data3)
7901 return 12;
7902 if (read (fd, data3, pagesize) != pagesize)
7903 return 13;
7904 for (i = 0; i < pagesize; ++i)
7905 if (*(data + i) != *(data3 + i))
7906 return 14;
7907 close (fd);
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_run "$LINENO"; then :
7912 ac_cv_func_mmap_fixed_mapped=yes
7913 else
7914 ac_cv_func_mmap_fixed_mapped=no
7915 fi
7916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7917 conftest.$ac_objext conftest.beam conftest.$ac_ext
7918 fi
7919
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7922 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7923 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7924
7925 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7926
7927 fi
7928 rm -f conftest.mmap conftest.txt
7929
7930 for ac_header in vfork.h
7931 do :
7932 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7933 if test "x$ac_cv_header_vfork_h" = xyes; then :
7934 cat >>confdefs.h <<_ACEOF
7935 #define HAVE_VFORK_H 1
7936 _ACEOF
7937
7938 fi
7939
7940 done
7941
7942 for ac_func in fork vfork
7943 do :
7944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7946 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7947 cat >>confdefs.h <<_ACEOF
7948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7949 _ACEOF
7950
7951 fi
7952 done
7953
7954 if test "x$ac_cv_func_fork" = xyes; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7956 $as_echo_n "checking for working fork... " >&6; }
7957 if ${ac_cv_func_fork_works+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test "$cross_compiling" = yes; then :
7961 ac_cv_func_fork_works=cross
7962 else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 $ac_includes_default
7966 int
7967 main ()
7968 {
7969
7970 /* By Ruediger Kuhlmann. */
7971 return fork () < 0;
7972
7973 ;
7974 return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_run "$LINENO"; then :
7978 ac_cv_func_fork_works=yes
7979 else
7980 ac_cv_func_fork_works=no
7981 fi
7982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7983 conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 fi
7985
7986 fi
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7988 $as_echo "$ac_cv_func_fork_works" >&6; }
7989
7990 else
7991 ac_cv_func_fork_works=$ac_cv_func_fork
7992 fi
7993 if test "x$ac_cv_func_fork_works" = xcross; then
7994 case $host in
7995 *-*-amigaos* | *-*-msdosdjgpp*)
7996 # Override, as these systems have only a dummy fork() stub
7997 ac_cv_func_fork_works=no
7998 ;;
7999 *)
8000 ac_cv_func_fork_works=yes
8001 ;;
8002 esac
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8004 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8005 fi
8006 ac_cv_func_vfork_works=$ac_cv_func_vfork
8007 if test "x$ac_cv_func_vfork" = xyes; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8009 $as_echo_n "checking for working vfork... " >&6; }
8010 if ${ac_cv_func_vfork_works+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test "$cross_compiling" = yes; then :
8014 ac_cv_func_vfork_works=cross
8015 else
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 /* Thanks to Paul Eggert for this test. */
8019 $ac_includes_default
8020 #include <sys/wait.h>
8021 #ifdef HAVE_VFORK_H
8022 # include <vfork.h>
8023 #endif
8024 /* On some sparc systems, changes by the child to local and incoming
8025 argument registers are propagated back to the parent. The compiler
8026 is told about this with #include <vfork.h>, but some compilers
8027 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8028 static variable whose address is put into a register that is
8029 clobbered by the vfork. */
8030 static void
8031 #ifdef __cplusplus
8032 sparc_address_test (int arg)
8033 # else
8034 sparc_address_test (arg) int arg;
8035 #endif
8036 {
8037 static pid_t child;
8038 if (!child) {
8039 child = vfork ();
8040 if (child < 0) {
8041 perror ("vfork");
8042 _exit(2);
8043 }
8044 if (!child) {
8045 arg = getpid();
8046 write(-1, "", 0);
8047 _exit (arg);
8048 }
8049 }
8050 }
8051
8052 int
8053 main ()
8054 {
8055 pid_t parent = getpid ();
8056 pid_t child;
8057
8058 sparc_address_test (0);
8059
8060 child = vfork ();
8061
8062 if (child == 0) {
8063 /* Here is another test for sparc vfork register problems. This
8064 test uses lots of local variables, at least as many local
8065 variables as main has allocated so far including compiler
8066 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8067 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8068 reuse the register of parent for one of the local variables,
8069 since it will think that parent can't possibly be used any more
8070 in this routine. Assigning to the local variable will thus
8071 munge parent in the parent process. */
8072 pid_t
8073 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8074 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8075 /* Convince the compiler that p..p7 are live; otherwise, it might
8076 use the same hardware register for all 8 local variables. */
8077 if (p != p1 || p != p2 || p != p3 || p != p4
8078 || p != p5 || p != p6 || p != p7)
8079 _exit(1);
8080
8081 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8082 from child file descriptors. If the child closes a descriptor
8083 before it execs or exits, this munges the parent's descriptor
8084 as well. Test for this by closing stdout in the child. */
8085 _exit(close(fileno(stdout)) != 0);
8086 } else {
8087 int status;
8088 struct stat st;
8089
8090 while (wait(&status) != child)
8091 ;
8092 return (
8093 /* Was there some problem with vforking? */
8094 child < 0
8095
8096 /* Did the child fail? (This shouldn't happen.) */
8097 || status
8098
8099 /* Did the vfork/compiler bug occur? */
8100 || parent != getpid()
8101
8102 /* Did the file descriptor bug occur? */
8103 || fstat(fileno(stdout), &st) != 0
8104 );
8105 }
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_run "$LINENO"; then :
8109 ac_cv_func_vfork_works=yes
8110 else
8111 ac_cv_func_vfork_works=no
8112 fi
8113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8114 conftest.$ac_objext conftest.beam conftest.$ac_ext
8115 fi
8116
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8119 $as_echo "$ac_cv_func_vfork_works" >&6; }
8120
8121 fi;
8122 if test "x$ac_cv_func_fork_works" = xcross; then
8123 ac_cv_func_vfork_works=$ac_cv_func_vfork
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8125 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8126 fi
8127
8128 if test "x$ac_cv_func_vfork_works" = xyes; then
8129
8130 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8131
8132 else
8133
8134 $as_echo "#define vfork fork" >>confdefs.h
8135
8136 fi
8137 if test "x$ac_cv_func_fork_works" = xyes; then
8138
8139 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8140
8141 fi
8142
8143 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8144 ptrace64 sbrk setns sigaltstack sigprocmask \
8145 setpgid setpgrp getrusage getauxval sigtimedwait
8146 do :
8147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8150 cat >>confdefs.h <<_ACEOF
8151 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8152 _ACEOF
8153
8154 fi
8155 done
8156
8157
8158 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
8159 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
8160 # only in linux/personality.h.
8161 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8162 "
8163 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8164 ac_have_decl=1
8165 else
8166 ac_have_decl=0
8167 fi
8168
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8171 _ACEOF
8172
8173
8174 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8175 if test "x$ac_cv_have_decl_strstr" = xyes; then :
8176 ac_have_decl=1
8177 else
8178 ac_have_decl=0
8179 fi
8180
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_DECL_STRSTR $ac_have_decl
8183 _ACEOF
8184
8185
8186 # ----------------------- #
8187 # Checks for structures. #
8188 # ----------------------- #
8189
8190 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8191 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8195 _ACEOF
8196
8197
8198 fi
8199 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8200 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8201
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8204 _ACEOF
8205
8206
8207 fi
8208
8209
8210 # On FreeBSD we need libutil for the kinfo_get* functions. On
8211 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8212 # Figure out which one to use.
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8214 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8215 if ${ac_cv_search_kinfo_getfile+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 ac_func_search_save_LIBS=$LIBS
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221
8222 /* Override any GCC internal prototype to avoid an error.
8223 Use char because int might match the return type of a GCC
8224 builtin and then its argument prototype would still apply. */
8225 #ifdef __cplusplus
8226 extern "C"
8227 #endif
8228 char kinfo_getfile ();
8229 int
8230 main ()
8231 {
8232 return kinfo_getfile ();
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 for ac_lib in '' util util-freebsd; do
8238 if test -z "$ac_lib"; then
8239 ac_res="none required"
8240 else
8241 ac_res=-l$ac_lib
8242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8243 fi
8244 if ac_fn_c_try_link "$LINENO"; then :
8245 ac_cv_search_kinfo_getfile=$ac_res
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext
8249 if ${ac_cv_search_kinfo_getfile+:} false; then :
8250 break
8251 fi
8252 done
8253 if ${ac_cv_search_kinfo_getfile+:} false; then :
8254
8255 else
8256 ac_cv_search_kinfo_getfile=no
8257 fi
8258 rm conftest.$ac_ext
8259 LIBS=$ac_func_search_save_LIBS
8260 fi
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8262 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8263 ac_res=$ac_cv_search_kinfo_getfile
8264 if test "$ac_res" != no; then :
8265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8266
8267 fi
8268
8269
8270 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
8271 for ac_func in kinfo_getfile
8272 do :
8273 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
8274 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define HAVE_KINFO_GETFILE 1
8277 _ACEOF
8278
8279 fi
8280 done
8281
8282
8283 # ----------------------- #
8284 # Check for threading. #
8285 # ----------------------- #
8286
8287 # Check whether --enable-threading was given.
8288 if test "${enable_threading+set}" = set; then :
8289 enableval=$enable_threading; case "$enableval" in
8290 yes) want_threading=yes ;;
8291 no) want_threading=no ;;
8292 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
8293 esac
8294 else
8295 want_threading=yes
8296 fi
8297
8298
8299 # Check for std::thread. This does not work on some platforms, like
8300 # mingw and DJGPP.
8301 ac_ext=cpp
8302 ac_cpp='$CXXCPP $CPPFLAGS'
8303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8306
8307
8308
8309
8310
8311 ac_ext=c
8312 ac_cpp='$CPP $CPPFLAGS'
8313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8316
8317 ax_pthread_ok=no
8318
8319 # We used to check for pthread.h first, but this fails if pthread.h
8320 # requires special compiler flags (e.g. on Tru64 or Sequent).
8321 # It gets checked for in the link test anyway.
8322
8323 # First of all, check if the user has set any of the PTHREAD_LIBS,
8324 # etcetera environment variables, and if threads linking works using
8325 # them:
8326 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8327 ax_pthread_save_CC="$CC"
8328 ax_pthread_save_CFLAGS="$CFLAGS"
8329 ax_pthread_save_LIBS="$LIBS"
8330 if test "x$PTHREAD_CC" != "x"; then :
8331 CC="$PTHREAD_CC"
8332 fi
8333 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8334 LIBS="$PTHREAD_LIBS $LIBS"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8336 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339
8340 /* Override any GCC internal prototype to avoid an error.
8341 Use char because int might match the return type of a GCC
8342 builtin and then its argument prototype would still apply. */
8343 #ifdef __cplusplus
8344 extern "C"
8345 #endif
8346 char pthread_join ();
8347 int
8348 main ()
8349 {
8350 return pthread_join ();
8351 ;
8352 return 0;
8353 }
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"; then :
8356 ax_pthread_ok=yes
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8361 $as_echo "$ax_pthread_ok" >&6; }
8362 if test "x$ax_pthread_ok" = "xno"; then
8363 PTHREAD_LIBS=""
8364 PTHREAD_CFLAGS=""
8365 fi
8366 CC="$ax_pthread_save_CC"
8367 CFLAGS="$ax_pthread_save_CFLAGS"
8368 LIBS="$ax_pthread_save_LIBS"
8369 fi
8370
8371 # We must check for the threads library under a number of different
8372 # names; the ordering is very important because some systems
8373 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8374 # libraries is broken (non-POSIX).
8375
8376 # Create a list of thread flags to try. Items starting with a "-" are
8377 # C compiler flags, and other items are library names, except for "none"
8378 # which indicates that we try without any flags at all, and "pthread-config"
8379 # which is a program returning the flags for the Pth emulation library.
8380
8381 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8382
8383 # The ordering *is* (sometimes) important. Some notes on the
8384 # individual items follow:
8385
8386 # pthreads: AIX (must check this before -lpthread)
8387 # none: in case threads are in libc; should be tried before -Kthread and
8388 # other compiler flags to prevent continual compiler warnings
8389 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8390 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8391 # (Note: HP C rejects this with "bad form for `-t' option")
8392 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8393 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8394 # doesn't hurt to check since this sometimes defines pthreads and
8395 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8396 # is present but should not be used directly; and before -mthreads,
8397 # because the compiler interprets this as "-mt" + "-hreads")
8398 # -mthreads: Mingw32/gcc, Lynx/gcc
8399 # pthread: Linux, etcetera
8400 # --thread-safe: KAI C++
8401 # pthread-config: use pthread-config program (for GNU Pth library)
8402
8403 case $host_os in
8404
8405 freebsd*)
8406
8407 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8408 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8409
8410 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
8411 ;;
8412
8413 hpux*)
8414
8415 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8416 # multi-threading and also sets -lpthread."
8417
8418 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8419 ;;
8420
8421 openedition*)
8422
8423 # IBM z/OS requires a feature-test macro to be defined in order to
8424 # enable POSIX threads at all, so give the user a hint if this is
8425 # not set. (We don't define these ourselves, as they can affect
8426 # other portions of the system API in unpredictable ways.)
8427
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430
8431 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8432 AX_PTHREAD_ZOS_MISSING
8433 # endif
8434
8435 _ACEOF
8436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8439 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8440 fi
8441 rm -f conftest*
8442
8443 ;;
8444
8445 solaris*)
8446
8447 # On Solaris (at least, for some versions), libc contains stubbed
8448 # (non-functional) versions of the pthreads routines, so link-based
8449 # tests will erroneously succeed. (N.B.: The stubs are missing
8450 # pthread_cleanup_push, or rather a function called by this macro,
8451 # so we could check for that, but who knows whether they'll stub
8452 # that too in a future libc.) So we'll check first for the
8453 # standard Solaris way of linking pthreads (-mt -lpthread).
8454
8455 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
8456 ;;
8457 esac
8458
8459 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8460
8461 if test "x$GCC" = "xyes"; then :
8462 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
8463 fi
8464
8465 # The presence of a feature test macro requesting re-entrant function
8466 # definitions is, on some systems, a strong hint that pthreads support is
8467 # correctly enabled
8468
8469 case $host_os in
8470 darwin* | hpux* | linux* | osf* | solaris*)
8471 ax_pthread_check_macro="_REENTRANT"
8472 ;;
8473
8474 aix*)
8475 ax_pthread_check_macro="_THREAD_SAFE"
8476 ;;
8477
8478 *)
8479 ax_pthread_check_macro="--"
8480 ;;
8481 esac
8482 if test "x$ax_pthread_check_macro" = "x--"; then :
8483 ax_pthread_check_cond=0
8484 else
8485 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
8486 fi
8487
8488 # Are we compiling with Clang?
8489
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8491 $as_echo_n "checking whether $CC is Clang... " >&6; }
8492 if ${ax_cv_PTHREAD_CLANG+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 ax_cv_PTHREAD_CLANG=no
8496 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8497 if test "x$GCC" = "xyes"; then
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8501 # if defined(__clang__) && defined(__llvm__)
8502 AX_PTHREAD_CC_IS_CLANG
8503 # endif
8504
8505 _ACEOF
8506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8507 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
8508 ax_cv_PTHREAD_CLANG=yes
8509 fi
8510 rm -f conftest*
8511
8512 fi
8513
8514 fi
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8516 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8517 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
8518
8519 ax_pthread_clang_warning=no
8520
8521 # Clang needs special handling, because older versions handle the -pthread
8522 # option in a rather... idiosyncratic way
8523
8524 if test "x$ax_pthread_clang" = "xyes"; then
8525
8526 # Clang takes -pthread; it has never supported any other flag
8527
8528 # (Note 1: This will need to be revisited if a system that Clang
8529 # supports has POSIX threads in a separate library. This tends not
8530 # to be the way of modern systems, but it's conceivable.)
8531
8532 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8533 # to get POSIX threads support; the API is always present and
8534 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8535 # -pthread does define _REENTRANT, and while the Darwin headers
8536 # ignore this macro, third-party headers might not.)
8537
8538 PTHREAD_CFLAGS="-pthread"
8539 PTHREAD_LIBS=
8540
8541 ax_pthread_ok=yes
8542
8543 # However, older versions of Clang make a point of warning the user
8544 # that, in an invocation where only linking and no compilation is
8545 # taking place, the -pthread option has no effect ("argument unused
8546 # during compilation"). They expect -pthread to be passed in only
8547 # when source code is being compiled.
8548 #
8549 # Problem is, this is at odds with the way Automake and most other
8550 # C build frameworks function, which is that the same flags used in
8551 # compilation (CFLAGS) are also used in linking. Many systems
8552 # supported by AX_PTHREAD require exactly this for POSIX threads
8553 # support, and in fact it is often not straightforward to specify a
8554 # flag that is used only in the compilation phase and not in
8555 # linking. Such a scenario is extremely rare in practice.
8556 #
8557 # Even though use of the -pthread flag in linking would only print
8558 # a warning, this can be a nuisance for well-run software projects
8559 # that build with -Werror. So if the active version of Clang has
8560 # this misfeature, we search for an option to squash it.
8561
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8563 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8564 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
8568 # Create an alternate version of $ac_link that compiles and
8569 # links in two steps (.c -> .o, .o -> exe) instead of one
8570 # (.c -> exe), because the warning occurs only in the second
8571 # step
8572 ax_pthread_save_ac_link="$ac_link"
8573 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8574 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8575 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8576 ax_pthread_save_CFLAGS="$CFLAGS"
8577 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
8578 if test "x$ax_pthread_try" = "xunknown"; then :
8579 break
8580 fi
8581 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8582 ac_link="$ax_pthread_save_ac_link"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 int main(void){return 0;}
8586 _ACEOF
8587 if ac_fn_c_try_link "$LINENO"; then :
8588 ac_link="$ax_pthread_2step_ac_link"
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 int main(void){return 0;}
8592 _ACEOF
8593 if ac_fn_c_try_link "$LINENO"; then :
8594 break
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 done
8603 ac_link="$ax_pthread_save_ac_link"
8604 CFLAGS="$ax_pthread_save_CFLAGS"
8605 if test "x$ax_pthread_try" = "x"; then :
8606 ax_pthread_try=no
8607 fi
8608 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
8609
8610 fi
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8612 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8613
8614 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8615 no | unknown) ;;
8616 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8617 esac
8618
8619 fi # $ax_pthread_clang = yes
8620
8621 if test "x$ax_pthread_ok" = "xno"; then
8622 for ax_pthread_try_flag in $ax_pthread_flags; do
8623
8624 case $ax_pthread_try_flag in
8625 none)
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8627 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8628 ;;
8629
8630 -mt,pthread)
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8632 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8633 PTHREAD_CFLAGS="-mt"
8634 PTHREAD_LIBS="-lpthread"
8635 ;;
8636
8637 -*)
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8639 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8640 PTHREAD_CFLAGS="$ax_pthread_try_flag"
8641 ;;
8642
8643 pthread-config)
8644 # Extract the first word of "pthread-config", so it can be a program name with args.
8645 set dummy pthread-config; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$ax_pthread_config"; then
8652 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_ax_pthread_config="yes"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667 IFS=$as_save_IFS
8668
8669 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8670 fi
8671 fi
8672 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8673 if test -n "$ax_pthread_config"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8675 $as_echo "$ax_pthread_config" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680
8681
8682 if test "x$ax_pthread_config" = "xno"; then :
8683 continue
8684 fi
8685 PTHREAD_CFLAGS="`pthread-config --cflags`"
8686 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8687 ;;
8688
8689 *)
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8691 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8692 PTHREAD_LIBS="-l$ax_pthread_try_flag"
8693 ;;
8694 esac
8695
8696 ax_pthread_save_CFLAGS="$CFLAGS"
8697 ax_pthread_save_LIBS="$LIBS"
8698 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8699 LIBS="$PTHREAD_LIBS $LIBS"
8700
8701 # Check for various functions. We must include pthread.h,
8702 # since some functions may be macros. (On the Sequent, we
8703 # need a special flag -Kthread to make this header compile.)
8704 # We check for pthread_join because it is in -lpthread on IRIX
8705 # while pthread_create is in libc. We check for pthread_attr_init
8706 # due to DEC craziness with -lpthreads. We check for
8707 # pthread_cleanup_push because it is one of the few pthread
8708 # functions on Solaris that doesn't have a non-functional libc stub.
8709 # We try pthread_create on general principles.
8710
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <pthread.h>
8714 # if $ax_pthread_check_cond
8715 # error "$ax_pthread_check_macro must be defined"
8716 # endif
8717 static void routine(void *a) { a = 0; }
8718 static void *start_routine(void *a) { return a; }
8719 int
8720 main ()
8721 {
8722 pthread_t th; pthread_attr_t attr;
8723 pthread_create(&th, 0, start_routine, 0);
8724 pthread_join(th, 0);
8725 pthread_attr_init(&attr);
8726 pthread_cleanup_push(routine, 0);
8727 pthread_cleanup_pop(0) /* ; */
8728 ;
8729 return 0;
8730 }
8731 _ACEOF
8732 if ac_fn_c_try_link "$LINENO"; then :
8733 ax_pthread_ok=yes
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737
8738 CFLAGS="$ax_pthread_save_CFLAGS"
8739 LIBS="$ax_pthread_save_LIBS"
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8742 $as_echo "$ax_pthread_ok" >&6; }
8743 if test "x$ax_pthread_ok" = "xyes"; then :
8744 break
8745 fi
8746
8747 PTHREAD_LIBS=""
8748 PTHREAD_CFLAGS=""
8749 done
8750 fi
8751
8752 # Various other checks:
8753 if test "x$ax_pthread_ok" = "xyes"; then
8754 ax_pthread_save_CFLAGS="$CFLAGS"
8755 ax_pthread_save_LIBS="$LIBS"
8756 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8757 LIBS="$PTHREAD_LIBS $LIBS"
8758
8759 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8761 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8762 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8766 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <pthread.h>
8770 int
8771 main ()
8772 {
8773 int attr = $ax_pthread_attr; return attr /* ; */
8774 ;
8775 return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_c_try_link "$LINENO"; then :
8779 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext \
8782 conftest$ac_exeext conftest.$ac_ext
8783 done
8784
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8787 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8788 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8789 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8790 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8791
8792 cat >>confdefs.h <<_ACEOF
8793 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8794 _ACEOF
8795
8796 ax_pthread_joinable_attr_defined=yes
8797
8798 fi
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8801 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8802 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8806 case $host_os in
8807 solaris*)
8808 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
8809 ;;
8810 esac
8811
8812 fi
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8814 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8815 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8816 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8817 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8818 ax_pthread_special_flags_added=yes
8819 fi
8820
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8822 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8823 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 #include <pthread.h>
8829 int
8830 main ()
8831 {
8832 int i = PTHREAD_PRIO_INHERIT;
8833 ;
8834 return 0;
8835 }
8836 _ACEOF
8837 if ac_fn_c_try_link "$LINENO"; then :
8838 ax_cv_PTHREAD_PRIO_INHERIT=yes
8839 else
8840 ax_cv_PTHREAD_PRIO_INHERIT=no
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8847 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8848 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8849 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8850
8851 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8852
8853 ax_pthread_prio_inherit_defined=yes
8854
8855 fi
8856
8857 CFLAGS="$ax_pthread_save_CFLAGS"
8858 LIBS="$ax_pthread_save_LIBS"
8859
8860 # More AIX lossage: compile with *_r variant
8861 if test "x$GCC" != "xyes"; then
8862 case $host_os in
8863 aix*)
8864 case "x/$CC" in #(
8865 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8866 #handle absolute path differently from PATH based program lookup
8867 case "x$CC" in #(
8868 x/*) :
8869 if as_fn_executable_p ${CC}_r; then :
8870 PTHREAD_CC="${CC}_r"
8871 fi ;; #(
8872 *) :
8873 for ac_prog in ${CC}_r
8874 do
8875 # Extract the first word of "$ac_prog", so it can be a program name with args.
8876 set dummy $ac_prog; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 if test -n "$PTHREAD_CC"; then
8883 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8887 do
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8892 ac_cv_prog_PTHREAD_CC="$ac_prog"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8895 fi
8896 done
8897 done
8898 IFS=$as_save_IFS
8899
8900 fi
8901 fi
8902 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8903 if test -n "$PTHREAD_CC"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8905 $as_echo "$PTHREAD_CC" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8909 fi
8910
8911
8912 test -n "$PTHREAD_CC" && break
8913 done
8914 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8915 ;;
8916 esac ;; #(
8917 *) :
8918 ;;
8919 esac
8920 ;;
8921 esac
8922 fi
8923 fi
8924
8925 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8926
8927
8928
8929
8930
8931 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8932 if test "x$ax_pthread_ok" = "xyes"; then
8933 threads=yes
8934 :
8935 else
8936 ax_pthread_ok=no
8937 threads=no
8938 fi
8939 ac_ext=cpp
8940 ac_cpp='$CXXCPP $CPPFLAGS'
8941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8944
8945
8946 if test "$threads" = "yes"; then
8947 save_LIBS="$LIBS"
8948 LIBS="$PTHREAD_LIBS $LIBS"
8949 save_CXXFLAGS="$CXXFLAGS"
8950 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
8952 $as_echo_n "checking for std::thread... " >&6; }
8953 if ${gdb_cv_cxx_std_thread+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #include <thread>
8959 void callback() { }
8960 int
8961 main ()
8962 {
8963 std::thread t(callback);
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_cxx_try_compile "$LINENO"; then :
8969 gdb_cv_cxx_std_thread=yes
8970 else
8971 gdb_cv_cxx_std_thread=no
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
8976 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
8977
8978 # This check must be here, while LIBS includes any necessary
8979 # threading library.
8980 for ac_func in pthread_sigmask pthread_setname_np
8981 do :
8982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8983 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
8984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8985 cat >>confdefs.h <<_ACEOF
8986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8987 _ACEOF
8988
8989 fi
8990 done
8991
8992
8993 LIBS="$save_LIBS"
8994 CXXFLAGS="$save_CXXFLAGS"
8995 fi
8996
8997 if test "$want_threading" = "yes"; then
8998 if test "$gdb_cv_cxx_std_thread" = "yes"; then
8999
9000 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9001
9002 fi
9003 fi
9004 ac_ext=c
9005 ac_cpp='$CPP $CPPFLAGS'
9006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9009
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9012 $as_echo_n "checking for sigsetjmp... " >&6; }
9013 if ${gdb_cv_func_sigsetjmp+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 #include <setjmp.h>
9019 int
9020 main ()
9021 {
9022 sigjmp_buf env;
9023 while (! sigsetjmp (env, 1))
9024 siglongjmp (env, 1);
9025
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"; then :
9031 gdb_cv_func_sigsetjmp=yes
9032 else
9033 gdb_cv_func_sigsetjmp=no
9034
9035 fi
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9040 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9041 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9042
9043 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9044
9045 fi
9046
9047
9048 # Check whether --with-intel_pt was given.
9049 if test "${with_intel_pt+set}" = set; then :
9050 withval=$with_intel_pt;
9051 else
9052 with_intel_pt=auto
9053 fi
9054
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9056 $as_echo_n "checking whether to use intel pt... " >&6; }
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9058 $as_echo "$with_intel_pt" >&6; }
9059
9060 if test "${with_intel_pt}" = no; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9062 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9063 HAVE_LIBIPT=no
9064 else
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067
9068 #include <linux/perf_event.h>
9069 #ifndef PERF_ATTR_SIZE_VER5
9070 # error
9071 #endif
9072
9073 _ACEOF
9074 if ac_fn_c_try_cpp "$LINENO"; then :
9075 perf_event=yes
9076 else
9077 perf_event=no
9078 fi
9079 rm -f conftest.err conftest.i conftest.$ac_ext
9080 if test "$perf_event" != yes; then
9081 if test "$with_intel_pt" = yes; then
9082 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9083 else
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9085 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9086 fi
9087 fi
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097 use_additional=yes
9098
9099 acl_save_prefix="$prefix"
9100 prefix="$acl_final_prefix"
9101 acl_save_exec_prefix="$exec_prefix"
9102 exec_prefix="$acl_final_exec_prefix"
9103
9104 eval additional_includedir=\"$includedir\"
9105 eval additional_libdir=\"$libdir\"
9106
9107 exec_prefix="$acl_save_exec_prefix"
9108 prefix="$acl_save_prefix"
9109
9110
9111 # Check whether --with-libipt-prefix was given.
9112 if test "${with_libipt_prefix+set}" = set; then :
9113 withval=$with_libipt_prefix;
9114 if test "X$withval" = "Xno"; then
9115 use_additional=no
9116 else
9117 if test "X$withval" = "X"; then
9118
9119 acl_save_prefix="$prefix"
9120 prefix="$acl_final_prefix"
9121 acl_save_exec_prefix="$exec_prefix"
9122 exec_prefix="$acl_final_exec_prefix"
9123
9124 eval additional_includedir=\"$includedir\"
9125 eval additional_libdir=\"$libdir\"
9126
9127 exec_prefix="$acl_save_exec_prefix"
9128 prefix="$acl_save_prefix"
9129
9130 else
9131 additional_includedir="$withval/include"
9132 additional_libdir="$withval/lib"
9133 fi
9134 fi
9135
9136 fi
9137
9138
9139 # Check whether --with-libipt-type was given.
9140 if test "${with_libipt_type+set}" = set; then :
9141 withval=$with_libipt_type; with_libipt_type=$withval
9142 else
9143 with_libipt_type=auto
9144 fi
9145
9146 lib_type=`eval echo \$with_libipt_type`
9147
9148 LIBIPT=
9149 LTLIBIPT=
9150 INCIPT=
9151 rpathdirs=
9152 ltrpathdirs=
9153 names_already_handled=
9154 names_next_round='ipt '
9155 while test -n "$names_next_round"; do
9156 names_this_round="$names_next_round"
9157 names_next_round=
9158 for name in $names_this_round; do
9159 already_handled=
9160 for n in $names_already_handled; do
9161 if test "$n" = "$name"; then
9162 already_handled=yes
9163 break
9164 fi
9165 done
9166 if test -z "$already_handled"; then
9167 names_already_handled="$names_already_handled $name"
9168 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9169 eval value=\"\$HAVE_LIB$uppername\"
9170 if test -n "$value"; then
9171 if test "$value" = yes; then
9172 eval value=\"\$LIB$uppername\"
9173 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9174 eval value=\"\$LTLIB$uppername\"
9175 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9176 else
9177 :
9178 fi
9179 else
9180 found_dir=
9181 found_la=
9182 found_so=
9183 found_a=
9184 if test $use_additional = yes; then
9185 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9186 found_dir="$additional_libdir"
9187 found_so="$additional_libdir/lib$name.$shlibext"
9188 if test -f "$additional_libdir/lib$name.la"; then
9189 found_la="$additional_libdir/lib$name.la"
9190 fi
9191 elif test x$lib_type != xshared; then
9192 if test -f "$additional_libdir/lib$name.$libext"; then
9193 found_dir="$additional_libdir"
9194 found_a="$additional_libdir/lib$name.$libext"
9195 if test -f "$additional_libdir/lib$name.la"; then
9196 found_la="$additional_libdir/lib$name.la"
9197 fi
9198 fi
9199 fi
9200 fi
9201 if test "X$found_dir" = "X"; then
9202 for x in $LDFLAGS $LTLIBIPT; do
9203
9204 acl_save_prefix="$prefix"
9205 prefix="$acl_final_prefix"
9206 acl_save_exec_prefix="$exec_prefix"
9207 exec_prefix="$acl_final_exec_prefix"
9208 eval x=\"$x\"
9209 exec_prefix="$acl_save_exec_prefix"
9210 prefix="$acl_save_prefix"
9211
9212 case "$x" in
9213 -L*)
9214 dir=`echo "X$x" | sed -e 's/^X-L//'`
9215 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9216 found_dir="$dir"
9217 found_so="$dir/lib$name.$shlibext"
9218 if test -f "$dir/lib$name.la"; then
9219 found_la="$dir/lib$name.la"
9220 fi
9221 elif test x$lib_type != xshared; then
9222 if test -f "$dir/lib$name.$libext"; then
9223 found_dir="$dir"
9224 found_a="$dir/lib$name.$libext"
9225 if test -f "$dir/lib$name.la"; then
9226 found_la="$dir/lib$name.la"
9227 fi
9228 fi
9229 fi
9230 ;;
9231 esac
9232 if test "X$found_dir" != "X"; then
9233 break
9234 fi
9235 done
9236 fi
9237 if test "X$found_dir" != "X"; then
9238 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
9239 if test "X$found_so" != "X"; then
9240 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9241 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9242 else
9243 haveit=
9244 for x in $ltrpathdirs; do
9245 if test "X$x" = "X$found_dir"; then
9246 haveit=yes
9247 break
9248 fi
9249 done
9250 if test -z "$haveit"; then
9251 ltrpathdirs="$ltrpathdirs $found_dir"
9252 fi
9253 if test "$hardcode_direct" = yes; then
9254 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9255 else
9256 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9257 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9258 haveit=
9259 for x in $rpathdirs; do
9260 if test "X$x" = "X$found_dir"; then
9261 haveit=yes
9262 break
9263 fi
9264 done
9265 if test -z "$haveit"; then
9266 rpathdirs="$rpathdirs $found_dir"
9267 fi
9268 else
9269 haveit=
9270 for x in $LDFLAGS $LIBIPT; do
9271
9272 acl_save_prefix="$prefix"
9273 prefix="$acl_final_prefix"
9274 acl_save_exec_prefix="$exec_prefix"
9275 exec_prefix="$acl_final_exec_prefix"
9276 eval x=\"$x\"
9277 exec_prefix="$acl_save_exec_prefix"
9278 prefix="$acl_save_prefix"
9279
9280 if test "X$x" = "X-L$found_dir"; then
9281 haveit=yes
9282 break
9283 fi
9284 done
9285 if test -z "$haveit"; then
9286 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
9287 fi
9288 if test "$hardcode_minus_L" != no; then
9289 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
9290 else
9291 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9292 fi
9293 fi
9294 fi
9295 fi
9296 else
9297 if test "X$found_a" != "X"; then
9298 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
9299 else
9300 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
9301 fi
9302 fi
9303 additional_includedir=
9304 case "$found_dir" in
9305 */lib | */lib/)
9306 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9307 additional_includedir="$basedir/include"
9308 ;;
9309 esac
9310 if test "X$additional_includedir" != "X"; then
9311 if test "X$additional_includedir" != "X/usr/include"; then
9312 haveit=
9313 if test "X$additional_includedir" = "X/usr/local/include"; then
9314 if test -n "$GCC"; then
9315 case $host_os in
9316 linux*) haveit=yes;;
9317 esac
9318 fi
9319 fi
9320 if test -z "$haveit"; then
9321 for x in $CPPFLAGS $INCIPT; do
9322
9323 acl_save_prefix="$prefix"
9324 prefix="$acl_final_prefix"
9325 acl_save_exec_prefix="$exec_prefix"
9326 exec_prefix="$acl_final_exec_prefix"
9327 eval x=\"$x\"
9328 exec_prefix="$acl_save_exec_prefix"
9329 prefix="$acl_save_prefix"
9330
9331 if test "X$x" = "X-I$additional_includedir"; then
9332 haveit=yes
9333 break
9334 fi
9335 done
9336 if test -z "$haveit"; then
9337 if test -d "$additional_includedir"; then
9338 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
9339 fi
9340 fi
9341 fi
9342 fi
9343 fi
9344 if test -n "$found_la"; then
9345 save_libdir="$libdir"
9346 case "$found_la" in
9347 */* | *\\*) . "$found_la" ;;
9348 *) . "./$found_la" ;;
9349 esac
9350 libdir="$save_libdir"
9351 for dep in $dependency_libs; do
9352 case "$dep" in
9353 -L*)
9354 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9355 if test "X$additional_libdir" != "X/usr/lib"; then
9356 haveit=
9357 if test "X$additional_libdir" = "X/usr/local/lib"; then
9358 if test -n "$GCC"; then
9359 case $host_os in
9360 linux*) haveit=yes;;
9361 esac
9362 fi
9363 fi
9364 if test -z "$haveit"; then
9365 haveit=
9366 for x in $LDFLAGS $LIBIPT; do
9367
9368 acl_save_prefix="$prefix"
9369 prefix="$acl_final_prefix"
9370 acl_save_exec_prefix="$exec_prefix"
9371 exec_prefix="$acl_final_exec_prefix"
9372 eval x=\"$x\"
9373 exec_prefix="$acl_save_exec_prefix"
9374 prefix="$acl_save_prefix"
9375
9376 if test "X$x" = "X-L$additional_libdir"; then
9377 haveit=yes
9378 break
9379 fi
9380 done
9381 if test -z "$haveit"; then
9382 if test -d "$additional_libdir"; then
9383 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
9384 fi
9385 fi
9386 haveit=
9387 for x in $LDFLAGS $LTLIBIPT; do
9388
9389 acl_save_prefix="$prefix"
9390 prefix="$acl_final_prefix"
9391 acl_save_exec_prefix="$exec_prefix"
9392 exec_prefix="$acl_final_exec_prefix"
9393 eval x=\"$x\"
9394 exec_prefix="$acl_save_exec_prefix"
9395 prefix="$acl_save_prefix"
9396
9397 if test "X$x" = "X-L$additional_libdir"; then
9398 haveit=yes
9399 break
9400 fi
9401 done
9402 if test -z "$haveit"; then
9403 if test -d "$additional_libdir"; then
9404 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
9405 fi
9406 fi
9407 fi
9408 fi
9409 ;;
9410 -R*)
9411 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9412 if test "$enable_rpath" != no; then
9413 haveit=
9414 for x in $rpathdirs; do
9415 if test "X$x" = "X$dir"; then
9416 haveit=yes
9417 break
9418 fi
9419 done
9420 if test -z "$haveit"; then
9421 rpathdirs="$rpathdirs $dir"
9422 fi
9423 haveit=
9424 for x in $ltrpathdirs; do
9425 if test "X$x" = "X$dir"; then
9426 haveit=yes
9427 break
9428 fi
9429 done
9430 if test -z "$haveit"; then
9431 ltrpathdirs="$ltrpathdirs $dir"
9432 fi
9433 fi
9434 ;;
9435 -l*)
9436 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9437 ;;
9438 *.la)
9439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9440 ;;
9441 *)
9442 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
9443 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
9444 ;;
9445 esac
9446 done
9447 fi
9448 else
9449 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
9450 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
9451 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
9452 else
9453 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
9454 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
9455 fi
9456 fi
9457 fi
9458 fi
9459 done
9460 done
9461 if test "X$rpathdirs" != "X"; then
9462 if test -n "$hardcode_libdir_separator"; then
9463 alldirs=
9464 for found_dir in $rpathdirs; do
9465 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9466 done
9467 acl_save_libdir="$libdir"
9468 libdir="$alldirs"
9469 eval flag=\"$hardcode_libdir_flag_spec\"
9470 libdir="$acl_save_libdir"
9471 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
9472 else
9473 for found_dir in $rpathdirs; do
9474 acl_save_libdir="$libdir"
9475 libdir="$found_dir"
9476 eval flag=\"$hardcode_libdir_flag_spec\"
9477 libdir="$acl_save_libdir"
9478 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
9479 done
9480 fi
9481 fi
9482 if test "X$ltrpathdirs" != "X"; then
9483 for found_dir in $ltrpathdirs; do
9484 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
9485 done
9486 fi
9487
9488
9489 ac_save_CPPFLAGS="$CPPFLAGS"
9490
9491 for element in $INCIPT; do
9492 haveit=
9493 for x in $CPPFLAGS; do
9494
9495 acl_save_prefix="$prefix"
9496 prefix="$acl_final_prefix"
9497 acl_save_exec_prefix="$exec_prefix"
9498 exec_prefix="$acl_final_exec_prefix"
9499 eval x=\"$x\"
9500 exec_prefix="$acl_save_exec_prefix"
9501 prefix="$acl_save_prefix"
9502
9503 if test "X$x" = "X$element"; then
9504 haveit=yes
9505 break
9506 fi
9507 done
9508 if test -z "$haveit"; then
9509 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9510 fi
9511 done
9512
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
9515 $as_echo_n "checking for libipt... " >&6; }
9516 if ${ac_cv_libipt+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519
9520 ac_save_LIBS="$LIBS"
9521 LIBS="$LIBS $LIBIPT"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9524 #include "intel-pt.h"
9525 int
9526 main ()
9527 {
9528 pt_insn_alloc_decoder (0);
9529 ;
9530 return 0;
9531 }
9532 _ACEOF
9533 if ac_fn_c_try_link "$LINENO"; then :
9534 ac_cv_libipt=yes
9535 else
9536 ac_cv_libipt=no
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS="$ac_save_LIBS"
9541
9542 fi
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
9544 $as_echo "$ac_cv_libipt" >&6; }
9545 if test "$ac_cv_libipt" = yes; then
9546 HAVE_LIBIPT=yes
9547
9548 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
9549
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
9551 $as_echo_n "checking how to link with libipt... " >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
9553 $as_echo "$LIBIPT" >&6; }
9554 else
9555 HAVE_LIBIPT=no
9556 CPPFLAGS="$ac_save_CPPFLAGS"
9557 LIBIPT=
9558 LTLIBIPT=
9559 fi
9560
9561
9562
9563
9564
9565
9566 if test "$HAVE_LIBIPT" != yes; then
9567 if test "$with_intel_pt" = yes; then
9568 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
9571 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
9572 fi
9573 else
9574 save_LIBS=$LIBS
9575 LIBS="$LIBS $LIBIPT"
9576 for ac_func in pt_insn_event
9577 do :
9578 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
9579 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_PT_INSN_EVENT 1
9582 _ACEOF
9583
9584 fi
9585 done
9586
9587 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
9588 "
9589 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
9590
9591 cat >>confdefs.h <<_ACEOF
9592 #define HAVE_STRUCT_PT_INSN_ENABLED 1
9593 _ACEOF
9594
9595
9596 fi
9597 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
9598 "
9599 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
9600
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
9603 _ACEOF
9604
9605
9606 fi
9607
9608 LIBS=$save_LIBS
9609 fi
9610 fi
9611
9612 # Check if the compiler and runtime support printing long longs.
9613
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
9615 $as_echo_n "checking for long long support in printf... " >&6; }
9616 if ${gdb_cv_printf_has_long_long+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 if test "$cross_compiling" = yes; then :
9620 gdb_cv_printf_has_long_long=no
9621 else
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 int
9626 main ()
9627 {
9628 char buf[32];
9629 long long l = 0;
9630 l = (l << 16) + 0x0123;
9631 l = (l << 16) + 0x4567;
9632 l = (l << 16) + 0x89ab;
9633 l = (l << 16) + 0xcdef;
9634 sprintf (buf, "0x%016llx", l);
9635 return (strcmp ("0x0123456789abcdef", buf));
9636 ;
9637 return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_run "$LINENO"; then :
9641 gdb_cv_printf_has_long_long=yes
9642 else
9643 gdb_cv_printf_has_long_long=no
9644 fi
9645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9646 conftest.$ac_objext conftest.beam conftest.$ac_ext
9647 fi
9648
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
9651 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
9652 if test "$gdb_cv_printf_has_long_long" = yes; then
9653
9654 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
9655
9656 fi
9657
9658
9659 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
9660
9661 for ac_header in sys/procfs.h
9662 do :
9663 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
9664 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_SYS_PROCFS_H 1
9667 _ACEOF
9668
9669 fi
9670
9671 done
9672
9673 if test "$ac_cv_header_sys_procfs_h" = yes; then
9674
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
9676 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
9677 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682
9683 #define _SYSCALL32
9684 #include <sys/procfs.h>
9685 int
9686 main ()
9687 {
9688 gregset_t avar
9689 ;
9690 return 0;
9691 }
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"; then :
9694 bfd_cv_have_sys_procfs_type_gregset_t=yes
9695 else
9696 bfd_cv_have_sys_procfs_type_gregset_t=no
9697
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 fi
9701
9702 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
9703
9704 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
9705
9706 fi
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
9708 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
9709
9710
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
9712 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
9713 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718
9719 #define _SYSCALL32
9720 #include <sys/procfs.h>
9721 int
9722 main ()
9723 {
9724 fpregset_t avar
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 if ac_fn_c_try_compile "$LINENO"; then :
9730 bfd_cv_have_sys_procfs_type_fpregset_t=yes
9731 else
9732 bfd_cv_have_sys_procfs_type_fpregset_t=no
9733
9734 fi
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 fi
9737
9738 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
9739
9740 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
9741
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
9744 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
9745
9746
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
9748 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
9749 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754
9755 #define _SYSCALL32
9756 #include <sys/procfs.h>
9757 int
9758 main ()
9759 {
9760 prgregset_t avar
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 if ac_fn_c_try_compile "$LINENO"; then :
9766 bfd_cv_have_sys_procfs_type_prgregset_t=yes
9767 else
9768 bfd_cv_have_sys_procfs_type_prgregset_t=no
9769
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772 fi
9773
9774 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
9775
9776 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
9777
9778 fi
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
9780 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
9781
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
9784 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
9785 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790
9791 #define _SYSCALL32
9792 #include <sys/procfs.h>
9793 int
9794 main ()
9795 {
9796 prfpregset_t avar
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_c_try_compile "$LINENO"; then :
9802 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
9803 else
9804 bfd_cv_have_sys_procfs_type_prfpregset_t=no
9805
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 fi
9809
9810 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
9811
9812 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
9813
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
9816 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
9817
9818
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
9820 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
9821 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826
9827 #define _SYSCALL32
9828 #include <sys/procfs.h>
9829 int
9830 main ()
9831 {
9832 prgregset32_t avar
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 if ac_fn_c_try_compile "$LINENO"; then :
9838 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
9839 else
9840 bfd_cv_have_sys_procfs_type_prgregset32_t=no
9841
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 fi
9845
9846 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
9847
9848 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
9849
9850 fi
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
9852 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
9853
9854
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
9856 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
9857 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862
9863 #define _SYSCALL32
9864 #include <sys/procfs.h>
9865 int
9866 main ()
9867 {
9868 lwpid_t avar
9869 ;
9870 return 0;
9871 }
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"; then :
9874 bfd_cv_have_sys_procfs_type_lwpid_t=yes
9875 else
9876 bfd_cv_have_sys_procfs_type_lwpid_t=no
9877
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 fi
9881
9882 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
9883
9884 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
9885
9886 fi
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
9888 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
9889
9890
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
9892 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
9893 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898
9899 #define _SYSCALL32
9900 #include <sys/procfs.h>
9901 int
9902 main ()
9903 {
9904 psaddr_t avar
9905 ;
9906 return 0;
9907 }
9908 _ACEOF
9909 if ac_fn_c_try_compile "$LINENO"; then :
9910 bfd_cv_have_sys_procfs_type_psaddr_t=yes
9911 else
9912 bfd_cv_have_sys_procfs_type_psaddr_t=no
9913
9914 fi
9915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916 fi
9917
9918 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
9919
9920 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
9921
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
9924 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
9925
9926
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
9928 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
9929 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934
9935 #define _SYSCALL32
9936 #include <sys/procfs.h>
9937 int
9938 main ()
9939 {
9940 elf_fpregset_t avar
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_c_try_compile "$LINENO"; then :
9946 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
9947 else
9948 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
9949
9950 fi
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 fi
9953
9954 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
9955
9956 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
9957
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
9960 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
9961
9962 fi
9963
9964
9965 # Check whether we will enable the inclusion of unit tests when
9966 # compiling GDB.
9967 #
9968 # The default value of this option changes depending whether we're on
9969 # development mode (in which case it's "true") or not (in which case
9970 # it's "false"). The $development variable is set by the GDB_AC_COMMON
9971 # macro, which must therefore be used before GDB_AC_SELFTEST.
9972
9973 if test "x$development" != xtrue && test "x$development" != xfalse; then :
9974 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
9975 fi
9976
9977 # Check whether --enable-unit-tests was given.
9978 if test "${enable_unit_tests+set}" = set; then :
9979 enableval=$enable_unit_tests; case "${enableval}" in
9980 yes) enable_unittests=true ;;
9981 no) enable_unittests=false ;;
9982 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
9983 esac
9984 else
9985 enable_unittests=$development
9986 fi
9987
9988
9989 if $enable_unittests; then
9990
9991 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
9992
9993
9994 fi
9995
9996 if $enable_unittests; then
9997 SELFTEST_TRUE=
9998 SELFTEST_FALSE='#'
9999 else
10000 SELFTEST_TRUE='#'
10001 SELFTEST_FALSE=
10002 fi
10003
10004
10005 # Check the return and argument types of ptrace.
10006
10007
10008 for ac_header in sys/ptrace.h ptrace.h
10009 do :
10010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10011 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10013 cat >>confdefs.h <<_ACEOF
10014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10015 _ACEOF
10016
10017 fi
10018
10019 done
10020
10021
10022 gdb_ptrace_headers='
10023 #include <sys/types.h>
10024 #if HAVE_SYS_PTRACE_H
10025 # include <sys/ptrace.h>
10026 #endif
10027 #if HAVE_UNISTD_H
10028 # include <unistd.h>
10029 #endif
10030 '
10031
10032 # Check return type. Varargs (used on GNU/Linux) conflict with the
10033 # empty argument list, so check for that explicitly.
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10035 $as_echo_n "checking return type of ptrace... " >&6; }
10036 if ${gdb_cv_func_ptrace_ret+:} false; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041  $gdb_ptrace_headers
10042 int
10043 main ()
10044 {
10045 extern long ptrace (enum __ptrace_request, ...);
10046
10047 ;
10048 return 0;
10049 }
10050 _ACEOF
10051 if ac_fn_c_try_compile "$LINENO"; then :
10052 gdb_cv_func_ptrace_ret='long'
10053 else
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 $gdb_ptrace_headers
10057 int
10058 main ()
10059 {
10060 extern int ptrace ();
10061
10062 ;
10063 return 0;
10064 }
10065 _ACEOF
10066 if ac_fn_c_try_compile "$LINENO"; then :
10067 gdb_cv_func_ptrace_ret='int'
10068 else
10069 gdb_cv_func_ptrace_ret='long'
10070
10071 fi
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073
10074 fi
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10079 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10080
10081
10082 cat >>confdefs.h <<_ACEOF
10083 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10084 _ACEOF
10085
10086
10087 # Check argument types.
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10089 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10090 if ${gdb_cv_func_ptrace_args+:} false; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 $gdb_ptrace_headers
10096 int
10097 main ()
10098 {
10099 extern long ptrace (enum __ptrace_request, ...);
10100
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_compile "$LINENO"; then :
10106 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10107 else
10108 for gdb_arg1 in 'int' 'long'; do
10109 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10110 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10111 for gdb_arg4 in 'int' 'long' 'void *'; do
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 $gdb_ptrace_headers
10115 int
10116 main ()
10117 {
10118 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10119
10120 ;
10121 return 0;
10122 }
10123 _ACEOF
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10126 break 4;
10127
10128 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130
10131 for gdb_arg5 in 'int *' 'int' 'long'; do
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 $gdb_ptrace_headers
10135 int
10136 main ()
10137 {
10138 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10139
10140 ;
10141 return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_compile "$LINENO"; then :
10145 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10146 break 5;
10147
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 done
10151 done
10152 done
10153 done
10154 done
10155 # Provide a safe default value.
10156 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10157
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160
10161 fi
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10163 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10164
10165 ac_save_IFS=$IFS; IFS=','
10166 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10167 IFS=$ac_save_IFS
10168 shift
10169
10170 cat >>confdefs.h <<_ACEOF
10171 #define PTRACE_TYPE_ARG1 $1
10172 _ACEOF
10173
10174
10175 cat >>confdefs.h <<_ACEOF
10176 #define PTRACE_TYPE_ARG3 $3
10177 _ACEOF
10178
10179
10180 cat >>confdefs.h <<_ACEOF
10181 #define PTRACE_TYPE_ARG4 $4
10182 _ACEOF
10183
10184 if test -n "$5"; then
10185
10186 cat >>confdefs.h <<_ACEOF
10187 #define PTRACE_TYPE_ARG5 $5
10188 _ACEOF
10189
10190 fi
10191
10192
10193 # Detect support warning flags.
10194
10195
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
10197 $as_echo_n "checking the compiler type... " >&6; }
10198 if ${gdb_cv_compiler_type+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 gdb_cv_compiler_type=unknown
10202 if test "$gdb_cv_compiler_type" = unknown; then
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205
10206 int
10207 main ()
10208 {
10209
10210 #if !defined __GNUC__ || defined __clang__
10211 #error not gcc
10212 #endif
10213
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_compile "$LINENO"; then :
10219 gdb_cv_compiler_type=gcc
10220 fi
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222 fi
10223
10224 if test "$gdb_cv_compiler_type" = unknown; then
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227
10228 int
10229 main ()
10230 {
10231
10232 #ifndef __clang__
10233 #error not clang
10234 #endif
10235
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_compile "$LINENO"; then :
10241 gdb_cv_compiler_type=clang
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244 fi
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
10248 $as_echo "$gdb_cv_compiler_type" >&6; }
10249
10250 GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
10251
10252
10253 # Check whether --enable-werror was given.
10254 if test "${enable_werror+set}" = set; then :
10255 enableval=$enable_werror; case "${enableval}" in
10256 yes | y) ERROR_ON_WARNING="yes" ;;
10257 no | n) ERROR_ON_WARNING="no" ;;
10258 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10259 esac
10260 fi
10261
10262
10263 # Enable -Werror by default when using gcc. Turn it off for releases.
10264 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10265 ERROR_ON_WARNING=yes
10266 fi
10267
10268 WERROR_CFLAGS=""
10269 if test "${ERROR_ON_WARNING}" = yes ; then
10270 WERROR_CFLAGS="-Werror"
10271 fi
10272
10273 # The options we'll try to enable.
10274 build_warnings="-Wall -Wpointer-arith \
10275 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10276 -Wno-switch -Wno-char-subscripts \
10277 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10278 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10279 -Wno-mismatched-tags \
10280 -Wno-error=deprecated-register \
10281 -Wsuggest-override \
10282 -Wimplicit-fallthrough=3 \
10283 -Wduplicated-cond \
10284 -Wshadow=local \
10285 -Wdeprecated-copy \
10286 -Wdeprecated-copy-dtor \
10287 -Wredundant-move \
10288 -Wmissing-declarations \
10289 -Wstrict-null-sentinel \
10290 "
10291
10292 # The -Wmissing-prototypes flag will be accepted by GCC, but results
10293 # in a warning being printed about the flag not being valid for C++,
10294 # this is something to do with using ccache, and argument ordering.
10295 if test "$GDB_COMPILER_TYPE" != gcc; then
10296 build_warnings="$build_warnings -Wmissing-prototypes"
10297 fi
10298
10299 case "${host}" in
10300 *-*-mingw32*)
10301 # Enable -Wno-format by default when using gcc on mingw since many
10302 # GCC versions complain about %I64.
10303 build_warnings="$build_warnings -Wno-format" ;;
10304 *-*-solaris*)
10305 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10306 # doesn't understand.
10307 build_warnings="$build_warnings -Wno-unknown-pragmas"
10308 # Solaris 11 <unistd.h> marks vfork deprecated.
10309 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10310 *)
10311 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10312 # but there's a special case for this below.
10313 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10314 esac
10315
10316 # Check whether --enable-build-warnings was given.
10317 if test "${enable_build_warnings+set}" = set; then :
10318 enableval=$enable_build_warnings; case "${enableval}" in
10319 yes) ;;
10320 no) build_warnings="-w";;
10321 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10322 build_warnings="${build_warnings} ${t}";;
10323 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10324 build_warnings="${t} ${build_warnings}";;
10325 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10326 esac
10327 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10328 echo "Setting compiler warning flags = $build_warnings" 6>&1
10329 fi
10330 fi
10331 # Check whether --enable-gdb-build-warnings was given.
10332 if test "${enable_gdb_build_warnings+set}" = set; then :
10333 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10334 yes) ;;
10335 no) build_warnings="-w";;
10336 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10337 build_warnings="${build_warnings} ${t}";;
10338 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10339 build_warnings="${t} ${build_warnings}";;
10340 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10341 esac
10342 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10343 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10344 fi
10345 fi
10346
10347 # The set of warnings supported by a C++ compiler is not the same as
10348 # of the C compiler.
10349 ac_ext=cpp
10350 ac_cpp='$CXXCPP $CPPFLAGS'
10351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10354
10355
10356 WARN_CFLAGS=""
10357 if test "x${build_warnings}" != x -a "x$GCC" = xyes
10358 then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
10360 $as_echo_n "checking compiler warning flags... " >&6; }
10361 # Separate out the -Werror flag as some files just cannot be
10362 # compiled with it enabled.
10363 for w in ${build_warnings}; do
10364 # GCC does not complain about -Wno-unknown-warning. Invert
10365 # and test -Wunknown-warning instead.
10366 case $w in
10367 -Wno-*)
10368 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
10369 -Wformat-nonliteral)
10370 # gcc requires -Wformat before -Wformat-nonliteral
10371 # will work, so stick them together.
10372 w="-Wformat $w"
10373 wtest="$w"
10374 ;;
10375 *)
10376 wtest=$w ;;
10377 esac
10378
10379 case $w in
10380 -Werr*) WERROR_CFLAGS=-Werror ;;
10381 *)
10382 # Check whether GCC accepts it.
10383 saved_CFLAGS="$CFLAGS"
10384 CFLAGS="$CFLAGS -Werror $wtest"
10385 saved_CXXFLAGS="$CXXFLAGS"
10386 CXXFLAGS="$CXXFLAGS -Werror $wtest"
10387 if test "x$w" = "x-Wunused-variable"; then
10388 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
10389 # fixed in GCC 4.9. This test is derived from the gdb
10390 # source code that triggered this bug in GCC.
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 struct scoped_restore_base {};
10394 struct scoped_restore_tmpl : public scoped_restore_base {
10395 ~scoped_restore_tmpl() {}
10396 };
10397 int
10398 main ()
10399 {
10400 const scoped_restore_base &b = scoped_restore_tmpl();
10401
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_cxx_try_compile "$LINENO"; then :
10407 WARN_CFLAGS="${WARN_CFLAGS} $w"
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413
10414 int
10415 main ()
10416 {
10417
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_cxx_try_compile "$LINENO"; then :
10423 WARN_CFLAGS="${WARN_CFLAGS} $w"
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 fi
10427 CFLAGS="$saved_CFLAGS"
10428 CXXFLAGS="$saved_CXXFLAGS"
10429 esac
10430 done
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
10432 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
10433 fi
10434
10435
10436
10437 ac_ext=c
10438 ac_cpp='$CPP $CPPFLAGS'
10439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442
10443
10444
10445 case ${host} in
10446 *mingw32*)
10447
10448 $as_echo "#define USE_WIN32API 1" >>confdefs.h
10449
10450 ;;
10451 esac
10452
10453 ac_config_files="$ac_config_files Makefile"
10454
10455 cat >confcache <<\_ACEOF
10456 # This file is a shell script that caches the results of configure
10457 # tests run on this system so they can be shared between configure
10458 # scripts and configure runs, see configure's option --config-cache.
10459 # It is not useful on other systems. If it contains results you don't
10460 # want to keep, you may remove or edit it.
10461 #
10462 # config.status only pays attention to the cache file if you give it
10463 # the --recheck option to rerun configure.
10464 #
10465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10467 # following values.
10468
10469 _ACEOF
10470
10471 # The following way of writing the cache mishandles newlines in values,
10472 # but we know of no workaround that is simple, portable, and efficient.
10473 # So, we kill variables containing newlines.
10474 # Ultrix sh set writes to stderr and can't be redirected directly,
10475 # and sets the high bit in the cache file unless we assign to the vars.
10476 (
10477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10478 eval ac_val=\$$ac_var
10479 case $ac_val in #(
10480 *${as_nl}*)
10481 case $ac_var in #(
10482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10484 esac
10485 case $ac_var in #(
10486 _ | IFS | as_nl) ;; #(
10487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10488 *) { eval $ac_var=; unset $ac_var;} ;;
10489 esac ;;
10490 esac
10491 done
10492
10493 (set) 2>&1 |
10494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10495 *${as_nl}ac_space=\ *)
10496 # `set' does not quote correctly, so add quotes: double-quote
10497 # substitution turns \\\\ into \\, and sed turns \\ into \.
10498 sed -n \
10499 "s/'/'\\\\''/g;
10500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10501 ;; #(
10502 *)
10503 # `set' quotes correctly as required by POSIX, so do not add quotes.
10504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10505 ;;
10506 esac |
10507 sort
10508 ) |
10509 sed '
10510 /^ac_cv_env_/b end
10511 t clear
10512 :clear
10513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10514 t end
10515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10516 :end' >>confcache
10517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10518 if test -w "$cache_file"; then
10519 if test "x$cache_file" != "x/dev/null"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10521 $as_echo "$as_me: updating cache $cache_file" >&6;}
10522 if test ! -f "$cache_file" || test -h "$cache_file"; then
10523 cat confcache >"$cache_file"
10524 else
10525 case $cache_file in #(
10526 */* | ?:*)
10527 mv -f confcache "$cache_file"$$ &&
10528 mv -f "$cache_file"$$ "$cache_file" ;; #(
10529 *)
10530 mv -f confcache "$cache_file" ;;
10531 esac
10532 fi
10533 fi
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10537 fi
10538 fi
10539 rm -f confcache
10540
10541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10542 # Let make expand exec_prefix.
10543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10544
10545 DEFS=-DHAVE_CONFIG_H
10546
10547 ac_libobjs=
10548 ac_ltlibobjs=
10549 U=
10550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10551 # 1. Remove the extension, and $U if already installed.
10552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10555 # will be set to the directory where LIBOBJS objects are built.
10556 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10557 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10558 done
10559 LIBOBJS=$ac_libobjs
10560
10561 LTLIBOBJS=$ac_ltlibobjs
10562
10563
10564 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10565 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10569 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10570 if test -n "$am_sleep_pid"; then
10571 # Hide warnings about reused PIDs.
10572 wait $am_sleep_pid 2>/dev/null
10573 fi
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10575 $as_echo "done" >&6; }
10576 if test -n "$EXEEXT"; then
10577 am__EXEEXT_TRUE=
10578 am__EXEEXT_FALSE='#'
10579 else
10580 am__EXEEXT_TRUE='#'
10581 am__EXEEXT_FALSE=
10582 fi
10583
10584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10585 as_fn_error $? "conditional \"AMDEP\" was never defined.
10586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10587 fi
10588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10589 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10591 fi
10592 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10593 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10595 fi
10596 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
10597 as_fn_error $? "conditional \"SELFTEST\" was never defined.
10598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10599 fi
10600
10601 : "${CONFIG_STATUS=./config.status}"
10602 ac_write_fail=0
10603 ac_clean_files_save=$ac_clean_files
10604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10607 as_write_fail=0
10608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10609 #! $SHELL
10610 # Generated by $as_me.
10611 # Run this file to recreate the current configuration.
10612 # Compiler output produced by configure, useful for debugging
10613 # configure, is in config.log if it exists.
10614
10615 debug=false
10616 ac_cs_recheck=false
10617 ac_cs_silent=false
10618
10619 SHELL=\${CONFIG_SHELL-$SHELL}
10620 export SHELL
10621 _ASEOF
10622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10623 ## -------------------- ##
10624 ## M4sh Initialization. ##
10625 ## -------------------- ##
10626
10627 # Be more Bourne compatible
10628 DUALCASE=1; export DUALCASE # for MKS sh
10629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10630 emulate sh
10631 NULLCMD=:
10632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10633 # is contrary to our usage. Disable this feature.
10634 alias -g '${1+"$@"}'='"$@"'
10635 setopt NO_GLOB_SUBST
10636 else
10637 case `(set -o) 2>/dev/null` in #(
10638 *posix*) :
10639 set -o posix ;; #(
10640 *) :
10641 ;;
10642 esac
10643 fi
10644
10645
10646 as_nl='
10647 '
10648 export as_nl
10649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10653 # Prefer a ksh shell builtin over an external printf program on Solaris,
10654 # but without wasting forks for bash or zsh.
10655 if test -z "$BASH_VERSION$ZSH_VERSION" \
10656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10657 as_echo='print -r --'
10658 as_echo_n='print -rn --'
10659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10660 as_echo='printf %s\n'
10661 as_echo_n='printf %s'
10662 else
10663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10665 as_echo_n='/usr/ucb/echo -n'
10666 else
10667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10668 as_echo_n_body='eval
10669 arg=$1;
10670 case $arg in #(
10671 *"$as_nl"*)
10672 expr "X$arg" : "X\\(.*\\)$as_nl";
10673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10674 esac;
10675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10676 '
10677 export as_echo_n_body
10678 as_echo_n='sh -c $as_echo_n_body as_echo'
10679 fi
10680 export as_echo_body
10681 as_echo='sh -c $as_echo_body as_echo'
10682 fi
10683
10684 # The user is always right.
10685 if test "${PATH_SEPARATOR+set}" != set; then
10686 PATH_SEPARATOR=:
10687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10689 PATH_SEPARATOR=';'
10690 }
10691 fi
10692
10693
10694 # IFS
10695 # We need space, tab and new line, in precisely that order. Quoting is
10696 # there to prevent editors from complaining about space-tab.
10697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10698 # splitting by setting IFS to empty value.)
10699 IFS=" "" $as_nl"
10700
10701 # Find who we are. Look in the path if we contain no directory separator.
10702 as_myself=
10703 case $0 in #((
10704 *[\\/]* ) as_myself=$0 ;;
10705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706 for as_dir in $PATH
10707 do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
10710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10711 done
10712 IFS=$as_save_IFS
10713
10714 ;;
10715 esac
10716 # We did not find ourselves, most probably we were run as `sh COMMAND'
10717 # in which case we are not to be found in the path.
10718 if test "x$as_myself" = x; then
10719 as_myself=$0
10720 fi
10721 if test ! -f "$as_myself"; then
10722 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10723 exit 1
10724 fi
10725
10726 # Unset variables that we do not need and which cause bugs (e.g. in
10727 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10728 # suppresses any "Segmentation fault" message there. '((' could
10729 # trigger a bug in pdksh 5.2.14.
10730 for as_var in BASH_ENV ENV MAIL MAILPATH
10731 do eval test x\${$as_var+set} = xset \
10732 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10733 done
10734 PS1='$ '
10735 PS2='> '
10736 PS4='+ '
10737
10738 # NLS nuisances.
10739 LC_ALL=C
10740 export LC_ALL
10741 LANGUAGE=C
10742 export LANGUAGE
10743
10744 # CDPATH.
10745 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10746
10747
10748 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10749 # ----------------------------------------
10750 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10751 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10752 # script with STATUS, using 1 if that was 0.
10753 as_fn_error ()
10754 {
10755 as_status=$1; test $as_status -eq 0 && as_status=1
10756 if test "$4"; then
10757 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10758 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10759 fi
10760 $as_echo "$as_me: error: $2" >&2
10761 as_fn_exit $as_status
10762 } # as_fn_error
10763
10764
10765 # as_fn_set_status STATUS
10766 # -----------------------
10767 # Set $? to STATUS, without forking.
10768 as_fn_set_status ()
10769 {
10770 return $1
10771 } # as_fn_set_status
10772
10773 # as_fn_exit STATUS
10774 # -----------------
10775 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10776 as_fn_exit ()
10777 {
10778 set +e
10779 as_fn_set_status $1
10780 exit $1
10781 } # as_fn_exit
10782
10783 # as_fn_unset VAR
10784 # ---------------
10785 # Portably unset VAR.
10786 as_fn_unset ()
10787 {
10788 { eval $1=; unset $1;}
10789 }
10790 as_unset=as_fn_unset
10791 # as_fn_append VAR VALUE
10792 # ----------------------
10793 # Append the text in VALUE to the end of the definition contained in VAR. Take
10794 # advantage of any shell optimizations that allow amortized linear growth over
10795 # repeated appends, instead of the typical quadratic growth present in naive
10796 # implementations.
10797 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10798 eval 'as_fn_append ()
10799 {
10800 eval $1+=\$2
10801 }'
10802 else
10803 as_fn_append ()
10804 {
10805 eval $1=\$$1\$2
10806 }
10807 fi # as_fn_append
10808
10809 # as_fn_arith ARG...
10810 # ------------------
10811 # Perform arithmetic evaluation on the ARGs, and store the result in the
10812 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10813 # must be portable across $(()) and expr.
10814 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10815 eval 'as_fn_arith ()
10816 {
10817 as_val=$(( $* ))
10818 }'
10819 else
10820 as_fn_arith ()
10821 {
10822 as_val=`expr "$@" || test $? -eq 1`
10823 }
10824 fi # as_fn_arith
10825
10826
10827 if expr a : '\(a\)' >/dev/null 2>&1 &&
10828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10829 as_expr=expr
10830 else
10831 as_expr=false
10832 fi
10833
10834 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10835 as_basename=basename
10836 else
10837 as_basename=false
10838 fi
10839
10840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10841 as_dirname=dirname
10842 else
10843 as_dirname=false
10844 fi
10845
10846 as_me=`$as_basename -- "$0" ||
10847 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10848 X"$0" : 'X\(//\)$' \| \
10849 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10850 $as_echo X/"$0" |
10851 sed '/^.*\/\([^/][^/]*\)\/*$/{
10852 s//\1/
10853 q
10854 }
10855 /^X\/\(\/\/\)$/{
10856 s//\1/
10857 q
10858 }
10859 /^X\/\(\/\).*/{
10860 s//\1/
10861 q
10862 }
10863 s/.*/./; q'`
10864
10865 # Avoid depending upon Character Ranges.
10866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10869 as_cr_digits='0123456789'
10870 as_cr_alnum=$as_cr_Letters$as_cr_digits
10871
10872 ECHO_C= ECHO_N= ECHO_T=
10873 case `echo -n x` in #(((((
10874 -n*)
10875 case `echo 'xy\c'` in
10876 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10877 xy) ECHO_C='\c';;
10878 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10879 ECHO_T=' ';;
10880 esac;;
10881 *)
10882 ECHO_N='-n';;
10883 esac
10884
10885 rm -f conf$$ conf$$.exe conf$$.file
10886 if test -d conf$$.dir; then
10887 rm -f conf$$.dir/conf$$.file
10888 else
10889 rm -f conf$$.dir
10890 mkdir conf$$.dir 2>/dev/null
10891 fi
10892 if (echo >conf$$.file) 2>/dev/null; then
10893 if ln -s conf$$.file conf$$ 2>/dev/null; then
10894 as_ln_s='ln -s'
10895 # ... but there are two gotchas:
10896 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10897 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10898 # In both cases, we have to default to `cp -pR'.
10899 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10900 as_ln_s='cp -pR'
10901 elif ln conf$$.file conf$$ 2>/dev/null; then
10902 as_ln_s=ln
10903 else
10904 as_ln_s='cp -pR'
10905 fi
10906 else
10907 as_ln_s='cp -pR'
10908 fi
10909 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10910 rmdir conf$$.dir 2>/dev/null
10911
10912
10913 # as_fn_mkdir_p
10914 # -------------
10915 # Create "$as_dir" as a directory, including parents if necessary.
10916 as_fn_mkdir_p ()
10917 {
10918
10919 case $as_dir in #(
10920 -*) as_dir=./$as_dir;;
10921 esac
10922 test -d "$as_dir" || eval $as_mkdir_p || {
10923 as_dirs=
10924 while :; do
10925 case $as_dir in #(
10926 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10927 *) as_qdir=$as_dir;;
10928 esac
10929 as_dirs="'$as_qdir' $as_dirs"
10930 as_dir=`$as_dirname -- "$as_dir" ||
10931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10932 X"$as_dir" : 'X\(//\)[^/]' \| \
10933 X"$as_dir" : 'X\(//\)$' \| \
10934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10935 $as_echo X"$as_dir" |
10936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10937 s//\1/
10938 q
10939 }
10940 /^X\(\/\/\)[^/].*/{
10941 s//\1/
10942 q
10943 }
10944 /^X\(\/\/\)$/{
10945 s//\1/
10946 q
10947 }
10948 /^X\(\/\).*/{
10949 s//\1/
10950 q
10951 }
10952 s/.*/./; q'`
10953 test -d "$as_dir" && break
10954 done
10955 test -z "$as_dirs" || eval "mkdir $as_dirs"
10956 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10957
10958
10959 } # as_fn_mkdir_p
10960 if mkdir -p . 2>/dev/null; then
10961 as_mkdir_p='mkdir -p "$as_dir"'
10962 else
10963 test -d ./-p && rmdir ./-p
10964 as_mkdir_p=false
10965 fi
10966
10967
10968 # as_fn_executable_p FILE
10969 # -----------------------
10970 # Test if FILE is an executable regular file.
10971 as_fn_executable_p ()
10972 {
10973 test -f "$1" && test -x "$1"
10974 } # as_fn_executable_p
10975 as_test_x='test -x'
10976 as_executable_p=as_fn_executable_p
10977
10978 # Sed expression to map a string onto a valid CPP name.
10979 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10980
10981 # Sed expression to map a string onto a valid variable name.
10982 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10983
10984
10985 exec 6>&1
10986 ## ----------------------------------- ##
10987 ## Main body of $CONFIG_STATUS script. ##
10988 ## ----------------------------------- ##
10989 _ASEOF
10990 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10991
10992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10993 # Save the log message, to keep $0 and so on meaningful, and to
10994 # report actual input values of CONFIG_FILES etc. instead of their
10995 # values after options handling.
10996 ac_log="
10997 This file was extended by gdbsupport $as_me 1.0, which was
10998 generated by GNU Autoconf 2.69. Invocation command line was
10999
11000 CONFIG_FILES = $CONFIG_FILES
11001 CONFIG_HEADERS = $CONFIG_HEADERS
11002 CONFIG_LINKS = $CONFIG_LINKS
11003 CONFIG_COMMANDS = $CONFIG_COMMANDS
11004 $ $0 $@
11005
11006 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11007 "
11008
11009 _ACEOF
11010
11011 case $ac_config_files in *"
11012 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11013 esac
11014
11015 case $ac_config_headers in *"
11016 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11017 esac
11018
11019
11020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11021 # Files that config.status was made for.
11022 config_files="$ac_config_files"
11023 config_headers="$ac_config_headers"
11024 config_commands="$ac_config_commands"
11025
11026 _ACEOF
11027
11028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11029 ac_cs_usage="\
11030 \`$as_me' instantiates files and other configuration actions
11031 from templates according to the current configuration. Unless the files
11032 and actions are specified as TAGs, all are instantiated by default.
11033
11034 Usage: $0 [OPTION]... [TAG]...
11035
11036 -h, --help print this help, then exit
11037 -V, --version print version number and configuration settings, then exit
11038 --config print configuration, then exit
11039 -q, --quiet, --silent
11040 do not print progress messages
11041 -d, --debug don't remove temporary files
11042 --recheck update $as_me by reconfiguring in the same conditions
11043 --file=FILE[:TEMPLATE]
11044 instantiate the configuration file FILE
11045 --header=FILE[:TEMPLATE]
11046 instantiate the configuration header FILE
11047
11048 Configuration files:
11049 $config_files
11050
11051 Configuration headers:
11052 $config_headers
11053
11054 Configuration commands:
11055 $config_commands
11056
11057 Report bugs to the package provider."
11058
11059 _ACEOF
11060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11061 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11062 ac_cs_version="\\
11063 gdbsupport config.status 1.0
11064 configured by $0, generated by GNU Autoconf 2.69,
11065 with options \\"\$ac_cs_config\\"
11066
11067 Copyright (C) 2012 Free Software Foundation, Inc.
11068 This config.status script is free software; the Free Software Foundation
11069 gives unlimited permission to copy, distribute and modify it."
11070
11071 ac_pwd='$ac_pwd'
11072 srcdir='$srcdir'
11073 INSTALL='$INSTALL'
11074 MKDIR_P='$MKDIR_P'
11075 AWK='$AWK'
11076 test -n "\$AWK" || AWK=awk
11077 _ACEOF
11078
11079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11080 # The default lists apply if the user does not specify any file.
11081 ac_need_defaults=:
11082 while test $# != 0
11083 do
11084 case $1 in
11085 --*=?*)
11086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11088 ac_shift=:
11089 ;;
11090 --*=)
11091 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11092 ac_optarg=
11093 ac_shift=:
11094 ;;
11095 *)
11096 ac_option=$1
11097 ac_optarg=$2
11098 ac_shift=shift
11099 ;;
11100 esac
11101
11102 case $ac_option in
11103 # Handling of the options.
11104 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11105 ac_cs_recheck=: ;;
11106 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11107 $as_echo "$ac_cs_version"; exit ;;
11108 --config | --confi | --conf | --con | --co | --c )
11109 $as_echo "$ac_cs_config"; exit ;;
11110 --debug | --debu | --deb | --de | --d | -d )
11111 debug=: ;;
11112 --file | --fil | --fi | --f )
11113 $ac_shift
11114 case $ac_optarg in
11115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11116 '') as_fn_error $? "missing file argument" ;;
11117 esac
11118 as_fn_append CONFIG_FILES " '$ac_optarg'"
11119 ac_need_defaults=false;;
11120 --header | --heade | --head | --hea )
11121 $ac_shift
11122 case $ac_optarg in
11123 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11124 esac
11125 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11126 ac_need_defaults=false;;
11127 --he | --h)
11128 # Conflict between --help and --header
11129 as_fn_error $? "ambiguous option: \`$1'
11130 Try \`$0 --help' for more information.";;
11131 --help | --hel | -h )
11132 $as_echo "$ac_cs_usage"; exit ;;
11133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11134 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11135 ac_cs_silent=: ;;
11136
11137 # This is an error.
11138 -*) as_fn_error $? "unrecognized option: \`$1'
11139 Try \`$0 --help' for more information." ;;
11140
11141 *) as_fn_append ac_config_targets " $1"
11142 ac_need_defaults=false ;;
11143
11144 esac
11145 shift
11146 done
11147
11148 ac_configure_extra_args=
11149
11150 if $ac_cs_silent; then
11151 exec 6>/dev/null
11152 ac_configure_extra_args="$ac_configure_extra_args --silent"
11153 fi
11154
11155 _ACEOF
11156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11157 if \$ac_cs_recheck; then
11158 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11159 shift
11160 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11161 CONFIG_SHELL='$SHELL'
11162 export CONFIG_SHELL
11163 exec "\$@"
11164 fi
11165
11166 _ACEOF
11167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11168 exec 5>>config.log
11169 {
11170 echo
11171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11172 ## Running $as_me. ##
11173 _ASBOX
11174 $as_echo "$ac_log"
11175 } >&5
11176
11177 _ACEOF
11178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11179 #
11180 # INIT-COMMANDS
11181 #
11182 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11183
11184 _ACEOF
11185
11186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11187
11188 # Handling of arguments.
11189 for ac_config_target in $ac_config_targets
11190 do
11191 case $ac_config_target in
11192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11194 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11195
11196 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11197 esac
11198 done
11199
11200
11201 # If the user did not use the arguments to specify the items to instantiate,
11202 # then the envvar interface is used. Set only those that are not.
11203 # We use the long form for the default assignment because of an extremely
11204 # bizarre bug on SunOS 4.1.3.
11205 if $ac_need_defaults; then
11206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11207 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11209 fi
11210
11211 # Have a temporary directory for convenience. Make it in the build tree
11212 # simply because there is no reason against having it here, and in addition,
11213 # creating and moving files from /tmp can sometimes cause problems.
11214 # Hook for its removal unless debugging.
11215 # Note that there is a small window in which the directory will not be cleaned:
11216 # after its creation but before its name has been assigned to `$tmp'.
11217 $debug ||
11218 {
11219 tmp= ac_tmp=
11220 trap 'exit_status=$?
11221 : "${ac_tmp:=$tmp}"
11222 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11223 ' 0
11224 trap 'as_fn_exit 1' 1 2 13 15
11225 }
11226 # Create a (secure) tmp directory for tmp files.
11227
11228 {
11229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11230 test -d "$tmp"
11231 } ||
11232 {
11233 tmp=./conf$$-$RANDOM
11234 (umask 077 && mkdir "$tmp")
11235 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11236 ac_tmp=$tmp
11237
11238 # Set up the scripts for CONFIG_FILES section.
11239 # No need to generate them if there are no CONFIG_FILES.
11240 # This happens for instance with `./config.status config.h'.
11241 if test -n "$CONFIG_FILES"; then
11242
11243
11244 ac_cr=`echo X | tr X '\015'`
11245 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11246 # But we know of no other shell where ac_cr would be empty at this
11247 # point, so we can use a bashism as a fallback.
11248 if test "x$ac_cr" = x; then
11249 eval ac_cr=\$\'\\r\'
11250 fi
11251 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11252 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11253 ac_cs_awk_cr='\\r'
11254 else
11255 ac_cs_awk_cr=$ac_cr
11256 fi
11257
11258 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11259 _ACEOF
11260
11261
11262 {
11263 echo "cat >conf$$subs.awk <<_ACEOF" &&
11264 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11265 echo "_ACEOF"
11266 } >conf$$subs.sh ||
11267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11268 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11269 ac_delim='%!_!# '
11270 for ac_last_try in false false false false false :; do
11271 . ./conf$$subs.sh ||
11272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11273
11274 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11275 if test $ac_delim_n = $ac_delim_num; then
11276 break
11277 elif $ac_last_try; then
11278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11279 else
11280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11281 fi
11282 done
11283 rm -f conf$$subs.sh
11284
11285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11286 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11287 _ACEOF
11288 sed -n '
11289 h
11290 s/^/S["/; s/!.*/"]=/
11291 p
11292 g
11293 s/^[^!]*!//
11294 :repl
11295 t repl
11296 s/'"$ac_delim"'$//
11297 t delim
11298 :nl
11299 h
11300 s/\(.\{148\}\)..*/\1/
11301 t more1
11302 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11303 p
11304 n
11305 b repl
11306 :more1
11307 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11308 p
11309 g
11310 s/.\{148\}//
11311 t nl
11312 :delim
11313 h
11314 s/\(.\{148\}\)..*/\1/
11315 t more2
11316 s/["\\]/\\&/g; s/^/"/; s/$/"/
11317 p
11318 b
11319 :more2
11320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11321 p
11322 g
11323 s/.\{148\}//
11324 t delim
11325 ' <conf$$subs.awk | sed '
11326 /^[^""]/{
11327 N
11328 s/\n//
11329 }
11330 ' >>$CONFIG_STATUS || ac_write_fail=1
11331 rm -f conf$$subs.awk
11332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11333 _ACAWK
11334 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11335 for (key in S) S_is_set[key] = 1
11336 FS = "\a"
11337
11338 }
11339 {
11340 line = $ 0
11341 nfields = split(line, field, "@")
11342 substed = 0
11343 len = length(field[1])
11344 for (i = 2; i < nfields; i++) {
11345 key = field[i]
11346 keylen = length(key)
11347 if (S_is_set[key]) {
11348 value = S[key]
11349 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11350 len += length(value) + length(field[++i])
11351 substed = 1
11352 } else
11353 len += 1 + keylen
11354 }
11355
11356 print line
11357 }
11358
11359 _ACAWK
11360 _ACEOF
11361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11362 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11364 else
11365 cat
11366 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11367 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11368 _ACEOF
11369
11370 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11371 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11372 # trailing colons and then remove the whole line if VPATH becomes empty
11373 # (actually we leave an empty line to preserve line numbers).
11374 if test "x$srcdir" = x.; then
11375 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11376 h
11377 s///
11378 s/^/:/
11379 s/[ ]*$/:/
11380 s/:\$(srcdir):/:/g
11381 s/:\${srcdir}:/:/g
11382 s/:@srcdir@:/:/g
11383 s/^:*//
11384 s/:*$//
11385 x
11386 s/\(=[ ]*\).*/\1/
11387 G
11388 s/\n//
11389 s/^[^=]*=[ ]*$//
11390 }'
11391 fi
11392
11393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11394 fi # test -n "$CONFIG_FILES"
11395
11396 # Set up the scripts for CONFIG_HEADERS section.
11397 # No need to generate them if there are no CONFIG_HEADERS.
11398 # This happens for instance with `./config.status Makefile'.
11399 if test -n "$CONFIG_HEADERS"; then
11400 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11401 BEGIN {
11402 _ACEOF
11403
11404 # Transform confdefs.h into an awk script `defines.awk', embedded as
11405 # here-document in config.status, that substitutes the proper values into
11406 # config.h.in to produce config.h.
11407
11408 # Create a delimiter string that does not exist in confdefs.h, to ease
11409 # handling of long lines.
11410 ac_delim='%!_!# '
11411 for ac_last_try in false false :; do
11412 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11413 if test -z "$ac_tt"; then
11414 break
11415 elif $ac_last_try; then
11416 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11417 else
11418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11419 fi
11420 done
11421
11422 # For the awk script, D is an array of macro values keyed by name,
11423 # likewise P contains macro parameters if any. Preserve backslash
11424 # newline sequences.
11425
11426 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11427 sed -n '
11428 s/.\{148\}/&'"$ac_delim"'/g
11429 t rset
11430 :rset
11431 s/^[ ]*#[ ]*define[ ][ ]*/ /
11432 t def
11433 d
11434 :def
11435 s/\\$//
11436 t bsnl
11437 s/["\\]/\\&/g
11438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11439 D["\1"]=" \3"/p
11440 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11441 d
11442 :bsnl
11443 s/["\\]/\\&/g
11444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11445 D["\1"]=" \3\\\\\\n"\\/p
11446 t cont
11447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11448 t cont
11449 d
11450 :cont
11451 n
11452 s/.\{148\}/&'"$ac_delim"'/g
11453 t clear
11454 :clear
11455 s/\\$//
11456 t bsnlc
11457 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11458 d
11459 :bsnlc
11460 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11461 b cont
11462 ' <confdefs.h | sed '
11463 s/'"$ac_delim"'/"\\\
11464 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11465
11466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11467 for (key in D) D_is_set[key] = 1
11468 FS = "\a"
11469 }
11470 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11471 line = \$ 0
11472 split(line, arg, " ")
11473 if (arg[1] == "#") {
11474 defundef = arg[2]
11475 mac1 = arg[3]
11476 } else {
11477 defundef = substr(arg[1], 2)
11478 mac1 = arg[2]
11479 }
11480 split(mac1, mac2, "(") #)
11481 macro = mac2[1]
11482 prefix = substr(line, 1, index(line, defundef) - 1)
11483 if (D_is_set[macro]) {
11484 # Preserve the white space surrounding the "#".
11485 print prefix "define", macro P[macro] D[macro]
11486 next
11487 } else {
11488 # Replace #undef with comments. This is necessary, for example,
11489 # in the case of _POSIX_SOURCE, which is predefined and required
11490 # on some systems where configure will not decide to define it.
11491 if (defundef == "undef") {
11492 print "/*", prefix defundef, macro, "*/"
11493 next
11494 }
11495 }
11496 }
11497 { print }
11498 _ACAWK
11499 _ACEOF
11500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11501 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11502 fi # test -n "$CONFIG_HEADERS"
11503
11504
11505 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11506 shift
11507 for ac_tag
11508 do
11509 case $ac_tag in
11510 :[FHLC]) ac_mode=$ac_tag; continue;;
11511 esac
11512 case $ac_mode$ac_tag in
11513 :[FHL]*:*);;
11514 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11515 :[FH]-) ac_tag=-:-;;
11516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11517 esac
11518 ac_save_IFS=$IFS
11519 IFS=:
11520 set x $ac_tag
11521 IFS=$ac_save_IFS
11522 shift
11523 ac_file=$1
11524 shift
11525
11526 case $ac_mode in
11527 :L) ac_source=$1;;
11528 :[FH])
11529 ac_file_inputs=
11530 for ac_f
11531 do
11532 case $ac_f in
11533 -) ac_f="$ac_tmp/stdin";;
11534 *) # Look for the file first in the build tree, then in the source tree
11535 # (if the path is not absolute). The absolute path cannot be DOS-style,
11536 # because $ac_f cannot contain `:'.
11537 test -f "$ac_f" ||
11538 case $ac_f in
11539 [\\/$]*) false;;
11540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11541 esac ||
11542 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11543 esac
11544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11545 as_fn_append ac_file_inputs " '$ac_f'"
11546 done
11547
11548 # Let's still pretend it is `configure' which instantiates (i.e., don't
11549 # use $as_me), people would be surprised to read:
11550 # /* config.h. Generated by config.status. */
11551 configure_input='Generated from '`
11552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11553 `' by configure.'
11554 if test x"$ac_file" != x-; then
11555 configure_input="$ac_file. $configure_input"
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11557 $as_echo "$as_me: creating $ac_file" >&6;}
11558 fi
11559 # Neutralize special characters interpreted by sed in replacement strings.
11560 case $configure_input in #(
11561 *\&* | *\|* | *\\* )
11562 ac_sed_conf_input=`$as_echo "$configure_input" |
11563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11564 *) ac_sed_conf_input=$configure_input;;
11565 esac
11566
11567 case $ac_tag in
11568 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11570 esac
11571 ;;
11572 esac
11573
11574 ac_dir=`$as_dirname -- "$ac_file" ||
11575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11576 X"$ac_file" : 'X\(//\)[^/]' \| \
11577 X"$ac_file" : 'X\(//\)$' \| \
11578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11579 $as_echo X"$ac_file" |
11580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11581 s//\1/
11582 q
11583 }
11584 /^X\(\/\/\)[^/].*/{
11585 s//\1/
11586 q
11587 }
11588 /^X\(\/\/\)$/{
11589 s//\1/
11590 q
11591 }
11592 /^X\(\/\).*/{
11593 s//\1/
11594 q
11595 }
11596 s/.*/./; q'`
11597 as_dir="$ac_dir"; as_fn_mkdir_p
11598 ac_builddir=.
11599
11600 case "$ac_dir" in
11601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11602 *)
11603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11604 # A ".." for each directory in $ac_dir_suffix.
11605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11606 case $ac_top_builddir_sub in
11607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11609 esac ;;
11610 esac
11611 ac_abs_top_builddir=$ac_pwd
11612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11613 # for backward compatibility:
11614 ac_top_builddir=$ac_top_build_prefix
11615
11616 case $srcdir in
11617 .) # We are building in place.
11618 ac_srcdir=.
11619 ac_top_srcdir=$ac_top_builddir_sub
11620 ac_abs_top_srcdir=$ac_pwd ;;
11621 [\\/]* | ?:[\\/]* ) # Absolute name.
11622 ac_srcdir=$srcdir$ac_dir_suffix;
11623 ac_top_srcdir=$srcdir
11624 ac_abs_top_srcdir=$srcdir ;;
11625 *) # Relative name.
11626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11627 ac_top_srcdir=$ac_top_build_prefix$srcdir
11628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11629 esac
11630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11631
11632
11633 case $ac_mode in
11634 :F)
11635 #
11636 # CONFIG_FILE
11637 #
11638
11639 case $INSTALL in
11640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11642 esac
11643 ac_MKDIR_P=$MKDIR_P
11644 case $MKDIR_P in
11645 [\\/$]* | ?:[\\/]* ) ;;
11646 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11647 esac
11648 _ACEOF
11649
11650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11651 # If the template does not know about datarootdir, expand it.
11652 # FIXME: This hack should be removed a few years after 2.60.
11653 ac_datarootdir_hack=; ac_datarootdir_seen=
11654 ac_sed_dataroot='
11655 /datarootdir/ {
11656 p
11657 q
11658 }
11659 /@datadir@/p
11660 /@docdir@/p
11661 /@infodir@/p
11662 /@localedir@/p
11663 /@mandir@/p'
11664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11665 *datarootdir*) ac_datarootdir_seen=yes;;
11666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11669 _ACEOF
11670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11671 ac_datarootdir_hack='
11672 s&@datadir@&$datadir&g
11673 s&@docdir@&$docdir&g
11674 s&@infodir@&$infodir&g
11675 s&@localedir@&$localedir&g
11676 s&@mandir@&$mandir&g
11677 s&\\\${datarootdir}&$datarootdir&g' ;;
11678 esac
11679 _ACEOF
11680
11681 # Neutralize VPATH when `$srcdir' = `.'.
11682 # Shell code in configure.ac might set extrasub.
11683 # FIXME: do we really want to maintain this feature?
11684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11685 ac_sed_extra="$ac_vpsub
11686 $extrasub
11687 _ACEOF
11688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11689 :t
11690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11691 s|@configure_input@|$ac_sed_conf_input|;t t
11692 s&@top_builddir@&$ac_top_builddir_sub&;t t
11693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11694 s&@srcdir@&$ac_srcdir&;t t
11695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11696 s&@top_srcdir@&$ac_top_srcdir&;t t
11697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11698 s&@builddir@&$ac_builddir&;t t
11699 s&@abs_builddir@&$ac_abs_builddir&;t t
11700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11701 s&@INSTALL@&$ac_INSTALL&;t t
11702 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11703 $ac_datarootdir_hack
11704 "
11705 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11706 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11707
11708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11711 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11713 which seems to be undefined. Please make sure it is defined" >&5
11714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11715 which seems to be undefined. Please make sure it is defined" >&2;}
11716
11717 rm -f "$ac_tmp/stdin"
11718 case $ac_file in
11719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11721 esac \
11722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11723 ;;
11724 :H)
11725 #
11726 # CONFIG_HEADER
11727 #
11728 if test x"$ac_file" != x-; then
11729 {
11730 $as_echo "/* $configure_input */" \
11731 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11732 } >"$ac_tmp/config.h" \
11733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11734 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11736 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11737 else
11738 rm -f "$ac_file"
11739 mv "$ac_tmp/config.h" "$ac_file" \
11740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11741 fi
11742 else
11743 $as_echo "/* $configure_input */" \
11744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11745 || as_fn_error $? "could not create -" "$LINENO" 5
11746 fi
11747 # Compute "$ac_file"'s index in $config_headers.
11748 _am_arg="$ac_file"
11749 _am_stamp_count=1
11750 for _am_header in $config_headers :; do
11751 case $_am_header in
11752 $_am_arg | $_am_arg:* )
11753 break ;;
11754 * )
11755 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11756 esac
11757 done
11758 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11759 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11760 X"$_am_arg" : 'X\(//\)[^/]' \| \
11761 X"$_am_arg" : 'X\(//\)$' \| \
11762 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11763 $as_echo X"$_am_arg" |
11764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11765 s//\1/
11766 q
11767 }
11768 /^X\(\/\/\)[^/].*/{
11769 s//\1/
11770 q
11771 }
11772 /^X\(\/\/\)$/{
11773 s//\1/
11774 q
11775 }
11776 /^X\(\/\).*/{
11777 s//\1/
11778 q
11779 }
11780 s/.*/./; q'`/stamp-h$_am_stamp_count
11781 ;;
11782
11783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11784 $as_echo "$as_me: executing $ac_file commands" >&6;}
11785 ;;
11786 esac
11787
11788
11789 case $ac_file$ac_mode in
11790 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11791 # Older Autoconf quotes --file arguments for eval, but not when files
11792 # are listed without --file. Let's play safe and only enable the eval
11793 # if we detect the quoting.
11794 case $CONFIG_FILES in
11795 *\'*) eval set x "$CONFIG_FILES" ;;
11796 *) set x $CONFIG_FILES ;;
11797 esac
11798 shift
11799 for mf
11800 do
11801 # Strip MF so we end up with the name of the file.
11802 mf=`echo "$mf" | sed -e 's/:.*$//'`
11803 # Check whether this is an Automake generated Makefile or not.
11804 # We used to match only the files named 'Makefile.in', but
11805 # some people rename them; so instead we look at the file content.
11806 # Grep'ing the first line is not enough: some people post-process
11807 # each Makefile.in and add a new line on top of each file to say so.
11808 # Grep'ing the whole file is not good either: AIX grep has a line
11809 # limit of 2048, but all sed's we know have understand at least 4000.
11810 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11811 dirpart=`$as_dirname -- "$mf" ||
11812 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11813 X"$mf" : 'X\(//\)[^/]' \| \
11814 X"$mf" : 'X\(//\)$' \| \
11815 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11816 $as_echo X"$mf" |
11817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11818 s//\1/
11819 q
11820 }
11821 /^X\(\/\/\)[^/].*/{
11822 s//\1/
11823 q
11824 }
11825 /^X\(\/\/\)$/{
11826 s//\1/
11827 q
11828 }
11829 /^X\(\/\).*/{
11830 s//\1/
11831 q
11832 }
11833 s/.*/./; q'`
11834 else
11835 continue
11836 fi
11837 # Extract the definition of DEPDIR, am__include, and am__quote
11838 # from the Makefile without running 'make'.
11839 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11840 test -z "$DEPDIR" && continue
11841 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11842 test -z "$am__include" && continue
11843 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11844 # Find all dependency output files, they are included files with
11845 # $(DEPDIR) in their names. We invoke sed twice because it is the
11846 # simplest approach to changing $(DEPDIR) to its actual value in the
11847 # expansion.
11848 for file in `sed -n "
11849 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11850 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
11851 # Make sure the directory exists.
11852 test -f "$dirpart/$file" && continue
11853 fdir=`$as_dirname -- "$file" ||
11854 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11855 X"$file" : 'X\(//\)[^/]' \| \
11856 X"$file" : 'X\(//\)$' \| \
11857 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11858 $as_echo X"$file" |
11859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11860 s//\1/
11861 q
11862 }
11863 /^X\(\/\/\)[^/].*/{
11864 s//\1/
11865 q
11866 }
11867 /^X\(\/\/\)$/{
11868 s//\1/
11869 q
11870 }
11871 /^X\(\/\).*/{
11872 s//\1/
11873 q
11874 }
11875 s/.*/./; q'`
11876 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11877 # echo "creating $dirpart/$file"
11878 echo '# dummy' > "$dirpart/$file"
11879 done
11880 done
11881 }
11882 ;;
11883
11884 esac
11885 done # for ac_tag
11886
11887
11888 as_fn_exit 0
11889 _ACEOF
11890 ac_clean_files=$ac_clean_files_save
11891
11892 test $ac_write_fail = 0 ||
11893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11894
11895
11896 # configure is writing to config.log, and then calls config.status.
11897 # config.status does its own redirection, appending to config.log.
11898 # Unfortunately, on DOS this fails, as config.log is still kept open
11899 # by configure, so config.status won't be able to write to it; its
11900 # output is simply discarded. So we exec the FD to /dev/null,
11901 # effectively closing config.log, so it can be properly (re)opened and
11902 # appended to by config.status. When coming back to configure, we
11903 # need to make the FD available again.
11904 if test "$no_create" != yes; then
11905 ac_cs_success=:
11906 ac_config_status_args=
11907 test "$silent" = yes &&
11908 ac_config_status_args="$ac_config_status_args --quiet"
11909 exec 5>/dev/null
11910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11911 exec 5>>config.log
11912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11913 # would make configure fail if this is the last instruction.
11914 $ac_cs_success || as_fn_exit 1
11915 fi
11916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11919 fi
11920