]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdbsupport/configure
Morello do not create RELATIVE relocs for dynamic GOT entries
[thirdparty/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 ac_aux_dir=
2735 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2736 if test -f "$ac_dir/install-sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install-sh -c"
2739 break
2740 elif test -f "$ac_dir/install.sh"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/install.sh -c"
2743 break
2744 elif test -f "$ac_dir/shtool"; then
2745 ac_aux_dir=$ac_dir
2746 ac_install_sh="$ac_aux_dir/shtool install -c"
2747 break
2748 fi
2749 done
2750 if test -z "$ac_aux_dir"; then
2751 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2752 fi
2753
2754 # These three variables are undocumented and unsupported,
2755 # and are intended to be withdrawn in a future Autoconf release.
2756 # They can cause serious problems if a builder's source tree is in a directory
2757 # whose full name contains unusual characters.
2758 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2759 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2760 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2761
2762
2763 # Make sure we can run config.sub.
2764 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2765 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2768 $as_echo_n "checking build system type... " >&6; }
2769 if ${ac_cv_build+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 ac_build_alias=$build_alias
2773 test "x$ac_build_alias" = x &&
2774 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2775 test "x$ac_build_alias" = x &&
2776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2777 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2779
2780 fi
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2782 $as_echo "$ac_cv_build" >&6; }
2783 case $ac_cv_build in
2784 *-*-*) ;;
2785 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2786 esac
2787 build=$ac_cv_build
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_build
2790 shift
2791 build_cpu=$1
2792 build_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 build_os=$*
2797 IFS=$ac_save_IFS
2798 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2799
2800
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2802 $as_echo_n "checking host system type... " >&6; }
2803 if ${ac_cv_host+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test "x$host_alias" = x; then
2807 ac_cv_host=$ac_cv_build
2808 else
2809 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 fi
2812
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2815 $as_echo "$ac_cv_host" >&6; }
2816 case $ac_cv_host in
2817 *-*-*) ;;
2818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2819 esac
2820 host=$ac_cv_host
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_host
2823 shift
2824 host_cpu=$1
2825 host_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 host_os=$*
2830 IFS=$ac_save_IFS
2831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2835 $as_echo_n "checking target system type... " >&6; }
2836 if ${ac_cv_target+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test "x$target_alias" = x; then
2840 ac_cv_target=$ac_cv_host
2841 else
2842 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2844 fi
2845
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2848 $as_echo "$ac_cv_target" >&6; }
2849 case $ac_cv_target in
2850 *-*-*) ;;
2851 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2852 esac
2853 target=$ac_cv_target
2854 ac_save_IFS=$IFS; IFS='-'
2855 set x $ac_cv_target
2856 shift
2857 target_cpu=$1
2858 target_vendor=$2
2859 shift; shift
2860 # Remember, the first character of IFS is used to create $*,
2861 # except with old shells:
2862 target_os=$*
2863 IFS=$ac_save_IFS
2864 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2865
2866
2867 # The aliases save the names the user supplied, while $host etc.
2868 # will get canonicalized.
2869 test -n "$target_alias" &&
2870 test "$program_prefix$program_suffix$program_transform_name" = \
2871 NONENONEs,x,x, &&
2872 program_prefix=${target_alias}-
2873
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2876 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2877 # Check whether --enable-maintainer-mode was given.
2878 if test "${enable_maintainer_mode+set}" = set; then :
2879 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2880 else
2881 USE_MAINTAINER_MODE=no
2882 fi
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2885 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2886 if test $USE_MAINTAINER_MODE = yes; then
2887 MAINTAINER_MODE_TRUE=
2888 MAINTAINER_MODE_FALSE='#'
2889 else
2890 MAINTAINER_MODE_TRUE='#'
2891 MAINTAINER_MODE_FALSE=
2892 fi
2893
2894 MAINT=$MAINTAINER_MODE_TRUE
2895
2896
2897 ac_aux_dir=
2898 for ac_dir in .. "$srcdir"/..; do
2899 if test -f "$ac_dir/install-sh"; then
2900 ac_aux_dir=$ac_dir
2901 ac_install_sh="$ac_aux_dir/install-sh -c"
2902 break
2903 elif test -f "$ac_dir/install.sh"; then
2904 ac_aux_dir=$ac_dir
2905 ac_install_sh="$ac_aux_dir/install.sh -c"
2906 break
2907 elif test -f "$ac_dir/shtool"; then
2908 ac_aux_dir=$ac_dir
2909 ac_install_sh="$ac_aux_dir/shtool install -c"
2910 break
2911 fi
2912 done
2913 if test -z "$ac_aux_dir"; then
2914 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2915 fi
2916
2917 # These three variables are undocumented and unsupported,
2918 # and are intended to be withdrawn in a future Autoconf release.
2919 # They can cause serious problems if a builder's source tree is in a directory
2920 # whose full name contains unusual characters.
2921 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2922 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2923 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2924
2925
2926 am__api_version='1.15'
2927
2928 # Find a good install program. We prefer a C program (faster),
2929 # so one script is as good as another. But avoid the broken or
2930 # incompatible versions:
2931 # SysV /etc/install, /usr/sbin/install
2932 # SunOS /usr/etc/install
2933 # IRIX /sbin/install
2934 # AIX /bin/install
2935 # AmigaOS /C/install, which installs bootblocks on floppy discs
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # OS/2's system install, which has a completely different semantic
2940 # ./install, which can be erroneously created by make from ./install.sh.
2941 # Reject install programs that cannot install multiple files.
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2943 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2944 if test -z "$INSTALL"; then
2945 if ${ac_cv_path_install+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 # Account for people who put trailing slashes in PATH elements.
2954 case $as_dir/ in #((
2955 ./ | .// | /[cC]/* | \
2956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2958 /usr/ucb/* ) ;;
2959 *)
2960 # OSF1 and SCO ODT 3.0 have their own names for install.
2961 # Don't use installbsd from OSF since it installs stuff as root
2962 # by default.
2963 for ac_prog in ginstall scoinst install; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2966 if test $ac_prog = install &&
2967 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # AIX install. It has an incompatible calling convention.
2969 :
2970 elif test $ac_prog = install &&
2971 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # program-specific install script used by HP pwplus--don't use.
2973 :
2974 else
2975 rm -rf conftest.one conftest.two conftest.dir
2976 echo one > conftest.one
2977 echo two > conftest.two
2978 mkdir conftest.dir
2979 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2980 test -s conftest.one && test -s conftest.two &&
2981 test -s conftest.dir/conftest.one &&
2982 test -s conftest.dir/conftest.two
2983 then
2984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2985 break 3
2986 fi
2987 fi
2988 fi
2989 done
2990 done
2991 ;;
2992 esac
2993
2994 done
2995 IFS=$as_save_IFS
2996
2997 rm -rf conftest.one conftest.two conftest.dir
2998
2999 fi
3000 if test "${ac_cv_path_install+set}" = set; then
3001 INSTALL=$ac_cv_path_install
3002 else
3003 # As a last resort, use the slow shell script. Don't cache a
3004 # value for INSTALL within a source directory, because that will
3005 # break other packages using the cache if that directory is
3006 # removed, or if the value is a relative name.
3007 INSTALL=$ac_install_sh
3008 fi
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3011 $as_echo "$INSTALL" >&6; }
3012
3013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3014 # It thinks the first close brace ends the variable substitution.
3015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3016
3017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3018
3019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3022 $as_echo_n "checking whether build environment is sane... " >&6; }
3023 # Reject unsafe characters in $srcdir or the absolute working directory
3024 # name. Accept space and tab only in the latter.
3025 am_lf='
3026 '
3027 case `pwd` in
3028 *[\\\"\#\$\&\'\`$am_lf]*)
3029 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3030 esac
3031 case $srcdir in
3032 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3033 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3034 esac
3035
3036 # Do 'set' in a subshell so we don't clobber the current shell's
3037 # arguments. Must try -L first in case configure is actually a
3038 # symlink; some systems play weird games with the mod time of symlinks
3039 # (eg FreeBSD returns the mod time of the symlink's containing
3040 # directory).
3041 if (
3042 am_has_slept=no
3043 for am_try in 1 2; do
3044 echo "timestamp, slept: $am_has_slept" > conftest.file
3045 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3047 # -L didn't work.
3048 set X `ls -t "$srcdir/configure" conftest.file`
3049 fi
3050 if test "$*" != "X $srcdir/configure conftest.file" \
3051 && test "$*" != "X conftest.file $srcdir/configure"; then
3052
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
3057 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3058 alias in your environment" "$LINENO" 5
3059 fi
3060 if test "$2" = conftest.file || test $am_try -eq 2; then
3061 break
3062 fi
3063 # Just in case.
3064 sleep 1
3065 am_has_slept=yes
3066 done
3067 test "$2" = conftest.file
3068 )
3069 then
3070 # Ok.
3071 :
3072 else
3073 as_fn_error $? "newly created file is older than distributed files!
3074 Check your system clock" "$LINENO" 5
3075 fi
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077 $as_echo "yes" >&6; }
3078 # If we didn't sleep, we still need to ensure time stamps of config.status and
3079 # generated files are strictly newer.
3080 am_sleep_pid=
3081 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3082 ( sleep 1 ) &
3083 am_sleep_pid=$!
3084 fi
3085
3086 rm -f conftest.file
3087
3088 test "$program_prefix" != NONE &&
3089 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3090 # Use a double $ so make ignores it.
3091 test "$program_suffix" != NONE &&
3092 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3093 # Double any \ or $.
3094 # By default was `s,x,x', remove it if useless.
3095 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3096 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3097
3098 # Expand $ac_aux_dir to an absolute path.
3099 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3100
3101 if test x"${MISSING+set}" != xset; then
3102 case $am_aux_dir in
3103 *\ * | *\ *)
3104 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3105 *)
3106 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3107 esac
3108 fi
3109 # Use eval to expand $SHELL
3110 if eval "$MISSING --is-lightweight"; then
3111 am_missing_run="$MISSING "
3112 else
3113 am_missing_run=
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3115 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3116 fi
3117
3118 if test x"${install_sh+set}" != xset; then
3119 case $am_aux_dir in
3120 *\ * | *\ *)
3121 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3122 *)
3123 install_sh="\${SHELL} $am_aux_dir/install-sh"
3124 esac
3125 fi
3126
3127 # Installed binaries are usually stripped using 'strip' when the user
3128 # run "make install-strip". However 'strip' might not be the right
3129 # tool to use in cross-compilation environments, therefore Automake
3130 # will honor the 'STRIP' environment variable to overrule this program.
3131 if test "$cross_compiling" != no; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}strip; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_STRIP+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$STRIP"; then
3141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 STRIP=$ac_cv_prog_STRIP
3161 if test -n "$STRIP"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3163 $as_echo "$STRIP" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170 fi
3171 if test -z "$ac_cv_prog_STRIP"; then
3172 ac_ct_STRIP=$STRIP
3173 # Extract the first word of "strip", so it can be a program name with args.
3174 set dummy strip; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$ac_ct_STRIP"; then
3181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_ac_ct_STRIP="strip"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3201 if test -n "$ac_ct_STRIP"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3203 $as_echo "$ac_ct_STRIP" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209 if test "x$ac_ct_STRIP" = x; then
3210 STRIP=":"
3211 else
3212 case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218 STRIP=$ac_ct_STRIP
3219 fi
3220 else
3221 STRIP="$ac_cv_prog_STRIP"
3222 fi
3223
3224 fi
3225 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3226
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3228 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3229 if test -z "$MKDIR_P"; then
3230 if ${ac_cv_path_mkdir+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_prog in mkdir gmkdir; do
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3241 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3242 'mkdir (GNU coreutils) '* | \
3243 'mkdir (coreutils) '* | \
3244 'mkdir (fileutils) '4.1*)
3245 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3246 break 3;;
3247 esac
3248 done
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254
3255 test -d ./--version && rmdir ./--version
3256 if test "${ac_cv_path_mkdir+set}" = set; then
3257 MKDIR_P="$ac_cv_path_mkdir -p"
3258 else
3259 # As a last resort, use the slow shell script. Don't cache a
3260 # value for MKDIR_P within a source directory, because that will
3261 # break other packages using the cache if that directory is
3262 # removed, or if the value is a relative name.
3263 MKDIR_P="$ac_install_sh -d"
3264 fi
3265 fi
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3267 $as_echo "$MKDIR_P" >&6; }
3268
3269 for ac_prog in gawk mawk nawk awk
3270 do
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_AWK+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 if test -n "$AWK"; then
3279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_AWK="$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 AWK=$ac_cv_prog_AWK
3299 if test -n "$AWK"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3301 $as_echo "$AWK" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 fi
3306
3307
3308 test -n "$AWK" && break
3309 done
3310
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3312 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3313 set x ${MAKE-make}
3314 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3315 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 cat >conftest.make <<\_ACEOF
3319 SHELL = /bin/sh
3320 all:
3321 @echo '@@@%%%=$(MAKE)=@@@%%%'
3322 _ACEOF
3323 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3324 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3325 *@@@%%%=?*=@@@%%%*)
3326 eval ac_cv_prog_make_${ac_make}_set=yes;;
3327 *)
3328 eval ac_cv_prog_make_${ac_make}_set=no;;
3329 esac
3330 rm -f conftest.make
3331 fi
3332 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3335 SET_MAKE=
3336 else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 SET_MAKE="MAKE=${MAKE-make}"
3340 fi
3341
3342 rm -rf .tst 2>/dev/null
3343 mkdir .tst 2>/dev/null
3344 if test -d .tst; then
3345 am__leading_dot=.
3346 else
3347 am__leading_dot=_
3348 fi
3349 rmdir .tst 2>/dev/null
3350
3351 # Check whether --enable-silent-rules was given.
3352 if test "${enable_silent_rules+set}" = set; then :
3353 enableval=$enable_silent_rules;
3354 fi
3355
3356 case $enable_silent_rules in # (((
3357 yes) AM_DEFAULT_VERBOSITY=0;;
3358 no) AM_DEFAULT_VERBOSITY=1;;
3359 *) AM_DEFAULT_VERBOSITY=1;;
3360 esac
3361 am_make=${MAKE-make}
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3363 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3364 if ${am_cv_make_support_nested_variables+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if $as_echo 'TRUE=$(BAR$(V))
3368 BAR0=false
3369 BAR1=true
3370 V=1
3371 am__doit:
3372 @$(TRUE)
3373 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3374 am_cv_make_support_nested_variables=yes
3375 else
3376 am_cv_make_support_nested_variables=no
3377 fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3380 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3381 if test $am_cv_make_support_nested_variables = yes; then
3382 AM_V='$(V)'
3383 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3384 else
3385 AM_V=$AM_DEFAULT_VERBOSITY
3386 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3387 fi
3388 AM_BACKSLASH='\'
3389
3390 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3391 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3392 # is not polluted with repeated "-I."
3393 am__isrc=' -I$(srcdir)'
3394 # test to see if srcdir already configured
3395 if test -f $srcdir/config.status; then
3396 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3397 fi
3398 fi
3399
3400 # test whether we have cygpath
3401 if test -z "$CYGPATH_W"; then
3402 if (cygpath --version) >/dev/null 2>/dev/null; then
3403 CYGPATH_W='cygpath -w'
3404 else
3405 CYGPATH_W=echo
3406 fi
3407 fi
3408
3409
3410 # Define the identity of the package.
3411 PACKAGE='gdbsupport'
3412 VERSION='1.0'
3413
3414
3415 cat >>confdefs.h <<_ACEOF
3416 #define PACKAGE "$PACKAGE"
3417 _ACEOF
3418
3419
3420 cat >>confdefs.h <<_ACEOF
3421 #define VERSION "$VERSION"
3422 _ACEOF
3423
3424 # Some tools Automake needs.
3425
3426 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3427
3428
3429 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3430
3431
3432 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3433
3434
3435 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3436
3437
3438 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3439
3440 # For better backward compatibility. To be removed once Automake 1.9.x
3441 # dies out for good. For more background, see:
3442 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3443 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3444 mkdir_p='$(MKDIR_P)'
3445
3446 # We need awk for the "check" target (and possibly the TAP driver). The
3447 # system "awk" is bad on some platforms.
3448 # Always define AMTAR for backward compatibility. Yes, it's still used
3449 # in the wild :-( We should find a proper way to deprecate it ...
3450 AMTAR='$${TAR-tar}'
3451
3452
3453 # We'll loop over all known methods to create a tar archive until one works.
3454 _am_tools='gnutar pax cpio none'
3455
3456 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3457
3458
3459
3460
3461
3462
3463 # POSIX will say in a future version that running "rm -f" with no argument
3464 # is OK; and we want to be able to make that assumption in our Makefile
3465 # recipes. So use an aggressive probe to check that the usage we want is
3466 # actually supported "in the wild" to an acceptable degree.
3467 # See automake bug#10828.
3468 # To make any issue more visible, cause the running configure to be aborted
3469 # by default if the 'rm' program in use doesn't match our expectations; the
3470 # user can still override this though.
3471 if rm -f && rm -fr && rm -rf; then : OK; else
3472 cat >&2 <<'END'
3473 Oops!
3474
3475 Your 'rm' program seems unable to run without file operands specified
3476 on the command line, even when the '-f' option is present. This is contrary
3477 to the behaviour of most rm programs out there, and not conforming with
3478 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3479
3480 Please tell bug-automake@gnu.org about your system, including the value
3481 of your $PATH and any error possibly output before this message. This
3482 can help us improve future automake versions.
3483
3484 END
3485 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3486 echo 'Configuration will proceed anyway, since you have set the' >&2
3487 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3488 echo >&2
3489 else
3490 cat >&2 <<'END'
3491 Aborting the configuration process, to ensure you take notice of the issue.
3492
3493 You can download and install GNU coreutils to get an 'rm' implementation
3494 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3495
3496 If you want to complete the configuration process using your problematic
3497 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3498 to "yes", and re-run configure.
3499
3500 END
3501 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3502 fi
3503 fi
3504
3505 # Check whether --enable-silent-rules was given.
3506 if test "${enable_silent_rules+set}" = set; then :
3507 enableval=$enable_silent_rules;
3508 fi
3509
3510 case $enable_silent_rules in # (((
3511 yes) AM_DEFAULT_VERBOSITY=0;;
3512 no) AM_DEFAULT_VERBOSITY=1;;
3513 *) AM_DEFAULT_VERBOSITY=0;;
3514 esac
3515 am_make=${MAKE-make}
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3517 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3518 if ${am_cv_make_support_nested_variables+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if $as_echo 'TRUE=$(BAR$(V))
3522 BAR0=false
3523 BAR1=true
3524 V=1
3525 am__doit:
3526 @$(TRUE)
3527 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3528 am_cv_make_support_nested_variables=yes
3529 else
3530 am_cv_make_support_nested_variables=no
3531 fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3534 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3535 if test $am_cv_make_support_nested_variables = yes; then
3536 AM_V='$(V)'
3537 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3538 else
3539 AM_V=$AM_DEFAULT_VERBOSITY
3540 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3541 fi
3542 AM_BACKSLASH='\'
3543
3544
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588 fi
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3637 fi
3638 else
3639 CC="$ac_cv_prog_CC"
3640 fi
3641
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_CC+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 fi
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_CC+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 ac_prog_rejected=no
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3704 continue
3705 fi
3706 ac_cv_prog_CC="cc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3717 shift
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3722 shift
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3724 fi
3725 fi
3726 fi
3727 fi
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738 fi
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3742 do
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3763 fi
3764 done
3765 done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 test -n "$CC" && break
3781 done
3782 fi
3783 if test -z "$CC"; then
3784 ac_ct_CC=$CC
3785 for ac_prog in cl.exe
3786 do
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823
3824 test -n "$ac_ct_CC" && break
3825 done
3826
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CC=$ac_ct_CC
3837 fi
3838 fi
3839
3840 fi
3841
3842
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details" "$LINENO" 5; }
3847
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 set X $ac_compile
3851 ac_compiler=$2
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 ac_status=$?
3862 if test -s conftest.err; then
3863 sed '10a\
3864 ... rest of stderr output deleted ...
3865 10q' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3867 fi
3868 rm -f conftest.er1 conftest.err
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 done
3872
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875
3876 int
3877 main ()
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3888 # of exeext.
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3890 $as_echo_n "checking whether the C compiler works... " >&6; }
3891 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3892
3893 # The possible output files:
3894 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3895
3896 ac_rmfiles=
3897 for ac_file in $ac_files
3898 do
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3902 esac
3903 done
3904 rm -f $ac_rmfiles
3905
3906 if { { ac_try="$ac_link_default"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_link_default") 2>&5
3914 ac_status=$?
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3919 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3920 # so that the user can short-circuit this test for compilers unknown to
3921 # Autoconf.
3922 for ac_file in $ac_files ''
3923 do
3924 test -f "$ac_file" || continue
3925 case $ac_file in
3926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3927 ;;
3928 [ab].out )
3929 # We found the default executable, but exeext='' is most
3930 # certainly right.
3931 break;;
3932 *.* )
3933 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3934 then :; else
3935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 fi
3937 # We set ac_cv_exeext here because the later test for it is not
3938 # safe: cross compilers may not add the suffix if given an `-o'
3939 # argument, so we may need to know it at that point already.
3940 # Even if this section looks crufty: it has the advantage of
3941 # actually working.
3942 break;;
3943 * )
3944 break;;
3945 esac
3946 done
3947 test "$ac_cv_exeext" = no && ac_cv_exeext=
3948
3949 else
3950 ac_file=''
3951 fi
3952 if test -z "$ac_file"; then :
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error 77 "C compiler cannot create executables
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3967 $as_echo_n "checking for C compiler default output file name... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3969 $as_echo "$ac_file" >&6; }
3970 ac_exeext=$ac_cv_exeext
3971
3972 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3973 ac_clean_files=$ac_clean_files_save
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3975 $as_echo_n "checking for suffix of executables... " >&6; }
3976 if { { ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }; then :
3987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3989 # work properly (i.e., refer to `conftest.exe'), while it won't with
3990 # `rm'.
3991 for ac_file in conftest.exe conftest conftest.*; do
3992 test -f "$ac_file" || continue
3993 case $ac_file in
3994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3996 break;;
3997 * ) break;;
3998 esac
3999 done
4000 else
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4004 See \`config.log' for more details" "$LINENO" 5; }
4005 fi
4006 rm -f conftest conftest$ac_cv_exeext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4008 $as_echo "$ac_cv_exeext" >&6; }
4009
4010 rm -f conftest.$ac_ext
4011 EXEEXT=$ac_cv_exeext
4012 ac_exeext=$EXEEXT
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 #include <stdio.h>
4016 int
4017 main ()
4018 {
4019 FILE *f = fopen ("conftest.out", "w");
4020 return ferror (f) || fclose (f) != 0;
4021
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 ac_clean_files="$ac_clean_files conftest.out"
4027 # Check that the compiler produces executables we can run. If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030 $as_echo_n "checking whether we are cross compiling... " >&6; }
4031 if test "$cross_compiling" != yes; then
4032 { { ac_try="$ac_link"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_link") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }
4043 if { ac_try='./conftest$ac_cv_exeext'
4044 { { case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 $as_echo "$ac_try_echo"; } >&5
4050 (eval "$ac_try") 2>&5
4051 ac_status=$?
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }; }; then
4054 cross_compiling=no
4055 else
4056 if test "$cross_compiling" = maybe; then
4057 cross_compiling=yes
4058 else
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $? "cannot run C compiled programs.
4062 If you meant to cross compile, use \`--host'.
4063 See \`config.log' for more details" "$LINENO" 5; }
4064 fi
4065 fi
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4068 $as_echo "$cross_compiling" >&6; }
4069
4070 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4071 ac_clean_files=$ac_clean_files_save
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4073 $as_echo_n "checking for suffix of object files... " >&6; }
4074 if ${ac_cv_objext+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079
4080 int
4081 main ()
4082 {
4083
4084 ;
4085 return 0;
4086 }
4087 _ACEOF
4088 rm -f conftest.o conftest.obj
4089 if { { ac_try="$ac_compile"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_compile") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; then :
4100 for ac_file in conftest.o conftest.obj conftest.*; do
4101 test -f "$ac_file" || continue;
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4105 break;;
4106 esac
4107 done
4108 else
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 as_fn_error $? "cannot compute suffix of object files: cannot compile
4115 See \`config.log' for more details" "$LINENO" 5; }
4116 fi
4117 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4120 $as_echo "$ac_cv_objext" >&6; }
4121 OBJEXT=$ac_cv_objext
4122 ac_objext=$OBJEXT
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125 if ${ac_cv_c_compiler_gnu+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main ()
4133 {
4134 #ifndef __GNUC__
4135 choke me
4136 #endif
4137
4138 ;
4139 return 0;
4140 }
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_compiler_gnu=yes
4144 else
4145 ac_compiler_gnu=no
4146 fi
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153 if test $ac_compiler_gnu = yes; then
4154 GCC=yes
4155 else
4156 GCC=
4157 fi
4158 ac_test_CFLAGS=${CFLAGS+set}
4159 ac_save_CFLAGS=$CFLAGS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4162 if ${ac_cv_prog_cc_g+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4167 ac_cv_prog_cc_g=no
4168 CFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 int
4173 main ()
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_g=yes
4182 else
4183 CFLAGS=""
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main ()
4189 {
4190
4191 ;
4192 return 0;
4193 }
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196
4197 else
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4199 CFLAGS="-g"
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202
4203 int
4204 main ()
4205 {
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_g=yes
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 $as_echo "$ac_cv_prog_cc_g" >&6; }
4223 if test "$ac_test_CFLAGS" = set; then
4224 CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4227 CFLAGS="-g -O2"
4228 else
4229 CFLAGS="-g"
4230 fi
4231 else
4232 if test "$GCC" = yes; then
4233 CFLAGS="-O2"
4234 else
4235 CFLAGS=
4236 fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240 if ${ac_cv_prog_cc_c89+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 ac_cv_prog_cc_c89=no
4244 ac_save_CC=$CC
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <stdarg.h>
4248 #include <stdio.h>
4249 struct stat;
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4254 char **p;
4255 int i;
4256 {
4257 return p[i];
4258 }
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4260 {
4261 char *s;
4262 va_list v;
4263 va_start (v,p);
4264 s = g (p, va_arg (v,int));
4265 va_end (v);
4266 return s;
4267 }
4268
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4280 #define FOO(x) 'x'
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 int argc;
4288 char **argv;
4289 int
4290 main ()
4291 {
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299 do
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4309
4310 fi
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c89" in
4313 x)
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316 xno)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4319 *)
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4325
4326 fi
4327
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4340 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4341 if ${am_cv_prog_cc_c_o+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346
4347 int
4348 main ()
4349 {
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 # Make sure it works both with $CC and with simple cc.
4356 # Following AC_PROG_CC_C_O, we do the test twice because some
4357 # compilers refuse to overwrite an existing .o file with -o,
4358 # though they will create one.
4359 am_cv_prog_cc_c_o=yes
4360 for am_i in 1 2; do
4361 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4362 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } \
4366 && test -f conftest2.$ac_objext; then
4367 : OK
4368 else
4369 am_cv_prog_cc_c_o=no
4370 break
4371 fi
4372 done
4373 rm -f core conftest*
4374 unset am_i
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4377 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4378 if test "$am_cv_prog_cc_c_o" != yes; then
4379 # Losing compiler, so override with the script.
4380 # FIXME: It is wrong to rewrite CC.
4381 # But if we don't then we get into trouble of one sort or another.
4382 # A longer-term fix would be to have automake use am__CC in this case,
4383 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4384 CC="$am_aux_dir/compile $CC"
4385 fi
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391
4392 DEPDIR="${am__leading_dot}deps"
4393
4394 ac_config_commands="$ac_config_commands depfiles"
4395
4396
4397 am_make=${MAKE-make}
4398 cat > confinc << 'END'
4399 am__doit:
4400 @echo this is the am__doit target
4401 .PHONY: am__doit
4402 END
4403 # If we don't find an include directive, just comment out the code.
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4406 am__include="#"
4407 am__quote=
4408 _am_result=none
4409 # First try GNU make style include.
4410 echo "include confinc" > confmf
4411 # Ignore all kinds of additional output from 'make'.
4412 case `$am_make -s -f confmf 2> /dev/null` in #(
4413 *the\ am__doit\ target*)
4414 am__include=include
4415 am__quote=
4416 _am_result=GNU
4417 ;;
4418 esac
4419 # Now try BSD make style include.
4420 if test "$am__include" = "#"; then
4421 echo '.include "confinc"' > confmf
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4424 am__include=.include
4425 am__quote="\""
4426 _am_result=BSD
4427 ;;
4428 esac
4429 fi
4430
4431
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4433 $as_echo "$_am_result" >&6; }
4434 rm -f confinc confmf
4435
4436 # Check whether --enable-dependency-tracking was given.
4437 if test "${enable_dependency_tracking+set}" = set; then :
4438 enableval=$enable_dependency_tracking;
4439 fi
4440
4441 if test "x$enable_dependency_tracking" != xno; then
4442 am_depcomp="$ac_aux_dir/depcomp"
4443 AMDEPBACKSLASH='\'
4444 am__nodep='_no'
4445 fi
4446 if test "x$enable_dependency_tracking" != xno; then
4447 AMDEP_TRUE=
4448 AMDEP_FALSE='#'
4449 else
4450 AMDEP_TRUE='#'
4451 AMDEP_FALSE=
4452 fi
4453
4454
4455
4456 depcc="$CC" am_compiler_list=
4457
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459 $as_echo_n "checking dependency style of $depcc... " >&6; }
4460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464 # We make a subdir and do the tests there. Otherwise we can end up
4465 # making bogus files that we don't know about and never remove. For
4466 # instance it was reported that on HP-UX the gcc test will end up
4467 # making a dummy file named 'D' -- because '-MD' means "put the output
4468 # in D".
4469 rm -rf conftest.dir
4470 mkdir conftest.dir
4471 # Copy depcomp to subdir because otherwise we won't find it if we're
4472 # using a relative directory.
4473 cp "$am_depcomp" conftest.dir
4474 cd conftest.dir
4475 # We will build objects and dependencies in a subdirectory because
4476 # it helps to detect inapplicable dependency modes. For instance
4477 # both Tru64's cc and ICC support -MD to output dependencies as a
4478 # side effect of compilation, but ICC will put the dependencies in
4479 # the current directory while Tru64 will put them in the object
4480 # directory.
4481 mkdir sub
4482
4483 am_cv_CC_dependencies_compiler_type=none
4484 if test "$am_compiler_list" = ""; then
4485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4486 fi
4487 am__universal=false
4488 case " $depcc " in #(
4489 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4490 esac
4491
4492 for depmode in $am_compiler_list; do
4493 # Setup a source with many dependencies, because some compilers
4494 # like to wrap large dependency lists on column 80 (with \), and
4495 # we should not choose a depcomp mode which is confused by this.
4496 #
4497 # We need to recreate these files for each test, as the compiler may
4498 # overwrite some of them when testing with obscure command lines.
4499 # This happens at least with the AIX C compiler.
4500 : > sub/conftest.c
4501 for i in 1 2 3 4 5 6; do
4502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4503 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4504 # Solaris 10 /bin/sh.
4505 echo '/* dummy */' > sub/conftst$i.h
4506 done
4507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4508
4509 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4510 # mode. It turns out that the SunPro C++ compiler does not properly
4511 # handle '-M -o', and we need to detect this. Also, some Intel
4512 # versions had trouble with output in subdirs.
4513 am__obj=sub/conftest.${OBJEXT-o}
4514 am__minus_obj="-o $am__obj"
4515 case $depmode in
4516 gcc)
4517 # This depmode causes a compiler race in universal mode.
4518 test "$am__universal" = false || continue
4519 ;;
4520 nosideeffect)
4521 # After this tag, mechanisms are not by side-effect, so they'll
4522 # only be used when explicitly requested.
4523 if test "x$enable_dependency_tracking" = xyes; then
4524 continue
4525 else
4526 break
4527 fi
4528 ;;
4529 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4530 # This compiler won't grok '-c -o', but also, the minuso test has
4531 # not run yet. These depmodes are late enough in the game, and
4532 # so weak that their functioning should not be impacted.
4533 am__obj=conftest.${OBJEXT-o}
4534 am__minus_obj=
4535 ;;
4536 none) break ;;
4537 esac
4538 if depmode=$depmode \
4539 source=sub/conftest.c object=$am__obj \
4540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542 >/dev/null 2>conftest.err &&
4543 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547 # icc doesn't choke on unknown options, it will just issue warnings
4548 # or remarks (even with -Werror). So we grep stderr for any message
4549 # that says an option was ignored or not supported.
4550 # When given -MP, icc 7.0 and 7.1 complain thusly:
4551 # icc: Command line warning: ignoring option '-M'; no argument required
4552 # The diagnosis changed in icc 8.0:
4553 # icc: Command line remark: option '-MP' not supported
4554 if (grep 'ignoring option' conftest.err ||
4555 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556 am_cv_CC_dependencies_compiler_type=$depmode
4557 break
4558 fi
4559 fi
4560 done
4561
4562 cd ..
4563 rm -rf conftest.dir
4564 else
4565 am_cv_CC_dependencies_compiler_type=none
4566 fi
4567
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4570 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4571 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4572
4573 if
4574 test "x$enable_dependency_tracking" != xno \
4575 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4576 am__fastdepCC_TRUE=
4577 am__fastdepCC_FALSE='#'
4578 else
4579 am__fastdepCC_TRUE='#'
4580 am__fastdepCC_FALSE=
4581 fi
4582
4583
4584 ac_ext=cpp
4585 ac_cpp='$CXXCPP $CPPFLAGS'
4586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589 if test -z "$CXX"; then
4590 if test -n "$CCC"; then
4591 CXX=$CCC
4592 else
4593 if test -n "$ac_tool_prefix"; then
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4595 do
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_CXX+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$CXX"; then
4604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 CXX=$ac_cv_prog_CXX
4624 if test -n "$CXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4626 $as_echo "$CXX" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633 test -n "$CXX" && break
4634 done
4635 fi
4636 if test -z "$CXX"; then
4637 ac_ct_CXX=$CXX
4638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4639 do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$ac_ct_CXX"; then
4648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4668 if test -n "$ac_ct_CXX"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4670 $as_echo "$ac_ct_CXX" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 test -n "$ac_ct_CXX" && break
4678 done
4679
4680 if test "x$ac_ct_CXX" = x; then
4681 CXX="g++"
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 CXX=$ac_ct_CXX
4690 fi
4691 fi
4692
4693 fi
4694 fi
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4697 set X $ac_compile
4698 ac_compiler=$2
4699 for ac_option in --version -v -V -qversion; do
4700 { { ac_try="$ac_compiler $ac_option >&5"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4708 ac_status=$?
4709 if test -s conftest.err; then
4710 sed '10a\
4711 ... rest of stderr output deleted ...
4712 10q' conftest.err >conftest.er1
4713 cat conftest.er1 >&5
4714 fi
4715 rm -f conftest.er1 conftest.err
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718 done
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4721 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4722 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main ()
4730 {
4731 #ifndef __GNUC__
4732 choke me
4733 #endif
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_cxx_try_compile "$LINENO"; then :
4740 ac_compiler_gnu=yes
4741 else
4742 ac_compiler_gnu=no
4743 fi
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4746
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4749 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4750 if test $ac_compiler_gnu = yes; then
4751 GXX=yes
4752 else
4753 GXX=
4754 fi
4755 ac_test_CXXFLAGS=${CXXFLAGS+set}
4756 ac_save_CXXFLAGS=$CXXFLAGS
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4758 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4759 if ${ac_cv_prog_cxx_g+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761 else
4762 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4763 ac_cxx_werror_flag=yes
4764 ac_cv_prog_cxx_g=no
4765 CXXFLAGS="-g"
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768
4769 int
4770 main ()
4771 {
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 if ac_fn_cxx_try_compile "$LINENO"; then :
4778 ac_cv_prog_cxx_g=yes
4779 else
4780 CXXFLAGS=""
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_cxx_try_compile "$LINENO"; then :
4793
4794 else
4795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4796 CXXFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_cxx_try_compile "$LINENO"; then :
4809 ac_cv_prog_cxx_g=yes
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4820 if test "$ac_test_CXXFLAGS" = set; then
4821 CXXFLAGS=$ac_save_CXXFLAGS
4822 elif test $ac_cv_prog_cxx_g = yes; then
4823 if test "$GXX" = yes; then
4824 CXXFLAGS="-g -O2"
4825 else
4826 CXXFLAGS="-g"
4827 fi
4828 else
4829 if test "$GXX" = yes; then
4830 CXXFLAGS="-O2"
4831 else
4832 CXXFLAGS=
4833 fi
4834 fi
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841 depcc="$CXX" am_compiler_list=
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4844 $as_echo_n "checking dependency style of $depcc... " >&6; }
4845 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4849 # We make a subdir and do the tests there. Otherwise we can end up
4850 # making bogus files that we don't know about and never remove. For
4851 # instance it was reported that on HP-UX the gcc test will end up
4852 # making a dummy file named 'D' -- because '-MD' means "put the output
4853 # in D".
4854 rm -rf conftest.dir
4855 mkdir conftest.dir
4856 # Copy depcomp to subdir because otherwise we won't find it if we're
4857 # using a relative directory.
4858 cp "$am_depcomp" conftest.dir
4859 cd conftest.dir
4860 # We will build objects and dependencies in a subdirectory because
4861 # it helps to detect inapplicable dependency modes. For instance
4862 # both Tru64's cc and ICC support -MD to output dependencies as a
4863 # side effect of compilation, but ICC will put the dependencies in
4864 # the current directory while Tru64 will put them in the object
4865 # directory.
4866 mkdir sub
4867
4868 am_cv_CXX_dependencies_compiler_type=none
4869 if test "$am_compiler_list" = ""; then
4870 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4871 fi
4872 am__universal=false
4873 case " $depcc " in #(
4874 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4875 esac
4876
4877 for depmode in $am_compiler_list; do
4878 # Setup a source with many dependencies, because some compilers
4879 # like to wrap large dependency lists on column 80 (with \), and
4880 # we should not choose a depcomp mode which is confused by this.
4881 #
4882 # We need to recreate these files for each test, as the compiler may
4883 # overwrite some of them when testing with obscure command lines.
4884 # This happens at least with the AIX C compiler.
4885 : > sub/conftest.c
4886 for i in 1 2 3 4 5 6; do
4887 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4888 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4889 # Solaris 10 /bin/sh.
4890 echo '/* dummy */' > sub/conftst$i.h
4891 done
4892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4893
4894 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4895 # mode. It turns out that the SunPro C++ compiler does not properly
4896 # handle '-M -o', and we need to detect this. Also, some Intel
4897 # versions had trouble with output in subdirs.
4898 am__obj=sub/conftest.${OBJEXT-o}
4899 am__minus_obj="-o $am__obj"
4900 case $depmode in
4901 gcc)
4902 # This depmode causes a compiler race in universal mode.
4903 test "$am__universal" = false || continue
4904 ;;
4905 nosideeffect)
4906 # After this tag, mechanisms are not by side-effect, so they'll
4907 # only be used when explicitly requested.
4908 if test "x$enable_dependency_tracking" = xyes; then
4909 continue
4910 else
4911 break
4912 fi
4913 ;;
4914 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4915 # This compiler won't grok '-c -o', but also, the minuso test has
4916 # not run yet. These depmodes are late enough in the game, and
4917 # so weak that their functioning should not be impacted.
4918 am__obj=conftest.${OBJEXT-o}
4919 am__minus_obj=
4920 ;;
4921 none) break ;;
4922 esac
4923 if depmode=$depmode \
4924 source=sub/conftest.c object=$am__obj \
4925 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4926 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4927 >/dev/null 2>conftest.err &&
4928 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4929 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4930 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4931 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4932 # icc doesn't choke on unknown options, it will just issue warnings
4933 # or remarks (even with -Werror). So we grep stderr for any message
4934 # that says an option was ignored or not supported.
4935 # When given -MP, icc 7.0 and 7.1 complain thusly:
4936 # icc: Command line warning: ignoring option '-M'; no argument required
4937 # The diagnosis changed in icc 8.0:
4938 # icc: Command line remark: option '-MP' not supported
4939 if (grep 'ignoring option' conftest.err ||
4940 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4941 am_cv_CXX_dependencies_compiler_type=$depmode
4942 break
4943 fi
4944 fi
4945 done
4946
4947 cd ..
4948 rm -rf conftest.dir
4949 else
4950 am_cv_CXX_dependencies_compiler_type=none
4951 fi
4952
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4955 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4956 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4957
4958 if
4959 test "x$enable_dependency_tracking" != xno \
4960 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4961 am__fastdepCXX_TRUE=
4962 am__fastdepCXX_FALSE='#'
4963 else
4964 am__fastdepCXX_TRUE='#'
4965 am__fastdepCXX_FALSE=
4966 fi
4967
4968
4969 if test -n "$ac_tool_prefix"; then
4970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_RANLIB+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$RANLIB"; then
4978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 RANLIB=$ac_cv_prog_RANLIB
4998 if test -n "$RANLIB"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5000 $as_echo "$RANLIB" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006
5007 fi
5008 if test -z "$ac_cv_prog_RANLIB"; then
5009 ac_ct_RANLIB=$RANLIB
5010 # Extract the first word of "ranlib", so it can be a program name with args.
5011 set dummy ranlib; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$ac_ct_RANLIB"; then
5018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_ac_ct_RANLIB="ranlib"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031 done
5032 done
5033 IFS=$as_save_IFS
5034
5035 fi
5036 fi
5037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5038 if test -n "$ac_ct_RANLIB"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5040 $as_echo "$ac_ct_RANLIB" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046 if test "x$ac_ct_RANLIB" = x; then
5047 RANLIB=":"
5048 else
5049 case $cross_compiling:$ac_tool_warned in
5050 yes:)
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5053 ac_tool_warned=yes ;;
5054 esac
5055 RANLIB=$ac_ct_RANLIB
5056 fi
5057 else
5058 RANLIB="$ac_cv_prog_RANLIB"
5059 fi
5060
5061
5062
5063 ac_ext=c
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5070 # On Suns, sometimes $CPP names a directory.
5071 if test -n "$CPP" && test -d "$CPP"; then
5072 CPP=
5073 fi
5074 if test -z "$CPP"; then
5075 if ${ac_cv_prog_CPP+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 # Double quotes because CPP needs to be expanded
5079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5080 do
5081 ac_preproc_ok=false
5082 for ac_c_preproc_warn_flag in '' yes
5083 do
5084 # Use a header file that comes with gcc, so configuring glibc
5085 # with a fresh cross-compiler works.
5086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5087 # <limits.h> exists even on freestanding compilers.
5088 # On the NeXT, cc -E runs the code through the compiler's parser,
5089 # not just through cpp. "Syntax error" is here to catch this case.
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 #ifdef __STDC__
5093 # include <limits.h>
5094 #else
5095 # include <assert.h>
5096 #endif
5097 Syntax error
5098 _ACEOF
5099 if ac_fn_c_try_cpp "$LINENO"; then :
5100
5101 else
5102 # Broken: fails on valid input.
5103 continue
5104 fi
5105 rm -f conftest.err conftest.i conftest.$ac_ext
5106
5107 # OK, works on sane cases. Now check whether nonexistent headers
5108 # can be detected and how.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #include <ac_nonexistent.h>
5112 _ACEOF
5113 if ac_fn_c_try_cpp "$LINENO"; then :
5114 # Broken: success on invalid input.
5115 continue
5116 else
5117 # Passes both tests.
5118 ac_preproc_ok=:
5119 break
5120 fi
5121 rm -f conftest.err conftest.i conftest.$ac_ext
5122
5123 done
5124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125 rm -f conftest.i conftest.err conftest.$ac_ext
5126 if $ac_preproc_ok; then :
5127 break
5128 fi
5129
5130 done
5131 ac_cv_prog_CPP=$CPP
5132
5133 fi
5134 CPP=$ac_cv_prog_CPP
5135 else
5136 ac_cv_prog_CPP=$CPP
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5139 $as_echo "$CPP" >&6; }
5140 ac_preproc_ok=false
5141 for ac_c_preproc_warn_flag in '' yes
5142 do
5143 # Use a header file that comes with gcc, so configuring glibc
5144 # with a fresh cross-compiler works.
5145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5146 # <limits.h> exists even on freestanding compilers.
5147 # On the NeXT, cc -E runs the code through the compiler's parser,
5148 # not just through cpp. "Syntax error" is here to catch this case.
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 #ifdef __STDC__
5152 # include <limits.h>
5153 #else
5154 # include <assert.h>
5155 #endif
5156 Syntax error
5157 _ACEOF
5158 if ac_fn_c_try_cpp "$LINENO"; then :
5159
5160 else
5161 # Broken: fails on valid input.
5162 continue
5163 fi
5164 rm -f conftest.err conftest.i conftest.$ac_ext
5165
5166 # OK, works on sane cases. Now check whether nonexistent headers
5167 # can be detected and how.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #include <ac_nonexistent.h>
5171 _ACEOF
5172 if ac_fn_c_try_cpp "$LINENO"; then :
5173 # Broken: success on invalid input.
5174 continue
5175 else
5176 # Passes both tests.
5177 ac_preproc_ok=:
5178 break
5179 fi
5180 rm -f conftest.err conftest.i conftest.$ac_ext
5181
5182 done
5183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184 rm -f conftest.i conftest.err conftest.$ac_ext
5185 if $ac_preproc_ok; then :
5186
5187 else
5188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5190 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5191 See \`config.log' for more details" "$LINENO" 5; }
5192 fi
5193
5194 ac_ext=c
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5203 if ${ac_cv_path_GREP+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -z "$GREP"; then
5207 ac_path_GREP_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in grep ggrep; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5217 as_fn_executable_p "$ac_path_GREP" || continue
5218 # Check for GNU ac_path_GREP and select it if it is found.
5219 # Check for GNU $ac_path_GREP
5220 case `"$ac_path_GREP" --version 2>&1` in
5221 *GNU*)
5222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5223 *)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo 'GREP' >> "conftest.nl"
5232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_GREP="$ac_path_GREP"
5238 ac_path_GREP_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244 esac
5245
5246 $ac_path_GREP_found && break 3
5247 done
5248 done
5249 done
5250 IFS=$as_save_IFS
5251 if test -z "$ac_cv_path_GREP"; then
5252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 fi
5254 else
5255 ac_cv_path_GREP=$GREP
5256 fi
5257
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5260 $as_echo "$ac_cv_path_GREP" >&6; }
5261 GREP="$ac_cv_path_GREP"
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5265 $as_echo_n "checking for egrep... " >&6; }
5266 if ${ac_cv_path_EGREP+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5270 then ac_cv_path_EGREP="$GREP -E"
5271 else
5272 if test -z "$EGREP"; then
5273 ac_path_EGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in egrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_EGREP" || continue
5284 # Check for GNU ac_path_EGREP and select it if it is found.
5285 # Check for GNU $ac_path_EGREP
5286 case `"$ac_path_EGREP" --version 2>&1` in
5287 *GNU*)
5288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5289 *)
5290 ac_count=0
5291 $as_echo_n 0123456789 >"conftest.in"
5292 while :
5293 do
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'EGREP' >> "conftest.nl"
5298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_EGREP="$ac_path_EGREP"
5304 ac_path_EGREP_max=$ac_count
5305 fi
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5308 done
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 esac
5311
5312 $ac_path_EGREP_found && break 3
5313 done
5314 done
5315 done
5316 IFS=$as_save_IFS
5317 if test -z "$ac_cv_path_EGREP"; then
5318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 fi
5320 else
5321 ac_cv_path_EGREP=$EGREP
5322 fi
5323
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5327 $as_echo "$ac_cv_path_EGREP" >&6; }
5328 EGREP="$ac_cv_path_EGREP"
5329
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5332 $as_echo_n "checking for ANSI C header files... " >&6; }
5333 if ${ac_cv_header_stdc+:} false; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 #include <stdlib.h>
5339 #include <stdarg.h>
5340 #include <string.h>
5341 #include <float.h>
5342
5343 int
5344 main ()
5345 {
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_cv_header_stdc=yes
5353 else
5354 ac_cv_header_stdc=no
5355 fi
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357
5358 if test $ac_cv_header_stdc = yes; then
5359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <string.h>
5363
5364 _ACEOF
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "memchr" >/dev/null 2>&1; then :
5367
5368 else
5369 ac_cv_header_stdc=no
5370 fi
5371 rm -f conftest*
5372
5373 fi
5374
5375 if test $ac_cv_header_stdc = yes; then
5376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5379 #include <stdlib.h>
5380
5381 _ACEOF
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "free" >/dev/null 2>&1; then :
5384
5385 else
5386 ac_cv_header_stdc=no
5387 fi
5388 rm -f conftest*
5389
5390 fi
5391
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then :
5395 :
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #include <ctype.h>
5400 #include <stdlib.h>
5401 #if ((' ' & 0x0FF) == 0x020)
5402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5404 #else
5405 # define ISLOWER(c) \
5406 (('a' <= (c) && (c) <= 'i') \
5407 || ('j' <= (c) && (c) <= 'r') \
5408 || ('s' <= (c) && (c) <= 'z'))
5409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5410 #endif
5411
5412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5413 int
5414 main ()
5415 {
5416 int i;
5417 for (i = 0; i < 256; i++)
5418 if (XOR (islower (i), ISLOWER (i))
5419 || toupper (i) != TOUPPER (i))
5420 return 2;
5421 return 0;
5422 }
5423 _ACEOF
5424 if ac_fn_c_try_run "$LINENO"; then :
5425
5426 else
5427 ac_cv_header_stdc=no
5428 fi
5429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5430 conftest.$ac_objext conftest.beam conftest.$ac_ext
5431 fi
5432
5433 fi
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5436 $as_echo "$ac_cv_header_stdc" >&6; }
5437 if test $ac_cv_header_stdc = yes; then
5438
5439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5440
5441 fi
5442
5443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5445 inttypes.h stdint.h unistd.h
5446 do :
5447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5449 "
5450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5451 cat >>confdefs.h <<_ACEOF
5452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5453 _ACEOF
5454
5455 fi
5456
5457 done
5458
5459
5460
5461 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5462 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5463 MINIX=yes
5464 else
5465 MINIX=
5466 fi
5467
5468
5469 if test "$MINIX" = yes; then
5470
5471 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5472
5473
5474 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5475
5476
5477 $as_echo "#define _MINIX 1" >>confdefs.h
5478
5479 fi
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5483 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5484 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5489
5490 # define __EXTENSIONS__ 1
5491 $ac_includes_default
5492 int
5493 main ()
5494 {
5495
5496 ;
5497 return 0;
5498 }
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_cv_safe_to_define___extensions__=yes
5502 else
5503 ac_cv_safe_to_define___extensions__=no
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5508 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5509 test $ac_cv_safe_to_define___extensions__ = yes &&
5510 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5511
5512 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5513
5514 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5515
5516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5517
5518 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5519
5520
5521
5522 # The tests for host and target for $enable_largefile require
5523 # canonical names.
5524
5525
5526
5527 # As the $enable_largefile decision depends on --enable-plugins we must set it
5528 # even in directories otherwise not depending on the $plugins option.
5529
5530
5531 maybe_plugins=no
5532 for ac_header in dlfcn.h
5533 do :
5534 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5535 "
5536 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5537 cat >>confdefs.h <<_ACEOF
5538 #define HAVE_DLFCN_H 1
5539 _ACEOF
5540 maybe_plugins=yes
5541 fi
5542
5543 done
5544
5545 for ac_header in windows.h
5546 do :
5547 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5548 "
5549 if test "x$ac_cv_header_windows_h" = xyes; then :
5550 cat >>confdefs.h <<_ACEOF
5551 #define HAVE_WINDOWS_H 1
5552 _ACEOF
5553 maybe_plugins=yes
5554 fi
5555
5556 done
5557
5558
5559 # Check whether --enable-plugins was given.
5560 if test "${enable_plugins+set}" = set; then :
5561 enableval=$enable_plugins; case "${enableval}" in
5562 no) plugins=no ;;
5563 *) plugins=yes
5564 if test "$maybe_plugins" != "yes" ; then
5565 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5566 fi ;;
5567 esac
5568 else
5569 plugins=$maybe_plugins
5570
5571 fi
5572
5573 if test "$plugins" = "yes"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5575 $as_echo_n "checking for library containing dlsym... " >&6; }
5576 if ${ac_cv_search_dlsym+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 ac_func_search_save_LIBS=$LIBS
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582
5583 /* Override any GCC internal prototype to avoid an error.
5584 Use char because int might match the return type of a GCC
5585 builtin and then its argument prototype would still apply. */
5586 #ifdef __cplusplus
5587 extern "C"
5588 #endif
5589 char dlsym ();
5590 int
5591 main ()
5592 {
5593 return dlsym ();
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 for ac_lib in '' dl; do
5599 if test -z "$ac_lib"; then
5600 ac_res="none required"
5601 else
5602 ac_res=-l$ac_lib
5603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5604 fi
5605 if ac_fn_c_try_link "$LINENO"; then :
5606 ac_cv_search_dlsym=$ac_res
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext
5610 if ${ac_cv_search_dlsym+:} false; then :
5611 break
5612 fi
5613 done
5614 if ${ac_cv_search_dlsym+:} false; then :
5615
5616 else
5617 ac_cv_search_dlsym=no
5618 fi
5619 rm conftest.$ac_ext
5620 LIBS=$ac_func_search_save_LIBS
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5623 $as_echo "$ac_cv_search_dlsym" >&6; }
5624 ac_res=$ac_cv_search_dlsym
5625 if test "$ac_res" != no; then :
5626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5627
5628 fi
5629
5630 fi
5631
5632
5633 case "${host}" in
5634 sparc-*-solaris*|i?86-*-solaris*)
5635 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5636 # were mutually exclusive until Solaris 11.3. Without procfs support,
5637 # the bfd/ elf module cannot provide certain routines such as
5638 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5639 # explicitly requested large-file support through the
5640 # --enable-largefile switch, disable large-file support in favor of
5641 # procfs support.
5642 #
5643 # Check if <sys/procfs.h> is incompatible with large-file support.
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #define _FILE_OFFSET_BITS 64
5647 #define _STRUCTURED_PROC 1
5648 #include <sys/procfs.h>
5649 int
5650 main ()
5651 {
5652
5653 ;
5654 return 0;
5655 }
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 acx_cv_procfs_lfs=yes
5659 else
5660 acx_cv_procfs_lfs=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 #
5664 # Forcefully disable large-file support only if necessary, gdb is in
5665 # tree and enabled.
5666 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5667 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
5668 : ${enable_largefile="no"}
5669 if test "$plugins" = yes; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5671 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5672 $as_echo "$as_me: WARNING:
5673 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5674 plugins=no
5675 fi
5676 fi
5677 #
5678 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5679 # benefit of g++ 9+ which predefines it on Solaris.
5680 if test "$enable_largefile" = no; then
5681 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
5682
5683 fi
5684 ;;
5685 esac
5686
5687 # Check whether --enable-largefile was given.
5688 if test "${enable_largefile+set}" = set; then :
5689 enableval=$enable_largefile;
5690 fi
5691
5692 if test "$enable_largefile" != no; then
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5695 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5696 if ${ac_cv_sys_largefile_CC+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 ac_cv_sys_largefile_CC=no
5700 if test "$GCC" != yes; then
5701 ac_save_CC=$CC
5702 while :; do
5703 # IRIX 6.2 and later do not support large files by default,
5704 # so use the C compiler's -n32 option if that helps.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5715 ? 1 : -1];
5716 int
5717 main ()
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 if ac_fn_c_try_compile "$LINENO"; then :
5725 break
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext
5728 CC="$CC -n32"
5729 if ac_fn_c_try_compile "$LINENO"; then :
5730 ac_cv_sys_largefile_CC=' -n32'; break
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext
5733 break
5734 done
5735 CC=$ac_save_CC
5736 rm -f conftest.$ac_ext
5737 fi
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5740 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5741 if test "$ac_cv_sys_largefile_CC" != no; then
5742 CC=$CC$ac_cv_sys_largefile_CC
5743 fi
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5746 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5747 if ${ac_cv_sys_file_offset_bits+:} false; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 while :; do
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5761 ? 1 : -1];
5762 int
5763 main ()
5764 {
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 ac_cv_sys_file_offset_bits=no; break
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #define _FILE_OFFSET_BITS 64
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5785 ? 1 : -1];
5786 int
5787 main ()
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 if ac_fn_c_try_compile "$LINENO"; then :
5795 ac_cv_sys_file_offset_bits=64; break
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_cv_sys_file_offset_bits=unknown
5799 break
5800 done
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5804 case $ac_cv_sys_file_offset_bits in #(
5805 no | unknown) ;;
5806 *)
5807 cat >>confdefs.h <<_ACEOF
5808 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5809 _ACEOF
5810 ;;
5811 esac
5812 rm -rf conftest*
5813 if test $ac_cv_sys_file_offset_bits = unknown; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5815 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5816 if ${ac_cv_sys_large_files+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 while :; do
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #include <sys/types.h>
5823 /* Check that off_t can represent 2**63 - 1 correctly.
5824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5825 since some C++ compilers masquerading as C compilers
5826 incorrectly reject 9223372036854775807. */
5827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5829 && LARGE_OFF_T % 2147483647 == 1)
5830 ? 1 : -1];
5831 int
5832 main ()
5833 {
5834
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840 ac_cv_sys_large_files=no; break
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #define _LARGE_FILES 1
5846 #include <sys/types.h>
5847 /* Check that off_t can represent 2**63 - 1 correctly.
5848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5849 since some C++ compilers masquerading as C compilers
5850 incorrectly reject 9223372036854775807. */
5851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5853 && LARGE_OFF_T % 2147483647 == 1)
5854 ? 1 : -1];
5855 int
5856 main ()
5857 {
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 if ac_fn_c_try_compile "$LINENO"; then :
5864 ac_cv_sys_large_files=1; break
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 ac_cv_sys_large_files=unknown
5868 break
5869 done
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5872 $as_echo "$ac_cv_sys_large_files" >&6; }
5873 case $ac_cv_sys_large_files in #(
5874 no | unknown) ;;
5875 *)
5876 cat >>confdefs.h <<_ACEOF
5877 #define _LARGE_FILES $ac_cv_sys_large_files
5878 _ACEOF
5879 ;;
5880 esac
5881 rm -rf conftest*
5882 fi
5883
5884
5885 fi
5886
5887
5888 ac_ext=c
5889 ac_cpp='$CPP $CPPFLAGS'
5890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_CC+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$CC"; then
5902 ac_cv_prog_CC="$CC" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 CC=$ac_cv_prog_CC
5922 if test -n "$CC"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5924 $as_echo "$CC" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 fi
5932 if test -z "$ac_cv_prog_CC"; then
5933 ac_ct_CC=$CC
5934 # Extract the first word of "gcc", so it can be a program name with args.
5935 set dummy gcc; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_CC"; then
5942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_ac_ct_CC="gcc"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955 done
5956 done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5962 if test -n "$ac_ct_CC"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5964 $as_echo "$ac_ct_CC" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970 if test "x$ac_ct_CC" = x; then
5971 CC=""
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979 CC=$ac_ct_CC
5980 fi
5981 else
5982 CC="$ac_cv_prog_CC"
5983 fi
5984
5985 if test -z "$CC"; then
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}cc; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_CC+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$CC"; then
5995 ac_cv_prog_CC="$CC" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_CC="${ac_tool_prefix}cc"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 CC=$ac_cv_prog_CC
6015 if test -n "$CC"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6017 $as_echo "$CC" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023
6024 fi
6025 fi
6026 if test -z "$CC"; then
6027 # Extract the first word of "cc", so it can be a program name with args.
6028 set dummy cc; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_CC+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$CC"; then
6035 ac_cv_prog_CC="$CC" # Let the user override the test.
6036 else
6037 ac_prog_rejected=no
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6046 ac_prog_rejected=yes
6047 continue
6048 fi
6049 ac_cv_prog_CC="cc"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 if test $ac_prog_rejected = yes; then
6058 # We found a bogon in the path, so make sure we never use it.
6059 set dummy $ac_cv_prog_CC
6060 shift
6061 if test $# != 0; then
6062 # We chose a different compiler from the bogus one.
6063 # However, it has the same basename, so the bogon will be chosen
6064 # first if we set CC to just the basename; use the full file name.
6065 shift
6066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6067 fi
6068 fi
6069 fi
6070 fi
6071 CC=$ac_cv_prog_CC
6072 if test -n "$CC"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6074 $as_echo "$CC" >&6; }
6075 else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081 fi
6082 if test -z "$CC"; then
6083 if test -n "$ac_tool_prefix"; then
6084 for ac_prog in cl.exe
6085 do
6086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if ${ac_cv_prog_CC+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 if test -n "$CC"; then
6094 ac_cv_prog_CC="$CC" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 CC=$ac_cv_prog_CC
6114 if test -n "$CC"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6116 $as_echo "$CC" >&6; }
6117 else
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122
6123 test -n "$CC" && break
6124 done
6125 fi
6126 if test -z "$CC"; then
6127 ac_ct_CC=$CC
6128 for ac_prog in cl.exe
6129 do
6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
6131 set dummy $ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$ac_ct_CC"; then
6138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_ac_ct_CC="$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6158 if test -n "$ac_ct_CC"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6160 $as_echo "$ac_ct_CC" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 test -n "$ac_ct_CC" && break
6168 done
6169
6170 if test "x$ac_ct_CC" = x; then
6171 CC=""
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174 yes:)
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177 ac_tool_warned=yes ;;
6178 esac
6179 CC=$ac_ct_CC
6180 fi
6181 fi
6182
6183 fi
6184
6185
6186 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6188 as_fn_error $? "no acceptable C compiler found in \$PATH
6189 See \`config.log' for more details" "$LINENO" 5; }
6190
6191 # Provide some information about the compiler.
6192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6193 set X $ac_compile
6194 ac_compiler=$2
6195 for ac_option in --version -v -V -qversion; do
6196 { { ac_try="$ac_compiler $ac_option >&5"
6197 case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200 esac
6201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6202 $as_echo "$ac_try_echo"; } >&5
6203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6204 ac_status=$?
6205 if test -s conftest.err; then
6206 sed '10a\
6207 ... rest of stderr output deleted ...
6208 10q' conftest.err >conftest.er1
6209 cat conftest.er1 >&5
6210 fi
6211 rm -f conftest.er1 conftest.err
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }
6214 done
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6217 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6218 if ${ac_cv_c_compiler_gnu+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223
6224 int
6225 main ()
6226 {
6227 #ifndef __GNUC__
6228 choke me
6229 #endif
6230
6231 ;
6232 return 0;
6233 }
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 ac_compiler_gnu=yes
6237 else
6238 ac_compiler_gnu=no
6239 fi
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6242
6243 fi
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6245 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6246 if test $ac_compiler_gnu = yes; then
6247 GCC=yes
6248 else
6249 GCC=
6250 fi
6251 ac_test_CFLAGS=${CFLAGS+set}
6252 ac_save_CFLAGS=$CFLAGS
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6254 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6255 if ${ac_cv_prog_cc_g+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 ac_save_c_werror_flag=$ac_c_werror_flag
6259 ac_c_werror_flag=yes
6260 ac_cv_prog_cc_g=no
6261 CFLAGS="-g"
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264
6265 int
6266 main ()
6267 {
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"; then :
6274 ac_cv_prog_cc_g=yes
6275 else
6276 CFLAGS=""
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279
6280 int
6281 main ()
6282 {
6283
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289
6290 else
6291 ac_c_werror_flag=$ac_save_c_werror_flag
6292 CFLAGS="-g"
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295
6296 int
6297 main ()
6298 {
6299
6300 ;
6301 return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305 ac_cv_prog_cc_g=yes
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 fi
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_c_werror_flag=$ac_save_c_werror_flag
6313 fi
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6315 $as_echo "$ac_cv_prog_cc_g" >&6; }
6316 if test "$ac_test_CFLAGS" = set; then
6317 CFLAGS=$ac_save_CFLAGS
6318 elif test $ac_cv_prog_cc_g = yes; then
6319 if test "$GCC" = yes; then
6320 CFLAGS="-g -O2"
6321 else
6322 CFLAGS="-g"
6323 fi
6324 else
6325 if test "$GCC" = yes; then
6326 CFLAGS="-O2"
6327 else
6328 CFLAGS=
6329 fi
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6332 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6333 if ${ac_cv_prog_cc_c89+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 ac_cv_prog_cc_c89=no
6337 ac_save_CC=$CC
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 #include <stdarg.h>
6341 #include <stdio.h>
6342 struct stat;
6343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6344 struct buf { int x; };
6345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6346 static char *e (p, i)
6347 char **p;
6348 int i;
6349 {
6350 return p[i];
6351 }
6352 static char *f (char * (*g) (char **, int), char **p, ...)
6353 {
6354 char *s;
6355 va_list v;
6356 va_start (v,p);
6357 s = g (p, va_arg (v,int));
6358 va_end (v);
6359 return s;
6360 }
6361
6362 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6363 function prototypes and stuff, but not '\xHH' hex character constants.
6364 These don't provoke an error unfortunately, instead are silently treated
6365 as 'x'. The following induces an error, until -std is added to get
6366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6367 array size at least. It's necessary to write '\x00'==0 to get something
6368 that's true only with -std. */
6369 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6370
6371 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6372 inside strings and character constants. */
6373 #define FOO(x) 'x'
6374 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6375
6376 int test (int i, double x);
6377 struct s1 {int (*f) (int a);};
6378 struct s2 {int (*f) (double a);};
6379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6380 int argc;
6381 char **argv;
6382 int
6383 main ()
6384 {
6385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6392 do
6393 CC="$ac_save_CC $ac_arg"
6394 if ac_fn_c_try_compile "$LINENO"; then :
6395 ac_cv_prog_cc_c89=$ac_arg
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext
6398 test "x$ac_cv_prog_cc_c89" != "xno" && break
6399 done
6400 rm -f conftest.$ac_ext
6401 CC=$ac_save_CC
6402
6403 fi
6404 # AC_CACHE_VAL
6405 case "x$ac_cv_prog_cc_c89" in
6406 x)
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6408 $as_echo "none needed" >&6; } ;;
6409 xno)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6411 $as_echo "unsupported" >&6; } ;;
6412 *)
6413 CC="$CC $ac_cv_prog_cc_c89"
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6415 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6416 esac
6417 if test "x$ac_cv_prog_cc_c89" != xno; then :
6418
6419 fi
6420
6421 ac_ext=c
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426
6427 ac_ext=c
6428 ac_cpp='$CPP $CPPFLAGS'
6429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6433 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6434 if ${am_cv_prog_cc_c_o+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439
6440 int
6441 main ()
6442 {
6443
6444 ;
6445 return 0;
6446 }
6447 _ACEOF
6448 # Make sure it works both with $CC and with simple cc.
6449 # Following AC_PROG_CC_C_O, we do the test twice because some
6450 # compilers refuse to overwrite an existing .o file with -o,
6451 # though they will create one.
6452 am_cv_prog_cc_c_o=yes
6453 for am_i in 1 2; do
6454 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6455 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } \
6459 && test -f conftest2.$ac_objext; then
6460 : OK
6461 else
6462 am_cv_prog_cc_c_o=no
6463 break
6464 fi
6465 done
6466 rm -f core conftest*
6467 unset am_i
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6470 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6471 if test "$am_cv_prog_cc_c_o" != yes; then
6472 # Losing compiler, so override with the script.
6473 # FIXME: It is wrong to rewrite CC.
6474 # But if we don't then we get into trouble of one sort or another.
6475 # A longer-term fix would be to have automake use am__CC in this case,
6476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6477 CC="$am_aux_dir/compile $CC"
6478 fi
6479 ac_ext=c
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484
6485
6486 depcc="$CC" am_compiler_list=
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6489 $as_echo_n "checking dependency style of $depcc... " >&6; }
6490 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6494 # We make a subdir and do the tests there. Otherwise we can end up
6495 # making bogus files that we don't know about and never remove. For
6496 # instance it was reported that on HP-UX the gcc test will end up
6497 # making a dummy file named 'D' -- because '-MD' means "put the output
6498 # in D".
6499 rm -rf conftest.dir
6500 mkdir conftest.dir
6501 # Copy depcomp to subdir because otherwise we won't find it if we're
6502 # using a relative directory.
6503 cp "$am_depcomp" conftest.dir
6504 cd conftest.dir
6505 # We will build objects and dependencies in a subdirectory because
6506 # it helps to detect inapplicable dependency modes. For instance
6507 # both Tru64's cc and ICC support -MD to output dependencies as a
6508 # side effect of compilation, but ICC will put the dependencies in
6509 # the current directory while Tru64 will put them in the object
6510 # directory.
6511 mkdir sub
6512
6513 am_cv_CC_dependencies_compiler_type=none
6514 if test "$am_compiler_list" = ""; then
6515 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6516 fi
6517 am__universal=false
6518 case " $depcc " in #(
6519 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6520 esac
6521
6522 for depmode in $am_compiler_list; do
6523 # Setup a source with many dependencies, because some compilers
6524 # like to wrap large dependency lists on column 80 (with \), and
6525 # we should not choose a depcomp mode which is confused by this.
6526 #
6527 # We need to recreate these files for each test, as the compiler may
6528 # overwrite some of them when testing with obscure command lines.
6529 # This happens at least with the AIX C compiler.
6530 : > sub/conftest.c
6531 for i in 1 2 3 4 5 6; do
6532 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6533 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6534 # Solaris 10 /bin/sh.
6535 echo '/* dummy */' > sub/conftst$i.h
6536 done
6537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6538
6539 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6540 # mode. It turns out that the SunPro C++ compiler does not properly
6541 # handle '-M -o', and we need to detect this. Also, some Intel
6542 # versions had trouble with output in subdirs.
6543 am__obj=sub/conftest.${OBJEXT-o}
6544 am__minus_obj="-o $am__obj"
6545 case $depmode in
6546 gcc)
6547 # This depmode causes a compiler race in universal mode.
6548 test "$am__universal" = false || continue
6549 ;;
6550 nosideeffect)
6551 # After this tag, mechanisms are not by side-effect, so they'll
6552 # only be used when explicitly requested.
6553 if test "x$enable_dependency_tracking" = xyes; then
6554 continue
6555 else
6556 break
6557 fi
6558 ;;
6559 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6560 # This compiler won't grok '-c -o', but also, the minuso test has
6561 # not run yet. These depmodes are late enough in the game, and
6562 # so weak that their functioning should not be impacted.
6563 am__obj=conftest.${OBJEXT-o}
6564 am__minus_obj=
6565 ;;
6566 none) break ;;
6567 esac
6568 if depmode=$depmode \
6569 source=sub/conftest.c object=$am__obj \
6570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6571 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6572 >/dev/null 2>conftest.err &&
6573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6575 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6577 # icc doesn't choke on unknown options, it will just issue warnings
6578 # or remarks (even with -Werror). So we grep stderr for any message
6579 # that says an option was ignored or not supported.
6580 # When given -MP, icc 7.0 and 7.1 complain thusly:
6581 # icc: Command line warning: ignoring option '-M'; no argument required
6582 # The diagnosis changed in icc 8.0:
6583 # icc: Command line remark: option '-MP' not supported
6584 if (grep 'ignoring option' conftest.err ||
6585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6586 am_cv_CC_dependencies_compiler_type=$depmode
6587 break
6588 fi
6589 fi
6590 done
6591
6592 cd ..
6593 rm -rf conftest.dir
6594 else
6595 am_cv_CC_dependencies_compiler_type=none
6596 fi
6597
6598 fi
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6600 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6601 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6602
6603 if
6604 test "x$enable_dependency_tracking" != xno \
6605 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6606 am__fastdepCC_TRUE=
6607 am__fastdepCC_FALSE='#'
6608 else
6609 am__fastdepCC_TRUE='#'
6610 am__fastdepCC_FALSE=
6611 fi
6612
6613
6614 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6615
6616
6617 # We require a C++11 compiler. Check if one is available, and if
6618 # necessary, set CXX_DIALECT to some -std=xxx switch.
6619
6620 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6621 ac_ext=cpp
6622 ac_cpp='$CXXCPP $CPPFLAGS'
6623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6626 CXX_DIALECT=""
6627 ac_success=no
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6629 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6630 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6631 $as_echo_n "(cached) " >&6
6632 else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635
6636
6637 // If the compiler admits that it is not ready for C++11, why torture it?
6638 // Hopefully, this will speed up the test.
6639
6640 #ifndef __cplusplus
6641
6642 #error "This is not a C++ compiler"
6643
6644 #elif __cplusplus < 201103L
6645
6646 #error "This is not a C++11 compiler"
6647
6648 #else
6649
6650 namespace cxx11
6651 {
6652
6653 namespace test_static_assert
6654 {
6655
6656 template <typename T>
6657 struct check
6658 {
6659 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6660 };
6661
6662 }
6663
6664 namespace test_final_override
6665 {
6666
6667 struct Base
6668 {
6669 virtual void f() {}
6670 };
6671
6672 struct Derived : public Base
6673 {
6674 virtual void f() override {}
6675 };
6676
6677 }
6678
6679 namespace test_double_right_angle_brackets
6680 {
6681
6682 template < typename T >
6683 struct check {};
6684
6685 typedef check<void> single_type;
6686 typedef check<check<void>> double_type;
6687 typedef check<check<check<void>>> triple_type;
6688 typedef check<check<check<check<void>>>> quadruple_type;
6689
6690 }
6691
6692 namespace test_decltype
6693 {
6694
6695 int
6696 f()
6697 {
6698 int a = 1;
6699 decltype(a) b = 2;
6700 return a + b;
6701 }
6702
6703 }
6704
6705 namespace test_type_deduction
6706 {
6707
6708 template < typename T1, typename T2 >
6709 struct is_same
6710 {
6711 static const bool value = false;
6712 };
6713
6714 template < typename T >
6715 struct is_same<T, T>
6716 {
6717 static const bool value = true;
6718 };
6719
6720 template < typename T1, typename T2 >
6721 auto
6722 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6723 {
6724 return a1 + a2;
6725 }
6726
6727 int
6728 test(const int c, volatile int v)
6729 {
6730 static_assert(is_same<int, decltype(0)>::value == true, "");
6731 static_assert(is_same<int, decltype(c)>::value == false, "");
6732 static_assert(is_same<int, decltype(v)>::value == false, "");
6733 auto ac = c;
6734 auto av = v;
6735 auto sumi = ac + av + 'x';
6736 auto sumf = ac + av + 1.0;
6737 static_assert(is_same<int, decltype(ac)>::value == true, "");
6738 static_assert(is_same<int, decltype(av)>::value == true, "");
6739 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6740 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6741 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6742 return (sumf > 0.0) ? sumi : add(c, v);
6743 }
6744
6745 }
6746
6747 namespace test_noexcept
6748 {
6749
6750 int f() { return 0; }
6751 int g() noexcept { return 0; }
6752
6753 static_assert(noexcept(f()) == false, "");
6754 static_assert(noexcept(g()) == true, "");
6755
6756 }
6757
6758 namespace test_constexpr
6759 {
6760
6761 template < typename CharT >
6762 unsigned long constexpr
6763 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6764 {
6765 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6766 }
6767
6768 template < typename CharT >
6769 unsigned long constexpr
6770 strlen_c(const CharT *const s) noexcept
6771 {
6772 return strlen_c_r(s, 0UL);
6773 }
6774
6775 static_assert(strlen_c("") == 0UL, "");
6776 static_assert(strlen_c("1") == 1UL, "");
6777 static_assert(strlen_c("example") == 7UL, "");
6778 static_assert(strlen_c("another\0example") == 7UL, "");
6779
6780 }
6781
6782 namespace test_rvalue_references
6783 {
6784
6785 template < int N >
6786 struct answer
6787 {
6788 static constexpr int value = N;
6789 };
6790
6791 answer<1> f(int&) { return answer<1>(); }
6792 answer<2> f(const int&) { return answer<2>(); }
6793 answer<3> f(int&&) { return answer<3>(); }
6794
6795 void
6796 test()
6797 {
6798 int i = 0;
6799 const int c = 0;
6800 static_assert(decltype(f(i))::value == 1, "");
6801 static_assert(decltype(f(c))::value == 2, "");
6802 static_assert(decltype(f(0))::value == 3, "");
6803 }
6804
6805 }
6806
6807 namespace test_uniform_initialization
6808 {
6809
6810 struct test
6811 {
6812 static const int zero {};
6813 static const int one {1};
6814 };
6815
6816 static_assert(test::zero == 0, "");
6817 static_assert(test::one == 1, "");
6818
6819 }
6820
6821 namespace test_lambdas
6822 {
6823
6824 void
6825 test1()
6826 {
6827 auto lambda1 = [](){};
6828 auto lambda2 = lambda1;
6829 lambda1();
6830 lambda2();
6831 }
6832
6833 int
6834 test2()
6835 {
6836 auto a = [](int i, int j){ return i + j; }(1, 2);
6837 auto b = []() -> int { return '0'; }();
6838 auto c = [=](){ return a + b; }();
6839 auto d = [&](){ return c; }();
6840 auto e = [a, &b](int x) mutable {
6841 const auto identity = [](int y){ return y; };
6842 for (auto i = 0; i < a; ++i)
6843 a += b--;
6844 return x + identity(a + b);
6845 }(0);
6846 return a + b + c + d + e;
6847 }
6848
6849 int
6850 test3()
6851 {
6852 const auto nullary = [](){ return 0; };
6853 const auto unary = [](int x){ return x; };
6854 using nullary_t = decltype(nullary);
6855 using unary_t = decltype(unary);
6856 const auto higher1st = [](nullary_t f){ return f(); };
6857 const auto higher2nd = [unary](nullary_t f1){
6858 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6859 };
6860 return higher1st(nullary) + higher2nd(nullary)(unary);
6861 }
6862
6863 }
6864
6865 namespace test_variadic_templates
6866 {
6867
6868 template <int...>
6869 struct sum;
6870
6871 template <int N0, int... N1toN>
6872 struct sum<N0, N1toN...>
6873 {
6874 static constexpr auto value = N0 + sum<N1toN...>::value;
6875 };
6876
6877 template <>
6878 struct sum<>
6879 {
6880 static constexpr auto value = 0;
6881 };
6882
6883 static_assert(sum<>::value == 0, "");
6884 static_assert(sum<1>::value == 1, "");
6885 static_assert(sum<23>::value == 23, "");
6886 static_assert(sum<1, 2>::value == 3, "");
6887 static_assert(sum<5, 5, 11>::value == 21, "");
6888 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6889
6890 }
6891
6892 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6893 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6894 // because of this.
6895 namespace test_template_alias_sfinae
6896 {
6897
6898 struct foo {};
6899
6900 template<typename T>
6901 using member = typename T::member_type;
6902
6903 template<typename T>
6904 void func(...) {}
6905
6906 template<typename T>
6907 void func(member<T>*) {}
6908
6909 void test();
6910
6911 void test() { func<foo>(0); }
6912
6913 }
6914
6915 } // namespace cxx11
6916
6917 #endif // __cplusplus >= 201103L
6918
6919
6920
6921 _ACEOF
6922 if ac_fn_cxx_try_compile "$LINENO"; then :
6923 ax_cv_cxx_compile_cxx11=yes
6924 else
6925 ax_cv_cxx_compile_cxx11=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6930 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6931 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6932 ac_success=yes
6933 fi
6934
6935 if test x$ac_success = xno; then
6936 for alternative in ${ax_cxx_compile_alternatives}; do
6937 switch="-std=gnu++${alternative}"
6938 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6940 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6941 if eval \${$cachevar+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 ac_save_CXX="$CXX"
6945 CXX="$CXX $switch"
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948
6949
6950 // If the compiler admits that it is not ready for C++11, why torture it?
6951 // Hopefully, this will speed up the test.
6952
6953 #ifndef __cplusplus
6954
6955 #error "This is not a C++ compiler"
6956
6957 #elif __cplusplus < 201103L
6958
6959 #error "This is not a C++11 compiler"
6960
6961 #else
6962
6963 namespace cxx11
6964 {
6965
6966 namespace test_static_assert
6967 {
6968
6969 template <typename T>
6970 struct check
6971 {
6972 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6973 };
6974
6975 }
6976
6977 namespace test_final_override
6978 {
6979
6980 struct Base
6981 {
6982 virtual void f() {}
6983 };
6984
6985 struct Derived : public Base
6986 {
6987 virtual void f() override {}
6988 };
6989
6990 }
6991
6992 namespace test_double_right_angle_brackets
6993 {
6994
6995 template < typename T >
6996 struct check {};
6997
6998 typedef check<void> single_type;
6999 typedef check<check<void>> double_type;
7000 typedef check<check<check<void>>> triple_type;
7001 typedef check<check<check<check<void>>>> quadruple_type;
7002
7003 }
7004
7005 namespace test_decltype
7006 {
7007
7008 int
7009 f()
7010 {
7011 int a = 1;
7012 decltype(a) b = 2;
7013 return a + b;
7014 }
7015
7016 }
7017
7018 namespace test_type_deduction
7019 {
7020
7021 template < typename T1, typename T2 >
7022 struct is_same
7023 {
7024 static const bool value = false;
7025 };
7026
7027 template < typename T >
7028 struct is_same<T, T>
7029 {
7030 static const bool value = true;
7031 };
7032
7033 template < typename T1, typename T2 >
7034 auto
7035 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7036 {
7037 return a1 + a2;
7038 }
7039
7040 int
7041 test(const int c, volatile int v)
7042 {
7043 static_assert(is_same<int, decltype(0)>::value == true, "");
7044 static_assert(is_same<int, decltype(c)>::value == false, "");
7045 static_assert(is_same<int, decltype(v)>::value == false, "");
7046 auto ac = c;
7047 auto av = v;
7048 auto sumi = ac + av + 'x';
7049 auto sumf = ac + av + 1.0;
7050 static_assert(is_same<int, decltype(ac)>::value == true, "");
7051 static_assert(is_same<int, decltype(av)>::value == true, "");
7052 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7053 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7054 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7055 return (sumf > 0.0) ? sumi : add(c, v);
7056 }
7057
7058 }
7059
7060 namespace test_noexcept
7061 {
7062
7063 int f() { return 0; }
7064 int g() noexcept { return 0; }
7065
7066 static_assert(noexcept(f()) == false, "");
7067 static_assert(noexcept(g()) == true, "");
7068
7069 }
7070
7071 namespace test_constexpr
7072 {
7073
7074 template < typename CharT >
7075 unsigned long constexpr
7076 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7077 {
7078 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7079 }
7080
7081 template < typename CharT >
7082 unsigned long constexpr
7083 strlen_c(const CharT *const s) noexcept
7084 {
7085 return strlen_c_r(s, 0UL);
7086 }
7087
7088 static_assert(strlen_c("") == 0UL, "");
7089 static_assert(strlen_c("1") == 1UL, "");
7090 static_assert(strlen_c("example") == 7UL, "");
7091 static_assert(strlen_c("another\0example") == 7UL, "");
7092
7093 }
7094
7095 namespace test_rvalue_references
7096 {
7097
7098 template < int N >
7099 struct answer
7100 {
7101 static constexpr int value = N;
7102 };
7103
7104 answer<1> f(int&) { return answer<1>(); }
7105 answer<2> f(const int&) { return answer<2>(); }
7106 answer<3> f(int&&) { return answer<3>(); }
7107
7108 void
7109 test()
7110 {
7111 int i = 0;
7112 const int c = 0;
7113 static_assert(decltype(f(i))::value == 1, "");
7114 static_assert(decltype(f(c))::value == 2, "");
7115 static_assert(decltype(f(0))::value == 3, "");
7116 }
7117
7118 }
7119
7120 namespace test_uniform_initialization
7121 {
7122
7123 struct test
7124 {
7125 static const int zero {};
7126 static const int one {1};
7127 };
7128
7129 static_assert(test::zero == 0, "");
7130 static_assert(test::one == 1, "");
7131
7132 }
7133
7134 namespace test_lambdas
7135 {
7136
7137 void
7138 test1()
7139 {
7140 auto lambda1 = [](){};
7141 auto lambda2 = lambda1;
7142 lambda1();
7143 lambda2();
7144 }
7145
7146 int
7147 test2()
7148 {
7149 auto a = [](int i, int j){ return i + j; }(1, 2);
7150 auto b = []() -> int { return '0'; }();
7151 auto c = [=](){ return a + b; }();
7152 auto d = [&](){ return c; }();
7153 auto e = [a, &b](int x) mutable {
7154 const auto identity = [](int y){ return y; };
7155 for (auto i = 0; i < a; ++i)
7156 a += b--;
7157 return x + identity(a + b);
7158 }(0);
7159 return a + b + c + d + e;
7160 }
7161
7162 int
7163 test3()
7164 {
7165 const auto nullary = [](){ return 0; };
7166 const auto unary = [](int x){ return x; };
7167 using nullary_t = decltype(nullary);
7168 using unary_t = decltype(unary);
7169 const auto higher1st = [](nullary_t f){ return f(); };
7170 const auto higher2nd = [unary](nullary_t f1){
7171 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7172 };
7173 return higher1st(nullary) + higher2nd(nullary)(unary);
7174 }
7175
7176 }
7177
7178 namespace test_variadic_templates
7179 {
7180
7181 template <int...>
7182 struct sum;
7183
7184 template <int N0, int... N1toN>
7185 struct sum<N0, N1toN...>
7186 {
7187 static constexpr auto value = N0 + sum<N1toN...>::value;
7188 };
7189
7190 template <>
7191 struct sum<>
7192 {
7193 static constexpr auto value = 0;
7194 };
7195
7196 static_assert(sum<>::value == 0, "");
7197 static_assert(sum<1>::value == 1, "");
7198 static_assert(sum<23>::value == 23, "");
7199 static_assert(sum<1, 2>::value == 3, "");
7200 static_assert(sum<5, 5, 11>::value == 21, "");
7201 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7202
7203 }
7204
7205 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7206 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7207 // because of this.
7208 namespace test_template_alias_sfinae
7209 {
7210
7211 struct foo {};
7212
7213 template<typename T>
7214 using member = typename T::member_type;
7215
7216 template<typename T>
7217 void func(...) {}
7218
7219 template<typename T>
7220 void func(member<T>*) {}
7221
7222 void test();
7223
7224 void test() { func<foo>(0); }
7225
7226 }
7227
7228 } // namespace cxx11
7229
7230 #endif // __cplusplus >= 201103L
7231
7232
7233
7234 _ACEOF
7235 if ac_fn_cxx_try_compile "$LINENO"; then :
7236 eval $cachevar=yes
7237 else
7238 eval $cachevar=no
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 CXX="$ac_save_CXX"
7242 fi
7243 eval ac_res=\$$cachevar
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7245 $as_echo "$ac_res" >&6; }
7246 if eval test x\$$cachevar = xyes; then
7247 CXX_DIALECT="$switch"
7248 ac_success=yes
7249 break
7250 fi
7251 done
7252 fi
7253
7254 if test x$ac_success = xno; then
7255 for alternative in ${ax_cxx_compile_alternatives}; do
7256 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7257 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7259 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7260 if eval \${$cachevar+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 ac_save_CXX="$CXX"
7264 CXX="$CXX $switch"
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267
7268
7269 // If the compiler admits that it is not ready for C++11, why torture it?
7270 // Hopefully, this will speed up the test.
7271
7272 #ifndef __cplusplus
7273
7274 #error "This is not a C++ compiler"
7275
7276 #elif __cplusplus < 201103L
7277
7278 #error "This is not a C++11 compiler"
7279
7280 #else
7281
7282 namespace cxx11
7283 {
7284
7285 namespace test_static_assert
7286 {
7287
7288 template <typename T>
7289 struct check
7290 {
7291 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7292 };
7293
7294 }
7295
7296 namespace test_final_override
7297 {
7298
7299 struct Base
7300 {
7301 virtual void f() {}
7302 };
7303
7304 struct Derived : public Base
7305 {
7306 virtual void f() override {}
7307 };
7308
7309 }
7310
7311 namespace test_double_right_angle_brackets
7312 {
7313
7314 template < typename T >
7315 struct check {};
7316
7317 typedef check<void> single_type;
7318 typedef check<check<void>> double_type;
7319 typedef check<check<check<void>>> triple_type;
7320 typedef check<check<check<check<void>>>> quadruple_type;
7321
7322 }
7323
7324 namespace test_decltype
7325 {
7326
7327 int
7328 f()
7329 {
7330 int a = 1;
7331 decltype(a) b = 2;
7332 return a + b;
7333 }
7334
7335 }
7336
7337 namespace test_type_deduction
7338 {
7339
7340 template < typename T1, typename T2 >
7341 struct is_same
7342 {
7343 static const bool value = false;
7344 };
7345
7346 template < typename T >
7347 struct is_same<T, T>
7348 {
7349 static const bool value = true;
7350 };
7351
7352 template < typename T1, typename T2 >
7353 auto
7354 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7355 {
7356 return a1 + a2;
7357 }
7358
7359 int
7360 test(const int c, volatile int v)
7361 {
7362 static_assert(is_same<int, decltype(0)>::value == true, "");
7363 static_assert(is_same<int, decltype(c)>::value == false, "");
7364 static_assert(is_same<int, decltype(v)>::value == false, "");
7365 auto ac = c;
7366 auto av = v;
7367 auto sumi = ac + av + 'x';
7368 auto sumf = ac + av + 1.0;
7369 static_assert(is_same<int, decltype(ac)>::value == true, "");
7370 static_assert(is_same<int, decltype(av)>::value == true, "");
7371 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7372 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7373 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7374 return (sumf > 0.0) ? sumi : add(c, v);
7375 }
7376
7377 }
7378
7379 namespace test_noexcept
7380 {
7381
7382 int f() { return 0; }
7383 int g() noexcept { return 0; }
7384
7385 static_assert(noexcept(f()) == false, "");
7386 static_assert(noexcept(g()) == true, "");
7387
7388 }
7389
7390 namespace test_constexpr
7391 {
7392
7393 template < typename CharT >
7394 unsigned long constexpr
7395 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7396 {
7397 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7398 }
7399
7400 template < typename CharT >
7401 unsigned long constexpr
7402 strlen_c(const CharT *const s) noexcept
7403 {
7404 return strlen_c_r(s, 0UL);
7405 }
7406
7407 static_assert(strlen_c("") == 0UL, "");
7408 static_assert(strlen_c("1") == 1UL, "");
7409 static_assert(strlen_c("example") == 7UL, "");
7410 static_assert(strlen_c("another\0example") == 7UL, "");
7411
7412 }
7413
7414 namespace test_rvalue_references
7415 {
7416
7417 template < int N >
7418 struct answer
7419 {
7420 static constexpr int value = N;
7421 };
7422
7423 answer<1> f(int&) { return answer<1>(); }
7424 answer<2> f(const int&) { return answer<2>(); }
7425 answer<3> f(int&&) { return answer<3>(); }
7426
7427 void
7428 test()
7429 {
7430 int i = 0;
7431 const int c = 0;
7432 static_assert(decltype(f(i))::value == 1, "");
7433 static_assert(decltype(f(c))::value == 2, "");
7434 static_assert(decltype(f(0))::value == 3, "");
7435 }
7436
7437 }
7438
7439 namespace test_uniform_initialization
7440 {
7441
7442 struct test
7443 {
7444 static const int zero {};
7445 static const int one {1};
7446 };
7447
7448 static_assert(test::zero == 0, "");
7449 static_assert(test::one == 1, "");
7450
7451 }
7452
7453 namespace test_lambdas
7454 {
7455
7456 void
7457 test1()
7458 {
7459 auto lambda1 = [](){};
7460 auto lambda2 = lambda1;
7461 lambda1();
7462 lambda2();
7463 }
7464
7465 int
7466 test2()
7467 {
7468 auto a = [](int i, int j){ return i + j; }(1, 2);
7469 auto b = []() -> int { return '0'; }();
7470 auto c = [=](){ return a + b; }();
7471 auto d = [&](){ return c; }();
7472 auto e = [a, &b](int x) mutable {
7473 const auto identity = [](int y){ return y; };
7474 for (auto i = 0; i < a; ++i)
7475 a += b--;
7476 return x + identity(a + b);
7477 }(0);
7478 return a + b + c + d + e;
7479 }
7480
7481 int
7482 test3()
7483 {
7484 const auto nullary = [](){ return 0; };
7485 const auto unary = [](int x){ return x; };
7486 using nullary_t = decltype(nullary);
7487 using unary_t = decltype(unary);
7488 const auto higher1st = [](nullary_t f){ return f(); };
7489 const auto higher2nd = [unary](nullary_t f1){
7490 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7491 };
7492 return higher1st(nullary) + higher2nd(nullary)(unary);
7493 }
7494
7495 }
7496
7497 namespace test_variadic_templates
7498 {
7499
7500 template <int...>
7501 struct sum;
7502
7503 template <int N0, int... N1toN>
7504 struct sum<N0, N1toN...>
7505 {
7506 static constexpr auto value = N0 + sum<N1toN...>::value;
7507 };
7508
7509 template <>
7510 struct sum<>
7511 {
7512 static constexpr auto value = 0;
7513 };
7514
7515 static_assert(sum<>::value == 0, "");
7516 static_assert(sum<1>::value == 1, "");
7517 static_assert(sum<23>::value == 23, "");
7518 static_assert(sum<1, 2>::value == 3, "");
7519 static_assert(sum<5, 5, 11>::value == 21, "");
7520 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7521
7522 }
7523
7524 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7525 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7526 // because of this.
7527 namespace test_template_alias_sfinae
7528 {
7529
7530 struct foo {};
7531
7532 template<typename T>
7533 using member = typename T::member_type;
7534
7535 template<typename T>
7536 void func(...) {}
7537
7538 template<typename T>
7539 void func(member<T>*) {}
7540
7541 void test();
7542
7543 void test() { func<foo>(0); }
7544
7545 }
7546
7547 } // namespace cxx11
7548
7549 #endif // __cplusplus >= 201103L
7550
7551
7552
7553 _ACEOF
7554 if ac_fn_cxx_try_compile "$LINENO"; then :
7555 eval $cachevar=yes
7556 else
7557 eval $cachevar=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 CXX="$ac_save_CXX"
7561 fi
7562 eval ac_res=\$$cachevar
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7564 $as_echo "$ac_res" >&6; }
7565 if eval test x\$$cachevar = xyes; then
7566 CXX_DIALECT="$switch"
7567 ac_success=yes
7568 break
7569 fi
7570 done
7571 if test x$ac_success = xyes; then
7572 break
7573 fi
7574 done
7575 fi
7576 ac_ext=c
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7581
7582 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7583 if test x$ac_success = xno; then
7584 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7585 fi
7586 fi
7587 if test x$ac_success = xno; then
7588 HAVE_CXX11=0
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7590 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7591 else
7592 HAVE_CXX11=1
7593
7594 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
7595
7596 fi
7597
7598
7599
7600
7601 # If we haven't got the data from the intl directory,
7602 # assume NLS is disabled.
7603 USE_NLS=no
7604 LIBINTL=
7605 LIBINTL_DEP=
7606 INCINTL=
7607 XGETTEXT=
7608 GMSGFMT=
7609 POSUB=
7610
7611 if test -f ../intl/config.intl; then
7612 . ../intl/config.intl
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7615 $as_echo_n "checking whether NLS is requested... " >&6; }
7616 if test x"$USE_NLS" != xyes; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7621 $as_echo "yes" >&6; }
7622
7623 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7624
7625
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7627 $as_echo_n "checking for catalogs to be installed... " >&6; }
7628 # Look for .po and .gmo files in the source directory.
7629 CATALOGS=
7630 XLINGUAS=
7631 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7632 # If there aren't any .gmo files the shell will give us the
7633 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7634 # weeded out.
7635 case "$cat" in *\**)
7636 continue;;
7637 esac
7638 # The quadruple backslash is collapsed to a double backslash
7639 # by the backticks, then collapsed again by the double quotes,
7640 # leaving us with one backslash in the sed expression (right
7641 # before the dot that mustn't act as a wildcard).
7642 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7643 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7644 # The user is allowed to set LINGUAS to a list of languages to
7645 # install catalogs for. If it's empty that means "all of them."
7646 if test "x$LINGUAS" = x; then
7647 CATALOGS="$CATALOGS $cat"
7648 XLINGUAS="$XLINGUAS $lang"
7649 else
7650 case "$LINGUAS" in *$lang*)
7651 CATALOGS="$CATALOGS $cat"
7652 XLINGUAS="$XLINGUAS $lang"
7653 ;;
7654 esac
7655 fi
7656 done
7657 LINGUAS="$XLINGUAS"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7659 $as_echo "$LINGUAS" >&6; }
7660
7661
7662 DATADIRNAME=share
7663
7664 INSTOBJEXT=.mo
7665
7666 GENCAT=gencat
7667
7668 CATOBJEXT=.gmo
7669
7670 fi
7671
7672
7673 # Check for presence and size of long long.
7674 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7675 if test "x$ac_cv_type_long_long" = xyes; then :
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define HAVE_LONG_LONG 1
7679 _ACEOF
7680
7681 # The cast to long int works around a bug in the HP C Compiler
7682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7684 # This bug is HP SR number 8606223364.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7686 $as_echo_n "checking size of long long... " >&6; }
7687 if ${ac_cv_sizeof_long_long+:} false; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7691
7692 else
7693 if test "$ac_cv_type_long_long" = yes; then
7694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7696 as_fn_error 77 "cannot compute sizeof (long long)
7697 See \`config.log' for more details" "$LINENO" 5; }
7698 else
7699 ac_cv_sizeof_long_long=0
7700 fi
7701 fi
7702
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7705 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7706
7707
7708
7709 cat >>confdefs.h <<_ACEOF
7710 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7711 _ACEOF
7712
7713
7714 fi
7715
7716
7717 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
7718 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
7719 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
7720 ac_have_decl=1
7721 else
7722 ac_have_decl=0
7723 fi
7724
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_BASENAME $ac_have_decl
7727 _ACEOF
7728 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7729 if test "x$ac_cv_have_decl_ffs" = xyes; then :
7730 ac_have_decl=1
7731 else
7732 ac_have_decl=0
7733 fi
7734
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_DECL_FFS $ac_have_decl
7737 _ACEOF
7738 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7739 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
7740 ac_have_decl=1
7741 else
7742 ac_have_decl=0
7743 fi
7744
7745 cat >>confdefs.h <<_ACEOF
7746 #define HAVE_DECL_ASPRINTF $ac_have_decl
7747 _ACEOF
7748 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7749 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
7750 ac_have_decl=1
7751 else
7752 ac_have_decl=0
7753 fi
7754
7755 cat >>confdefs.h <<_ACEOF
7756 #define HAVE_DECL_VASPRINTF $ac_have_decl
7757 _ACEOF
7758 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7759 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
7760 ac_have_decl=1
7761 else
7762 ac_have_decl=0
7763 fi
7764
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DECL_SNPRINTF $ac_have_decl
7767 _ACEOF
7768 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7769 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
7770 ac_have_decl=1
7771 else
7772 ac_have_decl=0
7773 fi
7774
7775 cat >>confdefs.h <<_ACEOF
7776 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7777 _ACEOF
7778
7779 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
7780 if test "x$ac_cv_have_decl_strtol" = xyes; then :
7781 ac_have_decl=1
7782 else
7783 ac_have_decl=0
7784 fi
7785
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_DECL_STRTOL $ac_have_decl
7788 _ACEOF
7789 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
7790 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
7791 ac_have_decl=1
7792 else
7793 ac_have_decl=0
7794 fi
7795
7796 cat >>confdefs.h <<_ACEOF
7797 #define HAVE_DECL_STRTOUL $ac_have_decl
7798 _ACEOF
7799 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
7800 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
7801 ac_have_decl=1
7802 else
7803 ac_have_decl=0
7804 fi
7805
7806 cat >>confdefs.h <<_ACEOF
7807 #define HAVE_DECL_STRTOLL $ac_have_decl
7808 _ACEOF
7809 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
7810 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
7811 ac_have_decl=1
7812 else
7813 ac_have_decl=0
7814 fi
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_DECL_STRTOULL $ac_have_decl
7818 _ACEOF
7819
7820 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7821 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
7822 ac_have_decl=1
7823 else
7824 ac_have_decl=0
7825 fi
7826
7827 cat >>confdefs.h <<_ACEOF
7828 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7829 _ACEOF
7830
7831
7832 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7833 if test "x$ac_cv_type_size_t" = xyes; then :
7834
7835 else
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define size_t unsigned int
7839 _ACEOF
7840
7841 fi
7842
7843
7844
7845
7846 for ac_header in $ac_header_list
7847 do :
7848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7850 "
7851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7852 cat >>confdefs.h <<_ACEOF
7853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7854 _ACEOF
7855
7856 fi
7857
7858 done
7859
7860
7861
7862
7863
7864
7865
7866 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7867 if test "x$ac_cv_type_pid_t" = xyes; then :
7868
7869 else
7870
7871 cat >>confdefs.h <<_ACEOF
7872 #define pid_t int
7873 _ACEOF
7874
7875 fi
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7878 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7879 if ${ac_cv_path_SED+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7883 for ac_i in 1 2 3 4 5 6 7; do
7884 ac_script="$ac_script$as_nl$ac_script"
7885 done
7886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7887 { ac_script=; unset ac_script;}
7888 if test -z "$SED"; then
7889 ac_path_SED_found=false
7890 # Loop through the user's path and test for each of PROGNAME-LIST
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_prog in sed gsed; do
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7899 as_fn_executable_p "$ac_path_SED" || continue
7900 # Check for GNU ac_path_SED and select it if it is found.
7901 # Check for GNU $ac_path_SED
7902 case `"$ac_path_SED" --version 2>&1` in
7903 *GNU*)
7904 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7905 *)
7906 ac_count=0
7907 $as_echo_n 0123456789 >"conftest.in"
7908 while :
7909 do
7910 cat "conftest.in" "conftest.in" >"conftest.tmp"
7911 mv "conftest.tmp" "conftest.in"
7912 cp "conftest.in" "conftest.nl"
7913 $as_echo '' >> "conftest.nl"
7914 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7916 as_fn_arith $ac_count + 1 && ac_count=$as_val
7917 if test $ac_count -gt ${ac_path_SED_max-0}; then
7918 # Best one so far, save it but keep looking for a better one
7919 ac_cv_path_SED="$ac_path_SED"
7920 ac_path_SED_max=$ac_count
7921 fi
7922 # 10*(2^10) chars as input seems more than enough
7923 test $ac_count -gt 10 && break
7924 done
7925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7926 esac
7927
7928 $ac_path_SED_found && break 3
7929 done
7930 done
7931 done
7932 IFS=$as_save_IFS
7933 if test -z "$ac_cv_path_SED"; then
7934 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7935 fi
7936 else
7937 ac_cv_path_SED=$SED
7938 fi
7939
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7942 $as_echo "$ac_cv_path_SED" >&6; }
7943 SED="$ac_cv_path_SED"
7944 rm -f conftest.sed
7945
7946
7947 if test "X$prefix" = "XNONE"; then
7948 acl_final_prefix="$ac_default_prefix"
7949 else
7950 acl_final_prefix="$prefix"
7951 fi
7952 if test "X$exec_prefix" = "XNONE"; then
7953 acl_final_exec_prefix='${prefix}'
7954 else
7955 acl_final_exec_prefix="$exec_prefix"
7956 fi
7957 acl_save_prefix="$prefix"
7958 prefix="$acl_final_prefix"
7959 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7960 prefix="$acl_save_prefix"
7961
7962
7963 # Check whether --with-gnu-ld was given.
7964 if test "${with_gnu_ld+set}" = set; then :
7965 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7966 else
7967 with_gnu_ld=no
7968 fi
7969
7970 # Prepare PATH_SEPARATOR.
7971 # The user is always right.
7972 if test "${PATH_SEPARATOR+set}" != set; then
7973 echo "#! /bin/sh" >conf$$.sh
7974 echo "exit 0" >>conf$$.sh
7975 chmod +x conf$$.sh
7976 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7977 PATH_SEPARATOR=';'
7978 else
7979 PATH_SEPARATOR=:
7980 fi
7981 rm -f conf$$.sh
7982 fi
7983 ac_prog=ld
7984 if test "$GCC" = yes; then
7985 # Check if gcc -print-prog-name=ld gives a path.
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7987 $as_echo_n "checking for ld used by GCC... " >&6; }
7988 case $host in
7989 *-*-mingw*)
7990 # gcc leaves a trailing carriage return which upsets mingw
7991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7992 *)
7993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7994 esac
7995 case $ac_prog in
7996 # Accept absolute paths.
7997 [\\/]* | [A-Za-z]:[\\/]*)
7998 re_direlt='/[^/][^/]*/\.\./'
7999 # Canonicalize the path of ld
8000 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8001 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8002 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8003 done
8004 test -z "$LD" && LD="$ac_prog"
8005 ;;
8006 "")
8007 # If it fails, then pretend we aren't using GCC.
8008 ac_prog=ld
8009 ;;
8010 *)
8011 # If it is relative, then search for the first ld in PATH.
8012 with_gnu_ld=unknown
8013 ;;
8014 esac
8015 elif test "$with_gnu_ld" = yes; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8017 $as_echo_n "checking for GNU ld... " >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8020 $as_echo_n "checking for non-GNU ld... " >&6; }
8021 fi
8022 if ${acl_cv_path_LD+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 if test -z "$LD"; then
8026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8027 for ac_dir in $PATH; do
8028 test -z "$ac_dir" && ac_dir=.
8029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8030 acl_cv_path_LD="$ac_dir/$ac_prog"
8031 # Check to see if the program is GNU ld. I'd rather use --version,
8032 # but apparently some GNU ld's only accept -v.
8033 # Break only if it was the GNU/non-GNU ld that we prefer.
8034 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8035 test "$with_gnu_ld" != no && break
8036 else
8037 test "$with_gnu_ld" != yes && break
8038 fi
8039 fi
8040 done
8041 IFS="$ac_save_ifs"
8042 else
8043 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8044 fi
8045 fi
8046
8047 LD="$acl_cv_path_LD"
8048 if test -n "$LD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8050 $as_echo "$LD" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8058 if ${acl_cv_prog_gnu_ld+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8062 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8063 acl_cv_prog_gnu_ld=yes
8064 else
8065 acl_cv_prog_gnu_ld=no
8066 fi
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8069 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8070 with_gnu_ld=$acl_cv_prog_gnu_ld
8071
8072
8073
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8075 $as_echo_n "checking for shared library run path origin... " >&6; }
8076 if ${acl_cv_rpath+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079
8080 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8081 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8082 . ./conftest.sh
8083 rm -f ./conftest.sh
8084 acl_cv_rpath=done
8085
8086 fi
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8088 $as_echo "$acl_cv_rpath" >&6; }
8089 wl="$acl_cv_wl"
8090 libext="$acl_cv_libext"
8091 shlibext="$acl_cv_shlibext"
8092 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8093 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8094 hardcode_direct="$acl_cv_hardcode_direct"
8095 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8096 # Check whether --enable-rpath was given.
8097 if test "${enable_rpath+set}" = set; then :
8098 enableval=$enable_rpath; :
8099 else
8100 enable_rpath=yes
8101 fi
8102
8103
8104
8105 # Set the 'development' global.
8106 . $srcdir/../bfd/development.sh
8107
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8109 $as_echo_n "checking for ANSI C header files... " >&6; }
8110 if ${ac_cv_header_stdc+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <stdlib.h>
8116 #include <stdarg.h>
8117 #include <string.h>
8118 #include <float.h>
8119
8120 int
8121 main ()
8122 {
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 ac_cv_header_stdc=yes
8130 else
8131 ac_cv_header_stdc=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134
8135 if test $ac_cv_header_stdc = yes; then
8136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 #include <string.h>
8140
8141 _ACEOF
8142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8143 $EGREP "memchr" >/dev/null 2>&1; then :
8144
8145 else
8146 ac_cv_header_stdc=no
8147 fi
8148 rm -f conftest*
8149
8150 fi
8151
8152 if test $ac_cv_header_stdc = yes; then
8153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8156 #include <stdlib.h>
8157
8158 _ACEOF
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "free" >/dev/null 2>&1; then :
8161
8162 else
8163 ac_cv_header_stdc=no
8164 fi
8165 rm -f conftest*
8166
8167 fi
8168
8169 if test $ac_cv_header_stdc = yes; then
8170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8171 if test "$cross_compiling" = yes; then :
8172 :
8173 else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <ctype.h>
8177 #include <stdlib.h>
8178 #if ((' ' & 0x0FF) == 0x020)
8179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8181 #else
8182 # define ISLOWER(c) \
8183 (('a' <= (c) && (c) <= 'i') \
8184 || ('j' <= (c) && (c) <= 'r') \
8185 || ('s' <= (c) && (c) <= 'z'))
8186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8187 #endif
8188
8189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8190 int
8191 main ()
8192 {
8193 int i;
8194 for (i = 0; i < 256; i++)
8195 if (XOR (islower (i), ISLOWER (i))
8196 || toupper (i) != TOUPPER (i))
8197 return 2;
8198 return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_run "$LINENO"; then :
8202
8203 else
8204 ac_cv_header_stdc=no
8205 fi
8206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8207 conftest.$ac_objext conftest.beam conftest.$ac_ext
8208 fi
8209
8210 fi
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8213 $as_echo "$ac_cv_header_stdc" >&6; }
8214 if test $ac_cv_header_stdc = yes; then
8215
8216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8217
8218 fi
8219
8220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8221 # for constant arguments. Useless!
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8223 $as_echo_n "checking for working alloca.h... " >&6; }
8224 if ${ac_cv_working_alloca_h+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 #include <alloca.h>
8230 int
8231 main ()
8232 {
8233 char *p = (char *) alloca (2 * sizeof (int));
8234 if (p) return 0;
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 ac_cv_working_alloca_h=yes
8241 else
8242 ac_cv_working_alloca_h=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8248 $as_echo "$ac_cv_working_alloca_h" >&6; }
8249 if test $ac_cv_working_alloca_h = yes; then
8250
8251 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8252
8253 fi
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8256 $as_echo_n "checking for alloca... " >&6; }
8257 if ${ac_cv_func_alloca_works+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #ifdef __GNUC__
8263 # define alloca __builtin_alloca
8264 #else
8265 # ifdef _MSC_VER
8266 # include <malloc.h>
8267 # define alloca _alloca
8268 # else
8269 # ifdef HAVE_ALLOCA_H
8270 # include <alloca.h>
8271 # else
8272 # ifdef _AIX
8273 #pragma alloca
8274 # else
8275 # ifndef alloca /* predefined by HP cc +Olibcalls */
8276 void *alloca (size_t);
8277 # endif
8278 # endif
8279 # endif
8280 # endif
8281 #endif
8282
8283 int
8284 main ()
8285 {
8286 char *p = (char *) alloca (1);
8287 if (p) return 0;
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_link "$LINENO"; then :
8293 ac_cv_func_alloca_works=yes
8294 else
8295 ac_cv_func_alloca_works=no
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8301 $as_echo "$ac_cv_func_alloca_works" >&6; }
8302
8303 if test $ac_cv_func_alloca_works = yes; then
8304
8305 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8306
8307 else
8308 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8309 # that cause trouble. Some versions do not even contain alloca or
8310 # contain a buggy version. If you still want to use their alloca,
8311 # use ar to extract alloca.o from them instead of compiling alloca.c.
8312
8313 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8314
8315 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8316
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8319 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8320 if ${ac_cv_os_cray+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #if defined CRAY && ! defined CRAY2
8326 webecray
8327 #else
8328 wenotbecray
8329 #endif
8330
8331 _ACEOF
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "webecray" >/dev/null 2>&1; then :
8334 ac_cv_os_cray=yes
8335 else
8336 ac_cv_os_cray=no
8337 fi
8338 rm -f conftest*
8339
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8342 $as_echo "$ac_cv_os_cray" >&6; }
8343 if test $ac_cv_os_cray = yes; then
8344 for ac_func in _getb67 GETB67 getb67; do
8345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8348
8349 cat >>confdefs.h <<_ACEOF
8350 #define CRAY_STACKSEG_END $ac_func
8351 _ACEOF
8352
8353 break
8354 fi
8355
8356 done
8357 fi
8358
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8360 $as_echo_n "checking stack direction for C alloca... " >&6; }
8361 if ${ac_cv_c_stack_direction+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 if test "$cross_compiling" = yes; then :
8365 ac_cv_c_stack_direction=0
8366 else
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 $ac_includes_default
8370 int
8371 find_stack_direction (int *addr, int depth)
8372 {
8373 int dir, dummy = 0;
8374 if (! addr)
8375 addr = &dummy;
8376 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8377 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8378 return dir + dummy;
8379 }
8380
8381 int
8382 main (int argc, char **argv)
8383 {
8384 return find_stack_direction (0, argc + !argv + 20) < 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_run "$LINENO"; then :
8388 ac_cv_c_stack_direction=1
8389 else
8390 ac_cv_c_stack_direction=-1
8391 fi
8392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8393 conftest.$ac_objext conftest.beam conftest.$ac_ext
8394 fi
8395
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8398 $as_echo "$ac_cv_c_stack_direction" >&6; }
8399 cat >>confdefs.h <<_ACEOF
8400 #define STACK_DIRECTION $ac_cv_c_stack_direction
8401 _ACEOF
8402
8403
8404 fi
8405
8406
8407 WIN32APILIBS=
8408 case ${host} in
8409 *mingw32*)
8410
8411 $as_echo "#define USE_WIN32API 1" >>confdefs.h
8412
8413 WIN32APILIBS="-lws2_32"
8414 ;;
8415 esac
8416
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8419 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8420 if ${am_cv_langinfo_codeset+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #include <langinfo.h>
8426 int
8427 main ()
8428 {
8429 char* cs = nl_langinfo(CODESET);
8430 ;
8431 return 0;
8432 }
8433 _ACEOF
8434 if ac_fn_c_try_link "$LINENO"; then :
8435 am_cv_langinfo_codeset=yes
8436 else
8437 am_cv_langinfo_codeset=no
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8444 $as_echo "$am_cv_langinfo_codeset" >&6; }
8445 if test $am_cv_langinfo_codeset = yes; then
8446
8447 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8448
8449 fi
8450
8451
8452 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
8453 do :
8454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8457 cat >>confdefs.h <<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459 _ACEOF
8460
8461 fi
8462
8463 done
8464
8465
8466
8467 for ac_func in getpagesize
8468 do :
8469 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8470 if test "x$ac_cv_func_getpagesize" = xyes; then :
8471 cat >>confdefs.h <<_ACEOF
8472 #define HAVE_GETPAGESIZE 1
8473 _ACEOF
8474
8475 fi
8476 done
8477
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8479 $as_echo_n "checking for working mmap... " >&6; }
8480 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 if test "$cross_compiling" = yes; then :
8484 ac_cv_func_mmap_fixed_mapped=no
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 /* malloc might have been renamed as rpl_malloc. */
8490 #undef malloc
8491
8492 /* Thanks to Mike Haertel and Jim Avera for this test.
8493 Here is a matrix of mmap possibilities:
8494 mmap private not fixed
8495 mmap private fixed at somewhere currently unmapped
8496 mmap private fixed at somewhere already mapped
8497 mmap shared not fixed
8498 mmap shared fixed at somewhere currently unmapped
8499 mmap shared fixed at somewhere already mapped
8500 For private mappings, we should verify that changes cannot be read()
8501 back from the file, nor mmap's back from the file at a different
8502 address. (There have been systems where private was not correctly
8503 implemented like the infamous i386 svr4.0, and systems where the
8504 VM page cache was not coherent with the file system buffer cache
8505 like early versions of FreeBSD and possibly contemporary NetBSD.)
8506 For shared mappings, we should conversely verify that changes get
8507 propagated back to all the places they're supposed to be.
8508
8509 Grep wants private fixed already mapped.
8510 The main things grep needs to know about mmap are:
8511 * does it exist and is it safe to write into the mmap'd area
8512 * how to use it (BSD variants) */
8513
8514 #include <fcntl.h>
8515 #include <sys/mman.h>
8516
8517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8518 char *malloc ();
8519 #endif
8520
8521 /* This mess was copied from the GNU getpagesize.h. */
8522 #ifndef HAVE_GETPAGESIZE
8523 # ifdef _SC_PAGESIZE
8524 # define getpagesize() sysconf(_SC_PAGESIZE)
8525 # else /* no _SC_PAGESIZE */
8526 # ifdef HAVE_SYS_PARAM_H
8527 # include <sys/param.h>
8528 # ifdef EXEC_PAGESIZE
8529 # define getpagesize() EXEC_PAGESIZE
8530 # else /* no EXEC_PAGESIZE */
8531 # ifdef NBPG
8532 # define getpagesize() NBPG * CLSIZE
8533 # ifndef CLSIZE
8534 # define CLSIZE 1
8535 # endif /* no CLSIZE */
8536 # else /* no NBPG */
8537 # ifdef NBPC
8538 # define getpagesize() NBPC
8539 # else /* no NBPC */
8540 # ifdef PAGESIZE
8541 # define getpagesize() PAGESIZE
8542 # endif /* PAGESIZE */
8543 # endif /* no NBPC */
8544 # endif /* no NBPG */
8545 # endif /* no EXEC_PAGESIZE */
8546 # else /* no HAVE_SYS_PARAM_H */
8547 # define getpagesize() 8192 /* punt totally */
8548 # endif /* no HAVE_SYS_PARAM_H */
8549 # endif /* no _SC_PAGESIZE */
8550
8551 #endif /* no HAVE_GETPAGESIZE */
8552
8553 int
8554 main ()
8555 {
8556 char *data, *data2, *data3;
8557 const char *cdata2;
8558 int i, pagesize;
8559 int fd, fd2;
8560
8561 pagesize = getpagesize ();
8562
8563 /* First, make a file with some known garbage in it. */
8564 data = (char *) malloc (pagesize);
8565 if (!data)
8566 return 1;
8567 for (i = 0; i < pagesize; ++i)
8568 *(data + i) = rand ();
8569 umask (0);
8570 fd = creat ("conftest.mmap", 0600);
8571 if (fd < 0)
8572 return 2;
8573 if (write (fd, data, pagesize) != pagesize)
8574 return 3;
8575 close (fd);
8576
8577 /* Next, check that the tail of a page is zero-filled. File must have
8578 non-zero length, otherwise we risk SIGBUS for entire page. */
8579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8580 if (fd2 < 0)
8581 return 4;
8582 cdata2 = "";
8583 if (write (fd2, cdata2, 1) != 1)
8584 return 5;
8585 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8586 if (data2 == MAP_FAILED)
8587 return 6;
8588 for (i = 0; i < pagesize; ++i)
8589 if (*(data2 + i))
8590 return 7;
8591 close (fd2);
8592 if (munmap (data2, pagesize))
8593 return 8;
8594
8595 /* Next, try to mmap the file at a fixed address which already has
8596 something else allocated at it. If we can, also make sure that
8597 we see the same garbage. */
8598 fd = open ("conftest.mmap", O_RDWR);
8599 if (fd < 0)
8600 return 9;
8601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8603 return 10;
8604 for (i = 0; i < pagesize; ++i)
8605 if (*(data + i) != *(data2 + i))
8606 return 11;
8607
8608 /* Finally, make sure that changes to the mapped area do not
8609 percolate back to the file as seen by read(). (This is a bug on
8610 some variants of i386 svr4.0.) */
8611 for (i = 0; i < pagesize; ++i)
8612 *(data2 + i) = *(data2 + i) + 1;
8613 data3 = (char *) malloc (pagesize);
8614 if (!data3)
8615 return 12;
8616 if (read (fd, data3, pagesize) != pagesize)
8617 return 13;
8618 for (i = 0; i < pagesize; ++i)
8619 if (*(data + i) != *(data3 + i))
8620 return 14;
8621 close (fd);
8622 return 0;
8623 }
8624 _ACEOF
8625 if ac_fn_c_try_run "$LINENO"; then :
8626 ac_cv_func_mmap_fixed_mapped=yes
8627 else
8628 ac_cv_func_mmap_fixed_mapped=no
8629 fi
8630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8631 conftest.$ac_objext conftest.beam conftest.$ac_ext
8632 fi
8633
8634 fi
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8636 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8638
8639 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8640
8641 fi
8642 rm -f conftest.mmap conftest.txt
8643
8644 for ac_header in vfork.h
8645 do :
8646 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8647 if test "x$ac_cv_header_vfork_h" = xyes; then :
8648 cat >>confdefs.h <<_ACEOF
8649 #define HAVE_VFORK_H 1
8650 _ACEOF
8651
8652 fi
8653
8654 done
8655
8656 for ac_func in fork vfork
8657 do :
8658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8661 cat >>confdefs.h <<_ACEOF
8662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8663 _ACEOF
8664
8665 fi
8666 done
8667
8668 if test "x$ac_cv_func_fork" = xyes; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8670 $as_echo_n "checking for working fork... " >&6; }
8671 if ${ac_cv_func_fork_works+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 if test "$cross_compiling" = yes; then :
8675 ac_cv_func_fork_works=cross
8676 else
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 $ac_includes_default
8680 int
8681 main ()
8682 {
8683
8684 /* By Ruediger Kuhlmann. */
8685 return fork () < 0;
8686
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 if ac_fn_c_try_run "$LINENO"; then :
8692 ac_cv_func_fork_works=yes
8693 else
8694 ac_cv_func_fork_works=no
8695 fi
8696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8697 conftest.$ac_objext conftest.beam conftest.$ac_ext
8698 fi
8699
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8702 $as_echo "$ac_cv_func_fork_works" >&6; }
8703
8704 else
8705 ac_cv_func_fork_works=$ac_cv_func_fork
8706 fi
8707 if test "x$ac_cv_func_fork_works" = xcross; then
8708 case $host in
8709 *-*-amigaos* | *-*-msdosdjgpp*)
8710 # Override, as these systems have only a dummy fork() stub
8711 ac_cv_func_fork_works=no
8712 ;;
8713 *)
8714 ac_cv_func_fork_works=yes
8715 ;;
8716 esac
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8718 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8719 fi
8720 ac_cv_func_vfork_works=$ac_cv_func_vfork
8721 if test "x$ac_cv_func_vfork" = xyes; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8723 $as_echo_n "checking for working vfork... " >&6; }
8724 if ${ac_cv_func_vfork_works+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 if test "$cross_compiling" = yes; then :
8728 ac_cv_func_vfork_works=cross
8729 else
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 /* Thanks to Paul Eggert for this test. */
8733 $ac_includes_default
8734 #include <sys/wait.h>
8735 #ifdef HAVE_VFORK_H
8736 # include <vfork.h>
8737 #endif
8738 /* On some sparc systems, changes by the child to local and incoming
8739 argument registers are propagated back to the parent. The compiler
8740 is told about this with #include <vfork.h>, but some compilers
8741 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8742 static variable whose address is put into a register that is
8743 clobbered by the vfork. */
8744 static void
8745 #ifdef __cplusplus
8746 sparc_address_test (int arg)
8747 # else
8748 sparc_address_test (arg) int arg;
8749 #endif
8750 {
8751 static pid_t child;
8752 if (!child) {
8753 child = vfork ();
8754 if (child < 0) {
8755 perror ("vfork");
8756 _exit(2);
8757 }
8758 if (!child) {
8759 arg = getpid();
8760 write(-1, "", 0);
8761 _exit (arg);
8762 }
8763 }
8764 }
8765
8766 int
8767 main ()
8768 {
8769 pid_t parent = getpid ();
8770 pid_t child;
8771
8772 sparc_address_test (0);
8773
8774 child = vfork ();
8775
8776 if (child == 0) {
8777 /* Here is another test for sparc vfork register problems. This
8778 test uses lots of local variables, at least as many local
8779 variables as main has allocated so far including compiler
8780 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8781 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8782 reuse the register of parent for one of the local variables,
8783 since it will think that parent can't possibly be used any more
8784 in this routine. Assigning to the local variable will thus
8785 munge parent in the parent process. */
8786 pid_t
8787 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8788 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8789 /* Convince the compiler that p..p7 are live; otherwise, it might
8790 use the same hardware register for all 8 local variables. */
8791 if (p != p1 || p != p2 || p != p3 || p != p4
8792 || p != p5 || p != p6 || p != p7)
8793 _exit(1);
8794
8795 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8796 from child file descriptors. If the child closes a descriptor
8797 before it execs or exits, this munges the parent's descriptor
8798 as well. Test for this by closing stdout in the child. */
8799 _exit(close(fileno(stdout)) != 0);
8800 } else {
8801 int status;
8802 struct stat st;
8803
8804 while (wait(&status) != child)
8805 ;
8806 return (
8807 /* Was there some problem with vforking? */
8808 child < 0
8809
8810 /* Did the child fail? (This shouldn't happen.) */
8811 || status
8812
8813 /* Did the vfork/compiler bug occur? */
8814 || parent != getpid()
8815
8816 /* Did the file descriptor bug occur? */
8817 || fstat(fileno(stdout), &st) != 0
8818 );
8819 }
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_run "$LINENO"; then :
8823 ac_cv_func_vfork_works=yes
8824 else
8825 ac_cv_func_vfork_works=no
8826 fi
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8828 conftest.$ac_objext conftest.beam conftest.$ac_ext
8829 fi
8830
8831 fi
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8833 $as_echo "$ac_cv_func_vfork_works" >&6; }
8834
8835 fi;
8836 if test "x$ac_cv_func_fork_works" = xcross; then
8837 ac_cv_func_vfork_works=$ac_cv_func_vfork
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8839 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8840 fi
8841
8842 if test "x$ac_cv_func_vfork_works" = xyes; then
8843
8844 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8845
8846 else
8847
8848 $as_echo "#define vfork fork" >>confdefs.h
8849
8850 fi
8851 if test "x$ac_cv_func_fork_works" = xyes; then
8852
8853 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8854
8855 fi
8856
8857 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
8858 ptrace64 sbrk setns sigaltstack sigprocmask \
8859 setpgid setpgrp getrusage getauxval
8860 do :
8861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8863 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8864 cat >>confdefs.h <<_ACEOF
8865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8866 _ACEOF
8867
8868 fi
8869 done
8870
8871
8872 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
8873 "
8874 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
8875 ac_have_decl=1
8876 else
8877 ac_have_decl=0
8878 fi
8879
8880 cat >>confdefs.h <<_ACEOF
8881 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
8882 _ACEOF
8883
8884
8885 if test "$cross_compiling" = yes; then :
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <sys/personality.h>
8889 int
8890 main ()
8891 {
8892
8893 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8894 # define ADDR_NO_RANDOMIZE 0x0040000
8895 # endif
8896 /* Test the flag could be set and stays set. */
8897 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8898 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8899 return 1
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 if ac_fn_c_try_link "$LINENO"; then :
8905 have_personality=true
8906 else
8907 have_personality=false
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <sys/personality.h>
8915 int
8916 main ()
8917 {
8918
8919 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
8920 # define ADDR_NO_RANDOMIZE 0x0040000
8921 # endif
8922 /* Test the flag could be set and stays set. */
8923 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
8924 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
8925 return 1
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_run "$LINENO"; then :
8931 have_personality=true
8932 else
8933 have_personality=false
8934 fi
8935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8936 conftest.$ac_objext conftest.beam conftest.$ac_ext
8937 fi
8938
8939 if $have_personality
8940 then
8941
8942 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
8943
8944 fi
8945
8946 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8947 if test "x$ac_cv_have_decl_strstr" = xyes; then :
8948 ac_have_decl=1
8949 else
8950 ac_have_decl=0
8951 fi
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_DECL_STRSTR $ac_have_decl
8955 _ACEOF
8956
8957
8958 # ----------------------- #
8959 # Checks for structures. #
8960 # ----------------------- #
8961
8962 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8963 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8964
8965 cat >>confdefs.h <<_ACEOF
8966 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8967 _ACEOF
8968
8969
8970 fi
8971 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8972 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8973
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8976 _ACEOF
8977
8978
8979 fi
8980
8981
8982 # On FreeBSD we need libutil for the kinfo_get* functions. On
8983 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8984 # Figure out which one to use.
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8986 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8987 if ${ac_cv_search_kinfo_getfile+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 ac_func_search_save_LIBS=$LIBS
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993
8994 /* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
8997 #ifdef __cplusplus
8998 extern "C"
8999 #endif
9000 char kinfo_getfile ();
9001 int
9002 main ()
9003 {
9004 return kinfo_getfile ();
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 for ac_lib in '' util util-freebsd; do
9010 if test -z "$ac_lib"; then
9011 ac_res="none required"
9012 else
9013 ac_res=-l$ac_lib
9014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9015 fi
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_search_kinfo_getfile=$ac_res
9018 fi
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext
9021 if ${ac_cv_search_kinfo_getfile+:} false; then :
9022 break
9023 fi
9024 done
9025 if ${ac_cv_search_kinfo_getfile+:} false; then :
9026
9027 else
9028 ac_cv_search_kinfo_getfile=no
9029 fi
9030 rm conftest.$ac_ext
9031 LIBS=$ac_func_search_save_LIBS
9032 fi
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
9034 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
9035 ac_res=$ac_cv_search_kinfo_getfile
9036 if test "$ac_res" != no; then :
9037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9038
9039 fi
9040
9041
9042 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
9043 for ac_func in kinfo_getfile
9044 do :
9045 ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
9046 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
9047 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_KINFO_GETFILE 1
9049 _ACEOF
9050
9051 fi
9052 done
9053
9054
9055 # ----------------------- #
9056 # Check for threading. #
9057 # ----------------------- #
9058
9059 # Check whether --enable-threading was given.
9060 if test "${enable_threading+set}" = set; then :
9061 enableval=$enable_threading; case "$enableval" in
9062 yes) want_threading=yes ;;
9063 no) want_threading=no ;;
9064 *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
9065 esac
9066 else
9067 want_threading=yes
9068 fi
9069
9070
9071 # Check for std::thread. This does not work on some platforms, like
9072 # mingw and DJGPP.
9073 ac_ext=cpp
9074 ac_cpp='$CXXCPP $CPPFLAGS'
9075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9078
9079
9080
9081
9082
9083 ac_ext=c
9084 ac_cpp='$CPP $CPPFLAGS'
9085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9088
9089 ax_pthread_ok=no
9090
9091 # We used to check for pthread.h first, but this fails if pthread.h
9092 # requires special compiler flags (e.g. on Tru64 or Sequent).
9093 # It gets checked for in the link test anyway.
9094
9095 # First of all, check if the user has set any of the PTHREAD_LIBS,
9096 # etcetera environment variables, and if threads linking works using
9097 # them:
9098 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9099 ax_pthread_save_CC="$CC"
9100 ax_pthread_save_CFLAGS="$CFLAGS"
9101 ax_pthread_save_LIBS="$LIBS"
9102 if test "x$PTHREAD_CC" != "x"; then :
9103 CC="$PTHREAD_CC"
9104 fi
9105 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9106 LIBS="$PTHREAD_LIBS $LIBS"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9108 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char pthread_join ();
9119 int
9120 main ()
9121 {
9122 return pthread_join ();
9123 ;
9124 return 0;
9125 }
9126 _ACEOF
9127 if ac_fn_c_try_link "$LINENO"; then :
9128 ax_pthread_ok=yes
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext \
9131 conftest$ac_exeext conftest.$ac_ext
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9133 $as_echo "$ax_pthread_ok" >&6; }
9134 if test "x$ax_pthread_ok" = "xno"; then
9135 PTHREAD_LIBS=""
9136 PTHREAD_CFLAGS=""
9137 fi
9138 CC="$ax_pthread_save_CC"
9139 CFLAGS="$ax_pthread_save_CFLAGS"
9140 LIBS="$ax_pthread_save_LIBS"
9141 fi
9142
9143 # We must check for the threads library under a number of different
9144 # names; the ordering is very important because some systems
9145 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9146 # libraries is broken (non-POSIX).
9147
9148 # Create a list of thread flags to try. Items starting with a "-" are
9149 # C compiler flags, and other items are library names, except for "none"
9150 # which indicates that we try without any flags at all, and "pthread-config"
9151 # which is a program returning the flags for the Pth emulation library.
9152
9153 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9154
9155 # The ordering *is* (sometimes) important. Some notes on the
9156 # individual items follow:
9157
9158 # pthreads: AIX (must check this before -lpthread)
9159 # none: in case threads are in libc; should be tried before -Kthread and
9160 # other compiler flags to prevent continual compiler warnings
9161 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9162 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9163 # (Note: HP C rejects this with "bad form for `-t' option")
9164 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9165 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9166 # doesn't hurt to check since this sometimes defines pthreads and
9167 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9168 # is present but should not be used directly; and before -mthreads,
9169 # because the compiler interprets this as "-mt" + "-hreads")
9170 # -mthreads: Mingw32/gcc, Lynx/gcc
9171 # pthread: Linux, etcetera
9172 # --thread-safe: KAI C++
9173 # pthread-config: use pthread-config program (for GNU Pth library)
9174
9175 case $host_os in
9176
9177 freebsd*)
9178
9179 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9180 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9181
9182 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9183 ;;
9184
9185 hpux*)
9186
9187 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9188 # multi-threading and also sets -lpthread."
9189
9190 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9191 ;;
9192
9193 openedition*)
9194
9195 # IBM z/OS requires a feature-test macro to be defined in order to
9196 # enable POSIX threads at all, so give the user a hint if this is
9197 # not set. (We don't define these ourselves, as they can affect
9198 # other portions of the system API in unpredictable ways.)
9199
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202
9203 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9204 AX_PTHREAD_ZOS_MISSING
9205 # endif
9206
9207 _ACEOF
9208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9209 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9211 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9212 fi
9213 rm -f conftest*
9214
9215 ;;
9216
9217 solaris*)
9218
9219 # On Solaris (at least, for some versions), libc contains stubbed
9220 # (non-functional) versions of the pthreads routines, so link-based
9221 # tests will erroneously succeed. (N.B.: The stubs are missing
9222 # pthread_cleanup_push, or rather a function called by this macro,
9223 # so we could check for that, but who knows whether they'll stub
9224 # that too in a future libc.) So we'll check first for the
9225 # standard Solaris way of linking pthreads (-mt -lpthread).
9226
9227 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9228 ;;
9229 esac
9230
9231 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9232
9233 if test "x$GCC" = "xyes"; then :
9234 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9235 fi
9236
9237 # The presence of a feature test macro requesting re-entrant function
9238 # definitions is, on some systems, a strong hint that pthreads support is
9239 # correctly enabled
9240
9241 case $host_os in
9242 darwin* | hpux* | linux* | osf* | solaris*)
9243 ax_pthread_check_macro="_REENTRANT"
9244 ;;
9245
9246 aix*)
9247 ax_pthread_check_macro="_THREAD_SAFE"
9248 ;;
9249
9250 *)
9251 ax_pthread_check_macro="--"
9252 ;;
9253 esac
9254 if test "x$ax_pthread_check_macro" = "x--"; then :
9255 ax_pthread_check_cond=0
9256 else
9257 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9258 fi
9259
9260 # Are we compiling with Clang?
9261
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9263 $as_echo_n "checking whether $CC is Clang... " >&6; }
9264 if ${ax_cv_PTHREAD_CLANG+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 ax_cv_PTHREAD_CLANG=no
9268 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9269 if test "x$GCC" = "xyes"; then
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9273 # if defined(__clang__) && defined(__llvm__)
9274 AX_PTHREAD_CC_IS_CLANG
9275 # endif
9276
9277 _ACEOF
9278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9279 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
9280 ax_cv_PTHREAD_CLANG=yes
9281 fi
9282 rm -f conftest*
9283
9284 fi
9285
9286 fi
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9288 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9289 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
9290
9291 ax_pthread_clang_warning=no
9292
9293 # Clang needs special handling, because older versions handle the -pthread
9294 # option in a rather... idiosyncratic way
9295
9296 if test "x$ax_pthread_clang" = "xyes"; then
9297
9298 # Clang takes -pthread; it has never supported any other flag
9299
9300 # (Note 1: This will need to be revisited if a system that Clang
9301 # supports has POSIX threads in a separate library. This tends not
9302 # to be the way of modern systems, but it's conceivable.)
9303
9304 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9305 # to get POSIX threads support; the API is always present and
9306 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9307 # -pthread does define _REENTRANT, and while the Darwin headers
9308 # ignore this macro, third-party headers might not.)
9309
9310 PTHREAD_CFLAGS="-pthread"
9311 PTHREAD_LIBS=
9312
9313 ax_pthread_ok=yes
9314
9315 # However, older versions of Clang make a point of warning the user
9316 # that, in an invocation where only linking and no compilation is
9317 # taking place, the -pthread option has no effect ("argument unused
9318 # during compilation"). They expect -pthread to be passed in only
9319 # when source code is being compiled.
9320 #
9321 # Problem is, this is at odds with the way Automake and most other
9322 # C build frameworks function, which is that the same flags used in
9323 # compilation (CFLAGS) are also used in linking. Many systems
9324 # supported by AX_PTHREAD require exactly this for POSIX threads
9325 # support, and in fact it is often not straightforward to specify a
9326 # flag that is used only in the compilation phase and not in
9327 # linking. Such a scenario is extremely rare in practice.
9328 #
9329 # Even though use of the -pthread flag in linking would only print
9330 # a warning, this can be a nuisance for well-run software projects
9331 # that build with -Werror. So if the active version of Clang has
9332 # this misfeature, we search for an option to squash it.
9333
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9335 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9336 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
9340 # Create an alternate version of $ac_link that compiles and
9341 # links in two steps (.c -> .o, .o -> exe) instead of one
9342 # (.c -> exe), because the warning occurs only in the second
9343 # step
9344 ax_pthread_save_ac_link="$ac_link"
9345 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9346 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9347 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9348 ax_pthread_save_CFLAGS="$CFLAGS"
9349 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
9350 if test "x$ax_pthread_try" = "xunknown"; then :
9351 break
9352 fi
9353 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9354 ac_link="$ax_pthread_save_ac_link"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 int main(void){return 0;}
9358 _ACEOF
9359 if ac_fn_c_try_link "$LINENO"; then :
9360 ac_link="$ax_pthread_2step_ac_link"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int main(void){return 0;}
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366 break
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
9370
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9374 done
9375 ac_link="$ax_pthread_save_ac_link"
9376 CFLAGS="$ax_pthread_save_CFLAGS"
9377 if test "x$ax_pthread_try" = "x"; then :
9378 ax_pthread_try=no
9379 fi
9380 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
9381
9382 fi
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9384 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9385
9386 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9387 no | unknown) ;;
9388 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9389 esac
9390
9391 fi # $ax_pthread_clang = yes
9392
9393 if test "x$ax_pthread_ok" = "xno"; then
9394 for ax_pthread_try_flag in $ax_pthread_flags; do
9395
9396 case $ax_pthread_try_flag in
9397 none)
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9399 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9400 ;;
9401
9402 -mt,pthread)
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9404 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9405 PTHREAD_CFLAGS="-mt"
9406 PTHREAD_LIBS="-lpthread"
9407 ;;
9408
9409 -*)
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9411 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9412 PTHREAD_CFLAGS="$ax_pthread_try_flag"
9413 ;;
9414
9415 pthread-config)
9416 # Extract the first word of "pthread-config", so it can be a program name with args.
9417 set dummy pthread-config; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if ${ac_cv_prog_ax_pthread_config+:} false; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test -n "$ax_pthread_config"; then
9424 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433 ac_cv_prog_ax_pthread_config="yes"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9436 fi
9437 done
9438 done
9439 IFS=$as_save_IFS
9440
9441 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9442 fi
9443 fi
9444 ax_pthread_config=$ac_cv_prog_ax_pthread_config
9445 if test -n "$ax_pthread_config"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9447 $as_echo "$ax_pthread_config" >&6; }
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452
9453
9454 if test "x$ax_pthread_config" = "xno"; then :
9455 continue
9456 fi
9457 PTHREAD_CFLAGS="`pthread-config --cflags`"
9458 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9459 ;;
9460
9461 *)
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9463 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9464 PTHREAD_LIBS="-l$ax_pthread_try_flag"
9465 ;;
9466 esac
9467
9468 ax_pthread_save_CFLAGS="$CFLAGS"
9469 ax_pthread_save_LIBS="$LIBS"
9470 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9471 LIBS="$PTHREAD_LIBS $LIBS"
9472
9473 # Check for various functions. We must include pthread.h,
9474 # since some functions may be macros. (On the Sequent, we
9475 # need a special flag -Kthread to make this header compile.)
9476 # We check for pthread_join because it is in -lpthread on IRIX
9477 # while pthread_create is in libc. We check for pthread_attr_init
9478 # due to DEC craziness with -lpthreads. We check for
9479 # pthread_cleanup_push because it is one of the few pthread
9480 # functions on Solaris that doesn't have a non-functional libc stub.
9481 # We try pthread_create on general principles.
9482
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <pthread.h>
9486 # if $ax_pthread_check_cond
9487 # error "$ax_pthread_check_macro must be defined"
9488 # endif
9489 static void routine(void *a) { a = 0; }
9490 static void *start_routine(void *a) { return a; }
9491 int
9492 main ()
9493 {
9494 pthread_t th; pthread_attr_t attr;
9495 pthread_create(&th, 0, start_routine, 0);
9496 pthread_join(th, 0);
9497 pthread_attr_init(&attr);
9498 pthread_cleanup_push(routine, 0);
9499 pthread_cleanup_pop(0) /* ; */
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"; then :
9505 ax_pthread_ok=yes
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509
9510 CFLAGS="$ax_pthread_save_CFLAGS"
9511 LIBS="$ax_pthread_save_LIBS"
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9514 $as_echo "$ax_pthread_ok" >&6; }
9515 if test "x$ax_pthread_ok" = "xyes"; then :
9516 break
9517 fi
9518
9519 PTHREAD_LIBS=""
9520 PTHREAD_CFLAGS=""
9521 done
9522 fi
9523
9524 # Various other checks:
9525 if test "x$ax_pthread_ok" = "xyes"; then
9526 ax_pthread_save_CFLAGS="$CFLAGS"
9527 ax_pthread_save_LIBS="$LIBS"
9528 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9529 LIBS="$PTHREAD_LIBS $LIBS"
9530
9531 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9533 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9534 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
9538 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #include <pthread.h>
9542 int
9543 main ()
9544 {
9545 int attr = $ax_pthread_attr; return attr /* ; */
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555 done
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9559 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9560 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9561 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9562 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9563
9564 cat >>confdefs.h <<_ACEOF
9565 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9566 _ACEOF
9567
9568 ax_pthread_joinable_attr_defined=yes
9569
9570 fi
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9573 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9574 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 ax_cv_PTHREAD_SPECIAL_FLAGS=no
9578 case $host_os in
9579 solaris*)
9580 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
9581 ;;
9582 esac
9583
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9586 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9587 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9588 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9589 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9590 ax_pthread_special_flags_added=yes
9591 fi
9592
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9594 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9595 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 #include <pthread.h>
9601 int
9602 main ()
9603 {
9604 int i = PTHREAD_PRIO_INHERIT;
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"; then :
9610 ax_cv_PTHREAD_PRIO_INHERIT=yes
9611 else
9612 ax_cv_PTHREAD_PRIO_INHERIT=no
9613 fi
9614 rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616
9617 fi
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9619 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9620 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9621 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9622
9623 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9624
9625 ax_pthread_prio_inherit_defined=yes
9626
9627 fi
9628
9629 CFLAGS="$ax_pthread_save_CFLAGS"
9630 LIBS="$ax_pthread_save_LIBS"
9631
9632 # More AIX lossage: compile with *_r variant
9633 if test "x$GCC" != "xyes"; then
9634 case $host_os in
9635 aix*)
9636 case "x/$CC" in #(
9637 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
9638 #handle absolute path differently from PATH based program lookup
9639 case "x$CC" in #(
9640 x/*) :
9641 if as_fn_executable_p ${CC}_r; then :
9642 PTHREAD_CC="${CC}_r"
9643 fi ;; #(
9644 *) :
9645 for ac_prog in ${CC}_r
9646 do
9647 # Extract the first word of "$ac_prog", so it can be a program name with args.
9648 set dummy $ac_prog; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test -n "$PTHREAD_CC"; then
9655 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9659 do
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_prog_PTHREAD_CC="$ac_prog"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9667 fi
9668 done
9669 done
9670 IFS=$as_save_IFS
9671
9672 fi
9673 fi
9674 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9675 if test -n "$PTHREAD_CC"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9677 $as_echo "$PTHREAD_CC" >&6; }
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9681 fi
9682
9683
9684 test -n "$PTHREAD_CC" && break
9685 done
9686 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9687 ;;
9688 esac ;; #(
9689 *) :
9690 ;;
9691 esac
9692 ;;
9693 esac
9694 fi
9695 fi
9696
9697 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
9698
9699
9700
9701
9702
9703 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9704 if test "x$ax_pthread_ok" = "xyes"; then
9705 threads=yes
9706 :
9707 else
9708 ax_pthread_ok=no
9709 threads=no
9710 fi
9711 ac_ext=cpp
9712 ac_cpp='$CXXCPP $CPPFLAGS'
9713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9716
9717
9718 if test "$threads" = "yes"; then
9719 save_LIBS="$LIBS"
9720 LIBS="$PTHREAD_LIBS $LIBS"
9721 save_CXXFLAGS="$CXXFLAGS"
9722 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
9724 $as_echo_n "checking for std::thread... " >&6; }
9725 if ${gdb_cv_cxx_std_thread+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #include <thread>
9731 void callback() { }
9732 int
9733 main ()
9734 {
9735 std::thread t(callback);
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_cxx_try_compile "$LINENO"; then :
9741 gdb_cv_cxx_std_thread=yes
9742 else
9743 gdb_cv_cxx_std_thread=no
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
9748 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
9749
9750 # This check must be here, while LIBS includes any necessary
9751 # threading library.
9752 for ac_func in pthread_sigmask pthread_setname_np
9753 do :
9754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9755 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9756 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9757 cat >>confdefs.h <<_ACEOF
9758 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9759 _ACEOF
9760
9761 fi
9762 done
9763
9764
9765 LIBS="$save_LIBS"
9766 CXXFLAGS="$save_CXXFLAGS"
9767 fi
9768
9769 if test "$want_threading" = "yes"; then
9770 if test "$gdb_cv_cxx_std_thread" = "yes"; then
9771
9772 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
9773
9774 fi
9775 fi
9776 ac_ext=c
9777 ac_cpp='$CPP $CPPFLAGS'
9778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781
9782
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
9784 $as_echo_n "checking for sigsetjmp... " >&6; }
9785 if ${gdb_cv_func_sigsetjmp+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790
9791 #include <setjmp.h>
9792
9793 int
9794 main ()
9795 {
9796 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
9797 ;
9798 return 0;
9799 }
9800 _ACEOF
9801 if ac_fn_c_try_compile "$LINENO"; then :
9802 gdb_cv_func_sigsetjmp=yes
9803 else
9804 gdb_cv_func_sigsetjmp=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9807 fi
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
9809 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
9810 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
9811
9812 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
9813
9814 fi
9815
9816
9817 # Check whether --with-intel_pt was given.
9818 if test "${with_intel_pt+set}" = set; then :
9819 withval=$with_intel_pt;
9820 else
9821 with_intel_pt=auto
9822 fi
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
9825 $as_echo_n "checking whether to use intel pt... " >&6; }
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
9827 $as_echo "$with_intel_pt" >&6; }
9828
9829 if test "${with_intel_pt}" = no; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
9831 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
9832 HAVE_LIBIPT=no
9833 else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836
9837 #include <linux/perf_event.h>
9838 #ifndef PERF_ATTR_SIZE_VER5
9839 # error
9840 #endif
9841
9842 _ACEOF
9843 if ac_fn_c_try_cpp "$LINENO"; then :
9844 perf_event=yes
9845 else
9846 perf_event=no
9847 fi
9848 rm -f conftest.err conftest.i conftest.$ac_ext
9849 if test "$perf_event" != yes; then
9850 if test "$with_intel_pt" = yes; then
9851 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
9854 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
9855 fi
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866 use_additional=yes
9867
9868 acl_save_prefix="$prefix"
9869 prefix="$acl_final_prefix"
9870 acl_save_exec_prefix="$exec_prefix"
9871 exec_prefix="$acl_final_exec_prefix"
9872
9873 eval additional_includedir=\"$includedir\"
9874 eval additional_libdir=\"$libdir\"
9875
9876 exec_prefix="$acl_save_exec_prefix"
9877 prefix="$acl_save_prefix"
9878
9879
9880 # Check whether --with-libipt-prefix was given.
9881 if test "${with_libipt_prefix+set}" = set; then :
9882 withval=$with_libipt_prefix;
9883 if test "X$withval" = "Xno"; then
9884 use_additional=no
9885 else
9886 if test "X$withval" = "X"; then
9887
9888 acl_save_prefix="$prefix"
9889 prefix="$acl_final_prefix"
9890 acl_save_exec_prefix="$exec_prefix"
9891 exec_prefix="$acl_final_exec_prefix"
9892
9893 eval additional_includedir=\"$includedir\"
9894 eval additional_libdir=\"$libdir\"
9895
9896 exec_prefix="$acl_save_exec_prefix"
9897 prefix="$acl_save_prefix"
9898
9899 else
9900 additional_includedir="$withval/include"
9901 additional_libdir="$withval/lib"
9902 fi
9903 fi
9904
9905 fi
9906
9907
9908 # Check whether --with-libipt-type was given.
9909 if test "${with_libipt_type+set}" = set; then :
9910 withval=$with_libipt_type; with_libipt_type=$withval
9911 else
9912 with_libipt_type=auto
9913 fi
9914
9915 lib_type=`eval echo \$with_libipt_type`
9916
9917 LIBIPT=
9918 LTLIBIPT=
9919 INCIPT=
9920 rpathdirs=
9921 ltrpathdirs=
9922 names_already_handled=
9923 names_next_round='ipt '
9924 while test -n "$names_next_round"; do
9925 names_this_round="$names_next_round"
9926 names_next_round=
9927 for name in $names_this_round; do
9928 already_handled=
9929 for n in $names_already_handled; do
9930 if test "$n" = "$name"; then
9931 already_handled=yes
9932 break
9933 fi
9934 done
9935 if test -z "$already_handled"; then
9936 names_already_handled="$names_already_handled $name"
9937 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9938 eval value=\"\$HAVE_LIB$uppername\"
9939 if test -n "$value"; then
9940 if test "$value" = yes; then
9941 eval value=\"\$LIB$uppername\"
9942 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
9943 eval value=\"\$LTLIB$uppername\"
9944 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
9945 else
9946 :
9947 fi
9948 else
9949 found_dir=
9950 found_la=
9951 found_so=
9952 found_a=
9953 if test $use_additional = yes; then
9954 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9955 found_dir="$additional_libdir"
9956 found_so="$additional_libdir/lib$name.$shlibext"
9957 if test -f "$additional_libdir/lib$name.la"; then
9958 found_la="$additional_libdir/lib$name.la"
9959 fi
9960 elif test x$lib_type != xshared; then
9961 if test -f "$additional_libdir/lib$name.$libext"; then
9962 found_dir="$additional_libdir"
9963 found_a="$additional_libdir/lib$name.$libext"
9964 if test -f "$additional_libdir/lib$name.la"; then
9965 found_la="$additional_libdir/lib$name.la"
9966 fi
9967 fi
9968 fi
9969 fi
9970 if test "X$found_dir" = "X"; then
9971 for x in $LDFLAGS $LTLIBIPT; do
9972
9973 acl_save_prefix="$prefix"
9974 prefix="$acl_final_prefix"
9975 acl_save_exec_prefix="$exec_prefix"
9976 exec_prefix="$acl_final_exec_prefix"
9977 eval x=\"$x\"
9978 exec_prefix="$acl_save_exec_prefix"
9979 prefix="$acl_save_prefix"
9980
9981 case "$x" in
9982 -L*)
9983 dir=`echo "X$x" | sed -e 's/^X-L//'`
9984 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9985 found_dir="$dir"
9986 found_so="$dir/lib$name.$shlibext"
9987 if test -f "$dir/lib$name.la"; then
9988 found_la="$dir/lib$name.la"
9989 fi
9990 elif test x$lib_type != xshared; then
9991 if test -f "$dir/lib$name.$libext"; then
9992 found_dir="$dir"
9993 found_a="$dir/lib$name.$libext"
9994 if test -f "$dir/lib$name.la"; then
9995 found_la="$dir/lib$name.la"
9996 fi
9997 fi
9998 fi
9999 ;;
10000 esac
10001 if test "X$found_dir" != "X"; then
10002 break
10003 fi
10004 done
10005 fi
10006 if test "X$found_dir" != "X"; then
10007 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10008 if test "X$found_so" != "X"; then
10009 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10010 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10011 else
10012 haveit=
10013 for x in $ltrpathdirs; do
10014 if test "X$x" = "X$found_dir"; then
10015 haveit=yes
10016 break
10017 fi
10018 done
10019 if test -z "$haveit"; then
10020 ltrpathdirs="$ltrpathdirs $found_dir"
10021 fi
10022 if test "$hardcode_direct" = yes; then
10023 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10024 else
10025 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10026 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10027 haveit=
10028 for x in $rpathdirs; do
10029 if test "X$x" = "X$found_dir"; then
10030 haveit=yes
10031 break
10032 fi
10033 done
10034 if test -z "$haveit"; then
10035 rpathdirs="$rpathdirs $found_dir"
10036 fi
10037 else
10038 haveit=
10039 for x in $LDFLAGS $LIBIPT; do
10040
10041 acl_save_prefix="$prefix"
10042 prefix="$acl_final_prefix"
10043 acl_save_exec_prefix="$exec_prefix"
10044 exec_prefix="$acl_final_exec_prefix"
10045 eval x=\"$x\"
10046 exec_prefix="$acl_save_exec_prefix"
10047 prefix="$acl_save_prefix"
10048
10049 if test "X$x" = "X-L$found_dir"; then
10050 haveit=yes
10051 break
10052 fi
10053 done
10054 if test -z "$haveit"; then
10055 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10056 fi
10057 if test "$hardcode_minus_L" != no; then
10058 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
10059 else
10060 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10061 fi
10062 fi
10063 fi
10064 fi
10065 else
10066 if test "X$found_a" != "X"; then
10067 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
10068 else
10069 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10070 fi
10071 fi
10072 additional_includedir=
10073 case "$found_dir" in
10074 */lib | */lib/)
10075 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10076 additional_includedir="$basedir/include"
10077 ;;
10078 esac
10079 if test "X$additional_includedir" != "X"; then
10080 if test "X$additional_includedir" != "X/usr/include"; then
10081 haveit=
10082 if test "X$additional_includedir" = "X/usr/local/include"; then
10083 if test -n "$GCC"; then
10084 case $host_os in
10085 linux*) haveit=yes;;
10086 esac
10087 fi
10088 fi
10089 if test -z "$haveit"; then
10090 for x in $CPPFLAGS $INCIPT; do
10091
10092 acl_save_prefix="$prefix"
10093 prefix="$acl_final_prefix"
10094 acl_save_exec_prefix="$exec_prefix"
10095 exec_prefix="$acl_final_exec_prefix"
10096 eval x=\"$x\"
10097 exec_prefix="$acl_save_exec_prefix"
10098 prefix="$acl_save_prefix"
10099
10100 if test "X$x" = "X-I$additional_includedir"; then
10101 haveit=yes
10102 break
10103 fi
10104 done
10105 if test -z "$haveit"; then
10106 if test -d "$additional_includedir"; then
10107 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10108 fi
10109 fi
10110 fi
10111 fi
10112 fi
10113 if test -n "$found_la"; then
10114 save_libdir="$libdir"
10115 case "$found_la" in
10116 */* | *\\*) . "$found_la" ;;
10117 *) . "./$found_la" ;;
10118 esac
10119 libdir="$save_libdir"
10120 for dep in $dependency_libs; do
10121 case "$dep" in
10122 -L*)
10123 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10124 if test "X$additional_libdir" != "X/usr/lib"; then
10125 haveit=
10126 if test "X$additional_libdir" = "X/usr/local/lib"; then
10127 if test -n "$GCC"; then
10128 case $host_os in
10129 linux*) haveit=yes;;
10130 esac
10131 fi
10132 fi
10133 if test -z "$haveit"; then
10134 haveit=
10135 for x in $LDFLAGS $LIBIPT; do
10136
10137 acl_save_prefix="$prefix"
10138 prefix="$acl_final_prefix"
10139 acl_save_exec_prefix="$exec_prefix"
10140 exec_prefix="$acl_final_exec_prefix"
10141 eval x=\"$x\"
10142 exec_prefix="$acl_save_exec_prefix"
10143 prefix="$acl_save_prefix"
10144
10145 if test "X$x" = "X-L$additional_libdir"; then
10146 haveit=yes
10147 break
10148 fi
10149 done
10150 if test -z "$haveit"; then
10151 if test -d "$additional_libdir"; then
10152 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10153 fi
10154 fi
10155 haveit=
10156 for x in $LDFLAGS $LTLIBIPT; do
10157
10158 acl_save_prefix="$prefix"
10159 prefix="$acl_final_prefix"
10160 acl_save_exec_prefix="$exec_prefix"
10161 exec_prefix="$acl_final_exec_prefix"
10162 eval x=\"$x\"
10163 exec_prefix="$acl_save_exec_prefix"
10164 prefix="$acl_save_prefix"
10165
10166 if test "X$x" = "X-L$additional_libdir"; then
10167 haveit=yes
10168 break
10169 fi
10170 done
10171 if test -z "$haveit"; then
10172 if test -d "$additional_libdir"; then
10173 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10174 fi
10175 fi
10176 fi
10177 fi
10178 ;;
10179 -R*)
10180 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10181 if test "$enable_rpath" != no; then
10182 haveit=
10183 for x in $rpathdirs; do
10184 if test "X$x" = "X$dir"; then
10185 haveit=yes
10186 break
10187 fi
10188 done
10189 if test -z "$haveit"; then
10190 rpathdirs="$rpathdirs $dir"
10191 fi
10192 haveit=
10193 for x in $ltrpathdirs; do
10194 if test "X$x" = "X$dir"; then
10195 haveit=yes
10196 break
10197 fi
10198 done
10199 if test -z "$haveit"; then
10200 ltrpathdirs="$ltrpathdirs $dir"
10201 fi
10202 fi
10203 ;;
10204 -l*)
10205 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10206 ;;
10207 *.la)
10208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10209 ;;
10210 *)
10211 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
10212 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10213 ;;
10214 esac
10215 done
10216 fi
10217 else
10218 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10219 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
10220 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10221 else
10222 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
10223 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
10224 fi
10225 fi
10226 fi
10227 fi
10228 done
10229 done
10230 if test "X$rpathdirs" != "X"; then
10231 if test -n "$hardcode_libdir_separator"; then
10232 alldirs=
10233 for found_dir in $rpathdirs; do
10234 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10235 done
10236 acl_save_libdir="$libdir"
10237 libdir="$alldirs"
10238 eval flag=\"$hardcode_libdir_flag_spec\"
10239 libdir="$acl_save_libdir"
10240 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10241 else
10242 for found_dir in $rpathdirs; do
10243 acl_save_libdir="$libdir"
10244 libdir="$found_dir"
10245 eval flag=\"$hardcode_libdir_flag_spec\"
10246 libdir="$acl_save_libdir"
10247 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
10248 done
10249 fi
10250 fi
10251 if test "X$ltrpathdirs" != "X"; then
10252 for found_dir in $ltrpathdirs; do
10253 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10254 done
10255 fi
10256
10257
10258 ac_save_CPPFLAGS="$CPPFLAGS"
10259
10260 for element in $INCIPT; do
10261 haveit=
10262 for x in $CPPFLAGS; do
10263
10264 acl_save_prefix="$prefix"
10265 prefix="$acl_final_prefix"
10266 acl_save_exec_prefix="$exec_prefix"
10267 exec_prefix="$acl_final_exec_prefix"
10268 eval x=\"$x\"
10269 exec_prefix="$acl_save_exec_prefix"
10270 prefix="$acl_save_prefix"
10271
10272 if test "X$x" = "X$element"; then
10273 haveit=yes
10274 break
10275 fi
10276 done
10277 if test -z "$haveit"; then
10278 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10279 fi
10280 done
10281
10282
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10284 $as_echo_n "checking for libipt... " >&6; }
10285 if ${ac_cv_libipt+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288
10289 ac_save_LIBS="$LIBS"
10290 LIBS="$LIBS $LIBIPT"
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include "intel-pt.h"
10294 int
10295 main ()
10296 {
10297 pt_insn_alloc_decoder (0);
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 ac_cv_libipt=yes
10304 else
10305 ac_cv_libipt=no
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS="$ac_save_LIBS"
10310
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10313 $as_echo "$ac_cv_libipt" >&6; }
10314 if test "$ac_cv_libipt" = yes; then
10315 HAVE_LIBIPT=yes
10316
10317 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10318
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10320 $as_echo_n "checking how to link with libipt... " >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10322 $as_echo "$LIBIPT" >&6; }
10323 else
10324 HAVE_LIBIPT=no
10325 CPPFLAGS="$ac_save_CPPFLAGS"
10326 LIBIPT=
10327 LTLIBIPT=
10328 fi
10329
10330
10331
10332
10333
10334
10335 if test "$HAVE_LIBIPT" != yes; then
10336 if test "$with_intel_pt" = yes; then
10337 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10340 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10341 fi
10342 else
10343 save_LIBS=$LIBS
10344 LIBS="$LIBS $LIBIPT"
10345 for ac_func in pt_insn_event
10346 do :
10347 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
10348 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_PT_INSN_EVENT 1
10351 _ACEOF
10352
10353 fi
10354 done
10355
10356 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
10357 "
10358 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
10359
10360 cat >>confdefs.h <<_ACEOF
10361 #define HAVE_STRUCT_PT_INSN_ENABLED 1
10362 _ACEOF
10363
10364
10365 fi
10366 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
10367 "
10368 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
10369
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
10372 _ACEOF
10373
10374
10375 fi
10376
10377 LIBS=$save_LIBS
10378 fi
10379 fi
10380
10381
10382 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
10383
10384 for ac_header in sys/procfs.h
10385 do :
10386 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
10387 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE_SYS_PROCFS_H 1
10390 _ACEOF
10391
10392 fi
10393
10394 done
10395
10396 if test "$ac_cv_header_sys_procfs_h" = yes; then
10397
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10399 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10400 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405
10406 #define _SYSCALL32
10407 #include <sys/procfs.h>
10408 int
10409 main ()
10410 {
10411 gregset_t avar
10412 ;
10413 return 0;
10414 }
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10417 bfd_cv_have_sys_procfs_type_gregset_t=yes
10418 else
10419 bfd_cv_have_sys_procfs_type_gregset_t=no
10420
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423 fi
10424
10425 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10426
10427 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10428
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10431 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10432
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10435 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10436 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441
10442 #define _SYSCALL32
10443 #include <sys/procfs.h>
10444 int
10445 main ()
10446 {
10447 fpregset_t avar
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10454 else
10455 bfd_cv_have_sys_procfs_type_fpregset_t=no
10456
10457 fi
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 fi
10460
10461 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10462
10463 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10464
10465 fi
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10467 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10471 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10472 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477
10478 #define _SYSCALL32
10479 #include <sys/procfs.h>
10480 int
10481 main ()
10482 {
10483 prgregset_t avar
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_compile "$LINENO"; then :
10489 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10490 else
10491 bfd_cv_have_sys_procfs_type_prgregset_t=no
10492
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495 fi
10496
10497 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10498
10499 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10500
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10503 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10504
10505
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10507 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10508 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513
10514 #define _SYSCALL32
10515 #include <sys/procfs.h>
10516 int
10517 main ()
10518 {
10519 prfpregset_t avar
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 if ac_fn_c_try_compile "$LINENO"; then :
10525 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10526 else
10527 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10528
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 fi
10532
10533 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10534
10535 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10536
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10539 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10540
10541
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10543 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10544 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549
10550 #define _SYSCALL32
10551 #include <sys/procfs.h>
10552 int
10553 main ()
10554 {
10555 prgregset32_t avar
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_compile "$LINENO"; then :
10561 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10562 else
10563 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10564
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 fi
10568
10569 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10570
10571 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10572
10573 fi
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10575 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10576
10577
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10579 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10580 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585
10586 #define _SYSCALL32
10587 #include <sys/procfs.h>
10588 int
10589 main ()
10590 {
10591 lwpid_t avar
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 if ac_fn_c_try_compile "$LINENO"; then :
10597 bfd_cv_have_sys_procfs_type_lwpid_t=yes
10598 else
10599 bfd_cv_have_sys_procfs_type_lwpid_t=no
10600
10601 fi
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 fi
10604
10605 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
10606
10607 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
10608
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
10611 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
10612
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
10615 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
10616 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621
10622 #define _SYSCALL32
10623 #include <sys/procfs.h>
10624 int
10625 main ()
10626 {
10627 psaddr_t avar
10628 ;
10629 return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633 bfd_cv_have_sys_procfs_type_psaddr_t=yes
10634 else
10635 bfd_cv_have_sys_procfs_type_psaddr_t=no
10636
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10639 fi
10640
10641 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
10642
10643 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
10644
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
10647 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
10648
10649
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
10651 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
10652 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657
10658 #define _SYSCALL32
10659 #include <sys/procfs.h>
10660 int
10661 main ()
10662 {
10663 elf_fpregset_t avar
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_compile "$LINENO"; then :
10669 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
10670 else
10671 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
10672
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 fi
10676
10677 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
10678
10679 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
10680
10681 fi
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
10683 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
10684
10685 fi
10686
10687
10688 # Check whether we will enable the inclusion of unit tests when
10689 # compiling GDB.
10690 #
10691 # The default value of this option changes depending whether we're on
10692 # development mode (in which case it's "true") or not (in which case
10693 # it's "false"). The $development variable is set by the GDB_AC_COMMON
10694 # macro, which must therefore be used before GDB_AC_SELFTEST.
10695
10696 if test "x$development" != xtrue && test "x$development" != xfalse; then :
10697 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
10698 fi
10699
10700 # Check whether --enable-unit-tests was given.
10701 if test "${enable_unit_tests+set}" = set; then :
10702 enableval=$enable_unit_tests; case "${enableval}" in
10703 yes) enable_unittests=true ;;
10704 no) enable_unittests=false ;;
10705 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
10706 esac
10707 else
10708 enable_unittests=$development
10709 fi
10710
10711
10712 if $enable_unittests; then
10713
10714 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
10715
10716
10717 fi
10718
10719 if $enable_unittests; then
10720 SELFTEST_TRUE=
10721 SELFTEST_FALSE='#'
10722 else
10723 SELFTEST_TRUE='#'
10724 SELFTEST_FALSE=
10725 fi
10726
10727
10728 # Check the return and argument types of ptrace.
10729
10730
10731 for ac_header in sys/ptrace.h ptrace.h
10732 do :
10733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10736 cat >>confdefs.h <<_ACEOF
10737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738 _ACEOF
10739
10740 fi
10741
10742 done
10743
10744
10745 gdb_ptrace_headers='
10746 #include <sys/types.h>
10747 #if HAVE_SYS_PTRACE_H
10748 # include <sys/ptrace.h>
10749 #endif
10750 #if HAVE_UNISTD_H
10751 # include <unistd.h>
10752 #endif
10753 '
10754
10755 # Check return type. Varargs (used on GNU/Linux) conflict with the
10756 # empty argument list, so check for that explicitly.
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10758 $as_echo_n "checking return type of ptrace... " >&6; }
10759 if ${gdb_cv_func_ptrace_ret+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 $gdb_ptrace_headers
10765 int
10766 main ()
10767 {
10768 extern long ptrace (enum __ptrace_request, ...);
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_compile "$LINENO"; then :
10774 gdb_cv_func_ptrace_ret='long'
10775 else
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 $gdb_ptrace_headers
10779 int
10780 main ()
10781 {
10782 extern int ptrace ();
10783 ;
10784 return 0;
10785 }
10786 _ACEOF
10787 if ac_fn_c_try_compile "$LINENO"; then :
10788 gdb_cv_func_ptrace_ret='int'
10789 else
10790 gdb_cv_func_ptrace_ret='long'
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10797 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10798
10799 cat >>confdefs.h <<_ACEOF
10800 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10801 _ACEOF
10802
10803 # Check argument types.
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10805 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10806 if ${gdb_cv_func_ptrace_args+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 $gdb_ptrace_headers
10813 int
10814 main ()
10815 {
10816 extern long ptrace (enum __ptrace_request, ...);
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 if ac_fn_c_try_compile "$LINENO"; then :
10822 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
10823 else
10824
10825 for gdb_arg1 in 'int' 'long'; do
10826 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10827 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10828 for gdb_arg4 in 'int' 'long' 'void *'; do
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831 $gdb_ptrace_headers
10832 int
10833 main ()
10834 {
10835
10836 extern $gdb_cv_func_ptrace_ret
10837 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10838
10839 ;
10840 return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_c_try_compile "$LINENO"; then :
10844 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10845 break 4;
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 for gdb_arg5 in 'int *' 'int' 'long'; do
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 $gdb_ptrace_headers
10852 int
10853 main ()
10854 {
10855
10856 extern $gdb_cv_func_ptrace_ret
10857 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10858
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_compile "$LINENO"; then :
10864
10865 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10866 break 5;
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 done
10870 done
10871 done
10872 done
10873 done
10874 # Provide a safe default value.
10875 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10876
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10881 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10882 ac_save_IFS=$IFS; IFS=','
10883 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10884 IFS=$ac_save_IFS
10885 shift
10886
10887 cat >>confdefs.h <<_ACEOF
10888 #define PTRACE_TYPE_ARG1 $1
10889 _ACEOF
10890
10891
10892 cat >>confdefs.h <<_ACEOF
10893 #define PTRACE_TYPE_ARG3 $3
10894 _ACEOF
10895
10896
10897 cat >>confdefs.h <<_ACEOF
10898 #define PTRACE_TYPE_ARG4 $4
10899 _ACEOF
10900
10901 if test -n "$5"; then
10902
10903 cat >>confdefs.h <<_ACEOF
10904 #define PTRACE_TYPE_ARG5 $5
10905 _ACEOF
10906
10907 fi
10908
10909
10910 # Detect support warning flags.
10911
10912 # Check whether --enable-werror was given.
10913 if test "${enable_werror+set}" = set; then :
10914 enableval=$enable_werror; case "${enableval}" in
10915 yes | y) ERROR_ON_WARNING="yes" ;;
10916 no | n) ERROR_ON_WARNING="no" ;;
10917 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
10918 esac
10919 fi
10920
10921
10922 # Enable -Werror by default when using gcc. Turn it off for releases.
10923 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
10924 ERROR_ON_WARNING=yes
10925 fi
10926
10927 WERROR_CFLAGS=""
10928 if test "${ERROR_ON_WARNING}" = yes ; then
10929 WERROR_CFLAGS="-Werror"
10930 fi
10931
10932 # The options we'll try to enable.
10933 build_warnings="-Wall -Wpointer-arith \
10934 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
10935 -Wno-switch -Wno-char-subscripts \
10936 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
10937 -Wno-sign-compare -Wno-error=maybe-uninitialized \
10938 -Wno-mismatched-tags \
10939 -Wno-error=deprecated-register \
10940 -Wsuggest-override \
10941 -Wimplicit-fallthrough=3 \
10942 -Wduplicated-cond \
10943 -Wshadow=local \
10944 -Wdeprecated-copy \
10945 -Wdeprecated-copy-dtor \
10946 -Wredundant-move \
10947 -Wmissing-declarations \
10948 -Wmissing-prototypes \
10949 -Wstrict-null-sentinel \
10950 "
10951
10952 case "${host}" in
10953 *-*-mingw32*)
10954 # Enable -Wno-format by default when using gcc on mingw since many
10955 # GCC versions complain about %I64.
10956 build_warnings="$build_warnings -Wno-format" ;;
10957 *-*-solaris*)
10958 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
10959 # doesn't understand.
10960 build_warnings="$build_warnings -Wno-unknown-pragmas"
10961 # Solaris 11 <unistd.h> marks vfork deprecated.
10962 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
10963 *)
10964 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
10965 # but there's a special case for this below.
10966 build_warnings="$build_warnings -Wformat-nonliteral" ;;
10967 esac
10968
10969 # Check whether --enable-build-warnings was given.
10970 if test "${enable_build_warnings+set}" = set; then :
10971 enableval=$enable_build_warnings; case "${enableval}" in
10972 yes) ;;
10973 no) build_warnings="-w";;
10974 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10975 build_warnings="${build_warnings} ${t}";;
10976 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10977 build_warnings="${t} ${build_warnings}";;
10978 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10979 esac
10980 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10981 echo "Setting compiler warning flags = $build_warnings" 6>&1
10982 fi
10983 fi
10984 # Check whether --enable-gdb-build-warnings was given.
10985 if test "${enable_gdb_build_warnings+set}" = set; then :
10986 enableval=$enable_gdb_build_warnings; case "${enableval}" in
10987 yes) ;;
10988 no) build_warnings="-w";;
10989 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10990 build_warnings="${build_warnings} ${t}";;
10991 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10992 build_warnings="${t} ${build_warnings}";;
10993 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10994 esac
10995 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10996 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
10997 fi
10998 fi
10999
11000 # The set of warnings supported by a C++ compiler is not the same as
11001 # of the C compiler.
11002 ac_ext=cpp
11003 ac_cpp='$CXXCPP $CPPFLAGS'
11004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11007
11008
11009 WARN_CFLAGS=""
11010 if test "x${build_warnings}" != x -a "x$GCC" = xyes
11011 then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11013 $as_echo_n "checking compiler warning flags... " >&6; }
11014 # Separate out the -Werror flag as some files just cannot be
11015 # compiled with it enabled.
11016 for w in ${build_warnings}; do
11017 # GCC does not complain about -Wno-unknown-warning. Invert
11018 # and test -Wunknown-warning instead.
11019 case $w in
11020 -Wno-*)
11021 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
11022 -Wformat-nonliteral)
11023 # gcc requires -Wformat before -Wformat-nonliteral
11024 # will work, so stick them together.
11025 w="-Wformat $w"
11026 wtest="$w"
11027 ;;
11028 *)
11029 wtest=$w ;;
11030 esac
11031
11032 case $w in
11033 -Werr*) WERROR_CFLAGS=-Werror ;;
11034 *)
11035 # Check whether GCC accepts it.
11036 saved_CFLAGS="$CFLAGS"
11037 CFLAGS="$CFLAGS -Werror $wtest"
11038 saved_CXXFLAGS="$CXXFLAGS"
11039 CXXFLAGS="$CXXFLAGS -Werror $wtest"
11040 if test "x$w" = "x-Wunused-variable"; then
11041 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
11042 # fixed in GCC 4.9. This test is derived from the gdb
11043 # source code that triggered this bug in GCC.
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11046 struct scoped_restore_base {};
11047 struct scoped_restore_tmpl : public scoped_restore_base {
11048 ~scoped_restore_tmpl() {}
11049 };
11050 int
11051 main ()
11052 {
11053 const scoped_restore_base &b = scoped_restore_tmpl();
11054 ;
11055 return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_cxx_try_compile "$LINENO"; then :
11059 WARN_CFLAGS="${WARN_CFLAGS} $w"
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 else
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11065
11066 int
11067 main ()
11068 {
11069
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 if ac_fn_cxx_try_compile "$LINENO"; then :
11075 WARN_CFLAGS="${WARN_CFLAGS} $w"
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 fi
11079 CFLAGS="$saved_CFLAGS"
11080 CXXFLAGS="$saved_CXXFLAGS"
11081 esac
11082 done
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11084 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11085 fi
11086
11087
11088
11089 ac_ext=c
11090 ac_cpp='$CPP $CPPFLAGS'
11091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11094
11095
11096
11097 TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
11098
11099 cat >>confdefs.h <<_ACEOF
11100 #define TARGET_WORD_SIZE $TARGET_WORD_SIZE
11101 _ACEOF
11102
11103
11104 case ${host} in
11105 *mingw32*)
11106
11107 $as_echo "#define USE_WIN32API 1" >>confdefs.h
11108
11109 ;;
11110 esac
11111
11112 ac_config_files="$ac_config_files Makefile"
11113
11114 cat >confcache <<\_ACEOF
11115 # This file is a shell script that caches the results of configure
11116 # tests run on this system so they can be shared between configure
11117 # scripts and configure runs, see configure's option --config-cache.
11118 # It is not useful on other systems. If it contains results you don't
11119 # want to keep, you may remove or edit it.
11120 #
11121 # config.status only pays attention to the cache file if you give it
11122 # the --recheck option to rerun configure.
11123 #
11124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11126 # following values.
11127
11128 _ACEOF
11129
11130 # The following way of writing the cache mishandles newlines in values,
11131 # but we know of no workaround that is simple, portable, and efficient.
11132 # So, we kill variables containing newlines.
11133 # Ultrix sh set writes to stderr and can't be redirected directly,
11134 # and sets the high bit in the cache file unless we assign to the vars.
11135 (
11136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11137 eval ac_val=\$$ac_var
11138 case $ac_val in #(
11139 *${as_nl}*)
11140 case $ac_var in #(
11141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11143 esac
11144 case $ac_var in #(
11145 _ | IFS | as_nl) ;; #(
11146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11147 *) { eval $ac_var=; unset $ac_var;} ;;
11148 esac ;;
11149 esac
11150 done
11151
11152 (set) 2>&1 |
11153 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11154 *${as_nl}ac_space=\ *)
11155 # `set' does not quote correctly, so add quotes: double-quote
11156 # substitution turns \\\\ into \\, and sed turns \\ into \.
11157 sed -n \
11158 "s/'/'\\\\''/g;
11159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11160 ;; #(
11161 *)
11162 # `set' quotes correctly as required by POSIX, so do not add quotes.
11163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11164 ;;
11165 esac |
11166 sort
11167 ) |
11168 sed '
11169 /^ac_cv_env_/b end
11170 t clear
11171 :clear
11172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11173 t end
11174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11175 :end' >>confcache
11176 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11177 if test -w "$cache_file"; then
11178 if test "x$cache_file" != "x/dev/null"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11180 $as_echo "$as_me: updating cache $cache_file" >&6;}
11181 if test ! -f "$cache_file" || test -h "$cache_file"; then
11182 cat confcache >"$cache_file"
11183 else
11184 case $cache_file in #(
11185 */* | ?:*)
11186 mv -f confcache "$cache_file"$$ &&
11187 mv -f "$cache_file"$$ "$cache_file" ;; #(
11188 *)
11189 mv -f confcache "$cache_file" ;;
11190 esac
11191 fi
11192 fi
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11195 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11196 fi
11197 fi
11198 rm -f confcache
11199
11200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11201 # Let make expand exec_prefix.
11202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11203
11204 DEFS=-DHAVE_CONFIG_H
11205
11206 ac_libobjs=
11207 ac_ltlibobjs=
11208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11209 # 1. Remove the extension, and $U if already installed.
11210 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11211 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11212 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11213 # will be set to the directory where LIBOBJS objects are built.
11214 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11215 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11216 done
11217 LIBOBJS=$ac_libobjs
11218
11219 LTLIBOBJS=$ac_ltlibobjs
11220
11221
11222 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11223 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11227 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11228 if test -n "$am_sleep_pid"; then
11229 # Hide warnings about reused PIDs.
11230 wait $am_sleep_pid 2>/dev/null
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11233 $as_echo "done" >&6; }
11234 if test -n "$EXEEXT"; then
11235 am__EXEEXT_TRUE=
11236 am__EXEEXT_FALSE='#'
11237 else
11238 am__EXEEXT_TRUE='#'
11239 am__EXEEXT_FALSE=
11240 fi
11241
11242 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11243 as_fn_error $? "conditional \"AMDEP\" was never defined.
11244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11245 fi
11246 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11247 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11249 fi
11250 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11251 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11253 fi
11254 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11255 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11257 fi
11258 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
11259 as_fn_error $? "conditional \"SELFTEST\" was never defined.
11260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11261 fi
11262
11263 : "${CONFIG_STATUS=./config.status}"
11264 ac_write_fail=0
11265 ac_clean_files_save=$ac_clean_files
11266 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11268 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11269 as_write_fail=0
11270 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11271 #! $SHELL
11272 # Generated by $as_me.
11273 # Run this file to recreate the current configuration.
11274 # Compiler output produced by configure, useful for debugging
11275 # configure, is in config.log if it exists.
11276
11277 debug=false
11278 ac_cs_recheck=false
11279 ac_cs_silent=false
11280
11281 SHELL=\${CONFIG_SHELL-$SHELL}
11282 export SHELL
11283 _ASEOF
11284 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11285 ## -------------------- ##
11286 ## M4sh Initialization. ##
11287 ## -------------------- ##
11288
11289 # Be more Bourne compatible
11290 DUALCASE=1; export DUALCASE # for MKS sh
11291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11292 emulate sh
11293 NULLCMD=:
11294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11295 # is contrary to our usage. Disable this feature.
11296 alias -g '${1+"$@"}'='"$@"'
11297 setopt NO_GLOB_SUBST
11298 else
11299 case `(set -o) 2>/dev/null` in #(
11300 *posix*) :
11301 set -o posix ;; #(
11302 *) :
11303 ;;
11304 esac
11305 fi
11306
11307
11308 as_nl='
11309 '
11310 export as_nl
11311 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11312 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11313 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11315 # Prefer a ksh shell builtin over an external printf program on Solaris,
11316 # but without wasting forks for bash or zsh.
11317 if test -z "$BASH_VERSION$ZSH_VERSION" \
11318 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11319 as_echo='print -r --'
11320 as_echo_n='print -rn --'
11321 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11322 as_echo='printf %s\n'
11323 as_echo_n='printf %s'
11324 else
11325 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11326 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11327 as_echo_n='/usr/ucb/echo -n'
11328 else
11329 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11330 as_echo_n_body='eval
11331 arg=$1;
11332 case $arg in #(
11333 *"$as_nl"*)
11334 expr "X$arg" : "X\\(.*\\)$as_nl";
11335 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11336 esac;
11337 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11338 '
11339 export as_echo_n_body
11340 as_echo_n='sh -c $as_echo_n_body as_echo'
11341 fi
11342 export as_echo_body
11343 as_echo='sh -c $as_echo_body as_echo'
11344 fi
11345
11346 # The user is always right.
11347 if test "${PATH_SEPARATOR+set}" != set; then
11348 PATH_SEPARATOR=:
11349 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11350 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11351 PATH_SEPARATOR=';'
11352 }
11353 fi
11354
11355
11356 # IFS
11357 # We need space, tab and new line, in precisely that order. Quoting is
11358 # there to prevent editors from complaining about space-tab.
11359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11360 # splitting by setting IFS to empty value.)
11361 IFS=" "" $as_nl"
11362
11363 # Find who we are. Look in the path if we contain no directory separator.
11364 as_myself=
11365 case $0 in #((
11366 *[\\/]* ) as_myself=$0 ;;
11367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11369 do
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11373 done
11374 IFS=$as_save_IFS
11375
11376 ;;
11377 esac
11378 # We did not find ourselves, most probably we were run as `sh COMMAND'
11379 # in which case we are not to be found in the path.
11380 if test "x$as_myself" = x; then
11381 as_myself=$0
11382 fi
11383 if test ! -f "$as_myself"; then
11384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11385 exit 1
11386 fi
11387
11388 # Unset variables that we do not need and which cause bugs (e.g. in
11389 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11390 # suppresses any "Segmentation fault" message there. '((' could
11391 # trigger a bug in pdksh 5.2.14.
11392 for as_var in BASH_ENV ENV MAIL MAILPATH
11393 do eval test x\${$as_var+set} = xset \
11394 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11395 done
11396 PS1='$ '
11397 PS2='> '
11398 PS4='+ '
11399
11400 # NLS nuisances.
11401 LC_ALL=C
11402 export LC_ALL
11403 LANGUAGE=C
11404 export LANGUAGE
11405
11406 # CDPATH.
11407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11408
11409
11410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11411 # ----------------------------------------
11412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11414 # script with STATUS, using 1 if that was 0.
11415 as_fn_error ()
11416 {
11417 as_status=$1; test $as_status -eq 0 && as_status=1
11418 if test "$4"; then
11419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11421 fi
11422 $as_echo "$as_me: error: $2" >&2
11423 as_fn_exit $as_status
11424 } # as_fn_error
11425
11426
11427 # as_fn_set_status STATUS
11428 # -----------------------
11429 # Set $? to STATUS, without forking.
11430 as_fn_set_status ()
11431 {
11432 return $1
11433 } # as_fn_set_status
11434
11435 # as_fn_exit STATUS
11436 # -----------------
11437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11438 as_fn_exit ()
11439 {
11440 set +e
11441 as_fn_set_status $1
11442 exit $1
11443 } # as_fn_exit
11444
11445 # as_fn_unset VAR
11446 # ---------------
11447 # Portably unset VAR.
11448 as_fn_unset ()
11449 {
11450 { eval $1=; unset $1;}
11451 }
11452 as_unset=as_fn_unset
11453 # as_fn_append VAR VALUE
11454 # ----------------------
11455 # Append the text in VALUE to the end of the definition contained in VAR. Take
11456 # advantage of any shell optimizations that allow amortized linear growth over
11457 # repeated appends, instead of the typical quadratic growth present in naive
11458 # implementations.
11459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11460 eval 'as_fn_append ()
11461 {
11462 eval $1+=\$2
11463 }'
11464 else
11465 as_fn_append ()
11466 {
11467 eval $1=\$$1\$2
11468 }
11469 fi # as_fn_append
11470
11471 # as_fn_arith ARG...
11472 # ------------------
11473 # Perform arithmetic evaluation on the ARGs, and store the result in the
11474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11475 # must be portable across $(()) and expr.
11476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11477 eval 'as_fn_arith ()
11478 {
11479 as_val=$(( $* ))
11480 }'
11481 else
11482 as_fn_arith ()
11483 {
11484 as_val=`expr "$@" || test $? -eq 1`
11485 }
11486 fi # as_fn_arith
11487
11488
11489 if expr a : '\(a\)' >/dev/null 2>&1 &&
11490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11491 as_expr=expr
11492 else
11493 as_expr=false
11494 fi
11495
11496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11497 as_basename=basename
11498 else
11499 as_basename=false
11500 fi
11501
11502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11503 as_dirname=dirname
11504 else
11505 as_dirname=false
11506 fi
11507
11508 as_me=`$as_basename -- "$0" ||
11509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11510 X"$0" : 'X\(//\)$' \| \
11511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11512 $as_echo X/"$0" |
11513 sed '/^.*\/\([^/][^/]*\)\/*$/{
11514 s//\1/
11515 q
11516 }
11517 /^X\/\(\/\/\)$/{
11518 s//\1/
11519 q
11520 }
11521 /^X\/\(\/\).*/{
11522 s//\1/
11523 q
11524 }
11525 s/.*/./; q'`
11526
11527 # Avoid depending upon Character Ranges.
11528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11531 as_cr_digits='0123456789'
11532 as_cr_alnum=$as_cr_Letters$as_cr_digits
11533
11534 ECHO_C= ECHO_N= ECHO_T=
11535 case `echo -n x` in #(((((
11536 -n*)
11537 case `echo 'xy\c'` in
11538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11539 xy) ECHO_C='\c';;
11540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11541 ECHO_T=' ';;
11542 esac;;
11543 *)
11544 ECHO_N='-n';;
11545 esac
11546
11547 rm -f conf$$ conf$$.exe conf$$.file
11548 if test -d conf$$.dir; then
11549 rm -f conf$$.dir/conf$$.file
11550 else
11551 rm -f conf$$.dir
11552 mkdir conf$$.dir 2>/dev/null
11553 fi
11554 if (echo >conf$$.file) 2>/dev/null; then
11555 if ln -s conf$$.file conf$$ 2>/dev/null; then
11556 as_ln_s='ln -s'
11557 # ... but there are two gotchas:
11558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11560 # In both cases, we have to default to `cp -pR'.
11561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11562 as_ln_s='cp -pR'
11563 elif ln conf$$.file conf$$ 2>/dev/null; then
11564 as_ln_s=ln
11565 else
11566 as_ln_s='cp -pR'
11567 fi
11568 else
11569 as_ln_s='cp -pR'
11570 fi
11571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11572 rmdir conf$$.dir 2>/dev/null
11573
11574
11575 # as_fn_mkdir_p
11576 # -------------
11577 # Create "$as_dir" as a directory, including parents if necessary.
11578 as_fn_mkdir_p ()
11579 {
11580
11581 case $as_dir in #(
11582 -*) as_dir=./$as_dir;;
11583 esac
11584 test -d "$as_dir" || eval $as_mkdir_p || {
11585 as_dirs=
11586 while :; do
11587 case $as_dir in #(
11588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11589 *) as_qdir=$as_dir;;
11590 esac
11591 as_dirs="'$as_qdir' $as_dirs"
11592 as_dir=`$as_dirname -- "$as_dir" ||
11593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11594 X"$as_dir" : 'X\(//\)[^/]' \| \
11595 X"$as_dir" : 'X\(//\)$' \| \
11596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11597 $as_echo X"$as_dir" |
11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11599 s//\1/
11600 q
11601 }
11602 /^X\(\/\/\)[^/].*/{
11603 s//\1/
11604 q
11605 }
11606 /^X\(\/\/\)$/{
11607 s//\1/
11608 q
11609 }
11610 /^X\(\/\).*/{
11611 s//\1/
11612 q
11613 }
11614 s/.*/./; q'`
11615 test -d "$as_dir" && break
11616 done
11617 test -z "$as_dirs" || eval "mkdir $as_dirs"
11618 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11619
11620
11621 } # as_fn_mkdir_p
11622 if mkdir -p . 2>/dev/null; then
11623 as_mkdir_p='mkdir -p "$as_dir"'
11624 else
11625 test -d ./-p && rmdir ./-p
11626 as_mkdir_p=false
11627 fi
11628
11629
11630 # as_fn_executable_p FILE
11631 # -----------------------
11632 # Test if FILE is an executable regular file.
11633 as_fn_executable_p ()
11634 {
11635 test -f "$1" && test -x "$1"
11636 } # as_fn_executable_p
11637 as_test_x='test -x'
11638 as_executable_p=as_fn_executable_p
11639
11640 # Sed expression to map a string onto a valid CPP name.
11641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11642
11643 # Sed expression to map a string onto a valid variable name.
11644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11645
11646
11647 exec 6>&1
11648 ## ----------------------------------- ##
11649 ## Main body of $CONFIG_STATUS script. ##
11650 ## ----------------------------------- ##
11651 _ASEOF
11652 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11653
11654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11655 # Save the log message, to keep $0 and so on meaningful, and to
11656 # report actual input values of CONFIG_FILES etc. instead of their
11657 # values after options handling.
11658 ac_log="
11659 This file was extended by gdbsupport $as_me 1.0, which was
11660 generated by GNU Autoconf 2.69. Invocation command line was
11661
11662 CONFIG_FILES = $CONFIG_FILES
11663 CONFIG_HEADERS = $CONFIG_HEADERS
11664 CONFIG_LINKS = $CONFIG_LINKS
11665 CONFIG_COMMANDS = $CONFIG_COMMANDS
11666 $ $0 $@
11667
11668 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11669 "
11670
11671 _ACEOF
11672
11673 case $ac_config_files in *"
11674 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11675 esac
11676
11677 case $ac_config_headers in *"
11678 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11679 esac
11680
11681
11682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11683 # Files that config.status was made for.
11684 config_files="$ac_config_files"
11685 config_headers="$ac_config_headers"
11686 config_commands="$ac_config_commands"
11687
11688 _ACEOF
11689
11690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11691 ac_cs_usage="\
11692 \`$as_me' instantiates files and other configuration actions
11693 from templates according to the current configuration. Unless the files
11694 and actions are specified as TAGs, all are instantiated by default.
11695
11696 Usage: $0 [OPTION]... [TAG]...
11697
11698 -h, --help print this help, then exit
11699 -V, --version print version number and configuration settings, then exit
11700 --config print configuration, then exit
11701 -q, --quiet, --silent
11702 do not print progress messages
11703 -d, --debug don't remove temporary files
11704 --recheck update $as_me by reconfiguring in the same conditions
11705 --file=FILE[:TEMPLATE]
11706 instantiate the configuration file FILE
11707 --header=FILE[:TEMPLATE]
11708 instantiate the configuration header FILE
11709
11710 Configuration files:
11711 $config_files
11712
11713 Configuration headers:
11714 $config_headers
11715
11716 Configuration commands:
11717 $config_commands
11718
11719 Report bugs to the package provider."
11720
11721 _ACEOF
11722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11724 ac_cs_version="\\
11725 gdbsupport config.status 1.0
11726 configured by $0, generated by GNU Autoconf 2.69,
11727 with options \\"\$ac_cs_config\\"
11728
11729 Copyright (C) 2012 Free Software Foundation, Inc.
11730 This config.status script is free software; the Free Software Foundation
11731 gives unlimited permission to copy, distribute and modify it."
11732
11733 ac_pwd='$ac_pwd'
11734 srcdir='$srcdir'
11735 INSTALL='$INSTALL'
11736 MKDIR_P='$MKDIR_P'
11737 AWK='$AWK'
11738 test -n "\$AWK" || AWK=awk
11739 _ACEOF
11740
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742 # The default lists apply if the user does not specify any file.
11743 ac_need_defaults=:
11744 while test $# != 0
11745 do
11746 case $1 in
11747 --*=?*)
11748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11749 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11750 ac_shift=:
11751 ;;
11752 --*=)
11753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11754 ac_optarg=
11755 ac_shift=:
11756 ;;
11757 *)
11758 ac_option=$1
11759 ac_optarg=$2
11760 ac_shift=shift
11761 ;;
11762 esac
11763
11764 case $ac_option in
11765 # Handling of the options.
11766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11767 ac_cs_recheck=: ;;
11768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11769 $as_echo "$ac_cs_version"; exit ;;
11770 --config | --confi | --conf | --con | --co | --c )
11771 $as_echo "$ac_cs_config"; exit ;;
11772 --debug | --debu | --deb | --de | --d | -d )
11773 debug=: ;;
11774 --file | --fil | --fi | --f )
11775 $ac_shift
11776 case $ac_optarg in
11777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11778 '') as_fn_error $? "missing file argument" ;;
11779 esac
11780 as_fn_append CONFIG_FILES " '$ac_optarg'"
11781 ac_need_defaults=false;;
11782 --header | --heade | --head | --hea )
11783 $ac_shift
11784 case $ac_optarg in
11785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11786 esac
11787 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11788 ac_need_defaults=false;;
11789 --he | --h)
11790 # Conflict between --help and --header
11791 as_fn_error $? "ambiguous option: \`$1'
11792 Try \`$0 --help' for more information.";;
11793 --help | --hel | -h )
11794 $as_echo "$ac_cs_usage"; exit ;;
11795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11797 ac_cs_silent=: ;;
11798
11799 # This is an error.
11800 -*) as_fn_error $? "unrecognized option: \`$1'
11801 Try \`$0 --help' for more information." ;;
11802
11803 *) as_fn_append ac_config_targets " $1"
11804 ac_need_defaults=false ;;
11805
11806 esac
11807 shift
11808 done
11809
11810 ac_configure_extra_args=
11811
11812 if $ac_cs_silent; then
11813 exec 6>/dev/null
11814 ac_configure_extra_args="$ac_configure_extra_args --silent"
11815 fi
11816
11817 _ACEOF
11818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11819 if \$ac_cs_recheck; then
11820 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11821 shift
11822 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11823 CONFIG_SHELL='$SHELL'
11824 export CONFIG_SHELL
11825 exec "\$@"
11826 fi
11827
11828 _ACEOF
11829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11830 exec 5>>config.log
11831 {
11832 echo
11833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11834 ## Running $as_me. ##
11835 _ASBOX
11836 $as_echo "$ac_log"
11837 } >&5
11838
11839 _ACEOF
11840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841 #
11842 # INIT-COMMANDS
11843 #
11844 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11845
11846 _ACEOF
11847
11848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11849
11850 # Handling of arguments.
11851 for ac_config_target in $ac_config_targets
11852 do
11853 case $ac_config_target in
11854 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11856 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11857
11858 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11859 esac
11860 done
11861
11862
11863 # If the user did not use the arguments to specify the items to instantiate,
11864 # then the envvar interface is used. Set only those that are not.
11865 # We use the long form for the default assignment because of an extremely
11866 # bizarre bug on SunOS 4.1.3.
11867 if $ac_need_defaults; then
11868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11871 fi
11872
11873 # Have a temporary directory for convenience. Make it in the build tree
11874 # simply because there is no reason against having it here, and in addition,
11875 # creating and moving files from /tmp can sometimes cause problems.
11876 # Hook for its removal unless debugging.
11877 # Note that there is a small window in which the directory will not be cleaned:
11878 # after its creation but before its name has been assigned to `$tmp'.
11879 $debug ||
11880 {
11881 tmp= ac_tmp=
11882 trap 'exit_status=$?
11883 : "${ac_tmp:=$tmp}"
11884 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11885 ' 0
11886 trap 'as_fn_exit 1' 1 2 13 15
11887 }
11888 # Create a (secure) tmp directory for tmp files.
11889
11890 {
11891 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11892 test -d "$tmp"
11893 } ||
11894 {
11895 tmp=./conf$$-$RANDOM
11896 (umask 077 && mkdir "$tmp")
11897 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11898 ac_tmp=$tmp
11899
11900 # Set up the scripts for CONFIG_FILES section.
11901 # No need to generate them if there are no CONFIG_FILES.
11902 # This happens for instance with `./config.status config.h'.
11903 if test -n "$CONFIG_FILES"; then
11904
11905
11906 ac_cr=`echo X | tr X '\015'`
11907 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11908 # But we know of no other shell where ac_cr would be empty at this
11909 # point, so we can use a bashism as a fallback.
11910 if test "x$ac_cr" = x; then
11911 eval ac_cr=\$\'\\r\'
11912 fi
11913 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11914 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11915 ac_cs_awk_cr='\\r'
11916 else
11917 ac_cs_awk_cr=$ac_cr
11918 fi
11919
11920 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11921 _ACEOF
11922
11923
11924 {
11925 echo "cat >conf$$subs.awk <<_ACEOF" &&
11926 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11927 echo "_ACEOF"
11928 } >conf$$subs.sh ||
11929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11930 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11931 ac_delim='%!_!# '
11932 for ac_last_try in false false false false false :; do
11933 . ./conf$$subs.sh ||
11934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11935
11936 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11937 if test $ac_delim_n = $ac_delim_num; then
11938 break
11939 elif $ac_last_try; then
11940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11941 else
11942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11943 fi
11944 done
11945 rm -f conf$$subs.sh
11946
11947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11949 _ACEOF
11950 sed -n '
11951 h
11952 s/^/S["/; s/!.*/"]=/
11953 p
11954 g
11955 s/^[^!]*!//
11956 :repl
11957 t repl
11958 s/'"$ac_delim"'$//
11959 t delim
11960 :nl
11961 h
11962 s/\(.\{148\}\)..*/\1/
11963 t more1
11964 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11965 p
11966 n
11967 b repl
11968 :more1
11969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11970 p
11971 g
11972 s/.\{148\}//
11973 t nl
11974 :delim
11975 h
11976 s/\(.\{148\}\)..*/\1/
11977 t more2
11978 s/["\\]/\\&/g; s/^/"/; s/$/"/
11979 p
11980 b
11981 :more2
11982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11983 p
11984 g
11985 s/.\{148\}//
11986 t delim
11987 ' <conf$$subs.awk | sed '
11988 /^[^""]/{
11989 N
11990 s/\n//
11991 }
11992 ' >>$CONFIG_STATUS || ac_write_fail=1
11993 rm -f conf$$subs.awk
11994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11995 _ACAWK
11996 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11997 for (key in S) S_is_set[key] = 1
11998 FS = "\a"
11999
12000 }
12001 {
12002 line = $ 0
12003 nfields = split(line, field, "@")
12004 substed = 0
12005 len = length(field[1])
12006 for (i = 2; i < nfields; i++) {
12007 key = field[i]
12008 keylen = length(key)
12009 if (S_is_set[key]) {
12010 value = S[key]
12011 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12012 len += length(value) + length(field[++i])
12013 substed = 1
12014 } else
12015 len += 1 + keylen
12016 }
12017
12018 print line
12019 }
12020
12021 _ACAWK
12022 _ACEOF
12023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12024 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12025 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12026 else
12027 cat
12028 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12029 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12030 _ACEOF
12031
12032 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12033 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12034 # trailing colons and then remove the whole line if VPATH becomes empty
12035 # (actually we leave an empty line to preserve line numbers).
12036 if test "x$srcdir" = x.; then
12037 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12038 h
12039 s///
12040 s/^/:/
12041 s/[ ]*$/:/
12042 s/:\$(srcdir):/:/g
12043 s/:\${srcdir}:/:/g
12044 s/:@srcdir@:/:/g
12045 s/^:*//
12046 s/:*$//
12047 x
12048 s/\(=[ ]*\).*/\1/
12049 G
12050 s/\n//
12051 s/^[^=]*=[ ]*$//
12052 }'
12053 fi
12054
12055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12056 fi # test -n "$CONFIG_FILES"
12057
12058 # Set up the scripts for CONFIG_HEADERS section.
12059 # No need to generate them if there are no CONFIG_HEADERS.
12060 # This happens for instance with `./config.status Makefile'.
12061 if test -n "$CONFIG_HEADERS"; then
12062 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12063 BEGIN {
12064 _ACEOF
12065
12066 # Transform confdefs.h into an awk script `defines.awk', embedded as
12067 # here-document in config.status, that substitutes the proper values into
12068 # config.h.in to produce config.h.
12069
12070 # Create a delimiter string that does not exist in confdefs.h, to ease
12071 # handling of long lines.
12072 ac_delim='%!_!# '
12073 for ac_last_try in false false :; do
12074 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12075 if test -z "$ac_tt"; then
12076 break
12077 elif $ac_last_try; then
12078 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12079 else
12080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12081 fi
12082 done
12083
12084 # For the awk script, D is an array of macro values keyed by name,
12085 # likewise P contains macro parameters if any. Preserve backslash
12086 # newline sequences.
12087
12088 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12089 sed -n '
12090 s/.\{148\}/&'"$ac_delim"'/g
12091 t rset
12092 :rset
12093 s/^[ ]*#[ ]*define[ ][ ]*/ /
12094 t def
12095 d
12096 :def
12097 s/\\$//
12098 t bsnl
12099 s/["\\]/\\&/g
12100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12101 D["\1"]=" \3"/p
12102 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12103 d
12104 :bsnl
12105 s/["\\]/\\&/g
12106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12107 D["\1"]=" \3\\\\\\n"\\/p
12108 t cont
12109 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12110 t cont
12111 d
12112 :cont
12113 n
12114 s/.\{148\}/&'"$ac_delim"'/g
12115 t clear
12116 :clear
12117 s/\\$//
12118 t bsnlc
12119 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12120 d
12121 :bsnlc
12122 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12123 b cont
12124 ' <confdefs.h | sed '
12125 s/'"$ac_delim"'/"\\\
12126 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12127
12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129 for (key in D) D_is_set[key] = 1
12130 FS = "\a"
12131 }
12132 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12133 line = \$ 0
12134 split(line, arg, " ")
12135 if (arg[1] == "#") {
12136 defundef = arg[2]
12137 mac1 = arg[3]
12138 } else {
12139 defundef = substr(arg[1], 2)
12140 mac1 = arg[2]
12141 }
12142 split(mac1, mac2, "(") #)
12143 macro = mac2[1]
12144 prefix = substr(line, 1, index(line, defundef) - 1)
12145 if (D_is_set[macro]) {
12146 # Preserve the white space surrounding the "#".
12147 print prefix "define", macro P[macro] D[macro]
12148 next
12149 } else {
12150 # Replace #undef with comments. This is necessary, for example,
12151 # in the case of _POSIX_SOURCE, which is predefined and required
12152 # on some systems where configure will not decide to define it.
12153 if (defundef == "undef") {
12154 print "/*", prefix defundef, macro, "*/"
12155 next
12156 }
12157 }
12158 }
12159 { print }
12160 _ACAWK
12161 _ACEOF
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12164 fi # test -n "$CONFIG_HEADERS"
12165
12166
12167 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12168 shift
12169 for ac_tag
12170 do
12171 case $ac_tag in
12172 :[FHLC]) ac_mode=$ac_tag; continue;;
12173 esac
12174 case $ac_mode$ac_tag in
12175 :[FHL]*:*);;
12176 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12177 :[FH]-) ac_tag=-:-;;
12178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12179 esac
12180 ac_save_IFS=$IFS
12181 IFS=:
12182 set x $ac_tag
12183 IFS=$ac_save_IFS
12184 shift
12185 ac_file=$1
12186 shift
12187
12188 case $ac_mode in
12189 :L) ac_source=$1;;
12190 :[FH])
12191 ac_file_inputs=
12192 for ac_f
12193 do
12194 case $ac_f in
12195 -) ac_f="$ac_tmp/stdin";;
12196 *) # Look for the file first in the build tree, then in the source tree
12197 # (if the path is not absolute). The absolute path cannot be DOS-style,
12198 # because $ac_f cannot contain `:'.
12199 test -f "$ac_f" ||
12200 case $ac_f in
12201 [\\/$]*) false;;
12202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12203 esac ||
12204 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12205 esac
12206 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12207 as_fn_append ac_file_inputs " '$ac_f'"
12208 done
12209
12210 # Let's still pretend it is `configure' which instantiates (i.e., don't
12211 # use $as_me), people would be surprised to read:
12212 # /* config.h. Generated by config.status. */
12213 configure_input='Generated from '`
12214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12215 `' by configure.'
12216 if test x"$ac_file" != x-; then
12217 configure_input="$ac_file. $configure_input"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12219 $as_echo "$as_me: creating $ac_file" >&6;}
12220 fi
12221 # Neutralize special characters interpreted by sed in replacement strings.
12222 case $configure_input in #(
12223 *\&* | *\|* | *\\* )
12224 ac_sed_conf_input=`$as_echo "$configure_input" |
12225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12226 *) ac_sed_conf_input=$configure_input;;
12227 esac
12228
12229 case $ac_tag in
12230 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12232 esac
12233 ;;
12234 esac
12235
12236 ac_dir=`$as_dirname -- "$ac_file" ||
12237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12238 X"$ac_file" : 'X\(//\)[^/]' \| \
12239 X"$ac_file" : 'X\(//\)$' \| \
12240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12241 $as_echo X"$ac_file" |
12242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12243 s//\1/
12244 q
12245 }
12246 /^X\(\/\/\)[^/].*/{
12247 s//\1/
12248 q
12249 }
12250 /^X\(\/\/\)$/{
12251 s//\1/
12252 q
12253 }
12254 /^X\(\/\).*/{
12255 s//\1/
12256 q
12257 }
12258 s/.*/./; q'`
12259 as_dir="$ac_dir"; as_fn_mkdir_p
12260 ac_builddir=.
12261
12262 case "$ac_dir" in
12263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12264 *)
12265 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12266 # A ".." for each directory in $ac_dir_suffix.
12267 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12268 case $ac_top_builddir_sub in
12269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12271 esac ;;
12272 esac
12273 ac_abs_top_builddir=$ac_pwd
12274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12275 # for backward compatibility:
12276 ac_top_builddir=$ac_top_build_prefix
12277
12278 case $srcdir in
12279 .) # We are building in place.
12280 ac_srcdir=.
12281 ac_top_srcdir=$ac_top_builddir_sub
12282 ac_abs_top_srcdir=$ac_pwd ;;
12283 [\\/]* | ?:[\\/]* ) # Absolute name.
12284 ac_srcdir=$srcdir$ac_dir_suffix;
12285 ac_top_srcdir=$srcdir
12286 ac_abs_top_srcdir=$srcdir ;;
12287 *) # Relative name.
12288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12289 ac_top_srcdir=$ac_top_build_prefix$srcdir
12290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12291 esac
12292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12293
12294
12295 case $ac_mode in
12296 :F)
12297 #
12298 # CONFIG_FILE
12299 #
12300
12301 case $INSTALL in
12302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12304 esac
12305 ac_MKDIR_P=$MKDIR_P
12306 case $MKDIR_P in
12307 [\\/$]* | ?:[\\/]* ) ;;
12308 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12309 esac
12310 _ACEOF
12311
12312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12313 # If the template does not know about datarootdir, expand it.
12314 # FIXME: This hack should be removed a few years after 2.60.
12315 ac_datarootdir_hack=; ac_datarootdir_seen=
12316 ac_sed_dataroot='
12317 /datarootdir/ {
12318 p
12319 q
12320 }
12321 /@datadir@/p
12322 /@docdir@/p
12323 /@infodir@/p
12324 /@localedir@/p
12325 /@mandir@/p'
12326 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12327 *datarootdir*) ac_datarootdir_seen=yes;;
12328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12330 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12331 _ACEOF
12332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12333 ac_datarootdir_hack='
12334 s&@datadir@&$datadir&g
12335 s&@docdir@&$docdir&g
12336 s&@infodir@&$infodir&g
12337 s&@localedir@&$localedir&g
12338 s&@mandir@&$mandir&g
12339 s&\\\${datarootdir}&$datarootdir&g' ;;
12340 esac
12341 _ACEOF
12342
12343 # Neutralize VPATH when `$srcdir' = `.'.
12344 # Shell code in configure.ac might set extrasub.
12345 # FIXME: do we really want to maintain this feature?
12346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12347 ac_sed_extra="$ac_vpsub
12348 $extrasub
12349 _ACEOF
12350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12351 :t
12352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12353 s|@configure_input@|$ac_sed_conf_input|;t t
12354 s&@top_builddir@&$ac_top_builddir_sub&;t t
12355 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12356 s&@srcdir@&$ac_srcdir&;t t
12357 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12358 s&@top_srcdir@&$ac_top_srcdir&;t t
12359 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12360 s&@builddir@&$ac_builddir&;t t
12361 s&@abs_builddir@&$ac_abs_builddir&;t t
12362 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12363 s&@INSTALL@&$ac_INSTALL&;t t
12364 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12365 $ac_datarootdir_hack
12366 "
12367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12368 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12369
12370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12371 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12373 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12375 which seems to be undefined. Please make sure it is defined" >&5
12376 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12377 which seems to be undefined. Please make sure it is defined" >&2;}
12378
12379 rm -f "$ac_tmp/stdin"
12380 case $ac_file in
12381 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12382 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12383 esac \
12384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12385 ;;
12386 :H)
12387 #
12388 # CONFIG_HEADER
12389 #
12390 if test x"$ac_file" != x-; then
12391 {
12392 $as_echo "/* $configure_input */" \
12393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12394 } >"$ac_tmp/config.h" \
12395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12396 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12398 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12399 else
12400 rm -f "$ac_file"
12401 mv "$ac_tmp/config.h" "$ac_file" \
12402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12403 fi
12404 else
12405 $as_echo "/* $configure_input */" \
12406 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12407 || as_fn_error $? "could not create -" "$LINENO" 5
12408 fi
12409 # Compute "$ac_file"'s index in $config_headers.
12410 _am_arg="$ac_file"
12411 _am_stamp_count=1
12412 for _am_header in $config_headers :; do
12413 case $_am_header in
12414 $_am_arg | $_am_arg:* )
12415 break ;;
12416 * )
12417 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12418 esac
12419 done
12420 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12421 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12422 X"$_am_arg" : 'X\(//\)[^/]' \| \
12423 X"$_am_arg" : 'X\(//\)$' \| \
12424 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12425 $as_echo X"$_am_arg" |
12426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12427 s//\1/
12428 q
12429 }
12430 /^X\(\/\/\)[^/].*/{
12431 s//\1/
12432 q
12433 }
12434 /^X\(\/\/\)$/{
12435 s//\1/
12436 q
12437 }
12438 /^X\(\/\).*/{
12439 s//\1/
12440 q
12441 }
12442 s/.*/./; q'`/stamp-h$_am_stamp_count
12443 ;;
12444
12445 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12446 $as_echo "$as_me: executing $ac_file commands" >&6;}
12447 ;;
12448 esac
12449
12450
12451 case $ac_file$ac_mode in
12452 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12453 # Older Autoconf quotes --file arguments for eval, but not when files
12454 # are listed without --file. Let's play safe and only enable the eval
12455 # if we detect the quoting.
12456 case $CONFIG_FILES in
12457 *\'*) eval set x "$CONFIG_FILES" ;;
12458 *) set x $CONFIG_FILES ;;
12459 esac
12460 shift
12461 for mf
12462 do
12463 # Strip MF so we end up with the name of the file.
12464 mf=`echo "$mf" | sed -e 's/:.*$//'`
12465 # Check whether this is an Automake generated Makefile or not.
12466 # We used to match only the files named 'Makefile.in', but
12467 # some people rename them; so instead we look at the file content.
12468 # Grep'ing the first line is not enough: some people post-process
12469 # each Makefile.in and add a new line on top of each file to say so.
12470 # Grep'ing the whole file is not good either: AIX grep has a line
12471 # limit of 2048, but all sed's we know have understand at least 4000.
12472 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12473 dirpart=`$as_dirname -- "$mf" ||
12474 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475 X"$mf" : 'X\(//\)[^/]' \| \
12476 X"$mf" : 'X\(//\)$' \| \
12477 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12478 $as_echo X"$mf" |
12479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12480 s//\1/
12481 q
12482 }
12483 /^X\(\/\/\)[^/].*/{
12484 s//\1/
12485 q
12486 }
12487 /^X\(\/\/\)$/{
12488 s//\1/
12489 q
12490 }
12491 /^X\(\/\).*/{
12492 s//\1/
12493 q
12494 }
12495 s/.*/./; q'`
12496 else
12497 continue
12498 fi
12499 # Extract the definition of DEPDIR, am__include, and am__quote
12500 # from the Makefile without running 'make'.
12501 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12502 test -z "$DEPDIR" && continue
12503 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12504 test -z "$am__include" && continue
12505 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12506 # Find all dependency output files, they are included files with
12507 # $(DEPDIR) in their names. We invoke sed twice because it is the
12508 # simplest approach to changing $(DEPDIR) to its actual value in the
12509 # expansion.
12510 for file in `sed -n "
12511 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12512 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12513 # Make sure the directory exists.
12514 test -f "$dirpart/$file" && continue
12515 fdir=`$as_dirname -- "$file" ||
12516 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517 X"$file" : 'X\(//\)[^/]' \| \
12518 X"$file" : 'X\(//\)$' \| \
12519 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12520 $as_echo X"$file" |
12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12522 s//\1/
12523 q
12524 }
12525 /^X\(\/\/\)[^/].*/{
12526 s//\1/
12527 q
12528 }
12529 /^X\(\/\/\)$/{
12530 s//\1/
12531 q
12532 }
12533 /^X\(\/\).*/{
12534 s//\1/
12535 q
12536 }
12537 s/.*/./; q'`
12538 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12539 # echo "creating $dirpart/$file"
12540 echo '# dummy' > "$dirpart/$file"
12541 done
12542 done
12543 }
12544 ;;
12545
12546 esac
12547 done # for ac_tag
12548
12549
12550 as_fn_exit 0
12551 _ACEOF
12552 ac_clean_files=$ac_clean_files_save
12553
12554 test $ac_write_fail = 0 ||
12555 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12556
12557
12558 # configure is writing to config.log, and then calls config.status.
12559 # config.status does its own redirection, appending to config.log.
12560 # Unfortunately, on DOS this fails, as config.log is still kept open
12561 # by configure, so config.status won't be able to write to it; its
12562 # output is simply discarded. So we exec the FD to /dev/null,
12563 # effectively closing config.log, so it can be properly (re)opened and
12564 # appended to by config.status. When coming back to configure, we
12565 # need to make the FD available again.
12566 if test "$no_create" != yes; then
12567 ac_cs_success=:
12568 ac_config_status_args=
12569 test "$silent" = yes &&
12570 ac_config_status_args="$ac_config_status_args --quiet"
12571 exec 5>/dev/null
12572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12573 exec 5>>config.log
12574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12575 # would make configure fail if this is the last instruction.
12576 $ac_cs_success || as_fn_exit 1
12577 fi
12578 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12580 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12581 fi
12582