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