]> Git Repo - binutils.git/blob - gdb/configure
gdb: move go_language class declaration into header file
[binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200   if (eval "$as_required") 2>/dev/null; then :
201   as_have_required=yes
202 else
203   as_have_required=no
204 fi
205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212   IFS=$as_save_IFS
213   test -z "$as_dir" && as_dir=.
214   as_found=:
215   case $as_dir in #(
216          /*)
217            for as_base in sh bash ksh sh5; do
218              # Try only shells that exist, to save several forks.
219              as_shell=$as_dir/$as_base
220              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   break 2
225 fi
226 fi
227            done;;
228        esac
229   as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233   CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238       if test "x$CONFIG_SHELL" != x; then :
239   export CONFIG_SHELL
240              # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248   *v*x* | *x*v* ) as_opts=-vx ;;
249   *v* ) as_opts=-v ;;
250   *x* ) as_opts=-x ;;
251   * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260     if test x$as_have_required = xno; then :
261   $as_echo "$0: This script requires a shell more modern than all"
262   $as_echo "$0: the shells that I found on your system."
263   if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     $as_echo "$0: Please tell [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=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 #  include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #  include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 enable_option_checking=no
623 ac_header_list=
624 ac_subst_vars='LTLIBOBJS
625 LIBOBJS
626 GCORE_TRANSFORM_NAME
627 GDB_TRANSFORM_NAME
628 XSLTPROC
629 NM_H
630 GDB_NM_FILE
631 LTLIBXXHASH
632 LIBXXHASH
633 HAVE_LIBXXHASH
634 CTF_DEPS
635 LIBCTF
636 ENABLE_LIBCTF
637 LTLIBBABELTRACE
638 LIBBABELTRACE
639 HAVE_LIBBABELTRACE
640 HAVE_NATIVE_GCORE_HOST
641 NAT_GENERATED_FILES
642 XM_CLIBS
643 MH_CFLAGS
644 LOADLIBES
645 NAT_CDEPS
646 NATDEPFILES
647 NAT_FILE
648 target_subdir
649 CONFIG_UNINSTALL
650 CONFIG_INSTALL
651 CONFIG_CLEAN
652 CONFIG_ALL
653 CONFIG_SRCS
654 CONFIG_DEPS
655 CONFIG_OBS
656 PROFILE_CFLAGS
657 ENABLE_CFLAGS
658 SIM_OBS
659 SIM
660 XMKMF
661 GDBTK_SRC_DIR
662 GDBTK_CFLAGS
663 GDBTKLIBS
664 X_LIBS
665 X_LDFLAGS
666 X_CFLAGS
667 TK_XINCLUDES
668 TK_DEPS
669 TK_LIBRARY
670 TK_INCLUDE
671 TK_STUB_LIB_SPEC
672 TK_STUB_LIB_FLAG
673 TK_STUB_LIB_FILE
674 TK_LIB_SPEC
675 TK_LIB_FLAG
676 TK_LIB_FILE
677 TK_SRC_DIR
678 TK_BIN_DIR
679 TK_VERSION
680 TCL_DEPS
681 TCL_LIBRARY
682 TCL_INCLUDE
683 TCL_STUB_LIB_SPEC
684 TCL_STUB_LIB_FLAG
685 TCL_STUB_LIB_FILE
686 TCL_LIB_SPEC
687 TCL_LIB_FLAG
688 TCL_LIB_FILE
689 TCL_SRC_DIR
690 TCL_BIN_DIR
691 TCL_PATCH_LEVEL
692 TCL_VERSION
693 WIN32LDAPP
694 WIN32LIBS
695 GUI_CFLAGS_X
696 LIBGUI
697 LTLIBLZMA
698 LIBLZMA
699 HAVE_LIBLZMA
700 SER_HARDWIRE
701 WERROR_CFLAGS
702 WARN_CFLAGS
703 SYSTEM_GDBINIT_DIR
704 SYSTEM_GDBINIT
705 TARGET_SYSTEM_ROOT
706 CONFIG_LDFLAGS
707 RDYNAMIC
708 LTLIBIPT
709 LIBIPT
710 HAVE_LIBIPT
711 PTHREAD_CFLAGS
712 PTHREAD_LIBS
713 PTHREAD_CC
714 ax_pthread_config
715 SED
716 ALLOCA
717 SRCHIGH_CFLAGS
718 SRCHIGH_LIBS
719 HAVE_GUILE_FALSE
720 HAVE_GUILE_TRUE
721 GUILE_LIBS
722 GUILE_CPPFLAGS
723 GUILD_TARGET_FLAG
724 GUILD
725 pkg_config_prog_path
726 HAVE_PYTHON_FALSE
727 HAVE_PYTHON_TRUE
728 PYTHON_LIBS
729 PYTHON_CPPFLAGS
730 PYTHON_CFLAGS
731 python_prog_path
732 LTLIBMPFR
733 LIBMPFR
734 HAVE_LIBMPFR
735 LTLIBGMP
736 LIBGMP
737 HAVE_LIBGMP
738 LTLIBEXPAT
739 LIBEXPAT
740 HAVE_LIBEXPAT
741 JIT_READER_DIR
742 TARGET_PTR
743 READLINE_TEXI_INCFLAG
744 READLINE_CFLAGS
745 READLINE_DEPS
746 READLINE
747 LTLIBICONV
748 LIBICONV
749 zlibinc
750 zlibdir
751 MIG
752 WINDRES
753 DLLTOOL
754 AR
755 YFLAGS
756 YACC
757 RANLIB
758 LN_S
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 AWK
763 REPORT_BUGS_TEXI
764 REPORT_BUGS_TO
765 PKGVERSION
766 CODESIGN_CERT
767 DEBUGINFOD_LIBS
768 DEBUGINFOD_CFLAGS
769 PKG_CONFIG_LIBDIR
770 PKG_CONFIG_PATH
771 PKG_CONFIG
772 HAVE_NATIVE_GCORE_TARGET
773 TARGET_OBS
774 subdirs
775 GDB_DATADIR
776 DEBUGDIR
777 MAKEINFO_EXTRA_FLAGS
778 MAKEINFOFLAGS
779 MAKEINFO
780 PACKAGE
781 CATOBJEXT
782 GENCAT
783 INSTOBJEXT
784 DATADIRNAME
785 CATALOGS
786 POSUB
787 GMSGFMT
788 XGETTEXT
789 INCINTL
790 LIBINTL_DEP
791 LIBINTL
792 USE_NLS
793 CCDEPMODE
794 DEPDIR
795 am__leading_dot
796 CXX_DIALECT
797 HAVE_CXX11
798 INSTALL_STRIP_PROGRAM
799 STRIP
800 install_sh
801 LARGEFILE_CPPFLAGS
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 EGREP
815 GREP
816 CPP
817 ac_ct_CXX
818 CXXFLAGS
819 CXX
820 OBJEXT
821 EXEEXT
822 ac_ct_CC
823 CPPFLAGS
824 LDFLAGS
825 CFLAGS
826 CC
827 MAINT
828 MAINTAINER_MODE_FALSE
829 MAINTAINER_MODE_TRUE
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files='nat_makefile_frag'
869 ac_user_opts='
870 enable_option_checking
871 enable_maintainer_mode
872 enable_plugins
873 enable_largefile
874 with_separate_debug_dir
875 with_gdb_datadir
876 with_relocated_sources
877 with_auto_load_dir
878 with_auto_load_safe_path
879 enable_targets
880 enable_64_bit_bfd
881 enable_gdbmi
882 enable_tui
883 enable_gdbtk
884 with_debuginfod
885 with_libunwind_ia64
886 with_curses
887 enable_profiling
888 enable_codesign
889 with_pkgversion
890 with_bugurl
891 with_system_zlib
892 with_gnu_ld
893 enable_rpath
894 with_libiconv_prefix
895 with_libiconv_type
896 with_iconv_bin
897 with_system_readline
898 with_jit_reader_dir
899 with_expat
900 with_libexpat_prefix
901 with_libexpat_type
902 with_libgmp_prefix
903 with_libgmp_type
904 with_mpfr
905 with_libmpfr_prefix
906 with_libmpfr_type
907 with_python
908 with_python_libdir
909 with_guile
910 enable_source_highlight
911 with_intel_pt
912 with_libipt_prefix
913 with_libipt_type
914 with_included_regex
915 with_sysroot
916 with_system_gdbinit
917 with_system_gdbinit_dir
918 enable_werror
919 enable_build_warnings
920 enable_gdb_build_warnings
921 enable_ubsan
922 with_lzma
923 with_liblzma_prefix
924 with_liblzma_type
925 with_tcl
926 with_tk
927 with_x
928 enable_sim
929 with_babeltrace
930 with_libbabeltrace_prefix
931 with_libbabeltrace_type
932 with_xxhash
933 enable_libctf
934 with_libxxhash_prefix
935 with_libxxhash_type
936 enable_unit_tests
937 '
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CXX
947 CXXFLAGS
948 CCC
949 CPP
950 MAKEINFO
951 MAKEINFOFLAGS
952 PKG_CONFIG
953 PKG_CONFIG_PATH
954 PKG_CONFIG_LIBDIR
955 DEBUGINFOD_CFLAGS
956 DEBUGINFOD_LIBS
957 YACC
958 YFLAGS
959 XMKMF'
960 ac_subdirs_all='testsuite
961 gdbtk'
962
963 # Initialize some variables set by options.
964 ac_init_help=
965 ac_init_version=false
966 ac_unrecognized_opts=
967 ac_unrecognized_sep=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
970 cache_file=/dev/null
971 exec_prefix=NONE
972 no_create=
973 no_recursion=
974 prefix=NONE
975 program_prefix=NONE
976 program_suffix=NONE
977 program_transform_name=s,x,x,
978 silent=
979 site=
980 srcdir=
981 verbose=
982 x_includes=NONE
983 x_libraries=NONE
984
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015   # If the previous option needs an argument, assign it.
1016   if test -n "$ac_prev"; then
1017     eval $ac_prev=\$ac_option
1018     ac_prev=
1019     continue
1020   fi
1021
1022   case $ac_option in
1023   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024   *=)   ac_optarg= ;;
1025   *)    ac_optarg=yes ;;
1026   esac
1027
1028   # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030   case $ac_dashdash$ac_option in
1031   --)
1032     ac_dashdash=yes ;;
1033
1034   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035     ac_prev=bindir ;;
1036   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037     bindir=$ac_optarg ;;
1038
1039   -build | --build | --buil | --bui | --bu)
1040     ac_prev=build_alias ;;
1041   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042     build_alias=$ac_optarg ;;
1043
1044   -cache-file | --cache-file | --cache-fil | --cache-fi \
1045   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046     ac_prev=cache_file ;;
1047   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049     cache_file=$ac_optarg ;;
1050
1051   --config-cache | -C)
1052     cache_file=config.cache ;;
1053
1054   -datadir | --datadir | --datadi | --datad)
1055     ac_prev=datadir ;;
1056   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057     datadir=$ac_optarg ;;
1058
1059   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060   | --dataroo | --dataro | --datar)
1061     ac_prev=datarootdir ;;
1062   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064     datarootdir=$ac_optarg ;;
1065
1066   -disable-* | --disable-*)
1067     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070       as_fn_error $? "invalid feature name: $ac_useropt"
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval enable_$ac_useropt=no ;;
1081
1082   -docdir | --docdir | --docdi | --doc | --do)
1083     ac_prev=docdir ;;
1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085     docdir=$ac_optarg ;;
1086
1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088     ac_prev=dvidir ;;
1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090     dvidir=$ac_optarg ;;
1091
1092   -enable-* | --enable-*)
1093     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096       as_fn_error $? "invalid feature name: $ac_useropt"
1097     ac_useropt_orig=$ac_useropt
1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099     case $ac_user_opts in
1100       *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104          ac_unrecognized_sep=', ';;
1105     esac
1106     eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110   | --exec | --exe | --ex)
1111     ac_prev=exec_prefix ;;
1112   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114   | --exec=* | --exe=* | --ex=*)
1115     exec_prefix=$ac_optarg ;;
1116
1117   -gas | --gas | --ga | --g)
1118     # Obsolete; use --with-gas.
1119     with_gas=yes ;;
1120
1121   -help | --help | --hel | --he | -h)
1122     ac_init_help=long ;;
1123   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124     ac_init_help=recursive ;;
1125   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126     ac_init_help=short ;;
1127
1128   -host | --host | --hos | --ho)
1129     ac_prev=host_alias ;;
1130   -host=* | --host=* | --hos=* | --ho=*)
1131     host_alias=$ac_optarg ;;
1132
1133   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134     ac_prev=htmldir ;;
1135   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136   | --ht=*)
1137     htmldir=$ac_optarg ;;
1138
1139   -includedir | --includedir | --includedi | --included | --include \
1140   | --includ | --inclu | --incl | --inc)
1141     ac_prev=includedir ;;
1142   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143   | --includ=* | --inclu=* | --incl=* | --inc=*)
1144     includedir=$ac_optarg ;;
1145
1146   -infodir | --infodir | --infodi | --infod | --info | --inf)
1147     ac_prev=infodir ;;
1148   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149     infodir=$ac_optarg ;;
1150
1151   -libdir | --libdir | --libdi | --libd)
1152     ac_prev=libdir ;;
1153   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154     libdir=$ac_optarg ;;
1155
1156   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157   | --libexe | --libex | --libe)
1158     ac_prev=libexecdir ;;
1159   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160   | --libexe=* | --libex=* | --libe=*)
1161     libexecdir=$ac_optarg ;;
1162
1163   -localedir | --localedir | --localedi | --localed | --locale)
1164     ac_prev=localedir ;;
1165   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166     localedir=$ac_optarg ;;
1167
1168   -localstatedir | --localstatedir | --localstatedi | --localstated \
1169   | --localstate | --localstat | --localsta | --localst | --locals)
1170     ac_prev=localstatedir ;;
1171   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173     localstatedir=$ac_optarg ;;
1174
1175   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176     ac_prev=mandir ;;
1177   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178     mandir=$ac_optarg ;;
1179
1180   -nfp | --nfp | --nf)
1181     # Obsolete; use --without-fp.
1182     with_fp=no ;;
1183
1184   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185   | --no-cr | --no-c | -n)
1186     no_create=yes ;;
1187
1188   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190     no_recursion=yes ;;
1191
1192   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194   | --oldin | --oldi | --old | --ol | --o)
1195     ac_prev=oldincludedir ;;
1196   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199     oldincludedir=$ac_optarg ;;
1200
1201   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202     ac_prev=prefix ;;
1203   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204     prefix=$ac_optarg ;;
1205
1206   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207   | --program-pre | --program-pr | --program-p)
1208     ac_prev=program_prefix ;;
1209   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211     program_prefix=$ac_optarg ;;
1212
1213   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214   | --program-suf | --program-su | --program-s)
1215     ac_prev=program_suffix ;;
1216   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218     program_suffix=$ac_optarg ;;
1219
1220   -program-transform-name | --program-transform-name \
1221   | --program-transform-nam | --program-transform-na \
1222   | --program-transform-n | --program-transform- \
1223   | --program-transform | --program-transfor \
1224   | --program-transfo | --program-transf \
1225   | --program-trans | --program-tran \
1226   | --progr-tra | --program-tr | --program-t)
1227     ac_prev=program_transform_name ;;
1228   -program-transform-name=* | --program-transform-name=* \
1229   | --program-transform-nam=* | --program-transform-na=* \
1230   | --program-transform-n=* | --program-transform-=* \
1231   | --program-transform=* | --program-transfor=* \
1232   | --program-transfo=* | --program-transf=* \
1233   | --program-trans=* | --program-tran=* \
1234   | --progr-tra=* | --program-tr=* | --program-t=*)
1235     program_transform_name=$ac_optarg ;;
1236
1237   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238     ac_prev=pdfdir ;;
1239   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240     pdfdir=$ac_optarg ;;
1241
1242   -psdir | --psdir | --psdi | --psd | --ps)
1243     ac_prev=psdir ;;
1244   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245     psdir=$ac_optarg ;;
1246
1247   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248   | -silent | --silent | --silen | --sile | --sil)
1249     silent=yes ;;
1250
1251   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252     ac_prev=sbindir ;;
1253   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254   | --sbi=* | --sb=*)
1255     sbindir=$ac_optarg ;;
1256
1257   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259   | --sharedst | --shareds | --shared | --share | --shar \
1260   | --sha | --sh)
1261     ac_prev=sharedstatedir ;;
1262   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265   | --sha=* | --sh=*)
1266     sharedstatedir=$ac_optarg ;;
1267
1268   -site | --site | --sit)
1269     ac_prev=site ;;
1270   -site=* | --site=* | --sit=*)
1271     site=$ac_optarg ;;
1272
1273   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274     ac_prev=srcdir ;;
1275   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276     srcdir=$ac_optarg ;;
1277
1278   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279   | --syscon | --sysco | --sysc | --sys | --sy)
1280     ac_prev=sysconfdir ;;
1281   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283     sysconfdir=$ac_optarg ;;
1284
1285   -target | --target | --targe | --targ | --tar | --ta | --t)
1286     ac_prev=target_alias ;;
1287   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288     target_alias=$ac_optarg ;;
1289
1290   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291     verbose=yes ;;
1292
1293   -version | --version | --versio | --versi | --vers | -V)
1294     ac_init_version=: ;;
1295
1296   -with-* | --with-*)
1297     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298     # Reject names that are not valid shell variable names.
1299     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300       as_fn_error $? "invalid package name: $ac_useropt"
1301     ac_useropt_orig=$ac_useropt
1302     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303     case $ac_user_opts in
1304       *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308          ac_unrecognized_sep=', ';;
1309     esac
1310     eval with_$ac_useropt=\$ac_optarg ;;
1311
1312   -without-* | --without-*)
1313     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314     # Reject names that are not valid shell variable names.
1315     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316       as_fn_error $? "invalid package name: $ac_useropt"
1317     ac_useropt_orig=$ac_useropt
1318     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319     case $ac_user_opts in
1320       *"
1321 "with_$ac_useropt"
1322 "*) ;;
1323       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1324          ac_unrecognized_sep=', ';;
1325     esac
1326     eval with_$ac_useropt=no ;;
1327
1328   --x)
1329     # Obsolete; use --with-x.
1330     with_x=yes ;;
1331
1332   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1333   | --x-incl | --x-inc | --x-in | --x-i)
1334     ac_prev=x_includes ;;
1335   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1336   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1337     x_includes=$ac_optarg ;;
1338
1339   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1340   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1341     ac_prev=x_libraries ;;
1342   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1343   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1344     x_libraries=$ac_optarg ;;
1345
1346   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1347 Try \`$0 --help' for more information"
1348     ;;
1349
1350   *=*)
1351     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352     # Reject names that are not valid shell variable names.
1353     case $ac_envvar in #(
1354       '' | [0-9]* | *[!_$as_cr_alnum]* )
1355       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1356     esac
1357     eval $ac_envvar=\$ac_optarg
1358     export $ac_envvar ;;
1359
1360   *)
1361     # FIXME: should be removed in autoconf 3.0.
1362     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1363     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366     ;;
1367
1368   esac
1369 done
1370
1371 if test -n "$ac_prev"; then
1372   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1373   as_fn_error $? "missing argument to $ac_option"
1374 fi
1375
1376 if test -n "$ac_unrecognized_opts"; then
1377   case $enable_option_checking in
1378     no) ;;
1379     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1380     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381   esac
1382 fi
1383
1384 # Check all directory arguments for consistency.
1385 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386                 datadir sysconfdir sharedstatedir localstatedir includedir \
1387                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388                 libdir localedir mandir
1389 do
1390   eval ac_val=\$$ac_var
1391   # Remove trailing slashes.
1392   case $ac_val in
1393     */ )
1394       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395       eval $ac_var=\$ac_val;;
1396   esac
1397   # Be sure to have absolute directory names.
1398   case $ac_val in
1399     [\\/$]* | ?:[\\/]* )  continue;;
1400     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401   esac
1402   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1403 done
1404
1405 # There might be people who depend on the old broken behavior: `$host'
1406 # used to hold the argument of --host etc.
1407 # FIXME: To remove some day.
1408 build=$build_alias
1409 host=$host_alias
1410 target=$target_alias
1411
1412 # FIXME: To remove some day.
1413 if test "x$host_alias" != x; then
1414   if test "x$build_alias" = x; then
1415     cross_compiling=maybe
1416   elif test "x$build_alias" != "x$host_alias"; then
1417     cross_compiling=yes
1418   fi
1419 fi
1420
1421 ac_tool_prefix=
1422 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423
1424 test "$silent" = yes && exec 6>/dev/null
1425
1426
1427 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di=`ls -di .` &&
1429 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1430   as_fn_error $? "working directory cannot be determined"
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432   as_fn_error $? "pwd does not report name of working directory"
1433
1434
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437   ac_srcdir_defaulted=yes
1438   # Try the directory containing this script, then the parent directory.
1439   ac_confdir=`$as_dirname -- "$as_myself" ||
1440 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441          X"$as_myself" : 'X\(//\)[^/]' \| \
1442          X"$as_myself" : 'X\(//\)$' \| \
1443          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444 $as_echo X"$as_myself" |
1445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446             s//\1/
1447             q
1448           }
1449           /^X\(\/\/\)[^/].*/{
1450             s//\1/
1451             q
1452           }
1453           /^X\(\/\/\)$/{
1454             s//\1/
1455             q
1456           }
1457           /^X\(\/\).*/{
1458             s//\1/
1459             q
1460           }
1461           s/.*/./; q'`
1462   srcdir=$ac_confdir
1463   if test ! -r "$srcdir/$ac_unique_file"; then
1464     srcdir=..
1465   fi
1466 else
1467   ac_srcdir_defaulted=no
1468 fi
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1472 fi
1473 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 ac_abs_confdir=`(
1475         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1476         pwd)`
1477 # When building in place, set srcdir=.
1478 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479   srcdir=.
1480 fi
1481 # Remove unnecessary trailing slashes from srcdir.
1482 # Double slashes in file names in object file debugging info
1483 # mess up M-x gdb in Emacs.
1484 case $srcdir in
1485 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 esac
1487 for ac_var in $ac_precious_vars; do
1488   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1489   eval ac_env_${ac_var}_value=\$${ac_var}
1490   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1491   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1492 done
1493
1494 #
1495 # Report the --help message.
1496 #
1497 if test "$ac_init_help" = "long"; then
1498   # Omit some internal or obsolete options to make the list less imposing.
1499   # This message is too long to be a string in the A/UX 3.1 sh.
1500   cat <<_ACEOF
1501 \`configure' configures this package to adapt to many kinds of systems.
1502
1503 Usage: $0 [OPTION]... [VAR=VALUE]...
1504
1505 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1506 VAR=VALUE.  See below for descriptions of some of the useful variables.
1507
1508 Defaults for the options are specified in brackets.
1509
1510 Configuration:
1511   -h, --help              display this help and exit
1512       --help=short        display options specific to this package
1513       --help=recursive    display the short help of all the included packages
1514   -V, --version           display version information and exit
1515   -q, --quiet, --silent   do not print \`checking ...' messages
1516       --cache-file=FILE   cache test results in FILE [disabled]
1517   -C, --config-cache      alias for \`--cache-file=config.cache'
1518   -n, --no-create         do not create output files
1519       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1520
1521 Installation directories:
1522   --prefix=PREFIX         install architecture-independent files in PREFIX
1523                           [$ac_default_prefix]
1524   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1525                           [PREFIX]
1526
1527 By default, \`make install' will install all the files in
1528 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1529 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1530 for instance \`--prefix=\$HOME'.
1531
1532 For better control, use the options below.
1533
1534 Fine tuning of the installation directories:
1535   --bindir=DIR            user executables [EPREFIX/bin]
1536   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1537   --libexecdir=DIR        program executables [EPREFIX/libexec]
1538   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1539   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1540   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1541   --libdir=DIR            object code libraries [EPREFIX/lib]
1542   --includedir=DIR        C header files [PREFIX/include]
1543   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1544   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1545   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1546   --infodir=DIR           info documentation [DATAROOTDIR/info]
1547   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1548   --mandir=DIR            man documentation [DATAROOTDIR/man]
1549   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1550   --htmldir=DIR           html documentation [DOCDIR]
1551   --dvidir=DIR            dvi documentation [DOCDIR]
1552   --pdfdir=DIR            pdf documentation [DOCDIR]
1553   --psdir=DIR             ps documentation [DOCDIR]
1554 _ACEOF
1555
1556   cat <<\_ACEOF
1557
1558 Program names:
1559   --program-prefix=PREFIX            prepend PREFIX to installed program names
1560   --program-suffix=SUFFIX            append SUFFIX to installed program names
1561   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1562
1563 X features:
1564   --x-includes=DIR    X include files are in DIR
1565   --x-libraries=DIR   X library files are in DIR
1566
1567 System types:
1568   --build=BUILD     configure for building on BUILD [guessed]
1569   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1570   --target=TARGET   configure for building compilers for TARGET [HOST]
1571 _ACEOF
1572 fi
1573
1574 if test -n "$ac_init_help"; then
1575
1576   cat <<\_ACEOF
1577
1578 Optional Features:
1579   --disable-option-checking  ignore unrecognized --enable/--with options
1580   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1581   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1582   --enable-maintainer-mode
1583                           enable make rules and dependencies not useful (and
1584                           sometimes confusing) to the casual installer
1585   --enable-plugins        Enable support for plugins
1586   --disable-largefile     omit support for large files
1587   --enable-targets=TARGETS
1588                           alternative target configurations
1589   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1590   --disable-gdbmi         disable machine-interface (MI)
1591   --enable-tui            enable full-screen terminal user interface (TUI)
1592   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1593   --enable-profiling      enable profiling of GDB
1594   --enable-codesign=CERT  sign gdb with 'codesign -s CERT'
1595   --disable-rpath         do not hardcode runtime library paths
1596   --enable-source-highlight
1597                           enable source-highlight for source listings
1598   --enable-werror         treat compile warnings as errors
1599   --enable-build-warnings enable build-time compiler warnings if gcc is used
1600   --enable-gdb-build-warnings
1601                           enable GDB specific build-time compiler warnings if
1602                           gcc is used
1603   --enable-ubsan          enable undefined behavior sanitizer (auto/yes/no)
1604   --enable-sim            link gdb with simulator
1605   --enable-libctf         Handle .ctf type-info sections [default=yes]
1606   --enable-unit-tests     Enable the inclusion of unit tests when compiling
1607                           GDB
1608
1609 Optional Packages:
1610   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1611   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1612   --with-separate-debug-dir=PATH
1613                           look for global separate debug info in this path
1614                           [LIBDIR/debug]
1615   --with-gdb-datadir=PATH look for global separate data files in this path
1616                           [DATADIR/gdb]
1617   --with-relocated-sources=PATH
1618                           automatically relocate this path for source files
1619   --with-auto-load-dir=PATH
1620                           directories from which to load auto-loaded scripts
1621                           [$debugdir:$datadir/auto-load]
1622   --with-auto-load-safe-path=PATH
1623                           directories safe to hold auto-loaded files
1624                           [--with-auto-load-dir]
1625   --without-auto-load-safe-path
1626                           do not restrict auto-loaded files locations
1627   --with-debuginfod       Enable debuginfo lookups with debuginfod
1628                           (auto/yes/no)
1629   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1630   --with-curses           use the curses library instead of the termcap
1631                           library
1632   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1633   --with-bugurl=URL       Direct users to URL to report a bug
1634   --with-system-zlib      use installed libz
1635   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1636   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1637   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1638   --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
1639   --with-iconv-bin=PATH   specify where to find the iconv program
1640   --with-system-readline  use installed readline library
1641   --with-jit-reader-dir=PATH
1642                           directory to load the JIT readers from
1643   --with-expat            include expat support (auto/yes/no)
1644   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1645   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1646   --with-libexpat-type=TYPE     type of library to search for (auto/static/shared)
1647   --with-libgmp-prefix[=DIR]  search for libgmp in DIR/include and DIR/lib
1648   --without-libgmp-prefix     don't search for libgmp in includedir and libdir
1649   --with-libgmp-type=TYPE     type of library to search for (auto/static/shared)
1650   --with-mpfr             include MPFR support (auto/yes/no)
1651   --with-libmpfr-prefix[=DIR]  search for libmpfr in DIR/include and DIR/lib
1652   --without-libmpfr-prefix     don't search for libmpfr in includedir and libdir
1653   --with-libmpfr-type=TYPE     type of library to search for (auto/static/shared)
1654   --with-python[=PYTHON]  include python support
1655                           (auto/yes/no/<python-program>)
1656   --with-python-libdir[=DIR]
1657                           search for python's libraries in DIR
1658   --with-guile[=GUILE]    include guile support
1659                           (auto/yes/no/<guile-version>/<pkg-config-program>)
1660   --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
1661   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
1662   --without-libipt-prefix     don't search for libipt in includedir and libdir
1663   --with-libipt-type=TYPE     type of library to search for (auto/static/shared)
1664   --without-included-regex
1665                           don't use included regex; this is the default on
1666                           systems with version 2 of the GNU C library (use
1667                           with caution on other system)
1668   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1669   --with-system-gdbinit=PATH
1670                           automatically load a system-wide gdbinit file
1671   --with-system-gdbinit-dir=PATH
1672                           automatically load system-wide gdbinit files from
1673                           this directory
1674   --with-lzma             support lzma compression (auto/yes/no)
1675   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
1676   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
1677   --with-liblzma-type=TYPE     type of library to search for (auto/static/shared)
1678   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1679   --with-tk               directory containing tk configuration (tkConfig.sh)
1680   --with-x                use the X Window System
1681   --with-babeltrace       include babeltrace support (auto/yes/no)
1682   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
1683   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
1684   --with-libbabeltrace-type=TYPE     type of library to search for (auto/static/shared)
1685   --with-xxhash           use libxxhash for hashing (faster) (auto/yes/no)
1686   --with-libxxhash-prefix[=DIR]  search for libxxhash in DIR/include and DIR/lib
1687   --without-libxxhash-prefix     don't search for libxxhash in includedir and libdir
1688   --with-libxxhash-type=TYPE     type of library to search for (auto/static/shared)
1689
1690 Some influential environment variables:
1691   CC          C compiler command
1692   CFLAGS      C compiler flags
1693   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1694               nonstandard directory <lib dir>
1695   LIBS        libraries to pass to the linker, e.g. -l<library>
1696   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1697               you have headers in a nonstandard directory <include dir>
1698   CXX         C++ compiler command
1699   CXXFLAGS    C++ compiler flags
1700   CPP         C preprocessor
1701   MAKEINFO    Parent configure detects if it is of sufficient version.
1702   MAKEINFOFLAGS
1703               Parameters for MAKEINFO.
1704   PKG_CONFIG  path to pkg-config utility
1705   PKG_CONFIG_PATH
1706               directories to add to pkg-config's search path
1707   PKG_CONFIG_LIBDIR
1708               path overriding pkg-config's built-in search path
1709   DEBUGINFOD_CFLAGS
1710               C compiler flags for DEBUGINFOD, overriding pkg-config
1711   DEBUGINFOD_LIBS
1712               linker flags for DEBUGINFOD, overriding pkg-config
1713   YACC        The `Yet Another Compiler Compiler' implementation to use.
1714               Defaults to the first program found out of: `bison -y', `byacc',
1715               `yacc'.
1716   YFLAGS      The list of arguments that will be passed by default to $YACC.
1717               This script will default YFLAGS to the empty string to avoid a
1718               default value of `-d' given by some make applications.
1719   XMKMF       Path to xmkmf, Makefile generator for X Window System
1720
1721 Use these variables to override the choices made by `configure' or to help
1722 it to find libraries and programs with nonstandard names/locations.
1723
1724 Report bugs to the package provider.
1725 _ACEOF
1726 ac_status=$?
1727 fi
1728
1729 if test "$ac_init_help" = "recursive"; then
1730   # If there are subdirs, report their specific --help.
1731   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1732     test -d "$ac_dir" ||
1733       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1734       continue
1735     ac_builddir=.
1736
1737 case "$ac_dir" in
1738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *)
1740   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1741   # A ".." for each directory in $ac_dir_suffix.
1742   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1743   case $ac_top_builddir_sub in
1744   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1746   esac ;;
1747 esac
1748 ac_abs_top_builddir=$ac_pwd
1749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1750 # for backward compatibility:
1751 ac_top_builddir=$ac_top_build_prefix
1752
1753 case $srcdir in
1754   .)  # We are building in place.
1755     ac_srcdir=.
1756     ac_top_srcdir=$ac_top_builddir_sub
1757     ac_abs_top_srcdir=$ac_pwd ;;
1758   [\\/]* | ?:[\\/]* )  # Absolute name.
1759     ac_srcdir=$srcdir$ac_dir_suffix;
1760     ac_top_srcdir=$srcdir
1761     ac_abs_top_srcdir=$srcdir ;;
1762   *) # Relative name.
1763     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764     ac_top_srcdir=$ac_top_build_prefix$srcdir
1765     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1766 esac
1767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1768
1769     cd "$ac_dir" || { ac_status=$?; continue; }
1770     # Check for guested configure.
1771     if test -f "$ac_srcdir/configure.gnu"; then
1772       echo &&
1773       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774     elif test -f "$ac_srcdir/configure"; then
1775       echo &&
1776       $SHELL "$ac_srcdir/configure" --help=recursive
1777     else
1778       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1779     fi || ac_status=$?
1780     cd "$ac_pwd" || { ac_status=$?; break; }
1781   done
1782 fi
1783
1784 test -n "$ac_init_help" && exit $ac_status
1785 if $ac_init_version; then
1786   cat <<\_ACEOF
1787 configure
1788 generated by GNU Autoconf 2.69
1789
1790 Copyright (C) 2012 Free Software Foundation, Inc.
1791 This configure script is free software; the Free Software Foundation
1792 gives unlimited permission to copy, distribute and modify it.
1793 _ACEOF
1794   exit
1795 fi
1796
1797 ## ------------------------ ##
1798 ## Autoconf initialization. ##
1799 ## ------------------------ ##
1800
1801 # ac_fn_c_try_compile LINENO
1802 # --------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_compile ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   rm -f conftest.$ac_objext
1808   if { { ac_try="$ac_compile"
1809 case "(($ac_try" in
1810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811   *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815   (eval "$ac_compile") 2>conftest.err
1816   ac_status=$?
1817   if test -s conftest.err; then
1818     grep -v '^ *+' conftest.err >conftest.er1
1819     cat conftest.er1 >&5
1820     mv -f conftest.er1 conftest.err
1821   fi
1822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823   test $ac_status = 0; } && {
1824          test -z "$ac_c_werror_flag" ||
1825          test ! -s conftest.err
1826        } && test -s conftest.$ac_objext; then :
1827   ac_retval=0
1828 else
1829   $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832         ac_retval=1
1833 fi
1834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835   as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_compile
1838
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1843 {
1844   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845   rm -f conftest.$ac_objext
1846   if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_compile") 2>conftest.err
1854   ac_status=$?
1855   if test -s conftest.err; then
1856     grep -v '^ *+' conftest.err >conftest.er1
1857     cat conftest.er1 >&5
1858     mv -f conftest.er1 conftest.err
1859   fi
1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861   test $ac_status = 0; } && {
1862          test -z "$ac_cxx_werror_flag" ||
1863          test ! -s conftest.err
1864        } && test -s conftest.$ac_objext; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870         ac_retval=1
1871 fi
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873   as_fn_set_status $ac_retval
1874
1875 } # ac_fn_cxx_try_compile
1876
1877 # ac_fn_c_try_cpp LINENO
1878 # ----------------------
1879 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_c_try_cpp ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   if { { ac_try="$ac_cpp conftest.$ac_ext"
1884 case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1891   ac_status=$?
1892   if test -s conftest.err; then
1893     grep -v '^ *+' conftest.err >conftest.er1
1894     cat conftest.er1 >&5
1895     mv -f conftest.er1 conftest.err
1896   fi
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } > conftest.i && {
1899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1900          test ! -s conftest.err
1901        }; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1906
1907     ac_retval=1
1908 fi
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910   as_fn_set_status $ac_retval
1911
1912 } # ac_fn_c_try_cpp
1913
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1918 # accordingly.
1919 ac_fn_c_check_header_mongrel ()
1920 {
1921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922   if eval \${$3+:} false; then :
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926   $as_echo_n "(cached) " >&6
1927 fi
1928 eval ac_res=\$$3
1929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 else
1932   # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 #include <$2>
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941   ac_header_compiler=yes
1942 else
1943   ac_header_compiler=no
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1948
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h.  */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957   ac_header_preproc=yes
1958 else
1959   ac_header_preproc=no
1960 fi
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1964
1965 # So?  What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967   yes:no: )
1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972     ;;
1973   no:yes:* )
1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1978     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1982     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984     ;;
1985 esac
1986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989   $as_echo_n "(cached) " >&6
1990 else
1991   eval "$3=\$ac_header_compiler"
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 fi
1997   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_header_mongrel
2000
2001 # ac_fn_c_try_run LINENO
2002 # ----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2004 # that executables *can* be run.
2005 ac_fn_c_try_run ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   if { { ac_try="$ac_link"
2009 case "(($ac_try" in
2010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011   *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015   (eval "$ac_link") 2>&5
2016   ac_status=$?
2017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2019   { { case "(($ac_try" in
2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021   *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025   (eval "$ac_try") 2>&5
2026   ac_status=$?
2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028   test $ac_status = 0; }; }; then :
2029   ac_retval=0
2030 else
2031   $as_echo "$as_me: program exited with status $ac_status" >&5
2032        $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035        ac_retval=$ac_status
2036 fi
2037   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039   as_fn_set_status $ac_retval
2040
2041 } # ac_fn_c_try_run
2042
2043 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2044 # -------------------------------------------------------
2045 # Tests whether HEADER exists and can be compiled using the include files in
2046 # INCLUDES, setting the cache variable VAR accordingly.
2047 ac_fn_c_check_header_compile ()
2048 {
2049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053   $as_echo_n "(cached) " >&6
2054 else
2055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 $4
2058 #include <$2>
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061   eval "$3=yes"
2062 else
2063   eval "$3=no"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 eval ac_res=\$$3
2068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072 } # ac_fn_c_check_header_compile
2073
2074 # ac_fn_c_try_link LINENO
2075 # -----------------------
2076 # Try to link conftest.$ac_ext, and return whether this succeeded.
2077 ac_fn_c_try_link ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   rm -f conftest.$ac_objext conftest$ac_exeext
2081   if { { ac_try="$ac_link"
2082 case "(($ac_try" in
2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084   *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088   (eval "$ac_link") 2>conftest.err
2089   ac_status=$?
2090   if test -s conftest.err; then
2091     grep -v '^ *+' conftest.err >conftest.er1
2092     cat conftest.er1 >&5
2093     mv -f conftest.er1 conftest.err
2094   fi
2095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096   test $ac_status = 0; } && {
2097          test -z "$ac_c_werror_flag" ||
2098          test ! -s conftest.err
2099        } && test -s conftest$ac_exeext && {
2100          test "$cross_compiling" = yes ||
2101          test -x conftest$ac_exeext
2102        }; then :
2103   ac_retval=0
2104 else
2105   $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108         ac_retval=1
2109 fi
2110   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2111   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2112   # interfere with the next link command; also delete a directory that is
2113   # left behind by Apple's compiler.  We do this before executing the actions.
2114   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116   as_fn_set_status $ac_retval
2117
2118 } # ac_fn_c_try_link
2119
2120 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2121 # --------------------------------------------
2122 # Tries to find the compile-time value of EXPR in a program that includes
2123 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2124 # computed
2125 ac_fn_c_compute_int ()
2126 {
2127   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128   if test "$cross_compiling" = yes; then
2129     # Depending upon the size, compute the lo and hi bounds.
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h.  */
2132 $4
2133 int
2134 main ()
2135 {
2136 static int test_array [1 - 2 * !(($2) >= 0)];
2137 test_array [0] = 0;
2138 return test_array [0];
2139
2140   ;
2141   return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145   ac_lo=0 ac_mid=0
2146   while :; do
2147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2154 test_array [0] = 0;
2155 return test_array [0];
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_hi=$ac_mid; break
2163 else
2164   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2165                         if test $ac_lo -le $ac_mid; then
2166                           ac_lo= ac_hi=
2167                           break
2168                         fi
2169                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172   done
2173 else
2174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) < 0)];
2181 test_array [0] = 0;
2182 return test_array [0];
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189   ac_hi=-1 ac_mid=-1
2190   while :; do
2191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2198 test_array [0] = 0;
2199 return test_array [0];
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206   ac_lo=$ac_mid; break
2207 else
2208   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2209                         if test $ac_mid -le $ac_hi; then
2210                           ac_lo= ac_hi=
2211                           break
2212                         fi
2213                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216   done
2217 else
2218   ac_lo= ac_hi=
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 # Binary search between lo and hi bounds.
2224 while test "x$ac_lo" != "x$ac_hi"; do
2225   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 int
2230 main ()
2231 {
2232 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2233 test_array [0] = 0;
2234 return test_array [0];
2235
2236   ;
2237   return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241   ac_hi=$ac_mid
2242 else
2243   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 done
2247 case $ac_lo in #((
2248 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2249 '') ac_retval=1 ;;
2250 esac
2251   else
2252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h.  */
2254 $4
2255 static long int longval () { return $2; }
2256 static unsigned long int ulongval () { return $2; }
2257 #include <stdio.h>
2258 #include <stdlib.h>
2259 int
2260 main ()
2261 {
2262
2263   FILE *f = fopen ("conftest.val", "w");
2264   if (! f)
2265     return 1;
2266   if (($2) < 0)
2267     {
2268       long int i = longval ();
2269       if (i != ($2))
2270         return 1;
2271       fprintf (f, "%ld", i);
2272     }
2273   else
2274     {
2275       unsigned long int i = ulongval ();
2276       if (i != ($2))
2277         return 1;
2278       fprintf (f, "%lu", i);
2279     }
2280   /* Do not output a trailing newline, as this causes \r\n confusion
2281      on some platforms.  */
2282   return ferror (f) || fclose (f) != 0;
2283
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 if ac_fn_c_try_run "$LINENO"; then :
2289   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2290 else
2291   ac_retval=1
2292 fi
2293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2294   conftest.$ac_objext conftest.beam conftest.$ac_ext
2295 rm -f conftest.val
2296
2297   fi
2298   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299   as_fn_set_status $ac_retval
2300
2301 } # ac_fn_c_compute_int
2302
2303 # ac_fn_c_check_func LINENO FUNC VAR
2304 # ----------------------------------
2305 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2306 ac_fn_c_check_func ()
2307 {
2308   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \${$3+:} false; then :
2312   $as_echo_n "(cached) " >&6
2313 else
2314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2318 #define $2 innocuous_$2
2319
2320 /* System header to define __stub macros and hopefully few prototypes,
2321     which can conflict with char $2 (); below.
2322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323     <limits.h> exists even on freestanding compilers.  */
2324
2325 #ifdef __STDC__
2326 # include <limits.h>
2327 #else
2328 # include <assert.h>
2329 #endif
2330
2331 #undef $2
2332
2333 /* Override any GCC internal prototype to avoid an error.
2334    Use char because int might match the return type of a GCC
2335    builtin and then its argument prototype would still apply.  */
2336 #ifdef __cplusplus
2337 extern "C"
2338 #endif
2339 char $2 ();
2340 /* The GNU C library defines this for functions which it implements
2341     to always fail with ENOSYS.  Some functions are actually named
2342     something starting with __ and the normal name is an alias.  */
2343 #if defined __stub_$2 || defined __stub___$2
2344 choke me
2345 #endif
2346
2347 int
2348 main ()
2349 {
2350 return $2 ();
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 if ac_fn_c_try_link "$LINENO"; then :
2356   eval "$3=yes"
2357 else
2358   eval "$3=no"
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext \
2361     conftest$ac_exeext conftest.$ac_ext
2362 fi
2363 eval ac_res=\$$3
2364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368 } # ac_fn_c_check_func
2369
2370 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2371 # -------------------------------------------
2372 # Tests whether TYPE exists after having included INCLUDES, setting cache
2373 # variable VAR accordingly.
2374 ac_fn_c_check_type ()
2375 {
2376   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380   $as_echo_n "(cached) " >&6
2381 else
2382   eval "$3=no"
2383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h.  */
2385 $4
2386 int
2387 main ()
2388 {
2389 if (sizeof ($2))
2390          return 0;
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398 $4
2399 int
2400 main ()
2401 {
2402 if (sizeof (($2)))
2403             return 0;
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409
2410 else
2411   eval "$3=yes"
2412 fi
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 fi
2417 eval ac_res=\$$3
2418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421
2422 } # ac_fn_c_check_type
2423
2424 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2425 # ---------------------------------------------
2426 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2427 # accordingly.
2428 ac_fn_c_check_decl ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   as_decl_name=`echo $2|sed 's/ *(.*//'`
2432   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2434 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2435 if eval \${$3+:} false; then :
2436   $as_echo_n "(cached) " >&6
2437 else
2438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h.  */
2440 $4
2441 int
2442 main ()
2443 {
2444 #ifndef $as_decl_name
2445 #ifdef __cplusplus
2446   (void) $as_decl_use;
2447 #else
2448   (void) $as_decl_name;
2449 #endif
2450 #endif
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457   eval "$3=yes"
2458 else
2459   eval "$3=no"
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 eval ac_res=\$$3
2464                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 $as_echo "$ac_res" >&6; }
2466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467
2468 } # ac_fn_c_check_decl
2469
2470 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2471 # ----------------------------------------------------
2472 # Tries to find if the field MEMBER exists in type AGGR, after including
2473 # INCLUDES, setting cache variable VAR accordingly.
2474 ac_fn_c_check_member ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2478 $as_echo_n "checking for $2.$3... " >&6; }
2479 if eval \${$4+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h.  */
2484 $5
2485 int
2486 main ()
2487 {
2488 static $2 ac_aggr;
2489 if (ac_aggr.$3)
2490 return 0;
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_c_try_compile "$LINENO"; then :
2496   eval "$4=yes"
2497 else
2498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h.  */
2500 $5
2501 int
2502 main ()
2503 {
2504 static $2 ac_aggr;
2505 if (sizeof ac_aggr.$3)
2506 return 0;
2507   ;
2508   return 0;
2509 }
2510 _ACEOF
2511 if ac_fn_c_try_compile "$LINENO"; then :
2512   eval "$4=yes"
2513 else
2514   eval "$4=no"
2515 fi
2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 fi
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 fi
2520 eval ac_res=\$$4
2521                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524
2525 } # ac_fn_c_check_member
2526
2527 # ac_fn_cxx_try_link LINENO
2528 # -------------------------
2529 # Try to link conftest.$ac_ext, and return whether this succeeded.
2530 ac_fn_cxx_try_link ()
2531 {
2532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533   rm -f conftest.$ac_objext conftest$ac_exeext
2534   if { { ac_try="$ac_link"
2535 case "(($ac_try" in
2536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537   *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541   (eval "$ac_link") 2>conftest.err
2542   ac_status=$?
2543   if test -s conftest.err; then
2544     grep -v '^ *+' conftest.err >conftest.er1
2545     cat conftest.er1 >&5
2546     mv -f conftest.er1 conftest.err
2547   fi
2548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549   test $ac_status = 0; } && {
2550          test -z "$ac_cxx_werror_flag" ||
2551          test ! -s conftest.err
2552        } && test -s conftest$ac_exeext && {
2553          test "$cross_compiling" = yes ||
2554          test -x conftest$ac_exeext
2555        }; then :
2556   ac_retval=0
2557 else
2558   $as_echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561         ac_retval=1
2562 fi
2563   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2564   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2565   # interfere with the next link command; also delete a directory that is
2566   # left behind by Apple's compiler.  We do this before executing the actions.
2567   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2568   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569   as_fn_set_status $ac_retval
2570
2571 } # ac_fn_cxx_try_link
2572
2573 # ac_fn_cxx_check_func LINENO FUNC VAR
2574 # ------------------------------------
2575 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2576 ac_fn_cxx_check_func ()
2577 {
2578   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if eval \${$3+:} false; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h.  */
2586 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2588 #define $2 innocuous_$2
2589
2590 /* System header to define __stub macros and hopefully few prototypes,
2591     which can conflict with char $2 (); below.
2592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2593     <limits.h> exists even on freestanding compilers.  */
2594
2595 #ifdef __STDC__
2596 # include <limits.h>
2597 #else
2598 # include <assert.h>
2599 #endif
2600
2601 #undef $2
2602
2603 /* Override any GCC internal prototype to avoid an error.
2604    Use char because int might match the return type of a GCC
2605    builtin and then its argument prototype would still apply.  */
2606 #ifdef __cplusplus
2607 extern "C"
2608 #endif
2609 char $2 ();
2610 /* The GNU C library defines this for functions which it implements
2611     to always fail with ENOSYS.  Some functions are actually named
2612     something starting with __ and the normal name is an alias.  */
2613 #if defined __stub_$2 || defined __stub___$2
2614 choke me
2615 #endif
2616
2617 int
2618 main ()
2619 {
2620 return $2 ();
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 if ac_fn_cxx_try_link "$LINENO"; then :
2626   eval "$3=yes"
2627 else
2628   eval "$3=no"
2629 fi
2630 rm -f core conftest.err conftest.$ac_objext \
2631     conftest$ac_exeext conftest.$ac_ext
2632 fi
2633 eval ac_res=\$$3
2634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 $as_echo "$ac_res" >&6; }
2636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2637
2638 } # ac_fn_cxx_check_func
2639 cat >config.log <<_ACEOF
2640 This file contains any messages produced by compilers while
2641 running configure, to aid debugging if configure makes a mistake.
2642
2643 It was created by $as_me, which was
2644 generated by GNU Autoconf 2.69.  Invocation command line was
2645
2646   $ $0 $@
2647
2648 _ACEOF
2649 exec 5>>config.log
2650 {
2651 cat <<_ASUNAME
2652 ## --------- ##
2653 ## Platform. ##
2654 ## --------- ##
2655
2656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2661
2662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2664
2665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2672
2673 _ASUNAME
2674
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680     $as_echo "PATH: $as_dir"
2681   done
2682 IFS=$as_save_IFS
2683
2684 } >&5
2685
2686 cat >&5 <<_ACEOF
2687
2688
2689 ## ----------- ##
2690 ## Core tests. ##
2691 ## ----------- ##
2692
2693 _ACEOF
2694
2695
2696 # Keep a trace of the command line.
2697 # Strip out --no-create and --no-recursion so they do not pile up.
2698 # Strip out --silent because we don't want to record it for future runs.
2699 # Also quote any args containing shell meta-characters.
2700 # Make two passes to allow for proper duplicate-argument suppression.
2701 ac_configure_args=
2702 ac_configure_args0=
2703 ac_configure_args1=
2704 ac_must_keep_next=false
2705 for ac_pass in 1 2
2706 do
2707   for ac_arg
2708   do
2709     case $ac_arg in
2710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2712     | -silent | --silent | --silen | --sile | --sil)
2713       continue ;;
2714     *\'*)
2715       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2716     esac
2717     case $ac_pass in
2718     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2719     2)
2720       as_fn_append ac_configure_args1 " '$ac_arg'"
2721       if test $ac_must_keep_next = true; then
2722         ac_must_keep_next=false # Got value, back to normal.
2723       else
2724         case $ac_arg in
2725           *=* | --config-cache | -C | -disable-* | --disable-* \
2726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2728           | -with-* | --with-* | -without-* | --without-* | --x)
2729             case "$ac_configure_args0 " in
2730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2731             esac
2732             ;;
2733           -* ) ac_must_keep_next=true ;;
2734         esac
2735       fi
2736       as_fn_append ac_configure_args " '$ac_arg'"
2737       ;;
2738     esac
2739   done
2740 done
2741 { ac_configure_args0=; unset ac_configure_args0;}
2742 { ac_configure_args1=; unset ac_configure_args1;}
2743
2744 # When interrupted or exit'd, cleanup temporary files, and complete
2745 # config.log.  We remove comments because anyway the quotes in there
2746 # would cause problems or look ugly.
2747 # WARNING: Use '\'' to represent an apostrophe within the trap.
2748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2749 trap 'exit_status=$?
2750   # Save into config.log some information that might help in debugging.
2751   {
2752     echo
2753
2754     $as_echo "## ---------------- ##
2755 ## Cache variables. ##
2756 ## ---------------- ##"
2757     echo
2758     # The following way of writing the cache mishandles newlines in values,
2759 (
2760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2761     eval ac_val=\$$ac_var
2762     case $ac_val in #(
2763     *${as_nl}*)
2764       case $ac_var in #(
2765       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2767       esac
2768       case $ac_var in #(
2769       _ | IFS | as_nl) ;; #(
2770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2771       *) { eval $ac_var=; unset $ac_var;} ;;
2772       esac ;;
2773     esac
2774   done
2775   (set) 2>&1 |
2776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2777     *${as_nl}ac_space=\ *)
2778       sed -n \
2779         "s/'\''/'\''\\\\'\'''\''/g;
2780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2781       ;; #(
2782     *)
2783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2784       ;;
2785     esac |
2786     sort
2787 )
2788     echo
2789
2790     $as_echo "## ----------------- ##
2791 ## Output variables. ##
2792 ## ----------------- ##"
2793     echo
2794     for ac_var in $ac_subst_vars
2795     do
2796       eval ac_val=\$$ac_var
2797       case $ac_val in
2798       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799       esac
2800       $as_echo "$ac_var='\''$ac_val'\''"
2801     done | sort
2802     echo
2803
2804     if test -n "$ac_subst_files"; then
2805       $as_echo "## ------------------- ##
2806 ## File substitutions. ##
2807 ## ------------------- ##"
2808       echo
2809       for ac_var in $ac_subst_files
2810       do
2811         eval ac_val=\$$ac_var
2812         case $ac_val in
2813         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2814         esac
2815         $as_echo "$ac_var='\''$ac_val'\''"
2816       done | sort
2817       echo
2818     fi
2819
2820     if test -s confdefs.h; then
2821       $as_echo "## ----------- ##
2822 ## confdefs.h. ##
2823 ## ----------- ##"
2824       echo
2825       cat confdefs.h
2826       echo
2827     fi
2828     test "$ac_signal" != 0 &&
2829       $as_echo "$as_me: caught signal $ac_signal"
2830     $as_echo "$as_me: exit $exit_status"
2831   } >&5
2832   rm -f core *.core core.conftest.* &&
2833     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2834     exit $exit_status
2835 ' 0
2836 for ac_signal in 1 2 13 15; do
2837   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2838 done
2839 ac_signal=0
2840
2841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2842 rm -f -r conftest* confdefs.h
2843
2844 $as_echo "/* confdefs.h */" > confdefs.h
2845
2846 # Predefined preprocessor variables.
2847
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_NAME "$PACKAGE_NAME"
2850 _ACEOF
2851
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2854 _ACEOF
2855
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2858 _ACEOF
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_STRING "$PACKAGE_STRING"
2862 _ACEOF
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2866 _ACEOF
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_URL "$PACKAGE_URL"
2870 _ACEOF
2871
2872
2873 # Let the site file select an alternate cache file if it wants to.
2874 # Prefer an explicitly selected file to automatically selected ones.
2875 ac_site_file1=NONE
2876 ac_site_file2=NONE
2877 if test -n "$CONFIG_SITE"; then
2878   # We do not want a PATH search for config.site.
2879   case $CONFIG_SITE in #((
2880     -*)  ac_site_file1=./$CONFIG_SITE;;
2881     */*) ac_site_file1=$CONFIG_SITE;;
2882     *)   ac_site_file1=./$CONFIG_SITE;;
2883   esac
2884 elif test "x$prefix" != xNONE; then
2885   ac_site_file1=$prefix/share/config.site
2886   ac_site_file2=$prefix/etc/config.site
2887 else
2888   ac_site_file1=$ac_default_prefix/share/config.site
2889   ac_site_file2=$ac_default_prefix/etc/config.site
2890 fi
2891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2892 do
2893   test "x$ac_site_file" = xNONE && continue
2894   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2895     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2897     sed 's/^/| /' "$ac_site_file" >&5
2898     . "$ac_site_file" \
2899       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 as_fn_error $? "failed to load site script $ac_site_file
2902 See \`config.log' for more details" "$LINENO" 5; }
2903   fi
2904 done
2905
2906 if test -r "$cache_file"; then
2907   # Some versions of bash will fail to source /dev/null (special files
2908   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2909   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2910     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2911 $as_echo "$as_me: loading cache $cache_file" >&6;}
2912     case $cache_file in
2913       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2914       *)                      . "./$cache_file";;
2915     esac
2916   fi
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2919 $as_echo "$as_me: creating cache $cache_file" >&6;}
2920   >$cache_file
2921 fi
2922
2923 as_fn_append ac_header_list " stdlib.h"
2924 as_fn_append ac_header_list " unistd.h"
2925 as_fn_append ac_header_list " sys/param.h"
2926 # Check that the precious variables saved in the cache have kept the same
2927 # value.
2928 ac_cache_corrupted=false
2929 for ac_var in $ac_precious_vars; do
2930   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2931   eval ac_new_set=\$ac_env_${ac_var}_set
2932   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2933   eval ac_new_val=\$ac_env_${ac_var}_value
2934   case $ac_old_set,$ac_new_set in
2935     set,)
2936       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2937 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2938       ac_cache_corrupted=: ;;
2939     ,set)
2940       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2942       ac_cache_corrupted=: ;;
2943     ,);;
2944     *)
2945       if test "x$ac_old_val" != "x$ac_new_val"; then
2946         # differences in whitespace do not lead to failure.
2947         ac_old_val_w=`echo x $ac_old_val`
2948         ac_new_val_w=`echo x $ac_new_val`
2949         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2950           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2951 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2952           ac_cache_corrupted=:
2953         else
2954           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2955 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2956           eval $ac_var=\$ac_old_val
2957         fi
2958         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2959 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2960         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2961 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2962       fi;;
2963   esac
2964   # Pass precious variables to config.status.
2965   if test "$ac_new_set" = set; then
2966     case $ac_new_val in
2967     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2968     *) ac_arg=$ac_var=$ac_new_val ;;
2969     esac
2970     case " $ac_configure_args " in
2971       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2972       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2973     esac
2974   fi
2975 done
2976 if $ac_cache_corrupted; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2980 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2981   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2982 fi
2983 ## -------------------- ##
2984 ## Main body of script. ##
2985 ## -------------------- ##
2986
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992
2993
2994
2995
2996
2997
2998 ac_config_headers="$ac_config_headers config.h:config.in"
2999
3000
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3002 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3003     # Check whether --enable-maintainer-mode was given.
3004 if test "${enable_maintainer_mode+set}" = set; then :
3005   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3006 else
3007   USE_MAINTAINER_MODE=no
3008 fi
3009
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3011 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3012    if test $USE_MAINTAINER_MODE = yes; then
3013   MAINTAINER_MODE_TRUE=
3014   MAINTAINER_MODE_FALSE='#'
3015 else
3016   MAINTAINER_MODE_TRUE='#'
3017   MAINTAINER_MODE_FALSE=
3018 fi
3019
3020   MAINT=$MAINTAINER_MODE_TRUE
3021
3022
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035   $as_echo_n "(cached) " >&6
3036 else
3037   if test -n "$CC"; then
3038   ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045     for ac_exec_ext in '' $ac_executable_extensions; do
3046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052   done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 fi
3068 if test -z "$ac_cv_prog_CC"; then
3069   ac_ct_CC=$CC
3070   # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075   $as_echo_n "(cached) " >&6
3076 else
3077   if test -n "$ac_ct_CC"; then
3078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     for ac_exec_ext in '' $ac_executable_extensions; do
3086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087     ac_cv_prog_ac_ct_CC="gcc"
3088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089     break 2
3090   fi
3091 done
3092   done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106   if test "x$ac_ct_CC" = x; then
3107     CC=""
3108   else
3109     case $cross_compiling:$ac_tool_warned in
3110 yes:)
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3114 esac
3115     CC=$ac_ct_CC
3116   fi
3117 else
3118   CC="$ac_cv_prog_CC"
3119 fi
3120
3121 if test -z "$CC"; then
3122           if test -n "$ac_tool_prefix"; then
3123     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}cc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   if test -n "$CC"; then
3131   ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138     for ac_exec_ext in '' $ac_executable_extensions; do
3139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140     ac_cv_prog_CC="${ac_tool_prefix}cc"
3141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145   done
3146 IFS=$as_save_IFS
3147
3148 fi
3149 fi
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3157 fi
3158
3159
3160   fi
3161 fi
3162 if test -z "$CC"; then
3163   # Extract the first word of "cc", so it can be a program name with args.
3164 set dummy cc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$CC"; then
3171   ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173   ac_prog_rejected=no
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3182        ac_prog_rejected=yes
3183        continue
3184      fi
3185     ac_cv_prog_CC="cc"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 if test $ac_prog_rejected = yes; then
3194   # We found a bogon in the path, so make sure we never use it.
3195   set dummy $ac_cv_prog_CC
3196   shift
3197   if test $# != 0; then
3198     # We chose a different compiler from the bogus one.
3199     # However, it has the same basename, so the bogon will be chosen
3200     # first if we set CC to just the basename; use the full file name.
3201     shift
3202     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3203   fi
3204 fi
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 if test -z "$CC"; then
3219   if test -n "$ac_tool_prefix"; then
3220   for ac_prog in cl.exe
3221   do
3222     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_CC+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   if test -n "$CC"; then
3230   ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237     for ac_exec_ext in '' $ac_executable_extensions; do
3238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241     break 2
3242   fi
3243 done
3244   done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 CC=$ac_cv_prog_CC
3250 if test -n "$CC"; then
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252 $as_echo "$CC" >&6; }
3253 else
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 fi
3257
3258
3259     test -n "$CC" && break
3260   done
3261 fi
3262 if test -z "$CC"; then
3263   ac_ct_CC=$CC
3264   for ac_prog in cl.exe
3265 do
3266   # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$ac_ct_CC"; then
3274   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283     ac_cv_prog_ac_ct_CC="$ac_prog"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303   test -n "$ac_ct_CC" && break
3304 done
3305
3306   if test "x$ac_ct_CC" = x; then
3307     CC=""
3308   else
3309     case $cross_compiling:$ac_tool_warned in
3310 yes:)
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313 ac_tool_warned=yes ;;
3314 esac
3315     CC=$ac_ct_CC
3316   fi
3317 fi
3318
3319 fi
3320
3321
3322 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error $? "no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details" "$LINENO" 5; }
3326
3327 # Provide some information about the compiler.
3328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3329 set X $ac_compile
3330 ac_compiler=$2
3331 for ac_option in --version -v -V -qversion; do
3332   { { ac_try="$ac_compiler $ac_option >&5"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3340   ac_status=$?
3341   if test -s conftest.err; then
3342     sed '10a\
3343 ... rest of stderr output deleted ...
3344          10q' conftest.err >conftest.er1
3345     cat conftest.er1 >&5
3346   fi
3347   rm -f conftest.er1 conftest.err
3348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349   test $ac_status = 0; }
3350 done
3351
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h.  */
3354
3355 int
3356 main ()
3357 {
3358
3359   ;
3360   return 0;
3361 }
3362 _ACEOF
3363 ac_clean_files_save=$ac_clean_files
3364 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3365 # Try to create an executable without -o first, disregard a.out.
3366 # It will help us diagnose broken compilers, and finding out an intuition
3367 # of exeext.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3369 $as_echo_n "checking whether the C compiler works... " >&6; }
3370 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3371
3372 # The possible output files:
3373 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3374
3375 ac_rmfiles=
3376 for ac_file in $ac_files
3377 do
3378   case $ac_file in
3379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3380     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3381   esac
3382 done
3383 rm -f $ac_rmfiles
3384
3385 if { { ac_try="$ac_link_default"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_link_default") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }; then :
3396   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3397 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3398 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3399 # so that the user can short-circuit this test for compilers unknown to
3400 # Autoconf.
3401 for ac_file in $ac_files ''
3402 do
3403   test -f "$ac_file" || continue
3404   case $ac_file in
3405     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3406         ;;
3407     [ab].out )
3408         # We found the default executable, but exeext='' is most
3409         # certainly right.
3410         break;;
3411     *.* )
3412         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3413         then :; else
3414            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415         fi
3416         # We set ac_cv_exeext here because the later test for it is not
3417         # safe: cross compilers may not add the suffix if given an `-o'
3418         # argument, so we may need to know it at that point already.
3419         # Even if this section looks crufty: it has the advantage of
3420         # actually working.
3421         break;;
3422     * )
3423         break;;
3424   esac
3425 done
3426 test "$ac_cv_exeext" = no && ac_cv_exeext=
3427
3428 else
3429   ac_file=''
3430 fi
3431 if test -z "$ac_file"; then :
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 $as_echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error 77 "C compiler cannot create executables
3440 See \`config.log' for more details" "$LINENO" 5; }
3441 else
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443 $as_echo "yes" >&6; }
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3446 $as_echo_n "checking for C compiler default output file name... " >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3448 $as_echo "$ac_file" >&6; }
3449 ac_exeext=$ac_cv_exeext
3450
3451 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3452 ac_clean_files=$ac_clean_files_save
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3454 $as_echo_n "checking for suffix of executables... " >&6; }
3455 if { { ac_try="$ac_link"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462   (eval "$ac_link") 2>&5
3463   ac_status=$?
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; }; then :
3466   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3467 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3468 # work properly (i.e., refer to `conftest.exe'), while it won't with
3469 # `rm'.
3470 for ac_file in conftest.exe conftest conftest.*; do
3471   test -f "$ac_file" || continue
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475           break;;
3476     * ) break;;
3477   esac
3478 done
3479 else
3480   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3483 See \`config.log' for more details" "$LINENO" 5; }
3484 fi
3485 rm -f conftest conftest$ac_cv_exeext
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3487 $as_echo "$ac_cv_exeext" >&6; }
3488
3489 rm -f conftest.$ac_ext
3490 EXEEXT=$ac_cv_exeext
3491 ac_exeext=$EXEEXT
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494 #include <stdio.h>
3495 int
3496 main ()
3497 {
3498 FILE *f = fopen ("conftest.out", "w");
3499  return ferror (f) || fclose (f) != 0;
3500
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 ac_clean_files="$ac_clean_files conftest.out"
3506 # Check that the compiler produces executables we can run.  If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 if test "$cross_compiling" != yes; then
3511   { { ac_try="$ac_link"
3512 case "(($ac_try" in
3513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514   *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518   (eval "$ac_link") 2>&5
3519   ac_status=$?
3520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521   test $ac_status = 0; }
3522   if { ac_try='./conftest$ac_cv_exeext'
3523   { { case "(($ac_try" in
3524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525   *) ac_try_echo=$ac_try;;
3526 esac
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529   (eval "$ac_try") 2>&5
3530   ac_status=$?
3531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532   test $ac_status = 0; }; }; then
3533     cross_compiling=no
3534   else
3535     if test "$cross_compiling" = maybe; then
3536         cross_compiling=yes
3537     else
3538         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error $? "cannot run C compiled programs.
3541 If you meant to cross compile, use \`--host'.
3542 See \`config.log' for more details" "$LINENO" 5; }
3543     fi
3544   fi
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3547 $as_echo "$cross_compiling" >&6; }
3548
3549 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3550 ac_clean_files=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552 $as_echo_n "checking for suffix of object files... " >&6; }
3553 if ${ac_cv_objext+:} false; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.o conftest.obj
3568 if { { ac_try="$ac_compile"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_compile") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }; then :
3579   for ac_file in conftest.o conftest.obj conftest.*; do
3580   test -f "$ac_file" || continue;
3581   case $ac_file in
3582     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584        break;;
3585   esac
3586 done
3587 else
3588   $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 fi
3596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599 $as_echo "$ac_cv_objext" >&6; }
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$OBJEXT
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604 if ${ac_cv_c_compiler_gnu+:} false; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613 #ifndef __GNUC__
3614        choke me
3615 #endif
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622   ac_compiler_gnu=yes
3623 else
3624   ac_compiler_gnu=no
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3628
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632 if test $ac_compiler_gnu = yes; then
3633   GCC=yes
3634 else
3635   GCC=
3636 fi
3637 ac_test_CFLAGS=${CFLAGS+set}
3638 ac_save_CFLAGS=$CFLAGS
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3641 if ${ac_cv_prog_cc_g+:} false; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   ac_save_c_werror_flag=$ac_c_werror_flag
3645    ac_c_werror_flag=yes
3646    ac_cv_prog_cc_g=no
3647    CFLAGS="-g"
3648    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660   ac_cv_prog_cc_g=yes
3661 else
3662   CFLAGS=""
3663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h.  */
3665
3666 int
3667 main ()
3668 {
3669
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675
3676 else
3677   ac_c_werror_flag=$ac_save_c_werror_flag
3678          CFLAGS="-g"
3679          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h.  */
3681
3682 int
3683 main ()
3684 {
3685
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_cv_prog_cc_g=yes
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698    ac_c_werror_flag=$ac_save_c_werror_flag
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701 $as_echo "$ac_cv_prog_cc_g" >&6; }
3702 if test "$ac_test_CFLAGS" = set; then
3703   CFLAGS=$ac_save_CFLAGS
3704 elif test $ac_cv_prog_cc_g = yes; then
3705   if test "$GCC" = yes; then
3706     CFLAGS="-g -O2"
3707   else
3708     CFLAGS="-g"
3709   fi
3710 else
3711   if test "$GCC" = yes; then
3712     CFLAGS="-O2"
3713   else
3714     CFLAGS=
3715   fi
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719 if ${ac_cv_prog_cc_c89+:} false; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   ac_cv_prog_cc_c89=no
3723 ac_save_CC=$CC
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726 #include <stdarg.h>
3727 #include <stdio.h>
3728 struct stat;
3729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3730 struct buf { int x; };
3731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732 static char *e (p, i)
3733      char **p;
3734      int i;
3735 {
3736   return p[i];
3737 }
3738 static char *f (char * (*g) (char **, int), char **p, ...)
3739 {
3740   char *s;
3741   va_list v;
3742   va_start (v,p);
3743   s = g (p, va_arg (v,int));
3744   va_end (v);
3745   return s;
3746 }
3747
3748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3749    function prototypes and stuff, but not '\xHH' hex character constants.
3750    These don't provoke an error unfortunately, instead are silently treated
3751    as 'x'.  The following induces an error, until -std is added to get
3752    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3753    array size at least.  It's necessary to write '\x00'==0 to get something
3754    that's true only with -std.  */
3755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756
3757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758    inside strings and character constants.  */
3759 #define FOO(x) 'x'
3760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761
3762 int test (int i, double x);
3763 struct s1 {int (*f) (int a);};
3764 struct s2 {int (*f) (double a);};
3765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766 int argc;
3767 char **argv;
3768 int
3769 main ()
3770 {
3771 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778 do
3779   CC="$ac_save_CC $ac_arg"
3780   if ac_fn_c_try_compile "$LINENO"; then :
3781   ac_cv_prog_cc_c89=$ac_arg
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext
3784   test "x$ac_cv_prog_cc_c89" != "xno" && break
3785 done
3786 rm -f conftest.$ac_ext
3787 CC=$ac_save_CC
3788
3789 fi
3790 # AC_CACHE_VAL
3791 case "x$ac_cv_prog_cc_c89" in
3792   x)
3793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3794 $as_echo "none needed" >&6; } ;;
3795   xno)
3796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3797 $as_echo "unsupported" >&6; } ;;
3798   *)
3799     CC="$CC $ac_cv_prog_cc_c89"
3800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3802 esac
3803 if test "x$ac_cv_prog_cc_c89" != xno; then :
3804
3805 fi
3806
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
3813 ac_ext=cpp
3814 ac_cpp='$CXXCPP $CPPFLAGS'
3815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 if test -z "$CXX"; then
3819   if test -n "$CCC"; then
3820     CXX=$CCC
3821   else
3822     if test -n "$ac_tool_prefix"; then
3823   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3824   do
3825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_CXX+:} false; then :
3830   $as_echo_n "(cached) " >&6
3831 else
3832   if test -n "$CXX"; then
3833   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840     for ac_exec_ext in '' $ac_executable_extensions; do
3841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847   done
3848 IFS=$as_save_IFS
3849
3850 fi
3851 fi
3852 CXX=$ac_cv_prog_CXX
3853 if test -n "$CXX"; then
3854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3855 $as_echo "$CXX" >&6; }
3856 else
3857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 fi
3860
3861
3862     test -n "$CXX" && break
3863   done
3864 fi
3865 if test -z "$CXX"; then
3866   ac_ct_CXX=$CXX
3867   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3868 do
3869   # Extract the first word of "$ac_prog", so it can be a program name with args.
3870 set dummy $ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   if test -n "$ac_ct_CXX"; then
3877   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3881 do
3882   IFS=$as_save_IFS
3883   test -z "$as_dir" && as_dir=.
3884     for ac_exec_ext in '' $ac_executable_extensions; do
3885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886     ac_cv_prog_ac_ct_CXX="$ac_prog"
3887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888     break 2
3889   fi
3890 done
3891   done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3897 if test -n "$ac_ct_CXX"; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3899 $as_echo "$ac_ct_CXX" >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905
3906   test -n "$ac_ct_CXX" && break
3907 done
3908
3909   if test "x$ac_ct_CXX" = x; then
3910     CXX="g++"
3911   else
3912     case $cross_compiling:$ac_tool_warned in
3913 yes:)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3917 esac
3918     CXX=$ac_ct_CXX
3919   fi
3920 fi
3921
3922   fi
3923 fi
3924 # Provide some information about the compiler.
3925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3926 set X $ac_compile
3927 ac_compiler=$2
3928 for ac_option in --version -v -V -qversion; do
3929   { { ac_try="$ac_compiler $ac_option >&5"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3937   ac_status=$?
3938   if test -s conftest.err; then
3939     sed '10a\
3940 ... rest of stderr output deleted ...
3941          10q' conftest.err >conftest.er1
3942     cat conftest.er1 >&5
3943   fi
3944   rm -f conftest.er1 conftest.err
3945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946   test $ac_status = 0; }
3947 done
3948
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3950 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3951 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3952   $as_echo_n "(cached) " >&6
3953 else
3954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h.  */
3956
3957 int
3958 main ()
3959 {
3960 #ifndef __GNUC__
3961        choke me
3962 #endif
3963
3964   ;
3965   return 0;
3966 }
3967 _ACEOF
3968 if ac_fn_cxx_try_compile "$LINENO"; then :
3969   ac_compiler_gnu=yes
3970 else
3971   ac_compiler_gnu=no
3972 fi
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3975
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3978 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3979 if test $ac_compiler_gnu = yes; then
3980   GXX=yes
3981 else
3982   GXX=
3983 fi
3984 ac_test_CXXFLAGS=${CXXFLAGS+set}
3985 ac_save_CXXFLAGS=$CXXFLAGS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3987 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3988 if ${ac_cv_prog_cxx_g+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3992    ac_cxx_werror_flag=yes
3993    ac_cv_prog_cxx_g=no
3994    CXXFLAGS="-g"
3995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_cxx_try_compile "$LINENO"; then :
4007   ac_cv_prog_cxx_g=yes
4008 else
4009   CXXFLAGS=""
4010       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_cxx_try_compile "$LINENO"; then :
4022
4023 else
4024   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4025          CXXFLAGS="-g"
4026          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h.  */
4028
4029 int
4030 main ()
4031 {
4032
4033   ;
4034   return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_cxx_try_compile "$LINENO"; then :
4038   ac_cv_prog_cxx_g=yes
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4048 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4049 if test "$ac_test_CXXFLAGS" = set; then
4050   CXXFLAGS=$ac_save_CXXFLAGS
4051 elif test $ac_cv_prog_cxx_g = yes; then
4052   if test "$GXX" = yes; then
4053     CXXFLAGS="-g -O2"
4054   else
4055     CXXFLAGS="-g"
4056   fi
4057 else
4058   if test "$GXX" = yes; then
4059     CXXFLAGS="-O2"
4060   else
4061     CXXFLAGS=
4062   fi
4063 fi
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070
4071
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4078 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4079 # On Suns, sometimes $CPP names a directory.
4080 if test -n "$CPP" && test -d "$CPP"; then
4081   CPP=
4082 fi
4083 if test -z "$CPP"; then
4084   if ${ac_cv_prog_CPP+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087       # Double quotes because CPP needs to be expanded
4088     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4089     do
4090       ac_preproc_ok=false
4091 for ac_c_preproc_warn_flag in '' yes
4092 do
4093   # Use a header file that comes with gcc, so configuring glibc
4094   # with a fresh cross-compiler works.
4095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096   # <limits.h> exists even on freestanding compilers.
4097   # On the NeXT, cc -E runs the code through the compiler's parser,
4098   # not just through cpp. "Syntax error" is here to catch this case.
4099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h.  */
4101 #ifdef __STDC__
4102 # include <limits.h>
4103 #else
4104 # include <assert.h>
4105 #endif
4106                      Syntax error
4107 _ACEOF
4108 if ac_fn_c_try_cpp "$LINENO"; then :
4109
4110 else
4111   # Broken: fails on valid input.
4112 continue
4113 fi
4114 rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116   # OK, works on sane cases.  Now check whether nonexistent headers
4117   # can be detected and how.
4118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120 #include <ac_nonexistent.h>
4121 _ACEOF
4122 if ac_fn_c_try_cpp "$LINENO"; then :
4123   # Broken: success on invalid input.
4124 continue
4125 else
4126   # Passes both tests.
4127 ac_preproc_ok=:
4128 break
4129 fi
4130 rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132 done
4133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134 rm -f conftest.i conftest.err conftest.$ac_ext
4135 if $ac_preproc_ok; then :
4136   break
4137 fi
4138
4139     done
4140     ac_cv_prog_CPP=$CPP
4141
4142 fi
4143   CPP=$ac_cv_prog_CPP
4144 else
4145   ac_cv_prog_CPP=$CPP
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4148 $as_echo "$CPP" >&6; }
4149 ac_preproc_ok=false
4150 for ac_c_preproc_warn_flag in '' yes
4151 do
4152   # Use a header file that comes with gcc, so configuring glibc
4153   # with a fresh cross-compiler works.
4154   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4155   # <limits.h> exists even on freestanding compilers.
4156   # On the NeXT, cc -E runs the code through the compiler's parser,
4157   # not just through cpp. "Syntax error" is here to catch this case.
4158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160 #ifdef __STDC__
4161 # include <limits.h>
4162 #else
4163 # include <assert.h>
4164 #endif
4165                      Syntax error
4166 _ACEOF
4167 if ac_fn_c_try_cpp "$LINENO"; then :
4168
4169 else
4170   # Broken: fails on valid input.
4171 continue
4172 fi
4173 rm -f conftest.err conftest.i conftest.$ac_ext
4174
4175   # OK, works on sane cases.  Now check whether nonexistent headers
4176   # can be detected and how.
4177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h.  */
4179 #include <ac_nonexistent.h>
4180 _ACEOF
4181 if ac_fn_c_try_cpp "$LINENO"; then :
4182   # Broken: success on invalid input.
4183 continue
4184 else
4185   # Passes both tests.
4186 ac_preproc_ok=:
4187 break
4188 fi
4189 rm -f conftest.err conftest.i conftest.$ac_ext
4190
4191 done
4192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4193 rm -f conftest.i conftest.err conftest.$ac_ext
4194 if $ac_preproc_ok; then :
4195
4196 else
4197   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4200 See \`config.log' for more details" "$LINENO" 5; }
4201 fi
4202
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4212 if ${ac_cv_path_GREP+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if test -z "$GREP"; then
4216   ac_path_GREP_found=false
4217   # Loop through the user's path and test for each of PROGNAME-LIST
4218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223     for ac_prog in grep ggrep; do
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4226       as_fn_executable_p "$ac_path_GREP" || continue
4227 # Check for GNU ac_path_GREP and select it if it is found.
4228   # Check for GNU $ac_path_GREP
4229 case `"$ac_path_GREP" --version 2>&1` in
4230 *GNU*)
4231   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4232 *)
4233   ac_count=0
4234   $as_echo_n 0123456789 >"conftest.in"
4235   while :
4236   do
4237     cat "conftest.in" "conftest.in" >"conftest.tmp"
4238     mv "conftest.tmp" "conftest.in"
4239     cp "conftest.in" "conftest.nl"
4240     $as_echo 'GREP' >> "conftest.nl"
4241     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243     as_fn_arith $ac_count + 1 && ac_count=$as_val
4244     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4245       # Best one so far, save it but keep looking for a better one
4246       ac_cv_path_GREP="$ac_path_GREP"
4247       ac_path_GREP_max=$ac_count
4248     fi
4249     # 10*(2^10) chars as input seems more than enough
4250     test $ac_count -gt 10 && break
4251   done
4252   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4253 esac
4254
4255       $ac_path_GREP_found && break 3
4256     done
4257   done
4258   done
4259 IFS=$as_save_IFS
4260   if test -z "$ac_cv_path_GREP"; then
4261     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4262   fi
4263 else
4264   ac_cv_path_GREP=$GREP
4265 fi
4266
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270  GREP="$ac_cv_path_GREP"
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if ${ac_cv_path_EGREP+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4279    then ac_cv_path_EGREP="$GREP -E"
4280    else
4281      if test -z "$EGREP"; then
4282   ac_path_EGREP_found=false
4283   # Loop through the user's path and test for each of PROGNAME-LIST
4284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289     for ac_prog in egrep; do
4290     for ac_exec_ext in '' $ac_executable_extensions; do
4291       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4292       as_fn_executable_p "$ac_path_EGREP" || continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294   # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4296 *GNU*)
4297   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4298 *)
4299   ac_count=0
4300   $as_echo_n 0123456789 >"conftest.in"
4301   while :
4302   do
4303     cat "conftest.in" "conftest.in" >"conftest.tmp"
4304     mv "conftest.tmp" "conftest.in"
4305     cp "conftest.in" "conftest.nl"
4306     $as_echo 'EGREP' >> "conftest.nl"
4307     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309     as_fn_arith $ac_count + 1 && ac_count=$as_val
4310     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311       # Best one so far, save it but keep looking for a better one
4312       ac_cv_path_EGREP="$ac_path_EGREP"
4313       ac_path_EGREP_max=$ac_count
4314     fi
4315     # 10*(2^10) chars as input seems more than enough
4316     test $ac_count -gt 10 && break
4317   done
4318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321       $ac_path_EGREP_found && break 3
4322     done
4323   done
4324   done
4325 IFS=$as_save_IFS
4326   if test -z "$ac_cv_path_EGREP"; then
4327     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4328   fi
4329 else
4330   ac_cv_path_EGREP=$EGREP
4331 fi
4332
4333    fi
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4336 $as_echo "$ac_cv_path_EGREP" >&6; }
4337  EGREP="$ac_cv_path_EGREP"
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4341 $as_echo_n "checking for ANSI C header files... " >&6; }
4342 if ${ac_cv_header_stdc+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h.  */
4347 #include <stdlib.h>
4348 #include <stdarg.h>
4349 #include <string.h>
4350 #include <float.h>
4351
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"; then :
4361   ac_cv_header_stdc=yes
4362 else
4363   ac_cv_header_stdc=no
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366
4367 if test $ac_cv_header_stdc = yes; then
4368   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h.  */
4371 #include <string.h>
4372
4373 _ACEOF
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375   $EGREP "memchr" >/dev/null 2>&1; then :
4376
4377 else
4378   ac_cv_header_stdc=no
4379 fi
4380 rm -f conftest*
4381
4382 fi
4383
4384 if test $ac_cv_header_stdc = yes; then
4385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h.  */
4388 #include <stdlib.h>
4389
4390 _ACEOF
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392   $EGREP "free" >/dev/null 2>&1; then :
4393
4394 else
4395   ac_cv_header_stdc=no
4396 fi
4397 rm -f conftest*
4398
4399 fi
4400
4401 if test $ac_cv_header_stdc = yes; then
4402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4403   if test "$cross_compiling" = yes; then :
4404   :
4405 else
4406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h.  */
4408 #include <ctype.h>
4409 #include <stdlib.h>
4410 #if ((' ' & 0x0FF) == 0x020)
4411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4413 #else
4414 # define ISLOWER(c) \
4415                    (('a' <= (c) && (c) <= 'i') \
4416                      || ('j' <= (c) && (c) <= 'r') \
4417                      || ('s' <= (c) && (c) <= 'z'))
4418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4419 #endif
4420
4421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4422 int
4423 main ()
4424 {
4425   int i;
4426   for (i = 0; i < 256; i++)
4427     if (XOR (islower (i), ISLOWER (i))
4428         || toupper (i) != TOUPPER (i))
4429       return 2;
4430   return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_run "$LINENO"; then :
4434
4435 else
4436   ac_cv_header_stdc=no
4437 fi
4438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4439   conftest.$ac_objext conftest.beam conftest.$ac_ext
4440 fi
4441
4442 fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4445 $as_echo "$ac_cv_header_stdc" >&6; }
4446 if test $ac_cv_header_stdc = yes; then
4447
4448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4449
4450 fi
4451
4452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4454                   inttypes.h stdint.h unistd.h
4455 do :
4456   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4458 "
4459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4460   cat >>confdefs.h <<_ACEOF
4461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 fi
4465
4466 done
4467
4468
4469
4470   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4471 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4472   MINIX=yes
4473 else
4474   MINIX=
4475 fi
4476
4477
4478   if test "$MINIX" = yes; then
4479
4480 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4481
4482
4483 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4484
4485
4486 $as_echo "#define _MINIX 1" >>confdefs.h
4487
4488   fi
4489
4490
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4492 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4493 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498
4499 #         define __EXTENSIONS__ 1
4500           $ac_includes_default
4501 int
4502 main ()
4503 {
4504
4505   ;
4506   return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510   ac_cv_safe_to_define___extensions__=yes
4511 else
4512   ac_cv_safe_to_define___extensions__=no
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4517 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4518   test $ac_cv_safe_to_define___extensions__ = yes &&
4519     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4520
4521   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4522
4523   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4524
4525   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4526
4527   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4528
4529
4530 ac_aux_dir=
4531 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4532   if test -f "$ac_dir/install-sh"; then
4533     ac_aux_dir=$ac_dir
4534     ac_install_sh="$ac_aux_dir/install-sh -c"
4535     break
4536   elif test -f "$ac_dir/install.sh"; then
4537     ac_aux_dir=$ac_dir
4538     ac_install_sh="$ac_aux_dir/install.sh -c"
4539     break
4540   elif test -f "$ac_dir/shtool"; then
4541     ac_aux_dir=$ac_dir
4542     ac_install_sh="$ac_aux_dir/shtool install -c"
4543     break
4544   fi
4545 done
4546 if test -z "$ac_aux_dir"; then
4547   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4548 fi
4549
4550 # These three variables are undocumented and unsupported,
4551 # and are intended to be withdrawn in a future Autoconf release.
4552 # They can cause serious problems if a builder's source tree is in a directory
4553 # whose full name contains unusual characters.
4554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4556 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4557
4558
4559 # Make sure we can run config.sub.
4560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4561   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4564 $as_echo_n "checking build system type... " >&6; }
4565 if ${ac_cv_build+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   ac_build_alias=$build_alias
4569 test "x$ac_build_alias" = x &&
4570   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4571 test "x$ac_build_alias" = x &&
4572   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4574   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4578 $as_echo "$ac_cv_build" >&6; }
4579 case $ac_cv_build in
4580 *-*-*) ;;
4581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4582 esac
4583 build=$ac_cv_build
4584 ac_save_IFS=$IFS; IFS='-'
4585 set x $ac_cv_build
4586 shift
4587 build_cpu=$1
4588 build_vendor=$2
4589 shift; shift
4590 # Remember, the first character of IFS is used to create $*,
4591 # except with old shells:
4592 build_os=$*
4593 IFS=$ac_save_IFS
4594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4595
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4598 $as_echo_n "checking host system type... " >&6; }
4599 if ${ac_cv_host+:} false; then :
4600   $as_echo_n "(cached) " >&6
4601 else
4602   if test "x$host_alias" = x; then
4603   ac_cv_host=$ac_cv_build
4604 else
4605   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4606     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4607 fi
4608
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4611 $as_echo "$ac_cv_host" >&6; }
4612 case $ac_cv_host in
4613 *-*-*) ;;
4614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4615 esac
4616 host=$ac_cv_host
4617 ac_save_IFS=$IFS; IFS='-'
4618 set x $ac_cv_host
4619 shift
4620 host_cpu=$1
4621 host_vendor=$2
4622 shift; shift
4623 # Remember, the first character of IFS is used to create $*,
4624 # except with old shells:
4625 host_os=$*
4626 IFS=$ac_save_IFS
4627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4628
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4631 $as_echo_n "checking target system type... " >&6; }
4632 if ${ac_cv_target+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   if test "x$target_alias" = x; then
4636   ac_cv_target=$ac_cv_host
4637 else
4638   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4639     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4640 fi
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4644 $as_echo "$ac_cv_target" >&6; }
4645 case $ac_cv_target in
4646 *-*-*) ;;
4647 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4648 esac
4649 target=$ac_cv_target
4650 ac_save_IFS=$IFS; IFS='-'
4651 set x $ac_cv_target
4652 shift
4653 target_cpu=$1
4654 target_vendor=$2
4655 shift; shift
4656 # Remember, the first character of IFS is used to create $*,
4657 # except with old shells:
4658 target_os=$*
4659 IFS=$ac_save_IFS
4660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4661
4662
4663 # The aliases save the names the user supplied, while $host etc.
4664 # will get canonicalized.
4665 test -n "$target_alias" &&
4666   test "$program_prefix$program_suffix$program_transform_name" = \
4667     NONENONEs,x,x, &&
4668   program_prefix=${target_alias}-
4669
4670 # The tests for host and target for $enable_largefile require
4671 # canonical names.
4672
4673
4674
4675 # As the $enable_largefile decision depends on --enable-plugins we must set it
4676 # even in directories otherwise not depending on the $plugins option.
4677
4678
4679   maybe_plugins=no
4680   for ac_header in dlfcn.h
4681 do :
4682   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4683 "
4684 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4685   cat >>confdefs.h <<_ACEOF
4686 #define HAVE_DLFCN_H 1
4687 _ACEOF
4688  maybe_plugins=yes
4689 fi
4690
4691 done
4692
4693   for ac_header in windows.h
4694 do :
4695   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4696 "
4697 if test "x$ac_cv_header_windows_h" = xyes; then :
4698   cat >>confdefs.h <<_ACEOF
4699 #define HAVE_WINDOWS_H 1
4700 _ACEOF
4701  maybe_plugins=yes
4702 fi
4703
4704 done
4705
4706
4707   # Check whether --enable-plugins was given.
4708 if test "${enable_plugins+set}" = set; then :
4709   enableval=$enable_plugins; case "${enableval}" in
4710       no) plugins=no ;;
4711       *) plugins=yes
4712          if test "$maybe_plugins" != "yes" ; then
4713            as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4714          fi ;;
4715      esac
4716 else
4717   plugins=$maybe_plugins
4718
4719 fi
4720
4721   if test "$plugins" = "yes"; then
4722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4723 $as_echo_n "checking for library containing dlsym... " >&6; }
4724 if ${ac_cv_search_dlsym+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   ac_func_search_save_LIBS=$LIBS
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730
4731 /* Override any GCC internal prototype to avoid an error.
4732    Use char because int might match the return type of a GCC
4733    builtin and then its argument prototype would still apply.  */
4734 #ifdef __cplusplus
4735 extern "C"
4736 #endif
4737 char dlsym ();
4738 int
4739 main ()
4740 {
4741 return dlsym ();
4742   ;
4743   return 0;
4744 }
4745 _ACEOF
4746 for ac_lib in '' dl; do
4747   if test -z "$ac_lib"; then
4748     ac_res="none required"
4749   else
4750     ac_res=-l$ac_lib
4751     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4752   fi
4753   if ac_fn_c_try_link "$LINENO"; then :
4754   ac_cv_search_dlsym=$ac_res
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext \
4757     conftest$ac_exeext
4758   if ${ac_cv_search_dlsym+:} false; then :
4759   break
4760 fi
4761 done
4762 if ${ac_cv_search_dlsym+:} false; then :
4763
4764 else
4765   ac_cv_search_dlsym=no
4766 fi
4767 rm conftest.$ac_ext
4768 LIBS=$ac_func_search_save_LIBS
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4771 $as_echo "$ac_cv_search_dlsym" >&6; }
4772 ac_res=$ac_cv_search_dlsym
4773 if test "$ac_res" != no; then :
4774   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4775
4776 fi
4777
4778   fi
4779
4780
4781 case "${host}" in
4782   sparc-*-solaris*|i?86-*-solaris*)
4783     # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4784     # were mutually exclusive until Solaris 11.3.  Without procfs support,
4785     # the bfd/ elf module cannot provide certain routines such as
4786     # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
4787     # explicitly requested large-file support through the
4788     # --enable-largefile switch, disable large-file support in favor of
4789     # procfs support.
4790     #
4791     # Check if <sys/procfs.h> is incompatible with large-file support.
4792     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h.  */
4794 #define _FILE_OFFSET_BITS 64
4795 #define _STRUCTURED_PROC 1
4796 #include <sys/procfs.h>
4797 int
4798 main ()
4799 {
4800
4801   ;
4802   return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806   acx_cv_procfs_lfs=yes
4807 else
4808   acx_cv_procfs_lfs=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811     #
4812     # Forcefully disable large-file support only if necessary, gdb is in
4813     # tree and enabled.
4814     if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4815          -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
4816       : ${enable_largefile="no"}
4817       if test "$plugins" = yes; then
4818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4819 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4820 $as_echo "$as_me: WARNING:
4821 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4822         plugins=no
4823       fi
4824     fi
4825     #
4826     # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4827     # benefit of g++ 9+ which predefines it on Solaris.
4828     if test "$enable_largefile" = no; then
4829       LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
4830
4831     fi
4832     ;;
4833 esac
4834
4835 # Check whether --enable-largefile was given.
4836 if test "${enable_largefile+set}" = set; then :
4837   enableval=$enable_largefile;
4838 fi
4839
4840 if test "$enable_largefile" != no; then
4841
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4843 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4844 if ${ac_cv_sys_largefile_CC+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   ac_cv_sys_largefile_CC=no
4848      if test "$GCC" != yes; then
4849        ac_save_CC=$CC
4850        while :; do
4851          # IRIX 6.2 and later do not support large files by default,
4852          # so use the C compiler's -n32 option if that helps.
4853          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h.  */
4855 #include <sys/types.h>
4856  /* Check that off_t can represent 2**63 - 1 correctly.
4857     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4858     since some C++ compilers masquerading as C compilers
4859     incorrectly reject 9223372036854775807.  */
4860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4861   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4862                        && LARGE_OFF_T % 2147483647 == 1)
4863                       ? 1 : -1];
4864 int
4865 main ()
4866 {
4867
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872          if ac_fn_c_try_compile "$LINENO"; then :
4873   break
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext
4876          CC="$CC -n32"
4877          if ac_fn_c_try_compile "$LINENO"; then :
4878   ac_cv_sys_largefile_CC=' -n32'; break
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext
4881          break
4882        done
4883        CC=$ac_save_CC
4884        rm -f conftest.$ac_ext
4885     fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4888 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4889   if test "$ac_cv_sys_largefile_CC" != no; then
4890     CC=$CC$ac_cv_sys_largefile_CC
4891   fi
4892
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4894 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4895 if ${ac_cv_sys_file_offset_bits+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   while :; do
4899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h.  */
4901 #include <sys/types.h>
4902  /* Check that off_t can represent 2**63 - 1 correctly.
4903     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4904     since some C++ compilers masquerading as C compilers
4905     incorrectly reject 9223372036854775807.  */
4906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4907   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4908                        && LARGE_OFF_T % 2147483647 == 1)
4909                       ? 1 : -1];
4910 int
4911 main ()
4912 {
4913
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919   ac_cv_sys_file_offset_bits=no; break
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h.  */
4924 #define _FILE_OFFSET_BITS 64
4925 #include <sys/types.h>
4926  /* Check that off_t can represent 2**63 - 1 correctly.
4927     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4928     since some C++ compilers masquerading as C compilers
4929     incorrectly reject 9223372036854775807.  */
4930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4931   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4932                        && LARGE_OFF_T % 2147483647 == 1)
4933                       ? 1 : -1];
4934 int
4935 main ()
4936 {
4937
4938   ;
4939   return 0;
4940 }
4941 _ACEOF
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943   ac_cv_sys_file_offset_bits=64; break
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946   ac_cv_sys_file_offset_bits=unknown
4947   break
4948 done
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4951 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4952 case $ac_cv_sys_file_offset_bits in #(
4953   no | unknown) ;;
4954   *)
4955 cat >>confdefs.h <<_ACEOF
4956 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4957 _ACEOF
4958 ;;
4959 esac
4960 rm -rf conftest*
4961   if test $ac_cv_sys_file_offset_bits = unknown; then
4962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4963 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4964 if ${ac_cv_sys_large_files+:} false; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   while :; do
4968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h.  */
4970 #include <sys/types.h>
4971  /* Check that off_t can represent 2**63 - 1 correctly.
4972     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973     since some C++ compilers masquerading as C compilers
4974     incorrectly reject 9223372036854775807.  */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977                        && LARGE_OFF_T % 2147483647 == 1)
4978                       ? 1 : -1];
4979 int
4980 main ()
4981 {
4982
4983   ;
4984   return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988   ac_cv_sys_large_files=no; break
4989 fi
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h.  */
4993 #define _LARGE_FILES 1
4994 #include <sys/types.h>
4995  /* Check that off_t can represent 2**63 - 1 correctly.
4996     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4997     since some C++ compilers masquerading as C compilers
4998     incorrectly reject 9223372036854775807.  */
4999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5000   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5001                        && LARGE_OFF_T % 2147483647 == 1)
5002                       ? 1 : -1];
5003 int
5004 main ()
5005 {
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012   ac_cv_sys_large_files=1; break
5013 fi
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015   ac_cv_sys_large_files=unknown
5016   break
5017 done
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5020 $as_echo "$ac_cv_sys_large_files" >&6; }
5021 case $ac_cv_sys_large_files in #(
5022   no | unknown) ;;
5023   *)
5024 cat >>confdefs.h <<_ACEOF
5025 #define _LARGE_FILES $ac_cv_sys_large_files
5026 _ACEOF
5027 ;;
5028 esac
5029 rm -rf conftest*
5030   fi
5031
5032
5033 fi
5034
5035
5036 # Expand $ac_aux_dir to an absolute path.
5037 am_aux_dir=`cd "$ac_aux_dir" && pwd`
5038
5039 if test x"${install_sh+set}" != xset; then
5040   case $am_aux_dir in
5041   *\ * | *\     *)
5042     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5043   *)
5044     install_sh="\${SHELL} $am_aux_dir/install-sh"
5045   esac
5046 fi
5047
5048 # Installed binaries are usually stripped using 'strip' when the user
5049 # run "make install-strip".  However 'strip' might not be the right
5050 # tool to use in cross-compilation environments, therefore Automake
5051 # will honor the 'STRIP' environment variable to overrule this program.
5052 if test "$cross_compiling" != no; then
5053   if test -n "$ac_tool_prefix"; then
5054   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}strip; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_STRIP+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$STRIP"; then
5062   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067   IFS=$as_save_IFS
5068   test -z "$as_dir" && as_dir=.
5069     for ac_exec_ext in '' $ac_executable_extensions; do
5070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073     break 2
5074   fi
5075 done
5076   done
5077 IFS=$as_save_IFS
5078
5079 fi
5080 fi
5081 STRIP=$ac_cv_prog_STRIP
5082 if test -n "$STRIP"; then
5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5084 $as_echo "$STRIP" >&6; }
5085 else
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5088 fi
5089
5090
5091 fi
5092 if test -z "$ac_cv_prog_STRIP"; then
5093   ac_ct_STRIP=$STRIP
5094   # Extract the first word of "strip", so it can be a program name with args.
5095 set dummy strip; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5099   $as_echo_n "(cached) " >&6
5100 else
5101   if test -n "$ac_ct_STRIP"; then
5102   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111     ac_cv_prog_ac_ct_STRIP="strip"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118
5119 fi
5120 fi
5121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5122 if test -n "$ac_ct_STRIP"; then
5123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5124 $as_echo "$ac_ct_STRIP" >&6; }
5125 else
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129
5130   if test "x$ac_ct_STRIP" = x; then
5131     STRIP=":"
5132   else
5133     case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139     STRIP=$ac_ct_STRIP
5140   fi
5141 else
5142   STRIP="$ac_cv_prog_STRIP"
5143 fi
5144
5145 fi
5146 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5147
5148
5149 ac_aux_dir=
5150 for ac_dir in .. "$srcdir"/..; do
5151   if test -f "$ac_dir/install-sh"; then
5152     ac_aux_dir=$ac_dir
5153     ac_install_sh="$ac_aux_dir/install-sh -c"
5154     break
5155   elif test -f "$ac_dir/install.sh"; then
5156     ac_aux_dir=$ac_dir
5157     ac_install_sh="$ac_aux_dir/install.sh -c"
5158     break
5159   elif test -f "$ac_dir/shtool"; then
5160     ac_aux_dir=$ac_dir
5161     ac_install_sh="$ac_aux_dir/shtool install -c"
5162     break
5163   fi
5164 done
5165 if test -z "$ac_aux_dir"; then
5166   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5167 fi
5168
5169 # These three variables are undocumented and unsupported,
5170 # and are intended to be withdrawn in a future Autoconf release.
5171 # They can cause serious problems if a builder's source tree is in a directory
5172 # whose full name contains unusual characters.
5173 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5174 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5175 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5176
5177
5178
5179 # Set build, build_cpu, build_vendor and build_os.
5180
5181
5182 # Set host, host_cpu, host_vendor, and host_os.
5183
5184
5185 # Set target, target_cpu, target_vendor, and target_os.
5186
5187
5188 test "$program_prefix" != NONE &&
5189   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5190 # Use a double $ so make ignores it.
5191 test "$program_suffix" != NONE &&
5192   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5193 # Double any \ or $.
5194 # By default was `s,x,x', remove it if useless.
5195 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5196 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5197
5198
5199 # We require a C++11 compiler.  Check if one is available, and if
5200 # necessary, set CXX_DIALECT to some -std=xxx switch.
5201
5202   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
5203   ac_ext=cpp
5204 ac_cpp='$CXXCPP $CPPFLAGS'
5205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208   CXX_DIALECT=""
5209   ac_success=no
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5211 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5212 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h.  */
5217
5218
5219 // If the compiler admits that it is not ready for C++11, why torture it?
5220 // Hopefully, this will speed up the test.
5221
5222 #ifndef __cplusplus
5223
5224 #error "This is not a C++ compiler"
5225
5226 #elif __cplusplus < 201103L
5227
5228 #error "This is not a C++11 compiler"
5229
5230 #else
5231
5232 namespace cxx11
5233 {
5234
5235   namespace test_static_assert
5236   {
5237
5238     template <typename T>
5239     struct check
5240     {
5241       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5242     };
5243
5244   }
5245
5246   namespace test_final_override
5247   {
5248
5249     struct Base
5250     {
5251       virtual void f() {}
5252     };
5253
5254     struct Derived : public Base
5255     {
5256       virtual void f() override {}
5257     };
5258
5259   }
5260
5261   namespace test_double_right_angle_brackets
5262   {
5263
5264     template < typename T >
5265     struct check {};
5266
5267     typedef check<void> single_type;
5268     typedef check<check<void>> double_type;
5269     typedef check<check<check<void>>> triple_type;
5270     typedef check<check<check<check<void>>>> quadruple_type;
5271
5272   }
5273
5274   namespace test_decltype
5275   {
5276
5277     int
5278     f()
5279     {
5280       int a = 1;
5281       decltype(a) b = 2;
5282       return a + b;
5283     }
5284
5285   }
5286
5287   namespace test_type_deduction
5288   {
5289
5290     template < typename T1, typename T2 >
5291     struct is_same
5292     {
5293       static const bool value = false;
5294     };
5295
5296     template < typename T >
5297     struct is_same<T, T>
5298     {
5299       static const bool value = true;
5300     };
5301
5302     template < typename T1, typename T2 >
5303     auto
5304     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5305     {
5306       return a1 + a2;
5307     }
5308
5309     int
5310     test(const int c, volatile int v)
5311     {
5312       static_assert(is_same<int, decltype(0)>::value == true, "");
5313       static_assert(is_same<int, decltype(c)>::value == false, "");
5314       static_assert(is_same<int, decltype(v)>::value == false, "");
5315       auto ac = c;
5316       auto av = v;
5317       auto sumi = ac + av + 'x';
5318       auto sumf = ac + av + 1.0;
5319       static_assert(is_same<int, decltype(ac)>::value == true, "");
5320       static_assert(is_same<int, decltype(av)>::value == true, "");
5321       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5322       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5323       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5324       return (sumf > 0.0) ? sumi : add(c, v);
5325     }
5326
5327   }
5328
5329   namespace test_noexcept
5330   {
5331
5332     int f() { return 0; }
5333     int g() noexcept { return 0; }
5334
5335     static_assert(noexcept(f()) == false, "");
5336     static_assert(noexcept(g()) == true, "");
5337
5338   }
5339
5340   namespace test_constexpr
5341   {
5342
5343     template < typename CharT >
5344     unsigned long constexpr
5345     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5346     {
5347       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5348     }
5349
5350     template < typename CharT >
5351     unsigned long constexpr
5352     strlen_c(const CharT *const s) noexcept
5353     {
5354       return strlen_c_r(s, 0UL);
5355     }
5356
5357     static_assert(strlen_c("") == 0UL, "");
5358     static_assert(strlen_c("1") == 1UL, "");
5359     static_assert(strlen_c("example") == 7UL, "");
5360     static_assert(strlen_c("another\0example") == 7UL, "");
5361
5362   }
5363
5364   namespace test_rvalue_references
5365   {
5366
5367     template < int N >
5368     struct answer
5369     {
5370       static constexpr int value = N;
5371     };
5372
5373     answer<1> f(int&)       { return answer<1>(); }
5374     answer<2> f(const int&) { return answer<2>(); }
5375     answer<3> f(int&&)      { return answer<3>(); }
5376
5377     void
5378     test()
5379     {
5380       int i = 0;
5381       const int c = 0;
5382       static_assert(decltype(f(i))::value == 1, "");
5383       static_assert(decltype(f(c))::value == 2, "");
5384       static_assert(decltype(f(0))::value == 3, "");
5385     }
5386
5387   }
5388
5389   namespace test_uniform_initialization
5390   {
5391
5392     struct test
5393     {
5394       static const int zero {};
5395       static const int one {1};
5396     };
5397
5398     static_assert(test::zero == 0, "");
5399     static_assert(test::one == 1, "");
5400
5401   }
5402
5403   namespace test_lambdas
5404   {
5405
5406     void
5407     test1()
5408     {
5409       auto lambda1 = [](){};
5410       auto lambda2 = lambda1;
5411       lambda1();
5412       lambda2();
5413     }
5414
5415     int
5416     test2()
5417     {
5418       auto a = [](int i, int j){ return i + j; }(1, 2);
5419       auto b = []() -> int { return '0'; }();
5420       auto c = [=](){ return a + b; }();
5421       auto d = [&](){ return c; }();
5422       auto e = [a, &b](int x) mutable {
5423         const auto identity = [](int y){ return y; };
5424         for (auto i = 0; i < a; ++i)
5425           a += b--;
5426         return x + identity(a + b);
5427       }(0);
5428       return a + b + c + d + e;
5429     }
5430
5431     int
5432     test3()
5433     {
5434       const auto nullary = [](){ return 0; };
5435       const auto unary = [](int x){ return x; };
5436       using nullary_t = decltype(nullary);
5437       using unary_t = decltype(unary);
5438       const auto higher1st = [](nullary_t f){ return f(); };
5439       const auto higher2nd = [unary](nullary_t f1){
5440         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5441       };
5442       return higher1st(nullary) + higher2nd(nullary)(unary);
5443     }
5444
5445   }
5446
5447   namespace test_variadic_templates
5448   {
5449
5450     template <int...>
5451     struct sum;
5452
5453     template <int N0, int... N1toN>
5454     struct sum<N0, N1toN...>
5455     {
5456       static constexpr auto value = N0 + sum<N1toN...>::value;
5457     };
5458
5459     template <>
5460     struct sum<>
5461     {
5462       static constexpr auto value = 0;
5463     };
5464
5465     static_assert(sum<>::value == 0, "");
5466     static_assert(sum<1>::value == 1, "");
5467     static_assert(sum<23>::value == 23, "");
5468     static_assert(sum<1, 2>::value == 3, "");
5469     static_assert(sum<5, 5, 11>::value == 21, "");
5470     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5471
5472   }
5473
5474   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5475   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5476   // because of this.
5477   namespace test_template_alias_sfinae
5478   {
5479
5480     struct foo {};
5481
5482     template<typename T>
5483     using member = typename T::member_type;
5484
5485     template<typename T>
5486     void func(...) {}
5487
5488     template<typename T>
5489     void func(member<T>*) {}
5490
5491     void test();
5492
5493     void test() { func<foo>(0); }
5494
5495   }
5496
5497 }  // namespace cxx11
5498
5499 #endif  // __cplusplus >= 201103L
5500
5501
5502
5503 _ACEOF
5504 if ac_fn_cxx_try_compile "$LINENO"; then :
5505   ax_cv_cxx_compile_cxx11=yes
5506 else
5507   ax_cv_cxx_compile_cxx11=no
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5512 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5513   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5514     ac_success=yes
5515   fi
5516
5517     if test x$ac_success = xno; then
5518     for alternative in ${ax_cxx_compile_alternatives}; do
5519       switch="-std=gnu++${alternative}"
5520       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5521       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5522 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5523 if eval \${$cachevar+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   ac_save_CXX="$CXX"
5527          CXX="$CXX $switch"
5528          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h.  */
5530
5531
5532 // If the compiler admits that it is not ready for C++11, why torture it?
5533 // Hopefully, this will speed up the test.
5534
5535 #ifndef __cplusplus
5536
5537 #error "This is not a C++ compiler"
5538
5539 #elif __cplusplus < 201103L
5540
5541 #error "This is not a C++11 compiler"
5542
5543 #else
5544
5545 namespace cxx11
5546 {
5547
5548   namespace test_static_assert
5549   {
5550
5551     template <typename T>
5552     struct check
5553     {
5554       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5555     };
5556
5557   }
5558
5559   namespace test_final_override
5560   {
5561
5562     struct Base
5563     {
5564       virtual void f() {}
5565     };
5566
5567     struct Derived : public Base
5568     {
5569       virtual void f() override {}
5570     };
5571
5572   }
5573
5574   namespace test_double_right_angle_brackets
5575   {
5576
5577     template < typename T >
5578     struct check {};
5579
5580     typedef check<void> single_type;
5581     typedef check<check<void>> double_type;
5582     typedef check<check<check<void>>> triple_type;
5583     typedef check<check<check<check<void>>>> quadruple_type;
5584
5585   }
5586
5587   namespace test_decltype
5588   {
5589
5590     int
5591     f()
5592     {
5593       int a = 1;
5594       decltype(a) b = 2;
5595       return a + b;
5596     }
5597
5598   }
5599
5600   namespace test_type_deduction
5601   {
5602
5603     template < typename T1, typename T2 >
5604     struct is_same
5605     {
5606       static const bool value = false;
5607     };
5608
5609     template < typename T >
5610     struct is_same<T, T>
5611     {
5612       static const bool value = true;
5613     };
5614
5615     template < typename T1, typename T2 >
5616     auto
5617     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5618     {
5619       return a1 + a2;
5620     }
5621
5622     int
5623     test(const int c, volatile int v)
5624     {
5625       static_assert(is_same<int, decltype(0)>::value == true, "");
5626       static_assert(is_same<int, decltype(c)>::value == false, "");
5627       static_assert(is_same<int, decltype(v)>::value == false, "");
5628       auto ac = c;
5629       auto av = v;
5630       auto sumi = ac + av + 'x';
5631       auto sumf = ac + av + 1.0;
5632       static_assert(is_same<int, decltype(ac)>::value == true, "");
5633       static_assert(is_same<int, decltype(av)>::value == true, "");
5634       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5635       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5636       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5637       return (sumf > 0.0) ? sumi : add(c, v);
5638     }
5639
5640   }
5641
5642   namespace test_noexcept
5643   {
5644
5645     int f() { return 0; }
5646     int g() noexcept { return 0; }
5647
5648     static_assert(noexcept(f()) == false, "");
5649     static_assert(noexcept(g()) == true, "");
5650
5651   }
5652
5653   namespace test_constexpr
5654   {
5655
5656     template < typename CharT >
5657     unsigned long constexpr
5658     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5659     {
5660       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5661     }
5662
5663     template < typename CharT >
5664     unsigned long constexpr
5665     strlen_c(const CharT *const s) noexcept
5666     {
5667       return strlen_c_r(s, 0UL);
5668     }
5669
5670     static_assert(strlen_c("") == 0UL, "");
5671     static_assert(strlen_c("1") == 1UL, "");
5672     static_assert(strlen_c("example") == 7UL, "");
5673     static_assert(strlen_c("another\0example") == 7UL, "");
5674
5675   }
5676
5677   namespace test_rvalue_references
5678   {
5679
5680     template < int N >
5681     struct answer
5682     {
5683       static constexpr int value = N;
5684     };
5685
5686     answer<1> f(int&)       { return answer<1>(); }
5687     answer<2> f(const int&) { return answer<2>(); }
5688     answer<3> f(int&&)      { return answer<3>(); }
5689
5690     void
5691     test()
5692     {
5693       int i = 0;
5694       const int c = 0;
5695       static_assert(decltype(f(i))::value == 1, "");
5696       static_assert(decltype(f(c))::value == 2, "");
5697       static_assert(decltype(f(0))::value == 3, "");
5698     }
5699
5700   }
5701
5702   namespace test_uniform_initialization
5703   {
5704
5705     struct test
5706     {
5707       static const int zero {};
5708       static const int one {1};
5709     };
5710
5711     static_assert(test::zero == 0, "");
5712     static_assert(test::one == 1, "");
5713
5714   }
5715
5716   namespace test_lambdas
5717   {
5718
5719     void
5720     test1()
5721     {
5722       auto lambda1 = [](){};
5723       auto lambda2 = lambda1;
5724       lambda1();
5725       lambda2();
5726     }
5727
5728     int
5729     test2()
5730     {
5731       auto a = [](int i, int j){ return i + j; }(1, 2);
5732       auto b = []() -> int { return '0'; }();
5733       auto c = [=](){ return a + b; }();
5734       auto d = [&](){ return c; }();
5735       auto e = [a, &b](int x) mutable {
5736         const auto identity = [](int y){ return y; };
5737         for (auto i = 0; i < a; ++i)
5738           a += b--;
5739         return x + identity(a + b);
5740       }(0);
5741       return a + b + c + d + e;
5742     }
5743
5744     int
5745     test3()
5746     {
5747       const auto nullary = [](){ return 0; };
5748       const auto unary = [](int x){ return x; };
5749       using nullary_t = decltype(nullary);
5750       using unary_t = decltype(unary);
5751       const auto higher1st = [](nullary_t f){ return f(); };
5752       const auto higher2nd = [unary](nullary_t f1){
5753         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5754       };
5755       return higher1st(nullary) + higher2nd(nullary)(unary);
5756     }
5757
5758   }
5759
5760   namespace test_variadic_templates
5761   {
5762
5763     template <int...>
5764     struct sum;
5765
5766     template <int N0, int... N1toN>
5767     struct sum<N0, N1toN...>
5768     {
5769       static constexpr auto value = N0 + sum<N1toN...>::value;
5770     };
5771
5772     template <>
5773     struct sum<>
5774     {
5775       static constexpr auto value = 0;
5776     };
5777
5778     static_assert(sum<>::value == 0, "");
5779     static_assert(sum<1>::value == 1, "");
5780     static_assert(sum<23>::value == 23, "");
5781     static_assert(sum<1, 2>::value == 3, "");
5782     static_assert(sum<5, 5, 11>::value == 21, "");
5783     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5784
5785   }
5786
5787   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5788   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5789   // because of this.
5790   namespace test_template_alias_sfinae
5791   {
5792
5793     struct foo {};
5794
5795     template<typename T>
5796     using member = typename T::member_type;
5797
5798     template<typename T>
5799     void func(...) {}
5800
5801     template<typename T>
5802     void func(member<T>*) {}
5803
5804     void test();
5805
5806     void test() { func<foo>(0); }
5807
5808   }
5809
5810 }  // namespace cxx11
5811
5812 #endif  // __cplusplus >= 201103L
5813
5814
5815
5816 _ACEOF
5817 if ac_fn_cxx_try_compile "$LINENO"; then :
5818   eval $cachevar=yes
5819 else
5820   eval $cachevar=no
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823          CXX="$ac_save_CXX"
5824 fi
5825 eval ac_res=\$$cachevar
5826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5827 $as_echo "$ac_res" >&6; }
5828       if eval test x\$$cachevar = xyes; then
5829         CXX_DIALECT="$switch"
5830         ac_success=yes
5831         break
5832       fi
5833     done
5834   fi
5835
5836     if test x$ac_success = xno; then
5837                 for alternative in ${ax_cxx_compile_alternatives}; do
5838       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5839         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5841 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5842 if eval \${$cachevar+:} false; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   ac_save_CXX="$CXX"
5846            CXX="$CXX $switch"
5847            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h.  */
5849
5850
5851 // If the compiler admits that it is not ready for C++11, why torture it?
5852 // Hopefully, this will speed up the test.
5853
5854 #ifndef __cplusplus
5855
5856 #error "This is not a C++ compiler"
5857
5858 #elif __cplusplus < 201103L
5859
5860 #error "This is not a C++11 compiler"
5861
5862 #else
5863
5864 namespace cxx11
5865 {
5866
5867   namespace test_static_assert
5868   {
5869
5870     template <typename T>
5871     struct check
5872     {
5873       static_assert(sizeof(int) <= sizeof(T), "not big enough");
5874     };
5875
5876   }
5877
5878   namespace test_final_override
5879   {
5880
5881     struct Base
5882     {
5883       virtual void f() {}
5884     };
5885
5886     struct Derived : public Base
5887     {
5888       virtual void f() override {}
5889     };
5890
5891   }
5892
5893   namespace test_double_right_angle_brackets
5894   {
5895
5896     template < typename T >
5897     struct check {};
5898
5899     typedef check<void> single_type;
5900     typedef check<check<void>> double_type;
5901     typedef check<check<check<void>>> triple_type;
5902     typedef check<check<check<check<void>>>> quadruple_type;
5903
5904   }
5905
5906   namespace test_decltype
5907   {
5908
5909     int
5910     f()
5911     {
5912       int a = 1;
5913       decltype(a) b = 2;
5914       return a + b;
5915     }
5916
5917   }
5918
5919   namespace test_type_deduction
5920   {
5921
5922     template < typename T1, typename T2 >
5923     struct is_same
5924     {
5925       static const bool value = false;
5926     };
5927
5928     template < typename T >
5929     struct is_same<T, T>
5930     {
5931       static const bool value = true;
5932     };
5933
5934     template < typename T1, typename T2 >
5935     auto
5936     add(T1 a1, T2 a2) -> decltype(a1 + a2)
5937     {
5938       return a1 + a2;
5939     }
5940
5941     int
5942     test(const int c, volatile int v)
5943     {
5944       static_assert(is_same<int, decltype(0)>::value == true, "");
5945       static_assert(is_same<int, decltype(c)>::value == false, "");
5946       static_assert(is_same<int, decltype(v)>::value == false, "");
5947       auto ac = c;
5948       auto av = v;
5949       auto sumi = ac + av + 'x';
5950       auto sumf = ac + av + 1.0;
5951       static_assert(is_same<int, decltype(ac)>::value == true, "");
5952       static_assert(is_same<int, decltype(av)>::value == true, "");
5953       static_assert(is_same<int, decltype(sumi)>::value == true, "");
5954       static_assert(is_same<int, decltype(sumf)>::value == false, "");
5955       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5956       return (sumf > 0.0) ? sumi : add(c, v);
5957     }
5958
5959   }
5960
5961   namespace test_noexcept
5962   {
5963
5964     int f() { return 0; }
5965     int g() noexcept { return 0; }
5966
5967     static_assert(noexcept(f()) == false, "");
5968     static_assert(noexcept(g()) == true, "");
5969
5970   }
5971
5972   namespace test_constexpr
5973   {
5974
5975     template < typename CharT >
5976     unsigned long constexpr
5977     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5978     {
5979       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5980     }
5981
5982     template < typename CharT >
5983     unsigned long constexpr
5984     strlen_c(const CharT *const s) noexcept
5985     {
5986       return strlen_c_r(s, 0UL);
5987     }
5988
5989     static_assert(strlen_c("") == 0UL, "");
5990     static_assert(strlen_c("1") == 1UL, "");
5991     static_assert(strlen_c("example") == 7UL, "");
5992     static_assert(strlen_c("another\0example") == 7UL, "");
5993
5994   }
5995
5996   namespace test_rvalue_references
5997   {
5998
5999     template < int N >
6000     struct answer
6001     {
6002       static constexpr int value = N;
6003     };
6004
6005     answer<1> f(int&)       { return answer<1>(); }
6006     answer<2> f(const int&) { return answer<2>(); }
6007     answer<3> f(int&&)      { return answer<3>(); }
6008
6009     void
6010     test()
6011     {
6012       int i = 0;
6013       const int c = 0;
6014       static_assert(decltype(f(i))::value == 1, "");
6015       static_assert(decltype(f(c))::value == 2, "");
6016       static_assert(decltype(f(0))::value == 3, "");
6017     }
6018
6019   }
6020
6021   namespace test_uniform_initialization
6022   {
6023
6024     struct test
6025     {
6026       static const int zero {};
6027       static const int one {1};
6028     };
6029
6030     static_assert(test::zero == 0, "");
6031     static_assert(test::one == 1, "");
6032
6033   }
6034
6035   namespace test_lambdas
6036   {
6037
6038     void
6039     test1()
6040     {
6041       auto lambda1 = [](){};
6042       auto lambda2 = lambda1;
6043       lambda1();
6044       lambda2();
6045     }
6046
6047     int
6048     test2()
6049     {
6050       auto a = [](int i, int j){ return i + j; }(1, 2);
6051       auto b = []() -> int { return '0'; }();
6052       auto c = [=](){ return a + b; }();
6053       auto d = [&](){ return c; }();
6054       auto e = [a, &b](int x) mutable {
6055         const auto identity = [](int y){ return y; };
6056         for (auto i = 0; i < a; ++i)
6057           a += b--;
6058         return x + identity(a + b);
6059       }(0);
6060       return a + b + c + d + e;
6061     }
6062
6063     int
6064     test3()
6065     {
6066       const auto nullary = [](){ return 0; };
6067       const auto unary = [](int x){ return x; };
6068       using nullary_t = decltype(nullary);
6069       using unary_t = decltype(unary);
6070       const auto higher1st = [](nullary_t f){ return f(); };
6071       const auto higher2nd = [unary](nullary_t f1){
6072         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6073       };
6074       return higher1st(nullary) + higher2nd(nullary)(unary);
6075     }
6076
6077   }
6078
6079   namespace test_variadic_templates
6080   {
6081
6082     template <int...>
6083     struct sum;
6084
6085     template <int N0, int... N1toN>
6086     struct sum<N0, N1toN...>
6087     {
6088       static constexpr auto value = N0 + sum<N1toN...>::value;
6089     };
6090
6091     template <>
6092     struct sum<>
6093     {
6094       static constexpr auto value = 0;
6095     };
6096
6097     static_assert(sum<>::value == 0, "");
6098     static_assert(sum<1>::value == 1, "");
6099     static_assert(sum<23>::value == 23, "");
6100     static_assert(sum<1, 2>::value == 3, "");
6101     static_assert(sum<5, 5, 11>::value == 21, "");
6102     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6103
6104   }
6105
6106   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6107   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6108   // because of this.
6109   namespace test_template_alias_sfinae
6110   {
6111
6112     struct foo {};
6113
6114     template<typename T>
6115     using member = typename T::member_type;
6116
6117     template<typename T>
6118     void func(...) {}
6119
6120     template<typename T>
6121     void func(member<T>*) {}
6122
6123     void test();
6124
6125     void test() { func<foo>(0); }
6126
6127   }
6128
6129 }  // namespace cxx11
6130
6131 #endif  // __cplusplus >= 201103L
6132
6133
6134
6135 _ACEOF
6136 if ac_fn_cxx_try_compile "$LINENO"; then :
6137   eval $cachevar=yes
6138 else
6139   eval $cachevar=no
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142            CXX="$ac_save_CXX"
6143 fi
6144 eval ac_res=\$$cachevar
6145                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147         if eval test x\$$cachevar = xyes; then
6148           CXX_DIALECT="$switch"
6149           ac_success=yes
6150           break
6151         fi
6152       done
6153       if test x$ac_success = xyes; then
6154         break
6155       fi
6156     done
6157   fi
6158   ac_ext=c
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163
6164   if test x$ax_cxx_compile_cxx11_required = xtrue; then
6165     if test x$ac_success = xno; then
6166       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6167     fi
6168   fi
6169   if test x$ac_success = xno; then
6170     HAVE_CXX11=0
6171     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6172 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6173   else
6174     HAVE_CXX11=1
6175
6176 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6177
6178   fi
6179
6180
6181
6182
6183 # Dependency checking.
6184 rm -rf .tst 2>/dev/null
6185 mkdir .tst 2>/dev/null
6186 if test -d .tst; then
6187   am__leading_dot=.
6188 else
6189   am__leading_dot=_
6190 fi
6191 rmdir .tst 2>/dev/null
6192
6193 DEPDIR="${am__leading_dot}deps"
6194
6195 ac_config_commands="$ac_config_commands depdir"
6196
6197
6198 depcc="$CC"   am_compiler_list=
6199
6200 am_depcomp=$ac_aux_dir/depcomp
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6202 $as_echo_n "checking dependency style of $depcc... " >&6; }
6203 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6204   $as_echo_n "(cached) " >&6
6205 else
6206   if test -f "$am_depcomp"; then
6207   # We make a subdir and do the tests there.  Otherwise we can end up
6208   # making bogus files that we don't know about and never remove.  For
6209   # instance it was reported that on HP-UX the gcc test will end up
6210   # making a dummy file named `D' -- because `-MD' means `put the output
6211   # in D'.
6212   mkdir conftest.dir
6213   # Copy depcomp to subdir because otherwise we won't find it if we're
6214   # using a relative directory.
6215   cp "$am_depcomp" conftest.dir
6216   cd conftest.dir
6217   # We will build objects and dependencies in a subdirectory because
6218   # it helps to detect inapplicable dependency modes.  For instance
6219   # both Tru64's cc and ICC support -MD to output dependencies as a
6220   # side effect of compilation, but ICC will put the dependencies in
6221   # the current directory while Tru64 will put them in the object
6222   # directory.
6223   mkdir sub
6224
6225   am_cv_CC_dependencies_compiler_type=none
6226   if test "$am_compiler_list" = ""; then
6227      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6228   fi
6229   for depmode in $am_compiler_list; do
6230     if test $depmode = none; then break; fi
6231
6232     $as_echo "$as_me:$LINENO: trying $depmode" >&5
6233     # Setup a source with many dependencies, because some compilers
6234     # like to wrap large dependency lists on column 80 (with \), and
6235     # we should not choose a depcomp mode which is confused by this.
6236     #
6237     # We need to recreate these files for each test, as the compiler may
6238     # overwrite some of them when testing with obscure command lines.
6239     # This happens at least with the AIX C compiler.
6240     : > sub/conftest.c
6241     for i in 1 2 3 4 5 6; do
6242       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6243       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6244       # Solaris 8's {/usr,}/bin/sh.
6245       touch sub/conftst$i.h
6246     done
6247     echo "include sub/conftest.Po" > confmf
6248
6249     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6250     # mode.  It turns out that the SunPro C++ compiler does not properly
6251     # handle `-M -o', and we need to detect this.
6252     depcmd="depmode=$depmode \
6253        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6254        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6255        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6256     echo "| $depcmd" | sed -e 's/  */ /g' >&5
6257     if env $depcmd > conftest.err 2>&1 &&
6258        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6259        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6260        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6261       # icc doesn't choke on unknown options, it will just issue warnings
6262       # or remarks (even with -Werror).  So we grep stderr for any message
6263       # that says an option was ignored or not supported.
6264       # When given -MP, icc 7.0 and 7.1 complain thusly:
6265       #   icc: Command line warning: ignoring option '-M'; no argument required
6266       # The diagnosis changed in icc 8.0:
6267       #   icc: Command line remark: option '-MP' not supported
6268       if (grep 'ignoring option' conftest.err ||
6269           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6270         am_cv_CC_dependencies_compiler_type=$depmode
6271         $as_echo "$as_me:$LINENO: success" >&5
6272         break
6273       fi
6274     fi
6275     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6276     sed -e 's/^/| /' < conftest.err >&5
6277   done
6278
6279   cd ..
6280   rm -rf conftest.dir
6281 else
6282   am_cv_CC_dependencies_compiler_type=none
6283 fi
6284
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6287 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6288 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6289 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6290 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6291
6292 fi
6293
6294
6295
6296 CONFIG_OBS=
6297 CONFIG_DEPS=
6298 CONFIG_SRCS=
6299 ENABLE_CFLAGS=
6300
6301 CONFIG_ALL=
6302 CONFIG_CLEAN=
6303 CONFIG_INSTALL=
6304 CONFIG_UNINSTALL=
6305
6306 # If we haven't got the data from the intl directory,
6307 # assume NLS is disabled.
6308 USE_NLS=no
6309 LIBINTL=
6310 LIBINTL_DEP=
6311 INCINTL=
6312 XGETTEXT=
6313 GMSGFMT=
6314 POSUB=
6315
6316 if test -f  ../intl/config.intl; then
6317   .  ../intl/config.intl
6318 fi
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6320 $as_echo_n "checking whether NLS is requested... " >&6; }
6321 if test x"$USE_NLS" != xyes; then
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 else
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6326 $as_echo "yes" >&6; }
6327
6328 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6329
6330
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6332 $as_echo_n "checking for catalogs to be installed... " >&6; }
6333   # Look for .po and .gmo files in the source directory.
6334   CATALOGS=
6335   XLINGUAS=
6336   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6337     # If there aren't any .gmo files the shell will give us the
6338     # literal string "../path/to/srcdir/po/*.gmo" which has to be
6339     # weeded out.
6340     case "$cat" in *\**)
6341       continue;;
6342     esac
6343     # The quadruple backslash is collapsed to a double backslash
6344     # by the backticks, then collapsed again by the double quotes,
6345     # leaving us with one backslash in the sed expression (right
6346     # before the dot that mustn't act as a wildcard).
6347     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6348     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6349     # The user is allowed to set LINGUAS to a list of languages to
6350     # install catalogs for.  If it's empty that means "all of them."
6351     if test "x$LINGUAS" = x; then
6352       CATALOGS="$CATALOGS $cat"
6353       XLINGUAS="$XLINGUAS $lang"
6354     else
6355       case "$LINGUAS" in *$lang*)
6356         CATALOGS="$CATALOGS $cat"
6357         XLINGUAS="$XLINGUAS $lang"
6358         ;;
6359       esac
6360     fi
6361   done
6362   LINGUAS="$XLINGUAS"
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6364 $as_echo "$LINGUAS" >&6; }
6365
6366
6367     DATADIRNAME=share
6368
6369   INSTOBJEXT=.mo
6370
6371   GENCAT=gencat
6372
6373   CATOBJEXT=.gmo
6374
6375 fi
6376
6377 localedir='${datadir}/locale'
6378
6379
6380 if test x"$USE_NLS" = xyes; then
6381    CONFIG_ALL="$CONFIG_ALL all-po"
6382    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6383    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6384    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6385 fi
6386
6387 PACKAGE=gdb
6388
6389 cat >>confdefs.h <<_ACEOF
6390 #define PACKAGE "$PACKAGE"
6391 _ACEOF
6392
6393
6394
6395 # We never need to detect it in this sub-configure.
6396 # But preserve it for config.status --recheck.
6397
6398
6399
6400 MAKEINFO_EXTRA_FLAGS=""
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6402 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6403 if ${gdb_cv_have_makeinfo_click+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   echo '@clicksequence{a @click{} b}' >conftest.texinfo
6407   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6408     gdb_cv_have_makeinfo_click=yes
6409   else
6410     gdb_cv_have_makeinfo_click=no
6411   fi
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6414 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6415 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6416   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6417 fi
6418
6419
6420
6421
6422 # Check whether --with-separate-debug-dir was given.
6423 if test "${with_separate_debug_dir+set}" = set; then :
6424   withval=$with_separate_debug_dir;
6425     DEBUGDIR=$withval
6426 else
6427   DEBUGDIR=${libdir}/debug
6428 fi
6429
6430
6431   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6432   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6433   ac_define_dir=`eval echo $DEBUGDIR`
6434   ac_define_dir=`eval echo $ac_define_dir`
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define DEBUGDIR "$ac_define_dir"
6438 _ACEOF
6439
6440
6441
6442
6443   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6444      if test "x$prefix" = xNONE; then
6445         test_prefix=/usr/local
6446      else
6447         test_prefix=$prefix
6448      fi
6449   else
6450      test_prefix=$exec_prefix
6451   fi
6452   value=0
6453   case ${ac_define_dir} in
6454      "${test_prefix}"|"${test_prefix}/"*|\
6455         '${exec_prefix}'|'${exec_prefix}/'*)
6456      value=1
6457      ;;
6458   esac
6459
6460 cat >>confdefs.h <<_ACEOF
6461 #define DEBUGDIR_RELOCATABLE $value
6462 _ACEOF
6463
6464
6465
6466
6467 # We can't pass paths as command line arguments.
6468 # Mingw32 tries to be clever and will convert the paths for us.
6469 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6470 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6471 # This breaks GDB's relocatable path conversions since paths passed in
6472 # config.h would not get so translated, the path prefixes no longer match.
6473
6474   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6475   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6476   ac_define_dir=`eval echo $bindir`
6477   ac_define_dir=`eval echo $ac_define_dir`
6478
6479 cat >>confdefs.h <<_ACEOF
6480 #define BINDIR "$ac_define_dir"
6481 _ACEOF
6482
6483
6484
6485 # GDB's datadir relocation
6486
6487
6488
6489 # Check whether --with-gdb-datadir was given.
6490 if test "${with_gdb_datadir+set}" = set; then :
6491   withval=$with_gdb_datadir;
6492     GDB_DATADIR=$withval
6493 else
6494   GDB_DATADIR=${datadir}/gdb
6495 fi
6496
6497
6498   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6499   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6500   ac_define_dir=`eval echo $GDB_DATADIR`
6501   ac_define_dir=`eval echo $ac_define_dir`
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define GDB_DATADIR "$ac_define_dir"
6505 _ACEOF
6506
6507
6508
6509
6510   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6511      if test "x$prefix" = xNONE; then
6512         test_prefix=/usr/local
6513      else
6514         test_prefix=$prefix
6515      fi
6516   else
6517      test_prefix=$exec_prefix
6518   fi
6519   value=0
6520   case ${ac_define_dir} in
6521      "${test_prefix}"|"${test_prefix}/"*|\
6522         '${exec_prefix}'|'${exec_prefix}/'*)
6523      value=1
6524      ;;
6525   esac
6526
6527 cat >>confdefs.h <<_ACEOF
6528 #define GDB_DATADIR_RELOCATABLE $value
6529 _ACEOF
6530
6531
6532
6533
6534
6535 # Check whether --with-relocated-sources was given.
6536 if test "${with_relocated_sources+set}" = set; then :
6537   withval=$with_relocated_sources; reloc_srcdir="${withval}"
6538
6539   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6540   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6541   ac_define_dir=`eval echo $reloc_srcdir`
6542   ac_define_dir=`eval echo $ac_define_dir`
6543
6544 cat >>confdefs.h <<_ACEOF
6545 #define RELOC_SRCDIR "$ac_define_dir"
6546 _ACEOF
6547
6548
6549
6550 fi
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6554 $as_echo_n "checking for default auto-load directory... " >&6; }
6555
6556 # Check whether --with-auto-load-dir was given.
6557 if test "${with_auto_load_dir+set}" = set; then :
6558   withval=$with_auto_load_dir;
6559 else
6560   with_auto_load_dir='$debugdir:$datadir/auto-load'
6561 fi
6562
6563 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6564
6565   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6566   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6567   ac_define_dir=`eval echo $escape_dir`
6568   ac_define_dir=`eval echo $ac_define_dir`
6569
6570 cat >>confdefs.h <<_ACEOF
6571 #define AUTO_LOAD_DIR "$ac_define_dir"
6572 _ACEOF
6573
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6576 $as_echo "$with_auto_load_dir" >&6; }
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6579 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6580
6581 # Check whether --with-auto-load-safe-path was given.
6582 if test "${with_auto_load_safe_path+set}" = set; then :
6583   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6584      with_auto_load_safe_path="/"
6585      fi
6586 else
6587   with_auto_load_safe_path="$with_auto_load_dir"
6588 fi
6589
6590 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6591
6592   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6593   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6594   ac_define_dir=`eval echo $escape_dir`
6595   ac_define_dir=`eval echo $ac_define_dir`
6596
6597 cat >>confdefs.h <<_ACEOF
6598 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6599 _ACEOF
6600
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6603 $as_echo "$with_auto_load_safe_path" >&6; }
6604
6605
6606
6607 subdirs="$subdirs testsuite"
6608
6609
6610 # Check whether to support alternative target configurations
6611 # Check whether --enable-targets was given.
6612 if test "${enable_targets+set}" = set; then :
6613   enableval=$enable_targets; case "${enableval}" in
6614   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6615             ;;
6616   no)       enable_targets= ;;
6617   *)        enable_targets=$enableval ;;
6618 esac
6619 fi
6620
6621
6622 # Check whether to enable 64-bit support on 32-bit hosts
6623 # Check whether --enable-64-bit-bfd was given.
6624 if test "${enable_64_bit_bfd+set}" = set; then :
6625   enableval=$enable_64_bit_bfd; case "${enableval}" in
6626   yes)  want64=true  ;;
6627   no)   want64=false ;;
6628   *)    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6629 esac
6630 else
6631   want64=false
6632 fi
6633
6634 # Provide defaults for some variables set by the per-host and per-target
6635 # configuration.
6636 gdb_host_obs=posix-hdep.o
6637
6638 if test "${target}" = "${host}"; then
6639   gdb_native=yes
6640 else
6641   gdb_native=no
6642 fi
6643
6644 . $srcdir/configure.host
6645
6646 # Accumulate some settings from configure.tgt over all enabled targets
6647
6648 TARGET_OBS=
6649 all_targets=
6650 HAVE_NATIVE_GCORE_TARGET=
6651
6652 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6653 do
6654   if test "$targ_alias" = "all"; then
6655     all_targets=true
6656   else
6657     # Canonicalize the secondary target names.
6658     result=`$ac_config_sub $targ_alias 2>/dev/null`
6659     if test -n "$result"; then
6660         targ=$result
6661     else
6662         targ=$targ_alias
6663     fi
6664
6665     . ${srcdir}/configure.tgt
6666
6667     if test -z "${gdb_target_obs}"; then :
6668   as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6669 fi
6670
6671     # Target-specific object files
6672     for i in ${gdb_target_obs}; do
6673         case " $TARGET_OBS " in
6674         *" ${i} "*) ;;
6675         *)
6676           TARGET_OBS="$TARGET_OBS ${i}"
6677           ;;
6678         esac
6679     done
6680
6681     # Check whether this target needs 64-bit CORE_ADDR
6682     if test x${want64} = xfalse; then
6683       . ${srcdir}/../bfd/config.bfd
6684     fi
6685
6686     # Check whether this target is native and supports gcore.
6687     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6688        && $gdb_have_gcore; then
6689       HAVE_NATIVE_GCORE_TARGET=1
6690     fi
6691   fi
6692 done
6693
6694 if test x${all_targets} = xtrue; then
6695
6696   # We want all 64-bit targets if we either:
6697   #  - run on a 64-bit host  or
6698   #  - already require 64-bit support for some other target  or
6699   #  - the --enable-64-bit-bfd option was supplied
6700   # Otherwise we only support all 32-bit targets.
6701   #
6702   # NOTE: This test must be in sync with the corresponding
6703   #       tests in BFD!
6704
6705   if test x${want64} = xfalse; then
6706     # The cast to long int works around a bug in the HP C Compiler
6707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6709 # This bug is HP SR number 8606223364.
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6711 $as_echo_n "checking size of long... " >&6; }
6712 if ${ac_cv_sizeof_long+:} false; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6716
6717 else
6718   if test "$ac_cv_type_long" = yes; then
6719      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6721 as_fn_error 77 "cannot compute sizeof (long)
6722 See \`config.log' for more details" "$LINENO" 5; }
6723    else
6724      ac_cv_sizeof_long=0
6725    fi
6726 fi
6727
6728 fi
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6730 $as_echo "$ac_cv_sizeof_long" >&6; }
6731
6732
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define SIZEOF_LONG $ac_cv_sizeof_long
6736 _ACEOF
6737
6738
6739     if test "x${ac_cv_sizeof_long}" = "x8"; then
6740       want64=true
6741     fi
6742   fi
6743   if test x${want64} = xtrue; then
6744     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6745   else
6746     TARGET_OBS='$(ALL_TARGET_OBS)'
6747   fi
6748 fi
6749
6750
6751
6752
6753 # For other settings, only the main target counts.
6754 gdb_sim=
6755 gdb_osabi=
6756 targ=$target; . ${srcdir}/configure.tgt
6757
6758 # Fetch the default architecture and default target vector from BFD.
6759 targ=$target; . $srcdir/../bfd/config.bfd
6760
6761 # We only want the first architecture, so strip off the others if
6762 # there is more than one.
6763 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6764
6765 if test "x$targ_archs" != x; then
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define DEFAULT_BFD_ARCH $targ_archs
6769 _ACEOF
6770
6771 fi
6772 if test "x$targ_defvec" != x; then
6773
6774 cat >>confdefs.h <<_ACEOF
6775 #define DEFAULT_BFD_VEC $targ_defvec
6776 _ACEOF
6777
6778 fi
6779
6780 # Enable MI.
6781 # Check whether --enable-gdbmi was given.
6782 if test "${enable_gdbmi+set}" = set; then :
6783   enableval=$enable_gdbmi; case $enableval in
6784     yes | no)
6785       ;;
6786     *)
6787       as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6788   esac
6789 else
6790   enable_gdbmi=yes
6791 fi
6792
6793 if test x"$enable_gdbmi" = xyes; then
6794   if test -d "$srcdir/mi"; then
6795     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6796     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6797     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6798     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6799   fi
6800 fi
6801
6802 # Enable TUI.
6803 # Check whether --enable-tui was given.
6804 if test "${enable_tui+set}" = set; then :
6805   enableval=$enable_tui; case $enableval in
6806     yes | no | auto)
6807       ;;
6808     *)
6809       as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6810   esac
6811 else
6812   enable_tui=auto
6813 fi
6814
6815
6816 # Enable gdbtk.
6817 # Check whether --enable-gdbtk was given.
6818 if test "${enable_gdbtk+set}" = set; then :
6819   enableval=$enable_gdbtk; case $enableval in
6820     yes | no)
6821       ;;
6822     *)
6823       as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6824   esac
6825 else
6826   if test -d "$srcdir/gdbtk"; then
6827     enable_gdbtk=yes
6828   else
6829     enable_gdbtk=no
6830   fi
6831 fi
6832
6833 # We unconditionally disable gdbtk tests on selected platforms.
6834 case $host_os in
6835   go32* | windows*)
6836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6837 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6838     enable_gdbtk=no ;;
6839 esac
6840
6841 # Handle optional debuginfod support
6842
6843
6844
6845
6846
6847
6848
6849 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6850         if test -n "$ac_tool_prefix"; then
6851   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   case $PKG_CONFIG in
6859   [\\/]* | ?:[\\/]*)
6860   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6861   ;;
6862   *)
6863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868     for ac_exec_ext in '' $ac_executable_extensions; do
6869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875   done
6876 IFS=$as_save_IFS
6877
6878   ;;
6879 esac
6880 fi
6881 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6882 if test -n "$PKG_CONFIG"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6884 $as_echo "$PKG_CONFIG" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_path_PKG_CONFIG"; then
6893   ac_pt_PKG_CONFIG=$PKG_CONFIG
6894   # Extract the first word of "pkg-config", so it can be a program name with args.
6895 set dummy pkg-config; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6899   $as_echo_n "(cached) " >&6
6900 else
6901   case $ac_pt_PKG_CONFIG in
6902   [\\/]* | ?:[\\/]*)
6903   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6904   ;;
6905   *)
6906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921   ;;
6922 esac
6923 fi
6924 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6925 if test -n "$ac_pt_PKG_CONFIG"; then
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6927 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6928 else
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932
6933   if test "x$ac_pt_PKG_CONFIG" = x; then
6934     PKG_CONFIG=""
6935   else
6936     case $cross_compiling:$ac_tool_warned in
6937 yes:)
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6941 esac
6942     PKG_CONFIG=$ac_pt_PKG_CONFIG
6943   fi
6944 else
6945   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6946 fi
6947
6948 fi
6949 if test -n "$PKG_CONFIG"; then
6950         _pkg_min_version=0.9.0
6951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6952 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6953         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6954                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6955 $as_echo "yes" >&6; }
6956         else
6957                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959                 PKG_CONFIG=""
6960         fi
6961 fi
6962
6963 # Handle optional debuginfod support
6964
6965 # Check whether --with-debuginfod was given.
6966 if test "${with_debuginfod+set}" = set; then :
6967   withval=$with_debuginfod;
6968 else
6969   with_debuginfod=auto
6970 fi
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6973 $as_echo_n "checking whether to use debuginfod... " >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6975 $as_echo "$with_debuginfod" >&6; }
6976
6977 if test "x$with_debuginfod" != xno; then
6978
6979 pkg_failed=no
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
6981 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
6982
6983 if test -n "$DEBUGINFOD_CFLAGS"; then
6984     pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
6985  elif test -n "$PKG_CONFIG"; then
6986     if test -n "$PKG_CONFIG" && \
6987     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
6988   ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
6989   ac_status=$?
6990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991   test $ac_status = 0; }; then
6992   pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
6993                       test "x$?" != "x0" && pkg_failed=yes
6994 else
6995   pkg_failed=yes
6996 fi
6997  else
6998     pkg_failed=untried
6999 fi
7000 if test -n "$DEBUGINFOD_LIBS"; then
7001     pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
7002  elif test -n "$PKG_CONFIG"; then
7003     if test -n "$PKG_CONFIG" && \
7004     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7005   ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008   test $ac_status = 0; }; then
7009   pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7010                       test "x$?" != "x0" && pkg_failed=yes
7011 else
7012   pkg_failed=yes
7013 fi
7014  else
7015     pkg_failed=untried
7016 fi
7017
7018 if test $pkg_failed = no; then
7019   pkg_save_LDFLAGS="$LDFLAGS"
7020   LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023
7024 int
7025 main ()
7026 {
7027
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033
7034 else
7035   pkg_failed=yes
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039   LDFLAGS=$pkg_save_LDFLAGS
7040 fi
7041
7042
7043
7044 if test $pkg_failed = yes; then
7045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047
7048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7049         _pkg_short_errors_supported=yes
7050 else
7051         _pkg_short_errors_supported=no
7052 fi
7053         if test $_pkg_short_errors_supported = yes; then
7054                 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7055         else
7056                 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7057         fi
7058         # Put the nasty error message in config.log where it belongs
7059         echo "$DEBUGINFOD_PKG_ERRORS" >&5
7060
7061         if test "x$with_debuginfod" = xyes; then
7062        as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7063      else
7064        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7065 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7066      fi
7067 elif test $pkg_failed = untried; then
7068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070         if test "x$with_debuginfod" = xyes; then
7071        as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7072      else
7073        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7074 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7075      fi
7076 else
7077         DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
7078         DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
7079         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080 $as_echo "yes" >&6; }
7081
7082 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7083
7084 fi
7085 else
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7087 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7088 fi
7089
7090
7091 # Libunwind support for ia64.
7092
7093 # Check whether --with-libunwind-ia64 was given.
7094 if test "${with_libunwind_ia64+set}" = set; then :
7095   withval=$with_libunwind_ia64;
7096 else
7097   with_libunwind_ia64=auto
7098 fi
7099
7100
7101 # Backward compatibility option.
7102 if test "${with_libunwind+set}" = set; then
7103   if test x"$with_libunwind_ia64" != xauto; then
7104     as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7105   fi
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7107 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7108   with_libunwind_ia64="$with_libunwind"
7109 fi
7110
7111 case "$with_libunwind_ia64" in
7112   yes | no)
7113     ;;
7114   auto)
7115     for ac_header in libunwind-ia64.h
7116 do :
7117   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7118 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
7119   cat >>confdefs.h <<_ACEOF
7120 #define HAVE_LIBUNWIND_IA64_H 1
7121 _ACEOF
7122
7123 fi
7124
7125 done
7126
7127     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
7128     ;;
7129   *)
7130     as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7131     ;;
7132 esac
7133
7134 if test x"$with_libunwind_ia64" = xyes; then
7135   for ac_header in libunwind-ia64.h
7136 do :
7137   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7138 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
7139   cat >>confdefs.h <<_ACEOF
7140 #define HAVE_LIBUNWIND_IA64_H 1
7141 _ACEOF
7142
7143 fi
7144
7145 done
7146
7147   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
7148     as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7149   fi
7150   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
7151   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
7152   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
7153 fi
7154
7155 opt_curses=no
7156
7157 # Check whether --with-curses was given.
7158 if test "${with_curses+set}" = set; then :
7159   withval=$with_curses; opt_curses=$withval
7160 fi
7161
7162
7163 prefer_curses=no
7164 if test "$opt_curses" = "yes"; then
7165   prefer_curses=yes
7166 fi
7167
7168 # Profiling support.
7169 # Check whether --enable-profiling was given.
7170 if test "${enable_profiling+set}" = set; then :
7171   enableval=$enable_profiling; case $enableval in
7172     yes | no)
7173       ;;
7174     *)
7175       as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7176   esac
7177 else
7178   enable_profiling=no
7179 fi
7180
7181
7182 for ac_func in monstartup _mcleanup
7183 do :
7184   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7186 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7187   cat >>confdefs.h <<_ACEOF
7188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7189 _ACEOF
7190
7191 fi
7192 done
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7195 $as_echo_n "checking for _etext... " >&6; }
7196 if ${ac_cv_var__etext+:} false; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h.  */
7201 #include <stdlib.h>
7202          extern char _etext;
7203 int
7204 main ()
7205 {
7206 free (&_etext);
7207
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_link "$LINENO"; then :
7213   ac_cv_var__etext=yes
7214 else
7215   ac_cv_var__etext=no
7216
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext \
7219     conftest$ac_exeext conftest.$ac_ext
7220
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7223 $as_echo "$ac_cv_var__etext" >&6; }
7224 if test "$ac_cv_var__etext" = yes; then
7225
7226 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7227
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7230 $as_echo_n "checking for etext... " >&6; }
7231 if ${ac_cv_var_etext+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h.  */
7236 #include <stdlib.h>
7237          extern char etext;
7238 int
7239 main ()
7240 {
7241 free (&etext);
7242
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 if ac_fn_c_try_link "$LINENO"; then :
7248   ac_cv_var_etext=yes
7249 else
7250   ac_cv_var_etext=no
7251
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext \
7254     conftest$ac_exeext conftest.$ac_ext
7255
7256 fi
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7258 $as_echo "$ac_cv_var_etext" >&6; }
7259 if test "$ac_cv_var_etext" = yes; then
7260
7261 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7262
7263 fi
7264 if test "$enable_profiling" = yes ; then
7265   if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
7266     as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7267   fi
7268   PROFILE_CFLAGS=-pg
7269   OLD_CFLAGS="$CFLAGS"
7270   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7271
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7273 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7274 if ${ac_cv_cc_supports_pg+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h.  */
7279
7280 int
7281 main ()
7282 {
7283 int x;
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289   ac_cv_cc_supports_pg=yes
7290 else
7291   ac_cv_cc_supports_pg=no
7292
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295
7296 fi
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7298 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7299
7300   if test "$ac_cv_cc_supports_pg" = no; then
7301     as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7302   fi
7303
7304   CFLAGS="$OLD_CFLAGS"
7305 fi
7306
7307 CODESIGN_CERT=
7308 # Check whether --enable-codesign was given.
7309 if test "${enable_codesign+set}" = set; then :
7310   enableval=$enable_codesign; CODESIGN_CERT=$enableval
7311 fi
7312
7313
7314
7315
7316
7317 # Check whether --with-pkgversion was given.
7318 if test "${with_pkgversion+set}" = set; then :
7319   withval=$with_pkgversion; case "$withval" in
7320       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7321       no)  PKGVERSION= ;;
7322       *)   PKGVERSION="($withval) " ;;
7323      esac
7324 else
7325   PKGVERSION="(GDB) "
7326
7327 fi
7328
7329
7330
7331
7332
7333 # Check whether --with-bugurl was given.
7334 if test "${with_bugurl+set}" = set; then :
7335   withval=$with_bugurl; case "$withval" in
7336       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7337       no)  BUGURL=
7338            ;;
7339       *)   BUGURL="$withval"
7340            ;;
7341      esac
7342 else
7343   BUGURL="https://www.gnu.org/software/gdb/bugs/"
7344
7345 fi
7346
7347   case ${BUGURL} in
7348   "")
7349     REPORT_BUGS_TO=
7350     REPORT_BUGS_TEXI=
7351     ;;
7352   *)
7353     REPORT_BUGS_TO="<$BUGURL>"
7354     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7355     ;;
7356   esac;
7357
7358
7359
7360
7361 cat >>confdefs.h <<_ACEOF
7362 #define PKGVERSION "$PKGVERSION"
7363 _ACEOF
7364
7365
7366 cat >>confdefs.h <<_ACEOF
7367 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7368 _ACEOF
7369
7370
7371 # --------------------- #
7372 # Checks for programs.  #
7373 # --------------------- #
7374
7375 for ac_prog in gawk mawk nawk awk
7376 do
7377   # Extract the first word of "$ac_prog", so it can be a program name with args.
7378 set dummy $ac_prog; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_AWK+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   if test -n "$AWK"; then
7385   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   test -z "$as_dir" && as_dir=.
7392     for ac_exec_ext in '' $ac_executable_extensions; do
7393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394     ac_cv_prog_AWK="$ac_prog"
7395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396     break 2
7397   fi
7398 done
7399   done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 AWK=$ac_cv_prog_AWK
7405 if test -n "$AWK"; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7407 $as_echo "$AWK" >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413
7414   test -n "$AWK" && break
7415 done
7416
7417 # Find a good install program.  We prefer a C program (faster),
7418 # so one script is as good as another.  But avoid the broken or
7419 # incompatible versions:
7420 # SysV /etc/install, /usr/sbin/install
7421 # SunOS /usr/etc/install
7422 # IRIX /sbin/install
7423 # AIX /bin/install
7424 # AmigaOS /C/install, which installs bootblocks on floppy discs
7425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7428 # OS/2's system install, which has a completely different semantic
7429 # ./install, which can be erroneously created by make from ./install.sh.
7430 # Reject install programs that cannot install multiple files.
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7433 if test -z "$INSTALL"; then
7434 if ${ac_cv_path_install+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     # Account for people who put trailing slashes in PATH elements.
7443 case $as_dir/ in #((
7444   ./ | .// | /[cC]/* | \
7445   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7446   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7447   /usr/ucb/* ) ;;
7448   *)
7449     # OSF1 and SCO ODT 3.0 have their own names for install.
7450     # Don't use installbsd from OSF since it installs stuff as root
7451     # by default.
7452     for ac_prog in ginstall scoinst install; do
7453       for ac_exec_ext in '' $ac_executable_extensions; do
7454         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7455           if test $ac_prog = install &&
7456             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7457             # AIX install.  It has an incompatible calling convention.
7458             :
7459           elif test $ac_prog = install &&
7460             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7461             # program-specific install script used by HP pwplus--don't use.
7462             :
7463           else
7464             rm -rf conftest.one conftest.two conftest.dir
7465             echo one > conftest.one
7466             echo two > conftest.two
7467             mkdir conftest.dir
7468             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7469               test -s conftest.one && test -s conftest.two &&
7470               test -s conftest.dir/conftest.one &&
7471               test -s conftest.dir/conftest.two
7472             then
7473               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7474               break 3
7475             fi
7476           fi
7477         fi
7478       done
7479     done
7480     ;;
7481 esac
7482
7483   done
7484 IFS=$as_save_IFS
7485
7486 rm -rf conftest.one conftest.two conftest.dir
7487
7488 fi
7489   if test "${ac_cv_path_install+set}" = set; then
7490     INSTALL=$ac_cv_path_install
7491   else
7492     # As a last resort, use the slow shell script.  Don't cache a
7493     # value for INSTALL within a source directory, because that will
7494     # break other packages using the cache if that directory is
7495     # removed, or if the value is a relative name.
7496     INSTALL=$ac_install_sh
7497   fi
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7500 $as_echo "$INSTALL" >&6; }
7501
7502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7503 # It thinks the first close brace ends the variable substitution.
7504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7505
7506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7507
7508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7511 $as_echo_n "checking whether ln -s works... " >&6; }
7512 LN_S=$as_ln_s
7513 if test "$LN_S" = "ln -s"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7515 $as_echo "yes" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7518 $as_echo "no, using $LN_S" >&6; }
7519 fi
7520
7521 if test -n "$ac_tool_prefix"; then
7522   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7523 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_RANLIB+:} false; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529   if test -n "$RANLIB"; then
7530   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537     for ac_exec_ext in '' $ac_executable_extensions; do
7538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544   done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 RANLIB=$ac_cv_prog_RANLIB
7550 if test -n "$RANLIB"; then
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7552 $as_echo "$RANLIB" >&6; }
7553 else
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558
7559 fi
7560 if test -z "$ac_cv_prog_RANLIB"; then
7561   ac_ct_RANLIB=$RANLIB
7562   # Extract the first word of "ranlib", so it can be a program name with args.
7563 set dummy ranlib; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7567   $as_echo_n "(cached) " >&6
7568 else
7569   if test -n "$ac_ct_RANLIB"; then
7570   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575   IFS=$as_save_IFS
7576   test -z "$as_dir" && as_dir=.
7577     for ac_exec_ext in '' $ac_executable_extensions; do
7578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579     ac_cv_prog_ac_ct_RANLIB="ranlib"
7580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581     break 2
7582   fi
7583 done
7584   done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7590 if test -n "$ac_ct_RANLIB"; then
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7592 $as_echo "$ac_ct_RANLIB" >&6; }
7593 else
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598   if test "x$ac_ct_RANLIB" = x; then
7599     RANLIB=":"
7600   else
7601     case $cross_compiling:$ac_tool_warned in
7602 yes:)
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605 ac_tool_warned=yes ;;
7606 esac
7607     RANLIB=$ac_ct_RANLIB
7608   fi
7609 else
7610   RANLIB="$ac_cv_prog_RANLIB"
7611 fi
7612
7613 for ac_prog in 'bison -y' byacc
7614 do
7615   # Extract the first word of "$ac_prog", so it can be a program name with args.
7616 set dummy $ac_prog; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_YACC+:} false; then :
7620   $as_echo_n "(cached) " >&6
7621 else
7622   if test -n "$YACC"; then
7623   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630     for ac_exec_ext in '' $ac_executable_extensions; do
7631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632     ac_cv_prog_YACC="$ac_prog"
7633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637   done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 YACC=$ac_cv_prog_YACC
7643 if test -n "$YACC"; then
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7645 $as_echo "$YACC" >&6; }
7646 else
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651
7652   test -n "$YACC" && break
7653 done
7654 test -n "$YACC" || YACC="yacc"
7655
7656
7657 if test -n "$ac_tool_prefix"; then
7658   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}ar; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_AR+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$AR"; then
7666   ac_cv_prog_AR="$AR" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675     ac_cv_prog_AR="${ac_tool_prefix}ar"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 AR=$ac_cv_prog_AR
7686 if test -n "$AR"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7688 $as_echo "$AR" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_AR"; then
7697   ac_ct_AR=$AR
7698   # Extract the first word of "ar", so it can be a program name with args.
7699 set dummy ar; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   if test -n "$ac_ct_AR"; then
7706   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715     ac_cv_prog_ac_ct_AR="ar"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7726 if test -n "$ac_ct_AR"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7728 $as_echo "$ac_ct_AR" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734   if test "x$ac_ct_AR" = x; then
7735     AR=""
7736   else
7737     case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743     AR=$ac_ct_AR
7744   fi
7745 else
7746   AR="$ac_cv_prog_AR"
7747 fi
7748
7749 if test -n "$ac_tool_prefix"; then
7750   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_DLLTOOL+:} false; then :
7755   $as_echo_n "(cached) " >&6
7756 else
7757   if test -n "$DLLTOOL"; then
7758   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763   IFS=$as_save_IFS
7764   test -z "$as_dir" && as_dir=.
7765     for ac_exec_ext in '' $ac_executable_extensions; do
7766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769     break 2
7770   fi
7771 done
7772   done
7773 IFS=$as_save_IFS
7774
7775 fi
7776 fi
7777 DLLTOOL=$ac_cv_prog_DLLTOOL
7778 if test -n "$DLLTOOL"; then
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7780 $as_echo "$DLLTOOL" >&6; }
7781 else
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7785
7786
7787 fi
7788 if test -z "$ac_cv_prog_DLLTOOL"; then
7789   ac_ct_DLLTOOL=$DLLTOOL
7790   # Extract the first word of "dlltool", so it can be a program name with args.
7791 set dummy dlltool; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   if test -n "$ac_ct_DLLTOOL"; then
7798   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805     for ac_exec_ext in '' $ac_executable_extensions; do
7806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812   done
7813 IFS=$as_save_IFS
7814
7815 fi
7816 fi
7817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7818 if test -n "$ac_ct_DLLTOOL"; then
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7820 $as_echo "$ac_ct_DLLTOOL" >&6; }
7821 else
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826   if test "x$ac_ct_DLLTOOL" = x; then
7827     DLLTOOL=""
7828   else
7829     case $cross_compiling:$ac_tool_warned in
7830 yes:)
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7834 esac
7835     DLLTOOL=$ac_ct_DLLTOOL
7836   fi
7837 else
7838   DLLTOOL="$ac_cv_prog_DLLTOOL"
7839 fi
7840
7841 if test -n "$ac_tool_prefix"; then
7842   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7843 set dummy ${ac_tool_prefix}windres; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if ${ac_cv_prog_WINDRES+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   if test -n "$WINDRES"; then
7850   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_exec_ext in '' $ac_executable_extensions; do
7858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7859     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861     break 2
7862   fi
7863 done
7864   done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 WINDRES=$ac_cv_prog_WINDRES
7870 if test -n "$WINDRES"; then
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7872 $as_echo "$WINDRES" >&6; }
7873 else
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 fi
7880 if test -z "$ac_cv_prog_WINDRES"; then
7881   ac_ct_WINDRES=$WINDRES
7882   # Extract the first word of "windres", so it can be a program name with args.
7883 set dummy windres; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$ac_ct_WINDRES"; then
7890   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899     ac_cv_prog_ac_ct_WINDRES="windres"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7910 if test -n "$ac_ct_WINDRES"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7912 $as_echo "$ac_ct_WINDRES" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918   if test "x$ac_ct_WINDRES" = x; then
7919     WINDRES=""
7920   else
7921     case $cross_compiling:$ac_tool_warned in
7922 yes:)
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925 ac_tool_warned=yes ;;
7926 esac
7927     WINDRES=$ac_ct_WINDRES
7928   fi
7929 else
7930   WINDRES="$ac_cv_prog_WINDRES"
7931 fi
7932
7933
7934 case $host_os in
7935   gnu*)
7936     # Needed for GNU Hurd hosts.
7937     if test -n "$ac_tool_prefix"; then
7938   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}mig; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_MIG+:} false; then :
7943   $as_echo_n "(cached) " >&6
7944 else
7945   if test -n "$MIG"; then
7946   ac_cv_prog_MIG="$MIG" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955     ac_cv_prog_MIG="${ac_tool_prefix}mig"
7956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960   done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 MIG=$ac_cv_prog_MIG
7966 if test -n "$MIG"; then
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7968 $as_echo "$MIG" >&6; }
7969 else
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975 fi
7976 if test -z "$ac_cv_prog_MIG"; then
7977   ac_ct_MIG=$MIG
7978   # Extract the first word of "mig", so it can be a program name with args.
7979 set dummy mig; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
7983   $as_echo_n "(cached) " >&6
7984 else
7985   if test -n "$ac_ct_MIG"; then
7986   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993     for ac_exec_ext in '' $ac_executable_extensions; do
7994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995     ac_cv_prog_ac_ct_MIG="mig"
7996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000   done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8006 if test -n "$ac_ct_MIG"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8008 $as_echo "$ac_ct_MIG" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014   if test "x$ac_ct_MIG" = x; then
8015     MIG=""
8016   else
8017     case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023     MIG=$ac_ct_MIG
8024   fi
8025 else
8026   MIG="$ac_cv_prog_MIG"
8027 fi
8028
8029     if test x"$MIG" = x; then
8030       as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
8031     fi
8032     ;;
8033 esac
8034
8035 # ---------------------- #
8036 # Checks for libraries.  #
8037 # ---------------------- #
8038
8039 # We might need to link with -lm; most simulators need it.
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8041 $as_echo_n "checking for main in -lm... " >&6; }
8042 if ${ac_cv_lib_m_main+:} false; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lm  $LIBS"
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h.  */
8049
8050
8051 int
8052 main ()
8053 {
8054 return main ();
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060   ac_cv_lib_m_main=yes
8061 else
8062   ac_cv_lib_m_main=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065     conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8069 $as_echo "$ac_cv_lib_m_main" >&6; }
8070 if test "x$ac_cv_lib_m_main" = xyes; then :
8071   cat >>confdefs.h <<_ACEOF
8072 #define HAVE_LIBM 1
8073 _ACEOF
8074
8075   LIBS="-lm $LIBS"
8076
8077 fi
8078
8079
8080 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8082 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8083 if ${ac_cv_search_gethostbyname+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   ac_func_search_save_LIBS=$LIBS
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h.  */
8089
8090 /* Override any GCC internal prototype to avoid an error.
8091    Use char because int might match the return type of a GCC
8092    builtin and then its argument prototype would still apply.  */
8093 #ifdef __cplusplus
8094 extern "C"
8095 #endif
8096 char gethostbyname ();
8097 int
8098 main ()
8099 {
8100 return gethostbyname ();
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 for ac_lib in '' nsl; do
8106   if test -z "$ac_lib"; then
8107     ac_res="none required"
8108   else
8109     ac_res=-l$ac_lib
8110     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8111   fi
8112   if ac_fn_c_try_link "$LINENO"; then :
8113   ac_cv_search_gethostbyname=$ac_res
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext \
8116     conftest$ac_exeext
8117   if ${ac_cv_search_gethostbyname+:} false; then :
8118   break
8119 fi
8120 done
8121 if ${ac_cv_search_gethostbyname+:} false; then :
8122
8123 else
8124   ac_cv_search_gethostbyname=no
8125 fi
8126 rm conftest.$ac_ext
8127 LIBS=$ac_func_search_save_LIBS
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8130 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8131 ac_res=$ac_cv_search_gethostbyname
8132 if test "$ac_res" != no; then :
8133   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8134
8135 fi
8136
8137
8138 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8140 $as_echo_n "checking for library containing socketpair... " >&6; }
8141 if ${ac_cv_search_socketpair+:} false; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   ac_func_search_save_LIBS=$LIBS
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h.  */
8147
8148 /* Override any GCC internal prototype to avoid an error.
8149    Use char because int might match the return type of a GCC
8150    builtin and then its argument prototype would still apply.  */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 char socketpair ();
8155 int
8156 main ()
8157 {
8158 return socketpair ();
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 for ac_lib in '' socket; do
8164   if test -z "$ac_lib"; then
8165     ac_res="none required"
8166   else
8167     ac_res=-l$ac_lib
8168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8169   fi
8170   if ac_fn_c_try_link "$LINENO"; then :
8171   ac_cv_search_socketpair=$ac_res
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext \
8174     conftest$ac_exeext
8175   if ${ac_cv_search_socketpair+:} false; then :
8176   break
8177 fi
8178 done
8179 if ${ac_cv_search_socketpair+:} false; then :
8180
8181 else
8182   ac_cv_search_socketpair=no
8183 fi
8184 rm conftest.$ac_ext
8185 LIBS=$ac_func_search_save_LIBS
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8188 $as_echo "$ac_cv_search_socketpair" >&6; }
8189 ac_res=$ac_cv_search_socketpair
8190 if test "$ac_res" != no; then :
8191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8192
8193 fi
8194
8195
8196 # Link in zlib if we can.  This allows us to read compressed debug sections.
8197
8198   # Use the system's zlib library.
8199   zlibdir="-L\$(top_builddir)/../zlib"
8200   zlibinc="-I\$(top_srcdir)/../zlib"
8201
8202 # Check whether --with-system-zlib was given.
8203 if test "${with_system_zlib+set}" = set; then :
8204   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8205     zlibdir=
8206     zlibinc=
8207   fi
8208
8209 fi
8210
8211
8212
8213
8214
8215
8216       if test "X$prefix" = "XNONE"; then
8217     acl_final_prefix="$ac_default_prefix"
8218   else
8219     acl_final_prefix="$prefix"
8220   fi
8221   if test "X$exec_prefix" = "XNONE"; then
8222     acl_final_exec_prefix='${prefix}'
8223   else
8224     acl_final_exec_prefix="$exec_prefix"
8225   fi
8226   acl_save_prefix="$prefix"
8227   prefix="$acl_final_prefix"
8228   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8229   prefix="$acl_save_prefix"
8230
8231
8232 # Check whether --with-gnu-ld was given.
8233 if test "${with_gnu_ld+set}" = set; then :
8234   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8235 else
8236   with_gnu_ld=no
8237 fi
8238
8239 # Prepare PATH_SEPARATOR.
8240 # The user is always right.
8241 if test "${PATH_SEPARATOR+set}" != set; then
8242   echo "#! /bin/sh" >conf$$.sh
8243   echo  "exit 0"   >>conf$$.sh
8244   chmod +x conf$$.sh
8245   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8246     PATH_SEPARATOR=';'
8247   else
8248     PATH_SEPARATOR=:
8249   fi
8250   rm -f conf$$.sh
8251 fi
8252 ac_prog=ld
8253 if test "$GCC" = yes; then
8254   # Check if gcc -print-prog-name=ld gives a path.
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8256 $as_echo_n "checking for ld used by GCC... " >&6; }
8257   case $host in
8258   *-*-mingw*)
8259     # gcc leaves a trailing carriage return which upsets mingw
8260     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8261   *)
8262     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8263   esac
8264   case $ac_prog in
8265     # Accept absolute paths.
8266     [\\/]* | [A-Za-z]:[\\/]*)
8267       re_direlt='/[^/][^/]*/\.\./'
8268       # Canonicalize the path of ld
8269       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8270       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8271         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8272       done
8273       test -z "$LD" && LD="$ac_prog"
8274       ;;
8275   "")
8276     # If it fails, then pretend we aren't using GCC.
8277     ac_prog=ld
8278     ;;
8279   *)
8280     # If it is relative, then search for the first ld in PATH.
8281     with_gnu_ld=unknown
8282     ;;
8283   esac
8284 elif test "$with_gnu_ld" = yes; then
8285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8286 $as_echo_n "checking for GNU ld... " >&6; }
8287 else
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8289 $as_echo_n "checking for non-GNU ld... " >&6; }
8290 fi
8291 if ${acl_cv_path_LD+:} false; then :
8292   $as_echo_n "(cached) " >&6
8293 else
8294   if test -z "$LD"; then
8295   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8296   for ac_dir in $PATH; do
8297     test -z "$ac_dir" && ac_dir=.
8298     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8299       acl_cv_path_LD="$ac_dir/$ac_prog"
8300       # Check to see if the program is GNU ld.  I'd rather use --version,
8301       # but apparently some GNU ld's only accept -v.
8302       # Break only if it was the GNU/non-GNU ld that we prefer.
8303       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8304         test "$with_gnu_ld" != no && break
8305       else
8306         test "$with_gnu_ld" != yes && break
8307       fi
8308     fi
8309   done
8310   IFS="$ac_save_ifs"
8311 else
8312   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8313 fi
8314 fi
8315
8316 LD="$acl_cv_path_LD"
8317 if test -n "$LD"; then
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8319 $as_echo "$LD" >&6; }
8320 else
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8327 if ${acl_cv_prog_gnu_ld+:} false; then :
8328   $as_echo_n "(cached) " >&6
8329 else
8330   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8331 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8332   acl_cv_prog_gnu_ld=yes
8333 else
8334   acl_cv_prog_gnu_ld=no
8335 fi
8336 fi
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8338 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8339 with_gnu_ld=$acl_cv_prog_gnu_ld
8340
8341
8342
8343                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8344 $as_echo_n "checking for shared library run path origin... " >&6; }
8345 if ${acl_cv_rpath+:} false; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348
8349     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8350     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8351     . ./conftest.sh
8352     rm -f ./conftest.sh
8353     acl_cv_rpath=done
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8357 $as_echo "$acl_cv_rpath" >&6; }
8358   wl="$acl_cv_wl"
8359   libext="$acl_cv_libext"
8360   shlibext="$acl_cv_shlibext"
8361   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8362   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8363   hardcode_direct="$acl_cv_hardcode_direct"
8364   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8365     # Check whether --enable-rpath was given.
8366 if test "${enable_rpath+set}" = set; then :
8367   enableval=$enable_rpath; :
8368 else
8369   enable_rpath=yes
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379     use_additional=yes
8380
8381   acl_save_prefix="$prefix"
8382   prefix="$acl_final_prefix"
8383   acl_save_exec_prefix="$exec_prefix"
8384   exec_prefix="$acl_final_exec_prefix"
8385
8386     eval additional_includedir=\"$includedir\"
8387     eval additional_libdir=\"$libdir\"
8388
8389   exec_prefix="$acl_save_exec_prefix"
8390   prefix="$acl_save_prefix"
8391
8392
8393 # Check whether --with-libiconv-prefix was given.
8394 if test "${with_libiconv_prefix+set}" = set; then :
8395   withval=$with_libiconv_prefix;
8396     if test "X$withval" = "Xno"; then
8397       use_additional=no
8398     else
8399       if test "X$withval" = "X"; then
8400
8401   acl_save_prefix="$prefix"
8402   prefix="$acl_final_prefix"
8403   acl_save_exec_prefix="$exec_prefix"
8404   exec_prefix="$acl_final_exec_prefix"
8405
8406           eval additional_includedir=\"$includedir\"
8407           eval additional_libdir=\"$libdir\"
8408
8409   exec_prefix="$acl_save_exec_prefix"
8410   prefix="$acl_save_prefix"
8411
8412       else
8413         additional_includedir="$withval/include"
8414         additional_libdir="$withval/lib"
8415       fi
8416     fi
8417
8418 fi
8419
8420
8421 # Check whether --with-libiconv-type was given.
8422 if test "${with_libiconv_type+set}" = set; then :
8423   withval=$with_libiconv_type;  with_libiconv_type=$withval
8424 else
8425    with_libiconv_type=auto
8426 fi
8427
8428   lib_type=`eval echo \$with_libiconv_type`
8429
8430       LIBICONV=
8431   LTLIBICONV=
8432   INCICONV=
8433   rpathdirs=
8434   ltrpathdirs=
8435   names_already_handled=
8436   names_next_round='iconv '
8437   while test -n "$names_next_round"; do
8438     names_this_round="$names_next_round"
8439     names_next_round=
8440     for name in $names_this_round; do
8441       already_handled=
8442       for n in $names_already_handled; do
8443         if test "$n" = "$name"; then
8444           already_handled=yes
8445           break
8446         fi
8447       done
8448       if test -z "$already_handled"; then
8449         names_already_handled="$names_already_handled $name"
8450                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8451         eval value=\"\$HAVE_LIB$uppername\"
8452         if test -n "$value"; then
8453           if test "$value" = yes; then
8454             eval value=\"\$LIB$uppername\"
8455             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8456             eval value=\"\$LTLIB$uppername\"
8457             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8458           else
8459                                     :
8460           fi
8461         else
8462                               found_dir=
8463           found_la=
8464           found_so=
8465           found_a=
8466           if test $use_additional = yes; then
8467             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8468               found_dir="$additional_libdir"
8469               found_so="$additional_libdir/lib$name.$shlibext"
8470               if test -f "$additional_libdir/lib$name.la"; then
8471                 found_la="$additional_libdir/lib$name.la"
8472               fi
8473             elif test x$lib_type != xshared; then
8474               if test -f "$additional_libdir/lib$name.$libext"; then
8475                 found_dir="$additional_libdir"
8476                 found_a="$additional_libdir/lib$name.$libext"
8477                 if test -f "$additional_libdir/lib$name.la"; then
8478                   found_la="$additional_libdir/lib$name.la"
8479                 fi
8480               fi
8481             fi
8482           fi
8483           if test "X$found_dir" = "X"; then
8484             for x in $LDFLAGS $LTLIBICONV; do
8485
8486   acl_save_prefix="$prefix"
8487   prefix="$acl_final_prefix"
8488   acl_save_exec_prefix="$exec_prefix"
8489   exec_prefix="$acl_final_exec_prefix"
8490   eval x=\"$x\"
8491   exec_prefix="$acl_save_exec_prefix"
8492   prefix="$acl_save_prefix"
8493
8494               case "$x" in
8495                 -L*)
8496                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8497                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
8498                     found_dir="$dir"
8499                     found_so="$dir/lib$name.$shlibext"
8500                     if test -f "$dir/lib$name.la"; then
8501                       found_la="$dir/lib$name.la"
8502                     fi
8503                   elif test x$lib_type != xshared; then
8504                     if test -f "$dir/lib$name.$libext"; then
8505                       found_dir="$dir"
8506                       found_a="$dir/lib$name.$libext"
8507                       if test -f "$dir/lib$name.la"; then
8508                         found_la="$dir/lib$name.la"
8509                       fi
8510                     fi
8511                   fi
8512                   ;;
8513               esac
8514               if test "X$found_dir" != "X"; then
8515                 break
8516               fi
8517             done
8518           fi
8519           if test "X$found_dir" != "X"; then
8520                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8521             if test "X$found_so" != "X"; then
8522                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8523                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8524               else
8525                                                                                 haveit=
8526                 for x in $ltrpathdirs; do
8527                   if test "X$x" = "X$found_dir"; then
8528                     haveit=yes
8529                     break
8530                   fi
8531                 done
8532                 if test -z "$haveit"; then
8533                   ltrpathdirs="$ltrpathdirs $found_dir"
8534                 fi
8535                                 if test "$hardcode_direct" = yes; then
8536                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8537                 else
8538                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8539                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8540                                                             haveit=
8541                     for x in $rpathdirs; do
8542                       if test "X$x" = "X$found_dir"; then
8543                         haveit=yes
8544                         break
8545                       fi
8546                     done
8547                     if test -z "$haveit"; then
8548                       rpathdirs="$rpathdirs $found_dir"
8549                     fi
8550                   else
8551                                                                                 haveit=
8552                     for x in $LDFLAGS $LIBICONV; do
8553
8554   acl_save_prefix="$prefix"
8555   prefix="$acl_final_prefix"
8556   acl_save_exec_prefix="$exec_prefix"
8557   exec_prefix="$acl_final_exec_prefix"
8558   eval x=\"$x\"
8559   exec_prefix="$acl_save_exec_prefix"
8560   prefix="$acl_save_prefix"
8561
8562                       if test "X$x" = "X-L$found_dir"; then
8563                         haveit=yes
8564                         break
8565                       fi
8566                     done
8567                     if test -z "$haveit"; then
8568                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8569                     fi
8570                     if test "$hardcode_minus_L" != no; then
8571                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8572                     else
8573                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8574                     fi
8575                   fi
8576                 fi
8577               fi
8578             else
8579               if test "X$found_a" != "X"; then
8580                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8581               else
8582                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8583               fi
8584             fi
8585                         additional_includedir=
8586             case "$found_dir" in
8587               */lib | */lib/)
8588                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8589                 additional_includedir="$basedir/include"
8590                 ;;
8591             esac
8592             if test "X$additional_includedir" != "X"; then
8593                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8594                 haveit=
8595                 if test "X$additional_includedir" = "X/usr/local/include"; then
8596                   if test -n "$GCC"; then
8597                     case $host_os in
8598                       linux*) haveit=yes;;
8599                     esac
8600                   fi
8601                 fi
8602                 if test -z "$haveit"; then
8603                   for x in $CPPFLAGS $INCICONV; do
8604
8605   acl_save_prefix="$prefix"
8606   prefix="$acl_final_prefix"
8607   acl_save_exec_prefix="$exec_prefix"
8608   exec_prefix="$acl_final_exec_prefix"
8609   eval x=\"$x\"
8610   exec_prefix="$acl_save_exec_prefix"
8611   prefix="$acl_save_prefix"
8612
8613                     if test "X$x" = "X-I$additional_includedir"; then
8614                       haveit=yes
8615                       break
8616                     fi
8617                   done
8618                   if test -z "$haveit"; then
8619                     if test -d "$additional_includedir"; then
8620                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8621                     fi
8622                   fi
8623                 fi
8624               fi
8625             fi
8626                         if test -n "$found_la"; then
8627                                                         save_libdir="$libdir"
8628               case "$found_la" in
8629                 */* | *\\*) . "$found_la" ;;
8630                 *) . "./$found_la" ;;
8631               esac
8632               libdir="$save_libdir"
8633                             for dep in $dependency_libs; do
8634                 case "$dep" in
8635                   -L*)
8636                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8637                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8638                       haveit=
8639                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8640                         if test -n "$GCC"; then
8641                           case $host_os in
8642                             linux*) haveit=yes;;
8643                           esac
8644                         fi
8645                       fi
8646                       if test -z "$haveit"; then
8647                         haveit=
8648                         for x in $LDFLAGS $LIBICONV; do
8649
8650   acl_save_prefix="$prefix"
8651   prefix="$acl_final_prefix"
8652   acl_save_exec_prefix="$exec_prefix"
8653   exec_prefix="$acl_final_exec_prefix"
8654   eval x=\"$x\"
8655   exec_prefix="$acl_save_exec_prefix"
8656   prefix="$acl_save_prefix"
8657
8658                           if test "X$x" = "X-L$additional_libdir"; then
8659                             haveit=yes
8660                             break
8661                           fi
8662                         done
8663                         if test -z "$haveit"; then
8664                           if test -d "$additional_libdir"; then
8665                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8666                           fi
8667                         fi
8668                         haveit=
8669                         for x in $LDFLAGS $LTLIBICONV; do
8670
8671   acl_save_prefix="$prefix"
8672   prefix="$acl_final_prefix"
8673   acl_save_exec_prefix="$exec_prefix"
8674   exec_prefix="$acl_final_exec_prefix"
8675   eval x=\"$x\"
8676   exec_prefix="$acl_save_exec_prefix"
8677   prefix="$acl_save_prefix"
8678
8679                           if test "X$x" = "X-L$additional_libdir"; then
8680                             haveit=yes
8681                             break
8682                           fi
8683                         done
8684                         if test -z "$haveit"; then
8685                           if test -d "$additional_libdir"; then
8686                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8687                           fi
8688                         fi
8689                       fi
8690                     fi
8691                     ;;
8692                   -R*)
8693                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8694                     if test "$enable_rpath" != no; then
8695                                                                   haveit=
8696                       for x in $rpathdirs; do
8697                         if test "X$x" = "X$dir"; then
8698                           haveit=yes
8699                           break
8700                         fi
8701                       done
8702                       if test -z "$haveit"; then
8703                         rpathdirs="$rpathdirs $dir"
8704                       fi
8705                                                                   haveit=
8706                       for x in $ltrpathdirs; do
8707                         if test "X$x" = "X$dir"; then
8708                           haveit=yes
8709                           break
8710                         fi
8711                       done
8712                       if test -z "$haveit"; then
8713                         ltrpathdirs="$ltrpathdirs $dir"
8714                       fi
8715                     fi
8716                     ;;
8717                   -l*)
8718                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8719                     ;;
8720                   *.la)
8721                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8722                     ;;
8723                   *)
8724                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8725                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8726                     ;;
8727                 esac
8728               done
8729             fi
8730           else
8731                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
8732               LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8733               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8734             else
8735               LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8736               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8737             fi
8738           fi
8739         fi
8740       fi
8741     done
8742   done
8743   if test "X$rpathdirs" != "X"; then
8744     if test -n "$hardcode_libdir_separator"; then
8745                         alldirs=
8746       for found_dir in $rpathdirs; do
8747         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8748       done
8749             acl_save_libdir="$libdir"
8750       libdir="$alldirs"
8751       eval flag=\"$hardcode_libdir_flag_spec\"
8752       libdir="$acl_save_libdir"
8753       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8754     else
8755             for found_dir in $rpathdirs; do
8756         acl_save_libdir="$libdir"
8757         libdir="$found_dir"
8758         eval flag=\"$hardcode_libdir_flag_spec\"
8759         libdir="$acl_save_libdir"
8760         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8761       done
8762     fi
8763   fi
8764   if test "X$ltrpathdirs" != "X"; then
8765             for found_dir in $ltrpathdirs; do
8766       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8767     done
8768   fi
8769
8770
8771
8772
8773
8774
8775
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8777 $as_echo_n "checking for iconv... " >&6; }
8778 if ${am_cv_func_iconv+:} false; then :
8779   $as_echo_n "(cached) " >&6
8780 else
8781
8782     am_cv_func_iconv="no, consider installing GNU libiconv"
8783     am_cv_lib_iconv=no
8784                     am_save_CPPFLAGS="$CPPFLAGS"
8785     CPPFLAGS="$CPPFLAGS $INCICONV"
8786     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h.  */
8788 #include <stdlib.h>
8789 #include <iconv.h>
8790 int
8791 main ()
8792 {
8793 iconv_t cd = iconv_open("","");
8794        iconv(cd,NULL,NULL,NULL,NULL);
8795        iconv_close(cd);
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_link "$LINENO"; then :
8801   am_cv_func_iconv=yes
8802 fi
8803 rm -f core conftest.err conftest.$ac_objext \
8804     conftest$ac_exeext conftest.$ac_ext
8805     CPPFLAGS="$am_save_CPPFLAGS"
8806
8807     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8808       for _libs in .libs _libs; do
8809         am_save_CPPFLAGS="$CPPFLAGS"
8810         am_save_LIBS="$LIBS"
8811         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8812         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8813         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h.  */
8815 #include <stdlib.h>
8816 #include <iconv.h>
8817 int
8818 main ()
8819 {
8820 iconv_t cd = iconv_open("","");
8821            iconv(cd,NULL,NULL,NULL,NULL);
8822            iconv_close(cd);
8823   ;
8824   return 0;
8825 }
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"; then :
8828   INCICONV="-I../libiconv/include"
8829           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8830           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8831           am_cv_lib_iconv=yes
8832           am_cv_func_iconv=yes
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext \
8835     conftest$ac_exeext conftest.$ac_ext
8836         CPPFLAGS="$am_save_CPPFLAGS"
8837         LIBS="$am_save_LIBS"
8838         if test "$am_cv_func_iconv" = "yes"; then
8839           break
8840         fi
8841       done
8842     fi
8843
8844     if test "$am_cv_func_iconv" != yes; then
8845       am_save_CPPFLAGS="$CPPFLAGS"
8846       am_save_LIBS="$LIBS"
8847       CPPFLAGS="$CPPFLAGS $INCICONV"
8848       LIBS="$LIBS $LIBICONV"
8849       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h.  */
8851 #include <stdlib.h>
8852 #include <iconv.h>
8853 int
8854 main ()
8855 {
8856 iconv_t cd = iconv_open("","");
8857          iconv(cd,NULL,NULL,NULL,NULL);
8858          iconv_close(cd);
8859   ;
8860   return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864   am_cv_lib_iconv=yes
8865         am_cv_func_iconv=yes
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext \
8868     conftest$ac_exeext conftest.$ac_ext
8869       CPPFLAGS="$am_save_CPPFLAGS"
8870       LIBS="$am_save_LIBS"
8871     fi
8872
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8875 $as_echo "$am_cv_func_iconv" >&6; }
8876   if test "$am_cv_func_iconv" = yes; then
8877
8878 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8879
8880   fi
8881   if test "$am_cv_lib_iconv" = yes; then
8882
8883   for element in $INCICONV; do
8884     haveit=
8885     for x in $CPPFLAGS; do
8886
8887   acl_save_prefix="$prefix"
8888   prefix="$acl_final_prefix"
8889   acl_save_exec_prefix="$exec_prefix"
8890   exec_prefix="$acl_final_exec_prefix"
8891   eval x=\"$x\"
8892   exec_prefix="$acl_save_exec_prefix"
8893   prefix="$acl_save_prefix"
8894
8895       if test "X$x" = "X$element"; then
8896         haveit=yes
8897         break
8898       fi
8899     done
8900     if test -z "$haveit"; then
8901       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8902     fi
8903   done
8904
8905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8906 $as_echo_n "checking how to link with libiconv... " >&6; }
8907     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8908 $as_echo "$LIBICONV" >&6; }
8909   else
8910     LIBICONV=
8911     LTLIBICONV=
8912   fi
8913
8914
8915
8916   if test "$am_cv_func_iconv" = yes; then
8917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8918 $as_echo_n "checking for iconv declaration... " >&6; }
8919     if ${am_cv_proto_iconv+:} false; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922
8923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h.  */
8925
8926 #include <stdlib.h>
8927 #include <iconv.h>
8928 extern
8929 #ifdef __cplusplus
8930 "C"
8931 #endif
8932 #if defined(__STDC__) || defined(__cplusplus)
8933 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8934 #else
8935 size_t iconv();
8936 #endif
8937
8938 int
8939 main ()
8940 {
8941
8942   ;
8943   return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947   am_cv_proto_iconv_arg1=""
8948 else
8949   am_cv_proto_iconv_arg1="const"
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8953 fi
8954
8955     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8956     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8957          }$am_cv_proto_iconv" >&5
8958 $as_echo "${ac_t:-
8959          }$am_cv_proto_iconv" >&6; }
8960
8961 cat >>confdefs.h <<_ACEOF
8962 #define ICONV_CONST $am_cv_proto_iconv_arg1
8963 _ACEOF
8964
8965   fi
8966
8967
8968 # GDB may fork/exec the iconv program to get the list of supported character
8969 # sets.  Allow the user to specify where to find it.
8970 # There are several factors affecting the choice of option name:
8971 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8972 #   the build-time location of libiconv files.
8973 # - The program we need to find is iconv, which comes with glibc.  The user
8974 #   doesn't necessarily have libiconv installed.  Therefore naming this
8975 #   --with-libiconv-foo feels wrong.
8976 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8977 #   defined to work on directories not files (though it really doesn't know
8978 #   the difference).
8979 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8980 #   with --with-libiconv-prefix.
8981 # Putting these together is why the option name is --with-iconv-bin.
8982
8983
8984 # Check whether --with-iconv-bin was given.
8985 if test "${with_iconv_bin+set}" = set; then :
8986   withval=$with_iconv_bin; iconv_bin="${withval}"
8987
8988 cat >>confdefs.h <<_ACEOF
8989 #define ICONV_BIN "${iconv_bin}"
8990 _ACEOF
8991
8992
8993   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8994      if test "x$prefix" = xNONE; then
8995         test_prefix=/usr/local
8996      else
8997         test_prefix=$prefix
8998      fi
8999   else
9000      test_prefix=$exec_prefix
9001   fi
9002   value=0
9003   case ${iconv_bin} in
9004      "${test_prefix}"|"${test_prefix}/"*|\
9005         '${exec_prefix}'|'${exec_prefix}/'*)
9006      value=1
9007      ;;
9008   esac
9009
9010 cat >>confdefs.h <<_ACEOF
9011 #define ICONV_BIN_RELOCATABLE $value
9012 _ACEOF
9013
9014
9015
9016 fi
9017
9018
9019 # For the TUI, we need enhanced curses functionality.
9020 if test x"$enable_tui" != xno; then
9021   prefer_curses=yes
9022 fi
9023
9024 curses_found=no
9025 if test x"$prefer_curses" = xyes; then
9026   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9027   # curses library because the latter might not provide all the
9028   # functionality we need.  However, this leads to problems on systems
9029   # where the linker searches /usr/local/lib, but the compiler doesn't
9030   # search /usr/local/include, if ncurses is installed in /usr/local.  A
9031   # default installation of ncurses on alpha*-dec-osf* will lead to such
9032   # a situation.
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9034 $as_echo_n "checking for library containing waddstr... " >&6; }
9035 if ${ac_cv_search_waddstr+:} false; then :
9036   $as_echo_n "(cached) " >&6
9037 else
9038   ac_func_search_save_LIBS=$LIBS
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h.  */
9041
9042 /* Override any GCC internal prototype to avoid an error.
9043    Use char because int might match the return type of a GCC
9044    builtin and then its argument prototype would still apply.  */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 char waddstr ();
9049 int
9050 main ()
9051 {
9052 return waddstr ();
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 for ac_lib in '' ncursesw ncurses cursesX curses; do
9058   if test -z "$ac_lib"; then
9059     ac_res="none required"
9060   else
9061     ac_res=-l$ac_lib
9062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9063   fi
9064   if ac_fn_c_try_link "$LINENO"; then :
9065   ac_cv_search_waddstr=$ac_res
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext \
9068     conftest$ac_exeext
9069   if ${ac_cv_search_waddstr+:} false; then :
9070   break
9071 fi
9072 done
9073 if ${ac_cv_search_waddstr+:} false; then :
9074
9075 else
9076   ac_cv_search_waddstr=no
9077 fi
9078 rm conftest.$ac_ext
9079 LIBS=$ac_func_search_save_LIBS
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9082 $as_echo "$ac_cv_search_waddstr" >&6; }
9083 ac_res=$ac_cv_search_waddstr
9084 if test "$ac_res" != no; then :
9085   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9086
9087 fi
9088
9089
9090   if test "$ac_cv_search_waddstr" != no; then
9091     curses_found=yes
9092   fi
9093 fi
9094
9095 # Check whether we should enable the TUI, but only do so if we really
9096 # can.
9097 if test x"$enable_tui" != xno; then
9098   if test -d "$srcdir/tui"; then
9099     if test "$curses_found" != no; then
9100       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9101       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9102       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9103       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9104     else
9105       if test x"$enable_tui" = xyes; then
9106         as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
9107       else
9108         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9109 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9110       fi
9111     fi
9112   fi
9113 fi
9114
9115 # Since GDB uses Readline, we need termcap functionality.  In many
9116 # cases this will be provided by the curses library, but some systems
9117 # have a separate termcap library, or no curses library at all.
9118
9119 case $host_os in
9120   cygwin*)
9121     if test -d "$srcdir/libtermcap"; then
9122       LIBS="../libtermcap/libtermcap.a $LIBS"
9123       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9124     fi ;;
9125   go32* | *djgpp*)
9126     ac_cv_search_tgetent="none required"
9127     ;;
9128 esac
9129
9130 # These are the libraries checked by Readline.
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9132 $as_echo_n "checking for library containing tgetent... " >&6; }
9133 if ${ac_cv_search_tgetent+:} false; then :
9134   $as_echo_n "(cached) " >&6
9135 else
9136   ac_func_search_save_LIBS=$LIBS
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h.  */
9139
9140 /* Override any GCC internal prototype to avoid an error.
9141    Use char because int might match the return type of a GCC
9142    builtin and then its argument prototype would still apply.  */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char tgetent ();
9147 int
9148 main ()
9149 {
9150 return tgetent ();
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
9156   if test -z "$ac_lib"; then
9157     ac_res="none required"
9158   else
9159     ac_res=-l$ac_lib
9160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9161   fi
9162   if ac_fn_c_try_link "$LINENO"; then :
9163   ac_cv_search_tgetent=$ac_res
9164 fi
9165 rm -f core conftest.err conftest.$ac_objext \
9166     conftest$ac_exeext
9167   if ${ac_cv_search_tgetent+:} false; then :
9168   break
9169 fi
9170 done
9171 if ${ac_cv_search_tgetent+:} false; then :
9172
9173 else
9174   ac_cv_search_tgetent=no
9175 fi
9176 rm conftest.$ac_ext
9177 LIBS=$ac_func_search_save_LIBS
9178 fi
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9180 $as_echo "$ac_cv_search_tgetent" >&6; }
9181 ac_res=$ac_cv_search_tgetent
9182 if test "$ac_res" != no; then :
9183   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9184
9185 fi
9186
9187
9188 if test "$ac_cv_search_tgetent" = no; then
9189   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
9190 fi
9191
9192
9193 # Check whether --with-system-readline was given.
9194 if test "${with_system_readline+set}" = set; then :
9195   withval=$with_system_readline;
9196 fi
9197
9198
9199 if test "$with_system_readline" = yes; then
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9201 $as_echo_n "checking whether system readline is new enough... " >&6; }
9202 if ${gdb_cv_readline_ok+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h.  */
9207 #include <stdio.h>
9208            #include <readline/readline.h>
9209 int
9210 main ()
9211 {
9212 #if RL_VERSION_MAJOR < 7
9213            # error "readline version 7 required"
9214            #endif
9215
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221   gdb_cv_readline_ok=yes
9222 else
9223   gdb_cv_readline_ok=no
9224
9225 fi
9226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227
9228 fi
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9230 $as_echo "$gdb_cv_readline_ok" >&6; }
9231   if test "$gdb_cv_readline_ok" != yes; then
9232     as_fn_error $? "system readline is not new enough" "$LINENO" 5
9233   fi
9234
9235   READLINE=-lreadline
9236   READLINE_DEPS=
9237   READLINE_CFLAGS=
9238   READLINE_TEXI_INCFLAG=
9239 else
9240   READLINE='$(READLINE_DIR)/libreadline.a'
9241   READLINE_DEPS='$(READLINE)'
9242   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9243   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9244 fi
9245
9246
9247
9248
9249
9250 # Generate jit-reader.h
9251
9252 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9253 TARGET_PTR=
9254
9255 # The cast to long int works around a bug in the HP C Compiler
9256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9258 # This bug is HP SR number 8606223364.
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9260 $as_echo_n "checking size of unsigned long long... " >&6; }
9261 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
9262   $as_echo_n "(cached) " >&6
9263 else
9264   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
9265
9266 else
9267   if test "$ac_cv_type_unsigned_long_long" = yes; then
9268      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9270 as_fn_error 77 "cannot compute sizeof (unsigned long long)
9271 See \`config.log' for more details" "$LINENO" 5; }
9272    else
9273      ac_cv_sizeof_unsigned_long_long=0
9274    fi
9275 fi
9276
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9279 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9280
9281
9282
9283 cat >>confdefs.h <<_ACEOF
9284 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9285 _ACEOF
9286
9287
9288 # The cast to long int works around a bug in the HP C Compiler
9289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9291 # This bug is HP SR number 8606223364.
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9293 $as_echo_n "checking size of unsigned long... " >&6; }
9294 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9295   $as_echo_n "(cached) " >&6
9296 else
9297   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
9298
9299 else
9300   if test "$ac_cv_type_unsigned_long" = yes; then
9301      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9303 as_fn_error 77 "cannot compute sizeof (unsigned long)
9304 See \`config.log' for more details" "$LINENO" 5; }
9305    else
9306      ac_cv_sizeof_unsigned_long=0
9307    fi
9308 fi
9309
9310 fi
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9312 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9313
9314
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9318 _ACEOF
9319
9320
9321 # The cast to long int works around a bug in the HP C Compiler
9322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9324 # This bug is HP SR number 8606223364.
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9326 $as_echo_n "checking size of unsigned __int128... " >&6; }
9327 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9328   $as_echo_n "(cached) " >&6
9329 else
9330   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
9331
9332 else
9333   if test "$ac_cv_type_unsigned___int128" = yes; then
9334      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9336 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9337 See \`config.log' for more details" "$LINENO" 5; }
9338    else
9339      ac_cv_sizeof_unsigned___int128=0
9340    fi
9341 fi
9342
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9345 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9346
9347
9348
9349 cat >>confdefs.h <<_ACEOF
9350 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9351 _ACEOF
9352
9353
9354
9355 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9356   TARGET_PTR="unsigned long"
9357 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9358   TARGET_PTR="unsigned long long"
9359 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9360   TARGET_PTR="unsigned __int128"
9361 else
9362   TARGET_PTR="unsigned long"
9363 fi
9364
9365
9366 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9367
9368
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9370 $as_echo_n "checking for library containing dlopen... " >&6; }
9371 if ${ac_cv_search_dlopen+:} false; then :
9372   $as_echo_n "(cached) " >&6
9373 else
9374   ac_func_search_save_LIBS=$LIBS
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h.  */
9377
9378 /* Override any GCC internal prototype to avoid an error.
9379    Use char because int might match the return type of a GCC
9380    builtin and then its argument prototype would still apply.  */
9381 #ifdef __cplusplus
9382 extern "C"
9383 #endif
9384 char dlopen ();
9385 int
9386 main ()
9387 {
9388 return dlopen ();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 for ac_lib in '' dl; do
9394   if test -z "$ac_lib"; then
9395     ac_res="none required"
9396   else
9397     ac_res=-l$ac_lib
9398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9399   fi
9400   if ac_fn_c_try_link "$LINENO"; then :
9401   ac_cv_search_dlopen=$ac_res
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404     conftest$ac_exeext
9405   if ${ac_cv_search_dlopen+:} false; then :
9406   break
9407 fi
9408 done
9409 if ${ac_cv_search_dlopen+:} false; then :
9410
9411 else
9412   ac_cv_search_dlopen=no
9413 fi
9414 rm conftest.$ac_ext
9415 LIBS=$ac_func_search_save_LIBS
9416 fi
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9418 $as_echo "$ac_cv_search_dlopen" >&6; }
9419 ac_res=$ac_cv_search_dlopen
9420 if test "$ac_res" != no; then :
9421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422
9423 fi
9424
9425
9426
9427
9428 # Check whether --with-jit-reader-dir was given.
9429 if test "${with_jit_reader_dir+set}" = set; then :
9430   withval=$with_jit_reader_dir;
9431     JIT_READER_DIR=$withval
9432 else
9433   JIT_READER_DIR=${libdir}/gdb
9434 fi
9435
9436
9437   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9438   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9439   ac_define_dir=`eval echo $JIT_READER_DIR`
9440   ac_define_dir=`eval echo $ac_define_dir`
9441
9442 cat >>confdefs.h <<_ACEOF
9443 #define JIT_READER_DIR "$ac_define_dir"
9444 _ACEOF
9445
9446
9447
9448
9449   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9450      if test "x$prefix" = xNONE; then
9451         test_prefix=/usr/local
9452      else
9453         test_prefix=$prefix
9454      fi
9455   else
9456      test_prefix=$exec_prefix
9457   fi
9458   value=0
9459   case ${ac_define_dir} in
9460      "${test_prefix}"|"${test_prefix}/"*|\
9461         '${exec_prefix}'|'${exec_prefix}/'*)
9462      value=1
9463      ;;
9464   esac
9465
9466 cat >>confdefs.h <<_ACEOF
9467 #define JIT_READER_DIR_RELOCATABLE $value
9468 _ACEOF
9469
9470
9471
9472
9473
9474 # Check whether --with-expat was given.
9475 if test "${with_expat+set}" = set; then :
9476   withval=$with_expat;
9477 else
9478   with_expat=auto
9479 fi
9480
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9482 $as_echo_n "checking whether to use expat... " >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9484 $as_echo "$with_expat" >&6; }
9485
9486 if test "${with_expat}" = no; then
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9488 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9489   HAVE_LIBEXPAT=no
9490 else
9491
9492
9493
9494
9495
9496
9497
9498
9499     use_additional=yes
9500
9501   acl_save_prefix="$prefix"
9502   prefix="$acl_final_prefix"
9503   acl_save_exec_prefix="$exec_prefix"
9504   exec_prefix="$acl_final_exec_prefix"
9505
9506     eval additional_includedir=\"$includedir\"
9507     eval additional_libdir=\"$libdir\"
9508
9509   exec_prefix="$acl_save_exec_prefix"
9510   prefix="$acl_save_prefix"
9511
9512
9513 # Check whether --with-libexpat-prefix was given.
9514 if test "${with_libexpat_prefix+set}" = set; then :
9515   withval=$with_libexpat_prefix;
9516     if test "X$withval" = "Xno"; then
9517       use_additional=no
9518     else
9519       if test "X$withval" = "X"; then
9520
9521   acl_save_prefix="$prefix"
9522   prefix="$acl_final_prefix"
9523   acl_save_exec_prefix="$exec_prefix"
9524   exec_prefix="$acl_final_exec_prefix"
9525
9526           eval additional_includedir=\"$includedir\"
9527           eval additional_libdir=\"$libdir\"
9528
9529   exec_prefix="$acl_save_exec_prefix"
9530   prefix="$acl_save_prefix"
9531
9532       else
9533         additional_includedir="$withval/include"
9534         additional_libdir="$withval/lib"
9535       fi
9536     fi
9537
9538 fi
9539
9540
9541 # Check whether --with-libexpat-type was given.
9542 if test "${with_libexpat_type+set}" = set; then :
9543   withval=$with_libexpat_type;  with_libexpat_type=$withval
9544 else
9545    with_libexpat_type=auto
9546 fi
9547
9548   lib_type=`eval echo \$with_libexpat_type`
9549
9550       LIBEXPAT=
9551   LTLIBEXPAT=
9552   INCEXPAT=
9553   rpathdirs=
9554   ltrpathdirs=
9555   names_already_handled=
9556   names_next_round='expat '
9557   while test -n "$names_next_round"; do
9558     names_this_round="$names_next_round"
9559     names_next_round=
9560     for name in $names_this_round; do
9561       already_handled=
9562       for n in $names_already_handled; do
9563         if test "$n" = "$name"; then
9564           already_handled=yes
9565           break
9566         fi
9567       done
9568       if test -z "$already_handled"; then
9569         names_already_handled="$names_already_handled $name"
9570                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9571         eval value=\"\$HAVE_LIB$uppername\"
9572         if test -n "$value"; then
9573           if test "$value" = yes; then
9574             eval value=\"\$LIB$uppername\"
9575             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9576             eval value=\"\$LTLIB$uppername\"
9577             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9578           else
9579                                     :
9580           fi
9581         else
9582                               found_dir=
9583           found_la=
9584           found_so=
9585           found_a=
9586           if test $use_additional = yes; then
9587             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9588               found_dir="$additional_libdir"
9589               found_so="$additional_libdir/lib$name.$shlibext"
9590               if test -f "$additional_libdir/lib$name.la"; then
9591                 found_la="$additional_libdir/lib$name.la"
9592               fi
9593             elif test x$lib_type != xshared; then
9594               if test -f "$additional_libdir/lib$name.$libext"; then
9595                 found_dir="$additional_libdir"
9596                 found_a="$additional_libdir/lib$name.$libext"
9597                 if test -f "$additional_libdir/lib$name.la"; then
9598                   found_la="$additional_libdir/lib$name.la"
9599                 fi
9600               fi
9601             fi
9602           fi
9603           if test "X$found_dir" = "X"; then
9604             for x in $LDFLAGS $LTLIBEXPAT; do
9605
9606   acl_save_prefix="$prefix"
9607   prefix="$acl_final_prefix"
9608   acl_save_exec_prefix="$exec_prefix"
9609   exec_prefix="$acl_final_exec_prefix"
9610   eval x=\"$x\"
9611   exec_prefix="$acl_save_exec_prefix"
9612   prefix="$acl_save_prefix"
9613
9614               case "$x" in
9615                 -L*)
9616                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9617                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
9618                     found_dir="$dir"
9619                     found_so="$dir/lib$name.$shlibext"
9620                     if test -f "$dir/lib$name.la"; then
9621                       found_la="$dir/lib$name.la"
9622                     fi
9623                   elif test x$lib_type != xshared; then
9624                     if test -f "$dir/lib$name.$libext"; then
9625                       found_dir="$dir"
9626                       found_a="$dir/lib$name.$libext"
9627                       if test -f "$dir/lib$name.la"; then
9628                         found_la="$dir/lib$name.la"
9629                       fi
9630                     fi
9631                   fi
9632                   ;;
9633               esac
9634               if test "X$found_dir" != "X"; then
9635                 break
9636               fi
9637             done
9638           fi
9639           if test "X$found_dir" != "X"; then
9640                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9641             if test "X$found_so" != "X"; then
9642                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9643                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9644               else
9645                                                                                 haveit=
9646                 for x in $ltrpathdirs; do
9647                   if test "X$x" = "X$found_dir"; then
9648                     haveit=yes
9649                     break
9650                   fi
9651                 done
9652                 if test -z "$haveit"; then
9653                   ltrpathdirs="$ltrpathdirs $found_dir"
9654                 fi
9655                                 if test "$hardcode_direct" = yes; then
9656                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9657                 else
9658                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9659                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9660                                                             haveit=
9661                     for x in $rpathdirs; do
9662                       if test "X$x" = "X$found_dir"; then
9663                         haveit=yes
9664                         break
9665                       fi
9666                     done
9667                     if test -z "$haveit"; then
9668                       rpathdirs="$rpathdirs $found_dir"
9669                     fi
9670                   else
9671                                                                                 haveit=
9672                     for x in $LDFLAGS $LIBEXPAT; do
9673
9674   acl_save_prefix="$prefix"
9675   prefix="$acl_final_prefix"
9676   acl_save_exec_prefix="$exec_prefix"
9677   exec_prefix="$acl_final_exec_prefix"
9678   eval x=\"$x\"
9679   exec_prefix="$acl_save_exec_prefix"
9680   prefix="$acl_save_prefix"
9681
9682                       if test "X$x" = "X-L$found_dir"; then
9683                         haveit=yes
9684                         break
9685                       fi
9686                     done
9687                     if test -z "$haveit"; then
9688                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9689                     fi
9690                     if test "$hardcode_minus_L" != no; then
9691                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9692                     else
9693                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9694                     fi
9695                   fi
9696                 fi
9697               fi
9698             else
9699               if test "X$found_a" != "X"; then
9700                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9701               else
9702                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9703               fi
9704             fi
9705                         additional_includedir=
9706             case "$found_dir" in
9707               */lib | */lib/)
9708                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9709                 additional_includedir="$basedir/include"
9710                 ;;
9711             esac
9712             if test "X$additional_includedir" != "X"; then
9713                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9714                 haveit=
9715                 if test "X$additional_includedir" = "X/usr/local/include"; then
9716                   if test -n "$GCC"; then
9717                     case $host_os in
9718                       linux*) haveit=yes;;
9719                     esac
9720                   fi
9721                 fi
9722                 if test -z "$haveit"; then
9723                   for x in $CPPFLAGS $INCEXPAT; do
9724
9725   acl_save_prefix="$prefix"
9726   prefix="$acl_final_prefix"
9727   acl_save_exec_prefix="$exec_prefix"
9728   exec_prefix="$acl_final_exec_prefix"
9729   eval x=\"$x\"
9730   exec_prefix="$acl_save_exec_prefix"
9731   prefix="$acl_save_prefix"
9732
9733                     if test "X$x" = "X-I$additional_includedir"; then
9734                       haveit=yes
9735                       break
9736                     fi
9737                   done
9738                   if test -z "$haveit"; then
9739                     if test -d "$additional_includedir"; then
9740                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9741                     fi
9742                   fi
9743                 fi
9744               fi
9745             fi
9746                         if test -n "$found_la"; then
9747                                                         save_libdir="$libdir"
9748               case "$found_la" in
9749                 */* | *\\*) . "$found_la" ;;
9750                 *) . "./$found_la" ;;
9751               esac
9752               libdir="$save_libdir"
9753                             for dep in $dependency_libs; do
9754                 case "$dep" in
9755                   -L*)
9756                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9757                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9758                       haveit=
9759                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9760                         if test -n "$GCC"; then
9761                           case $host_os in
9762                             linux*) haveit=yes;;
9763                           esac
9764                         fi
9765                       fi
9766                       if test -z "$haveit"; then
9767                         haveit=
9768                         for x in $LDFLAGS $LIBEXPAT; do
9769
9770   acl_save_prefix="$prefix"
9771   prefix="$acl_final_prefix"
9772   acl_save_exec_prefix="$exec_prefix"
9773   exec_prefix="$acl_final_exec_prefix"
9774   eval x=\"$x\"
9775   exec_prefix="$acl_save_exec_prefix"
9776   prefix="$acl_save_prefix"
9777
9778                           if test "X$x" = "X-L$additional_libdir"; then
9779                             haveit=yes
9780                             break
9781                           fi
9782                         done
9783                         if test -z "$haveit"; then
9784                           if test -d "$additional_libdir"; then
9785                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9786                           fi
9787                         fi
9788                         haveit=
9789                         for x in $LDFLAGS $LTLIBEXPAT; do
9790
9791   acl_save_prefix="$prefix"
9792   prefix="$acl_final_prefix"
9793   acl_save_exec_prefix="$exec_prefix"
9794   exec_prefix="$acl_final_exec_prefix"
9795   eval x=\"$x\"
9796   exec_prefix="$acl_save_exec_prefix"
9797   prefix="$acl_save_prefix"
9798
9799                           if test "X$x" = "X-L$additional_libdir"; then
9800                             haveit=yes
9801                             break
9802                           fi
9803                         done
9804                         if test -z "$haveit"; then
9805                           if test -d "$additional_libdir"; then
9806                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9807                           fi
9808                         fi
9809                       fi
9810                     fi
9811                     ;;
9812                   -R*)
9813                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9814                     if test "$enable_rpath" != no; then
9815                                                                   haveit=
9816                       for x in $rpathdirs; do
9817                         if test "X$x" = "X$dir"; then
9818                           haveit=yes
9819                           break
9820                         fi
9821                       done
9822                       if test -z "$haveit"; then
9823                         rpathdirs="$rpathdirs $dir"
9824                       fi
9825                                                                   haveit=
9826                       for x in $ltrpathdirs; do
9827                         if test "X$x" = "X$dir"; then
9828                           haveit=yes
9829                           break
9830                         fi
9831                       done
9832                       if test -z "$haveit"; then
9833                         ltrpathdirs="$ltrpathdirs $dir"
9834                       fi
9835                     fi
9836                     ;;
9837                   -l*)
9838                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9839                     ;;
9840                   *.la)
9841                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9842                     ;;
9843                   *)
9844                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9845                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9846                     ;;
9847                 esac
9848               done
9849             fi
9850           else
9851                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
9852               LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9853               LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9854             else
9855               LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9856               LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9857             fi
9858           fi
9859         fi
9860       fi
9861     done
9862   done
9863   if test "X$rpathdirs" != "X"; then
9864     if test -n "$hardcode_libdir_separator"; then
9865                         alldirs=
9866       for found_dir in $rpathdirs; do
9867         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9868       done
9869             acl_save_libdir="$libdir"
9870       libdir="$alldirs"
9871       eval flag=\"$hardcode_libdir_flag_spec\"
9872       libdir="$acl_save_libdir"
9873       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9874     else
9875             for found_dir in $rpathdirs; do
9876         acl_save_libdir="$libdir"
9877         libdir="$found_dir"
9878         eval flag=\"$hardcode_libdir_flag_spec\"
9879         libdir="$acl_save_libdir"
9880         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9881       done
9882     fi
9883   fi
9884   if test "X$ltrpathdirs" != "X"; then
9885             for found_dir in $ltrpathdirs; do
9886       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9887     done
9888   fi
9889
9890
9891         ac_save_CPPFLAGS="$CPPFLAGS"
9892
9893   for element in $INCEXPAT; do
9894     haveit=
9895     for x in $CPPFLAGS; do
9896
9897   acl_save_prefix="$prefix"
9898   prefix="$acl_final_prefix"
9899   acl_save_exec_prefix="$exec_prefix"
9900   exec_prefix="$acl_final_exec_prefix"
9901   eval x=\"$x\"
9902   exec_prefix="$acl_save_exec_prefix"
9903   prefix="$acl_save_prefix"
9904
9905       if test "X$x" = "X$element"; then
9906         haveit=yes
9907         break
9908       fi
9909     done
9910     if test -z "$haveit"; then
9911       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9912     fi
9913   done
9914
9915
9916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9917 $as_echo_n "checking for libexpat... " >&6; }
9918 if ${ac_cv_libexpat+:} false; then :
9919   $as_echo_n "(cached) " >&6
9920 else
9921
9922     ac_save_LIBS="$LIBS"
9923     LIBS="$LIBS $LIBEXPAT"
9924     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h.  */
9926 #include "expat.h"
9927 int
9928 main ()
9929 {
9930 XML_Parser p = XML_ParserCreate (0);
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 if ac_fn_c_try_link "$LINENO"; then :
9936   ac_cv_libexpat=yes
9937 else
9938   ac_cv_libexpat=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext \
9941     conftest$ac_exeext conftest.$ac_ext
9942     LIBS="$ac_save_LIBS"
9943
9944 fi
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9946 $as_echo "$ac_cv_libexpat" >&6; }
9947   if test "$ac_cv_libexpat" = yes; then
9948     HAVE_LIBEXPAT=yes
9949
9950 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9951
9952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9953 $as_echo_n "checking how to link with libexpat... " >&6; }
9954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9955 $as_echo "$LIBEXPAT" >&6; }
9956   else
9957     HAVE_LIBEXPAT=no
9958             CPPFLAGS="$ac_save_CPPFLAGS"
9959     LIBEXPAT=
9960     LTLIBEXPAT=
9961   fi
9962
9963
9964
9965
9966
9967
9968   if test "$HAVE_LIBEXPAT" != yes; then
9969     if test "$with_expat" = yes; then
9970       as_fn_error $? "expat is missing or unusable" "$LINENO" 5
9971     else
9972       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9973 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9974     fi
9975   else
9976     save_LIBS=$LIBS
9977     LIBS="$LIBS $LIBEXPAT"
9978     for ac_func in XML_StopParser
9979 do :
9980   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9981 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9982   cat >>confdefs.h <<_ACEOF
9983 #define HAVE_XML_STOPPARSER 1
9984 _ACEOF
9985
9986 fi
9987 done
9988
9989     LIBS=$save_LIBS
9990   fi
9991 fi
9992
9993 # Verify that we have a usable GMP library.
9994
9995
9996
9997
9998
9999
10000
10001
10002     use_additional=yes
10003
10004   acl_save_prefix="$prefix"
10005   prefix="$acl_final_prefix"
10006   acl_save_exec_prefix="$exec_prefix"
10007   exec_prefix="$acl_final_exec_prefix"
10008
10009     eval additional_includedir=\"$includedir\"
10010     eval additional_libdir=\"$libdir\"
10011
10012   exec_prefix="$acl_save_exec_prefix"
10013   prefix="$acl_save_prefix"
10014
10015
10016 # Check whether --with-libgmp-prefix was given.
10017 if test "${with_libgmp_prefix+set}" = set; then :
10018   withval=$with_libgmp_prefix;
10019     if test "X$withval" = "Xno"; then
10020       use_additional=no
10021     else
10022       if test "X$withval" = "X"; then
10023
10024   acl_save_prefix="$prefix"
10025   prefix="$acl_final_prefix"
10026   acl_save_exec_prefix="$exec_prefix"
10027   exec_prefix="$acl_final_exec_prefix"
10028
10029           eval additional_includedir=\"$includedir\"
10030           eval additional_libdir=\"$libdir\"
10031
10032   exec_prefix="$acl_save_exec_prefix"
10033   prefix="$acl_save_prefix"
10034
10035       else
10036         additional_includedir="$withval/include"
10037         additional_libdir="$withval/lib"
10038       fi
10039     fi
10040
10041 fi
10042
10043
10044 # Check whether --with-libgmp-type was given.
10045 if test "${with_libgmp_type+set}" = set; then :
10046   withval=$with_libgmp_type;  with_libgmp_type=$withval
10047 else
10048    with_libgmp_type=auto
10049 fi
10050
10051   lib_type=`eval echo \$with_libgmp_type`
10052
10053       LIBGMP=
10054   LTLIBGMP=
10055   INCGMP=
10056   rpathdirs=
10057   ltrpathdirs=
10058   names_already_handled=
10059   names_next_round='gmp '
10060   while test -n "$names_next_round"; do
10061     names_this_round="$names_next_round"
10062     names_next_round=
10063     for name in $names_this_round; do
10064       already_handled=
10065       for n in $names_already_handled; do
10066         if test "$n" = "$name"; then
10067           already_handled=yes
10068           break
10069         fi
10070       done
10071       if test -z "$already_handled"; then
10072         names_already_handled="$names_already_handled $name"
10073                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10074         eval value=\"\$HAVE_LIB$uppername\"
10075         if test -n "$value"; then
10076           if test "$value" = yes; then
10077             eval value=\"\$LIB$uppername\"
10078             test -z "$value" || LIBGMP="${LIBGMP}${LIBGMP:+ }$value"
10079             eval value=\"\$LTLIB$uppername\"
10080             test -z "$value" || LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$value"
10081           else
10082                                     :
10083           fi
10084         else
10085                               found_dir=
10086           found_la=
10087           found_so=
10088           found_a=
10089           if test $use_additional = yes; then
10090             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10091               found_dir="$additional_libdir"
10092               found_so="$additional_libdir/lib$name.$shlibext"
10093               if test -f "$additional_libdir/lib$name.la"; then
10094                 found_la="$additional_libdir/lib$name.la"
10095               fi
10096             elif test x$lib_type != xshared; then
10097               if test -f "$additional_libdir/lib$name.$libext"; then
10098                 found_dir="$additional_libdir"
10099                 found_a="$additional_libdir/lib$name.$libext"
10100                 if test -f "$additional_libdir/lib$name.la"; then
10101                   found_la="$additional_libdir/lib$name.la"
10102                 fi
10103               fi
10104             fi
10105           fi
10106           if test "X$found_dir" = "X"; then
10107             for x in $LDFLAGS $LTLIBGMP; do
10108
10109   acl_save_prefix="$prefix"
10110   prefix="$acl_final_prefix"
10111   acl_save_exec_prefix="$exec_prefix"
10112   exec_prefix="$acl_final_exec_prefix"
10113   eval x=\"$x\"
10114   exec_prefix="$acl_save_exec_prefix"
10115   prefix="$acl_save_prefix"
10116
10117               case "$x" in
10118                 -L*)
10119                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10120                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10121                     found_dir="$dir"
10122                     found_so="$dir/lib$name.$shlibext"
10123                     if test -f "$dir/lib$name.la"; then
10124                       found_la="$dir/lib$name.la"
10125                     fi
10126                   elif test x$lib_type != xshared; then
10127                     if test -f "$dir/lib$name.$libext"; then
10128                       found_dir="$dir"
10129                       found_a="$dir/lib$name.$libext"
10130                       if test -f "$dir/lib$name.la"; then
10131                         found_la="$dir/lib$name.la"
10132                       fi
10133                     fi
10134                   fi
10135                   ;;
10136               esac
10137               if test "X$found_dir" != "X"; then
10138                 break
10139               fi
10140             done
10141           fi
10142           if test "X$found_dir" != "X"; then
10143                         LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10144             if test "X$found_so" != "X"; then
10145                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10146                                 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10147               else
10148                                                                                 haveit=
10149                 for x in $ltrpathdirs; do
10150                   if test "X$x" = "X$found_dir"; then
10151                     haveit=yes
10152                     break
10153                   fi
10154                 done
10155                 if test -z "$haveit"; then
10156                   ltrpathdirs="$ltrpathdirs $found_dir"
10157                 fi
10158                                 if test "$hardcode_direct" = yes; then
10159                                                       LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10160                 else
10161                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10162                                                             LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10163                                                             haveit=
10164                     for x in $rpathdirs; do
10165                       if test "X$x" = "X$found_dir"; then
10166                         haveit=yes
10167                         break
10168                       fi
10169                     done
10170                     if test -z "$haveit"; then
10171                       rpathdirs="$rpathdirs $found_dir"
10172                     fi
10173                   else
10174                                                                                 haveit=
10175                     for x in $LDFLAGS $LIBGMP; do
10176
10177   acl_save_prefix="$prefix"
10178   prefix="$acl_final_prefix"
10179   acl_save_exec_prefix="$exec_prefix"
10180   exec_prefix="$acl_final_exec_prefix"
10181   eval x=\"$x\"
10182   exec_prefix="$acl_save_exec_prefix"
10183   prefix="$acl_save_prefix"
10184
10185                       if test "X$x" = "X-L$found_dir"; then
10186                         haveit=yes
10187                         break
10188                       fi
10189                     done
10190                     if test -z "$haveit"; then
10191                       LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10192                     fi
10193                     if test "$hardcode_minus_L" != no; then
10194                                                                                         LIBGMP="${LIBGMP}${LIBGMP:+ }$found_so"
10195                     else
10196                                                                                                                                                                                 LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
10197                     fi
10198                   fi
10199                 fi
10200               fi
10201             else
10202               if test "X$found_a" != "X"; then
10203                                 LIBGMP="${LIBGMP}${LIBGMP:+ }$found_a"
10204               else
10205                                                 LIBGMP="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10206               fi
10207             fi
10208                         additional_includedir=
10209             case "$found_dir" in
10210               */lib | */lib/)
10211                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10212                 additional_includedir="$basedir/include"
10213                 ;;
10214             esac
10215             if test "X$additional_includedir" != "X"; then
10216                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10217                 haveit=
10218                 if test "X$additional_includedir" = "X/usr/local/include"; then
10219                   if test -n "$GCC"; then
10220                     case $host_os in
10221                       linux*) haveit=yes;;
10222                     esac
10223                   fi
10224                 fi
10225                 if test -z "$haveit"; then
10226                   for x in $CPPFLAGS $INCGMP; do
10227
10228   acl_save_prefix="$prefix"
10229   prefix="$acl_final_prefix"
10230   acl_save_exec_prefix="$exec_prefix"
10231   exec_prefix="$acl_final_exec_prefix"
10232   eval x=\"$x\"
10233   exec_prefix="$acl_save_exec_prefix"
10234   prefix="$acl_save_prefix"
10235
10236                     if test "X$x" = "X-I$additional_includedir"; then
10237                       haveit=yes
10238                       break
10239                     fi
10240                   done
10241                   if test -z "$haveit"; then
10242                     if test -d "$additional_includedir"; then
10243                                             INCGMP="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10244                     fi
10245                   fi
10246                 fi
10247               fi
10248             fi
10249                         if test -n "$found_la"; then
10250                                                         save_libdir="$libdir"
10251               case "$found_la" in
10252                 */* | *\\*) . "$found_la" ;;
10253                 *) . "./$found_la" ;;
10254               esac
10255               libdir="$save_libdir"
10256                             for dep in $dependency_libs; do
10257                 case "$dep" in
10258                   -L*)
10259                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10260                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10261                       haveit=
10262                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10263                         if test -n "$GCC"; then
10264                           case $host_os in
10265                             linux*) haveit=yes;;
10266                           esac
10267                         fi
10268                       fi
10269                       if test -z "$haveit"; then
10270                         haveit=
10271                         for x in $LDFLAGS $LIBGMP; do
10272
10273   acl_save_prefix="$prefix"
10274   prefix="$acl_final_prefix"
10275   acl_save_exec_prefix="$exec_prefix"
10276   exec_prefix="$acl_final_exec_prefix"
10277   eval x=\"$x\"
10278   exec_prefix="$acl_save_exec_prefix"
10279   prefix="$acl_save_prefix"
10280
10281                           if test "X$x" = "X-L$additional_libdir"; then
10282                             haveit=yes
10283                             break
10284                           fi
10285                         done
10286                         if test -z "$haveit"; then
10287                           if test -d "$additional_libdir"; then
10288                                                         LIBGMP="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10289                           fi
10290                         fi
10291                         haveit=
10292                         for x in $LDFLAGS $LTLIBGMP; do
10293
10294   acl_save_prefix="$prefix"
10295   prefix="$acl_final_prefix"
10296   acl_save_exec_prefix="$exec_prefix"
10297   exec_prefix="$acl_final_exec_prefix"
10298   eval x=\"$x\"
10299   exec_prefix="$acl_save_exec_prefix"
10300   prefix="$acl_save_prefix"
10301
10302                           if test "X$x" = "X-L$additional_libdir"; then
10303                             haveit=yes
10304                             break
10305                           fi
10306                         done
10307                         if test -z "$haveit"; then
10308                           if test -d "$additional_libdir"; then
10309                                                         LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10310                           fi
10311                         fi
10312                       fi
10313                     fi
10314                     ;;
10315                   -R*)
10316                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10317                     if test "$enable_rpath" != no; then
10318                                                                   haveit=
10319                       for x in $rpathdirs; do
10320                         if test "X$x" = "X$dir"; then
10321                           haveit=yes
10322                           break
10323                         fi
10324                       done
10325                       if test -z "$haveit"; then
10326                         rpathdirs="$rpathdirs $dir"
10327                       fi
10328                                                                   haveit=
10329                       for x in $ltrpathdirs; do
10330                         if test "X$x" = "X$dir"; then
10331                           haveit=yes
10332                           break
10333                         fi
10334                       done
10335                       if test -z "$haveit"; then
10336                         ltrpathdirs="$ltrpathdirs $dir"
10337                       fi
10338                     fi
10339                     ;;
10340                   -l*)
10341                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10342                     ;;
10343                   *.la)
10344                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10345                     ;;
10346                   *)
10347                                         LIBGMP="${LIBGMP}${LIBGMP:+ }$dep"
10348                     LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10349                     ;;
10350                 esac
10351               done
10352             fi
10353           else
10354                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10355               LIBGMP="${LIBGMP}${LIBGMP:+ }-l$name"
10356               LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10357             else
10358               LIBGMP="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10359               LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10360             fi
10361           fi
10362         fi
10363       fi
10364     done
10365   done
10366   if test "X$rpathdirs" != "X"; then
10367     if test -n "$hardcode_libdir_separator"; then
10368                         alldirs=
10369       for found_dir in $rpathdirs; do
10370         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10371       done
10372             acl_save_libdir="$libdir"
10373       libdir="$alldirs"
10374       eval flag=\"$hardcode_libdir_flag_spec\"
10375       libdir="$acl_save_libdir"
10376       LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
10377     else
10378             for found_dir in $rpathdirs; do
10379         acl_save_libdir="$libdir"
10380         libdir="$found_dir"
10381         eval flag=\"$hardcode_libdir_flag_spec\"
10382         libdir="$acl_save_libdir"
10383         LIBGMP="${LIBGMP}${LIBGMP:+ }$flag"
10384       done
10385     fi
10386   fi
10387   if test "X$ltrpathdirs" != "X"; then
10388             for found_dir in $ltrpathdirs; do
10389       LTLIBGMP="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10390     done
10391   fi
10392
10393
10394         ac_save_CPPFLAGS="$CPPFLAGS"
10395
10396   for element in $INCGMP; do
10397     haveit=
10398     for x in $CPPFLAGS; do
10399
10400   acl_save_prefix="$prefix"
10401   prefix="$acl_final_prefix"
10402   acl_save_exec_prefix="$exec_prefix"
10403   exec_prefix="$acl_final_exec_prefix"
10404   eval x=\"$x\"
10405   exec_prefix="$acl_save_exec_prefix"
10406   prefix="$acl_save_prefix"
10407
10408       if test "X$x" = "X$element"; then
10409         haveit=yes
10410         break
10411       fi
10412     done
10413     if test -z "$haveit"; then
10414       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10415     fi
10416   done
10417
10418
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10420 $as_echo_n "checking for libgmp... " >&6; }
10421 if ${ac_cv_libgmp+:} false; then :
10422   $as_echo_n "(cached) " >&6
10423 else
10424
10425     ac_save_LIBS="$LIBS"
10426     LIBS="$LIBS $LIBGMP"
10427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h.  */
10429 #include <gmp.h>
10430 int
10431 main ()
10432 {
10433 mpz_t n;
10434                        mpz_init (n);
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440   ac_cv_libgmp=yes
10441 else
10442   ac_cv_libgmp=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext \
10445     conftest$ac_exeext conftest.$ac_ext
10446     LIBS="$ac_save_LIBS"
10447
10448 fi
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10450 $as_echo "$ac_cv_libgmp" >&6; }
10451   if test "$ac_cv_libgmp" = yes; then
10452     HAVE_LIBGMP=yes
10453
10454 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10455
10456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10457 $as_echo_n "checking how to link with libgmp... " >&6; }
10458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10459 $as_echo "$LIBGMP" >&6; }
10460   else
10461     HAVE_LIBGMP=no
10462             CPPFLAGS="$ac_save_CPPFLAGS"
10463     LIBGMP=
10464     LTLIBGMP=
10465   fi
10466
10467
10468
10469
10470
10471
10472 if test "$HAVE_LIBGMP" != yes; then
10473   as_fn_error $? "GMP is missing or unusable" "$LINENO" 5
10474 fi
10475
10476
10477 # Check whether --with-mpfr was given.
10478 if test "${with_mpfr+set}" = set; then :
10479   withval=$with_mpfr;
10480 else
10481   with_mpfr=auto
10482 fi
10483
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10485 $as_echo_n "checking whether to use MPFR... " >&6; }
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10487 $as_echo "$with_mpfr" >&6; }
10488
10489 if test "${with_mpfr}" = no; then
10490   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10491 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10492   HAVE_LIBMPFR=no
10493 else
10494
10495
10496
10497
10498
10499
10500
10501
10502     use_additional=yes
10503
10504   acl_save_prefix="$prefix"
10505   prefix="$acl_final_prefix"
10506   acl_save_exec_prefix="$exec_prefix"
10507   exec_prefix="$acl_final_exec_prefix"
10508
10509     eval additional_includedir=\"$includedir\"
10510     eval additional_libdir=\"$libdir\"
10511
10512   exec_prefix="$acl_save_exec_prefix"
10513   prefix="$acl_save_prefix"
10514
10515
10516 # Check whether --with-libmpfr-prefix was given.
10517 if test "${with_libmpfr_prefix+set}" = set; then :
10518   withval=$with_libmpfr_prefix;
10519     if test "X$withval" = "Xno"; then
10520       use_additional=no
10521     else
10522       if test "X$withval" = "X"; then
10523
10524   acl_save_prefix="$prefix"
10525   prefix="$acl_final_prefix"
10526   acl_save_exec_prefix="$exec_prefix"
10527   exec_prefix="$acl_final_exec_prefix"
10528
10529           eval additional_includedir=\"$includedir\"
10530           eval additional_libdir=\"$libdir\"
10531
10532   exec_prefix="$acl_save_exec_prefix"
10533   prefix="$acl_save_prefix"
10534
10535       else
10536         additional_includedir="$withval/include"
10537         additional_libdir="$withval/lib"
10538       fi
10539     fi
10540
10541 fi
10542
10543
10544 # Check whether --with-libmpfr-type was given.
10545 if test "${with_libmpfr_type+set}" = set; then :
10546   withval=$with_libmpfr_type;  with_libmpfr_type=$withval
10547 else
10548    with_libmpfr_type=auto
10549 fi
10550
10551   lib_type=`eval echo \$with_libmpfr_type`
10552
10553       LIBMPFR=
10554   LTLIBMPFR=
10555   INCMPFR=
10556   rpathdirs=
10557   ltrpathdirs=
10558   names_already_handled=
10559   names_next_round='mpfr gmp'
10560   while test -n "$names_next_round"; do
10561     names_this_round="$names_next_round"
10562     names_next_round=
10563     for name in $names_this_round; do
10564       already_handled=
10565       for n in $names_already_handled; do
10566         if test "$n" = "$name"; then
10567           already_handled=yes
10568           break
10569         fi
10570       done
10571       if test -z "$already_handled"; then
10572         names_already_handled="$names_already_handled $name"
10573                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10574         eval value=\"\$HAVE_LIB$uppername\"
10575         if test -n "$value"; then
10576           if test "$value" = yes; then
10577             eval value=\"\$LIB$uppername\"
10578             test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
10579             eval value=\"\$LTLIB$uppername\"
10580             test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10581           else
10582                                     :
10583           fi
10584         else
10585                               found_dir=
10586           found_la=
10587           found_so=
10588           found_a=
10589           if test $use_additional = yes; then
10590             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10591               found_dir="$additional_libdir"
10592               found_so="$additional_libdir/lib$name.$shlibext"
10593               if test -f "$additional_libdir/lib$name.la"; then
10594                 found_la="$additional_libdir/lib$name.la"
10595               fi
10596             elif test x$lib_type != xshared; then
10597               if test -f "$additional_libdir/lib$name.$libext"; then
10598                 found_dir="$additional_libdir"
10599                 found_a="$additional_libdir/lib$name.$libext"
10600                 if test -f "$additional_libdir/lib$name.la"; then
10601                   found_la="$additional_libdir/lib$name.la"
10602                 fi
10603               fi
10604             fi
10605           fi
10606           if test "X$found_dir" = "X"; then
10607             for x in $LDFLAGS $LTLIBMPFR; do
10608
10609   acl_save_prefix="$prefix"
10610   prefix="$acl_final_prefix"
10611   acl_save_exec_prefix="$exec_prefix"
10612   exec_prefix="$acl_final_exec_prefix"
10613   eval x=\"$x\"
10614   exec_prefix="$acl_save_exec_prefix"
10615   prefix="$acl_save_prefix"
10616
10617               case "$x" in
10618                 -L*)
10619                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10620                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10621                     found_dir="$dir"
10622                     found_so="$dir/lib$name.$shlibext"
10623                     if test -f "$dir/lib$name.la"; then
10624                       found_la="$dir/lib$name.la"
10625                     fi
10626                   elif test x$lib_type != xshared; then
10627                     if test -f "$dir/lib$name.$libext"; then
10628                       found_dir="$dir"
10629                       found_a="$dir/lib$name.$libext"
10630                       if test -f "$dir/lib$name.la"; then
10631                         found_la="$dir/lib$name.la"
10632                       fi
10633                     fi
10634                   fi
10635                   ;;
10636               esac
10637               if test "X$found_dir" != "X"; then
10638                 break
10639               fi
10640             done
10641           fi
10642           if test "X$found_dir" != "X"; then
10643                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10644             if test "X$found_so" != "X"; then
10645                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10646                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10647               else
10648                                                                                 haveit=
10649                 for x in $ltrpathdirs; do
10650                   if test "X$x" = "X$found_dir"; then
10651                     haveit=yes
10652                     break
10653                   fi
10654                 done
10655                 if test -z "$haveit"; then
10656                   ltrpathdirs="$ltrpathdirs $found_dir"
10657                 fi
10658                                 if test "$hardcode_direct" = yes; then
10659                                                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10660                 else
10661                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10662                                                             LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10663                                                             haveit=
10664                     for x in $rpathdirs; do
10665                       if test "X$x" = "X$found_dir"; then
10666                         haveit=yes
10667                         break
10668                       fi
10669                     done
10670                     if test -z "$haveit"; then
10671                       rpathdirs="$rpathdirs $found_dir"
10672                     fi
10673                   else
10674                                                                                 haveit=
10675                     for x in $LDFLAGS $LIBMPFR; do
10676
10677   acl_save_prefix="$prefix"
10678   prefix="$acl_final_prefix"
10679   acl_save_exec_prefix="$exec_prefix"
10680   exec_prefix="$acl_final_exec_prefix"
10681   eval x=\"$x\"
10682   exec_prefix="$acl_save_exec_prefix"
10683   prefix="$acl_save_prefix"
10684
10685                       if test "X$x" = "X-L$found_dir"; then
10686                         haveit=yes
10687                         break
10688                       fi
10689                     done
10690                     if test -z "$haveit"; then
10691                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10692                     fi
10693                     if test "$hardcode_minus_L" != no; then
10694                                                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10695                     else
10696                                                                                                                                                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10697                     fi
10698                   fi
10699                 fi
10700               fi
10701             else
10702               if test "X$found_a" != "X"; then
10703                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
10704               else
10705                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10706               fi
10707             fi
10708                         additional_includedir=
10709             case "$found_dir" in
10710               */lib | */lib/)
10711                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10712                 additional_includedir="$basedir/include"
10713                 ;;
10714             esac
10715             if test "X$additional_includedir" != "X"; then
10716                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10717                 haveit=
10718                 if test "X$additional_includedir" = "X/usr/local/include"; then
10719                   if test -n "$GCC"; then
10720                     case $host_os in
10721                       linux*) haveit=yes;;
10722                     esac
10723                   fi
10724                 fi
10725                 if test -z "$haveit"; then
10726                   for x in $CPPFLAGS $INCMPFR; do
10727
10728   acl_save_prefix="$prefix"
10729   prefix="$acl_final_prefix"
10730   acl_save_exec_prefix="$exec_prefix"
10731   exec_prefix="$acl_final_exec_prefix"
10732   eval x=\"$x\"
10733   exec_prefix="$acl_save_exec_prefix"
10734   prefix="$acl_save_prefix"
10735
10736                     if test "X$x" = "X-I$additional_includedir"; then
10737                       haveit=yes
10738                       break
10739                     fi
10740                   done
10741                   if test -z "$haveit"; then
10742                     if test -d "$additional_includedir"; then
10743                                             INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10744                     fi
10745                   fi
10746                 fi
10747               fi
10748             fi
10749                         if test -n "$found_la"; then
10750                                                         save_libdir="$libdir"
10751               case "$found_la" in
10752                 */* | *\\*) . "$found_la" ;;
10753                 *) . "./$found_la" ;;
10754               esac
10755               libdir="$save_libdir"
10756                             for dep in $dependency_libs; do
10757                 case "$dep" in
10758                   -L*)
10759                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10760                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10761                       haveit=
10762                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10763                         if test -n "$GCC"; then
10764                           case $host_os in
10765                             linux*) haveit=yes;;
10766                           esac
10767                         fi
10768                       fi
10769                       if test -z "$haveit"; then
10770                         haveit=
10771                         for x in $LDFLAGS $LIBMPFR; do
10772
10773   acl_save_prefix="$prefix"
10774   prefix="$acl_final_prefix"
10775   acl_save_exec_prefix="$exec_prefix"
10776   exec_prefix="$acl_final_exec_prefix"
10777   eval x=\"$x\"
10778   exec_prefix="$acl_save_exec_prefix"
10779   prefix="$acl_save_prefix"
10780
10781                           if test "X$x" = "X-L$additional_libdir"; then
10782                             haveit=yes
10783                             break
10784                           fi
10785                         done
10786                         if test -z "$haveit"; then
10787                           if test -d "$additional_libdir"; then
10788                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10789                           fi
10790                         fi
10791                         haveit=
10792                         for x in $LDFLAGS $LTLIBMPFR; do
10793
10794   acl_save_prefix="$prefix"
10795   prefix="$acl_final_prefix"
10796   acl_save_exec_prefix="$exec_prefix"
10797   exec_prefix="$acl_final_exec_prefix"
10798   eval x=\"$x\"
10799   exec_prefix="$acl_save_exec_prefix"
10800   prefix="$acl_save_prefix"
10801
10802                           if test "X$x" = "X-L$additional_libdir"; then
10803                             haveit=yes
10804                             break
10805                           fi
10806                         done
10807                         if test -z "$haveit"; then
10808                           if test -d "$additional_libdir"; then
10809                                                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10810                           fi
10811                         fi
10812                       fi
10813                     fi
10814                     ;;
10815                   -R*)
10816                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10817                     if test "$enable_rpath" != no; then
10818                                                                   haveit=
10819                       for x in $rpathdirs; do
10820                         if test "X$x" = "X$dir"; then
10821                           haveit=yes
10822                           break
10823                         fi
10824                       done
10825                       if test -z "$haveit"; then
10826                         rpathdirs="$rpathdirs $dir"
10827                       fi
10828                                                                   haveit=
10829                       for x in $ltrpathdirs; do
10830                         if test "X$x" = "X$dir"; then
10831                           haveit=yes
10832                           break
10833                         fi
10834                       done
10835                       if test -z "$haveit"; then
10836                         ltrpathdirs="$ltrpathdirs $dir"
10837                       fi
10838                     fi
10839                     ;;
10840                   -l*)
10841                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10842                     ;;
10843                   *.la)
10844                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10845                     ;;
10846                   *)
10847                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10848                     LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10849                     ;;
10850                 esac
10851               done
10852             fi
10853           else
10854                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
10855               LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10856               LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10857             else
10858               LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10859               LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10860             fi
10861           fi
10862         fi
10863       fi
10864     done
10865   done
10866   if test "X$rpathdirs" != "X"; then
10867     if test -n "$hardcode_libdir_separator"; then
10868                         alldirs=
10869       for found_dir in $rpathdirs; do
10870         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10871       done
10872             acl_save_libdir="$libdir"
10873       libdir="$alldirs"
10874       eval flag=\"$hardcode_libdir_flag_spec\"
10875       libdir="$acl_save_libdir"
10876       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10877     else
10878             for found_dir in $rpathdirs; do
10879         acl_save_libdir="$libdir"
10880         libdir="$found_dir"
10881         eval flag=\"$hardcode_libdir_flag_spec\"
10882         libdir="$acl_save_libdir"
10883         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10884       done
10885     fi
10886   fi
10887   if test "X$ltrpathdirs" != "X"; then
10888             for found_dir in $ltrpathdirs; do
10889       LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10890     done
10891   fi
10892
10893
10894         ac_save_CPPFLAGS="$CPPFLAGS"
10895
10896   for element in $INCMPFR; do
10897     haveit=
10898     for x in $CPPFLAGS; do
10899
10900   acl_save_prefix="$prefix"
10901   prefix="$acl_final_prefix"
10902   acl_save_exec_prefix="$exec_prefix"
10903   exec_prefix="$acl_final_exec_prefix"
10904   eval x=\"$x\"
10905   exec_prefix="$acl_save_exec_prefix"
10906   prefix="$acl_save_prefix"
10907
10908       if test "X$x" = "X$element"; then
10909         haveit=yes
10910         break
10911       fi
10912     done
10913     if test -z "$haveit"; then
10914       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10915     fi
10916   done
10917
10918
10919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10920 $as_echo_n "checking for libmpfr... " >&6; }
10921 if ${ac_cv_libmpfr+:} false; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924
10925     ac_save_LIBS="$LIBS"
10926     LIBS="$LIBS $LIBMPFR"
10927     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929 #include <mpfr.h>
10930 int
10931 main ()
10932 {
10933 mpfr_exp_t exp; mpfr_t x;
10934                          mpfr_frexp (&exp, x, x, MPFR_RNDN);
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940   ac_cv_libmpfr=yes
10941 else
10942   ac_cv_libmpfr=no
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext \
10945     conftest$ac_exeext conftest.$ac_ext
10946     LIBS="$ac_save_LIBS"
10947
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10950 $as_echo "$ac_cv_libmpfr" >&6; }
10951   if test "$ac_cv_libmpfr" = yes; then
10952     HAVE_LIBMPFR=yes
10953
10954 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10955
10956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10957 $as_echo_n "checking how to link with libmpfr... " >&6; }
10958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10959 $as_echo "$LIBMPFR" >&6; }
10960   else
10961     HAVE_LIBMPFR=no
10962             CPPFLAGS="$ac_save_CPPFLAGS"
10963     LIBMPFR=
10964     LTLIBMPFR=
10965   fi
10966
10967
10968
10969
10970
10971
10972   if test "$HAVE_LIBMPFR" != yes; then
10973     if test "$with_mpfr" = yes; then
10974       as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
10975     else
10976       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10977 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10978     fi
10979   fi
10980 fi
10981
10982 # --------------------- #
10983 # Check for libpython.  #
10984 # --------------------- #
10985
10986
10987
10988
10989
10990
10991 # Check whether --with-python was given.
10992 if test "${with_python+set}" = set; then :
10993   withval=$with_python;
10994 else
10995   with_python=auto
10996 fi
10997
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10999 $as_echo_n "checking whether to use python... " >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11001 $as_echo "$with_python" >&6; }
11002
11003 if test "${with_python}" = no; then
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11005 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11006   have_libpython=no
11007 else
11008   case "${with_python}" in
11009   [\\/]* | ?:[\\/]*)
11010     if test -d "${with_python}"; then
11011       # Assume the python binary is ${with_python}/bin/python.
11012       python_prog="${with_python}/bin/python"
11013       python_prefix=
11014       # If python does not exit ${with_python}/bin, then try in
11015       # ${with_python}.  On Windows/MinGW, this is where the Python
11016       # executable is.
11017       if test ! -x "${python_prog}"; then
11018         python_prog="${with_python}/python"
11019         python_prefix=
11020       fi
11021       if test ! -x "${python_prog}"; then
11022         # Fall back to gdb 7.0/7.1 behaviour.
11023         python_prog=missing
11024         python_prefix=${with_python}
11025       fi
11026     elif test -x "${with_python}"; then
11027       # While we can't run python compiled for $host (unless host == build),
11028       # the user could write a script that provides the needed information,
11029       # so we support that.
11030       python_prog=${with_python}
11031       python_prefix=
11032     else
11033       as_fn_error $? "invalid value for --with-python" "$LINENO" 5
11034     fi
11035     ;;
11036   */*)
11037     # Disallow --with-python=foo/bar.
11038     as_fn_error $? "invalid value for --with-python" "$LINENO" 5
11039     ;;
11040   *)
11041     # The user has either specified auto, yes, or the name of the python
11042     # program assumed to be in $PATH.
11043     python_prefix=
11044     case "${with_python}" in
11045     yes | auto)
11046       if test "${build}" = "${host}"; then
11047         # Extract the first word of "python", so it can be a program name with args.
11048 set dummy python; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_path_python_prog_path+:} false; then :
11052   $as_echo_n "(cached) " >&6
11053 else
11054   case $python_prog_path in
11055   [\\/]* | ?:[\\/]*)
11056   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
11057   ;;
11058   *)
11059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11061 do
11062   IFS=$as_save_IFS
11063   test -z "$as_dir" && as_dir=.
11064     for ac_exec_ext in '' $ac_executable_extensions; do
11065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
11067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068     break 2
11069   fi
11070 done
11071   done
11072 IFS=$as_save_IFS
11073
11074   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
11075   ;;
11076 esac
11077 fi
11078 python_prog_path=$ac_cv_path_python_prog_path
11079 if test -n "$python_prog_path"; then
11080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11081 $as_echo "$python_prog_path" >&6; }
11082 else
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085 fi
11086
11087
11088         if test "${python_prog_path}" = missing; then
11089           python_prog=missing
11090         else
11091           python_prog=${python_prog_path}
11092         fi
11093       else
11094         # Not much we can do except assume the cross-compiler will find the
11095         # right files.
11096         python_prog=missing
11097       fi
11098       ;;
11099     *)
11100       # While we can't run python compiled for $host (unless host == build),
11101       # the user could write a script that provides the needed information,
11102       # so we support that.
11103       python_prog="${with_python}"
11104       # Extract the first word of "${python_prog}", so it can be a program name with args.
11105 set dummy ${python_prog}; ac_word=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_path_python_prog_path+:} false; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   case $python_prog_path in
11112   [\\/]* | ?:[\\/]*)
11113   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
11114   ;;
11115   *)
11116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121     for ac_exec_ext in '' $ac_executable_extensions; do
11122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
11124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125     break 2
11126   fi
11127 done
11128   done
11129 IFS=$as_save_IFS
11130
11131   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
11132   ;;
11133 esac
11134 fi
11135 python_prog_path=$ac_cv_path_python_prog_path
11136 if test -n "$python_prog_path"; then
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11138 $as_echo "$python_prog_path" >&6; }
11139 else
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142 fi
11143
11144
11145       if test "${python_prog_path}" = missing; then
11146         as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
11147       fi
11148       ;;
11149     esac
11150   esac
11151
11152   if test "${python_prog}" != missing; then
11153     # We have a python program to use, but it may be too old.
11154     # Don't flag an error for --with-python=auto (the default).
11155     have_python_config=yes
11156     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
11157     if test $? != 0; then
11158       have_python_config=failed
11159       if test "${with_python}" != auto; then
11160         as_fn_error $? "failure running python-config --includes" "$LINENO" 5
11161       fi
11162     fi
11163     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11164     if test $? != 0; then
11165       have_python_config=failed
11166       if test "${with_python}" != auto; then
11167         as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
11168       fi
11169     fi
11170     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11171     if test $? != 0; then
11172       have_python_config=failed
11173       if test "${with_python}" != auto; then
11174         as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
11175       fi
11176     fi
11177   else
11178     # We do not have a python executable we can use to determine where
11179     # to find the Python headers and libs.  We cannot guess the include
11180     # path from the python_prefix either, because that include path
11181     # depends on the Python version.  So, there is nothing much we can
11182     # do except assume that the compiler will be able to find those files.
11183     python_includes=
11184     python_libs=
11185     have_python_config=no
11186   fi
11187
11188   # If we have python-config, only try the configuration it provides.
11189   # Otherwise fallback on the old way of trying different versions of
11190   # python in turn.
11191
11192   have_libpython=no
11193   if test "${have_python_config}" = yes; then
11194
11195
11196   new_CPPFLAGS=${python_includes}
11197   new_LIBS=${python_libs}
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11199 $as_echo_n "checking for python... " >&6; }
11200   save_CPPFLAGS=$CPPFLAGS
11201   save_LIBS=$LIBS
11202   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11203   LIBS="$new_LIBS $LIBS"
11204   found_usable_python=no
11205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h.  */
11207 #include "Python.h"
11208 int
11209 main ()
11210 {
11211 Py_Initialize ();
11212   ;
11213   return 0;
11214 }
11215 _ACEOF
11216 if ac_fn_c_try_link "$LINENO"; then :
11217   have_libpython=yes
11218                   found_usable_python=yes
11219                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11220                   PYTHON_LIBS=$new_LIBS
11221 fi
11222 rm -f core conftest.err conftest.$ac_objext \
11223     conftest$ac_exeext conftest.$ac_ext
11224   CPPFLAGS=$save_CPPFLAGS
11225   LIBS=$save_LIBS
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11227 $as_echo "${found_usable_python}" >&6; }
11228
11229   elif test "${have_python_config}" != failed; then
11230     if test "${have_libpython}" = no; then
11231
11232
11233   new_CPPFLAGS=${python_includes}
11234   new_LIBS="-lpython2.7 ${python_libs}"
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11236 $as_echo_n "checking for python... " >&6; }
11237   save_CPPFLAGS=$CPPFLAGS
11238   save_LIBS=$LIBS
11239   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11240   LIBS="$new_LIBS $LIBS"
11241   found_usable_python=no
11242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h.  */
11244 #include "Python.h"
11245 int
11246 main ()
11247 {
11248 Py_Initialize ();
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"; then :
11254   have_libpython=yes
11255                   found_usable_python=yes
11256                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11257                   PYTHON_LIBS=$new_LIBS
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260     conftest$ac_exeext conftest.$ac_ext
11261   CPPFLAGS=$save_CPPFLAGS
11262   LIBS=$save_LIBS
11263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11264 $as_echo "${found_usable_python}" >&6; }
11265
11266     fi
11267     if test "${have_libpython}" = no; then
11268
11269
11270   new_CPPFLAGS=${python_includes}
11271   new_LIBS="-lpython2.6 ${python_libs}"
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11273 $as_echo_n "checking for python... " >&6; }
11274   save_CPPFLAGS=$CPPFLAGS
11275   save_LIBS=$LIBS
11276   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11277   LIBS="$new_LIBS $LIBS"
11278   found_usable_python=no
11279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h.  */
11281 #include "Python.h"
11282 int
11283 main ()
11284 {
11285 Py_Initialize ();
11286   ;
11287   return 0;
11288 }
11289 _ACEOF
11290 if ac_fn_c_try_link "$LINENO"; then :
11291   have_libpython=yes
11292                   found_usable_python=yes
11293                   PYTHON_CPPFLAGS=$new_CPPFLAGS
11294                   PYTHON_LIBS=$new_LIBS
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext \
11297     conftest$ac_exeext conftest.$ac_ext
11298   CPPFLAGS=$save_CPPFLAGS
11299   LIBS=$save_LIBS
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11301 $as_echo "${found_usable_python}" >&6; }
11302
11303     fi
11304   fi
11305
11306   if test "${have_libpython}" = no; then
11307     case "${with_python}" in
11308     yes)
11309       as_fn_error $? "python is missing or unusable" "$LINENO" 5
11310       ;;
11311     auto)
11312       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11313 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11314       ;;
11315     *)
11316       as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
11317       ;;
11318     esac
11319   else
11320     if test -n "${python_prefix}"; then
11321
11322 cat >>confdefs.h <<_ACEOF
11323 #define WITH_PYTHON_PATH "${python_prefix}"
11324 _ACEOF
11325
11326
11327   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11328      if test "x$prefix" = xNONE; then
11329         test_prefix=/usr/local
11330      else
11331         test_prefix=$prefix
11332      fi
11333   else
11334      test_prefix=$exec_prefix
11335   fi
11336   value=0
11337   case ${python_prefix} in
11338      "${test_prefix}"|"${test_prefix}/"*|\
11339         '${exec_prefix}'|'${exec_prefix}/'*)
11340      value=1
11341      ;;
11342   esac
11343
11344 cat >>confdefs.h <<_ACEOF
11345 #define PYTHON_PATH_RELOCATABLE $value
11346 _ACEOF
11347
11348
11349     fi
11350   fi
11351 fi
11352
11353
11354 # Check whether --with-python-libdir was given.
11355 if test "${with_python_libdir+set}" = set; then :
11356   withval=$with_python_libdir;
11357 else
11358
11359     # If no python libdir is specified then select one based on
11360     # python's prefix path.
11361     if test -n "${python_prefix}"; then
11362       with_python_libdir=${python_prefix}/lib
11363     fi
11364
11365 fi
11366
11367
11368 if test "${have_libpython}" != no; then
11369
11370 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11371
11372   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11373   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11374   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11375   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
11376   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11377
11378   if test -n "${with_python_libdir}"; then
11379
11380 cat >>confdefs.h <<_ACEOF
11381 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11382 _ACEOF
11383
11384
11385   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11386      if test "x$prefix" = xNONE; then
11387         test_prefix=/usr/local
11388      else
11389         test_prefix=$prefix
11390      fi
11391   else
11392      test_prefix=$exec_prefix
11393   fi
11394   value=0
11395   case ${with_python_libdir} in
11396      "${test_prefix}"|"${test_prefix}/"*|\
11397         '${exec_prefix}'|'${exec_prefix}/'*)
11398      value=1
11399      ;;
11400   esac
11401
11402 cat >>confdefs.h <<_ACEOF
11403 #define PYTHON_LIBDIR_RELOCATABLE $value
11404 _ACEOF
11405
11406
11407   fi
11408
11409   # Flags needed to compile Python code (taken from python-config --cflags).
11410   # We cannot call python-config directly because it will output whatever was
11411   # used when compiling the Python interpreter itself, including flags which
11412   # would make the python-related objects be compiled differently from the
11413   # rest of GDB (e.g., -O2 and -fPIC).
11414   if test "${GCC}" = yes; then
11415     tentative_python_cflags="-fno-strict-aliasing -fwrapv"
11416     # Python headers recommend -DNDEBUG, but it's unclear if that just
11417     # refers to building Python itself.  In release mode, though, it
11418     # doesn't hurt for the Python code in gdb to follow.
11419     $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
11420   fi
11421
11422   if test "x${tentative_python_cflags}" != x; then
11423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11424 $as_echo_n "checking compiler flags for python code... " >&6; }
11425     for flag in ${tentative_python_cflags}; do
11426       # Check that the compiler accepts it
11427       saved_CFLAGS="$CFLAGS"
11428       CFLAGS="$CFLAGS $flag"
11429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h.  */
11431
11432 int
11433 main ()
11434 {
11435
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 if ac_fn_c_try_compile "$LINENO"; then :
11441   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444       CFLAGS="$saved_CFLAGS"
11445     done
11446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11447 $as_echo "${PYTHON_CFLAGS}" >&6; }
11448   fi
11449
11450   # On x64 Windows, Python's include headers, and pyconfig.h in
11451   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11452   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
11453   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
11454   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11455   # The issue was reported to the Python community, but still isn't
11456   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11457
11458   case "$gdb_host" in
11459     mingw64)
11460            if test "${GCC}" = yes; then
11461              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
11462            fi
11463            ;;
11464   esac
11465 else
11466   # Even if Python support is not compiled in, we need to have this file
11467   # included so that the "python" command, et.al., still exists.
11468   CONFIG_OBS="$CONFIG_OBS python/python.o"
11469   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
11470 fi
11471
11472 # Work around Python http://bugs.python.org/issue10112.  See also
11473 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11474 # no effect.  Note that the only test after this that uses Python is
11475 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11476 # run without -export-dynamic too.
11477 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11478
11479
11480
11481
11482  if test "${have_libpython}" != no; then
11483   HAVE_PYTHON_TRUE=
11484   HAVE_PYTHON_FALSE='#'
11485 else
11486   HAVE_PYTHON_TRUE='#'
11487   HAVE_PYTHON_FALSE=
11488 fi
11489
11490
11491 # -------------------- #
11492 # Check for libguile.  #
11493 # -------------------- #
11494
11495
11496
11497
11498
11499
11500 # Check whether --with-guile was given.
11501 if test "${with_guile+set}" = set; then :
11502   withval=$with_guile;
11503 else
11504   with_guile=auto
11505 fi
11506
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11508 $as_echo_n "checking whether to use guile... " >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11510 $as_echo "$with_guile" >&6; }
11511
11512 # Extract the first word of "pkg-config", so it can be a program name with args.
11513 set dummy pkg-config; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   case $pkg_config_prog_path in
11520   [\\/]* | ?:[\\/]*)
11521   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
11522   ;;
11523   *)
11524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529     for ac_exec_ext in '' $ac_executable_extensions; do
11530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
11532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536   done
11537 IFS=$as_save_IFS
11538
11539   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
11540   ;;
11541 esac
11542 fi
11543 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
11544 if test -n "$pkg_config_prog_path"; then
11545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11546 $as_echo "$pkg_config_prog_path" >&6; }
11547 else
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 fi
11551
11552
11553
11554 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
11555 have_libguile=no
11556 case "${with_guile}" in
11557 no)
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11559 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11560   ;;
11561 auto)
11562   if test "${pkg_config_prog_path}" = "missing"; then
11563     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11564 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11565   else
11566
11567   pkg_config=${pkg_config_prog_path}
11568   guile_version_list=${try_guile_versions}
11569   flag_errors=no
11570
11571   found_usable_guile=checking
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11573 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11574   for guile_version in ${guile_version_list}; do
11575     ${pkg_config} --exists ${guile_version} 2>/dev/null
11576     if test $? != 0; then
11577       continue
11578     fi
11579             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11580     if test $? != 0; then
11581       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11582     fi
11583     new_LIBS=`${pkg_config} --libs ${guile_version}`
11584     if test $? != 0; then
11585       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11586     fi
11587         found_usable_guile=${guile_version}
11588     break
11589   done
11590   if test "${found_usable_guile}" = "checking"; then
11591     if test "${flag_errors}" = "yes"; then
11592       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11593     else
11594       found_usable_guile=no
11595     fi
11596   fi
11597       if test "${found_usable_guile}" != no; then
11598     save_CPPFLAGS=$CPPFLAGS
11599     save_LIBS=$LIBS
11600     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11601     LIBS="$LIBS $new_LIBS"
11602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h.  */
11604 #include "libguile.h"
11605 int
11606 main ()
11607 {
11608 scm_init_guile ();
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614   have_libguile=yes
11615                     GUILE_CPPFLAGS=$new_CPPFLAGS
11616                     GUILE_LIBS=$new_LIBS
11617 else
11618   found_usable_guile=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621     conftest$ac_exeext conftest.$ac_ext
11622         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11623 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11624
11625 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11626
11627
11628 fi
11629
11630     CPPFLAGS=$save_CPPFLAGS
11631     LIBS=$save_LIBS
11632     if test "${found_usable_guile}" = no; then
11633       if test "${flag_errors}" = yes; then
11634         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11636 as_fn_error $? "linking guile version ${guile_version} test program failed
11637 See \`config.log' for more details" "$LINENO" 5; }
11638       fi
11639     fi
11640   fi
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11642 $as_echo "${found_usable_guile}" >&6; }
11643
11644   fi
11645   ;;
11646 yes)
11647   if test "${pkg_config_prog_path}" = "missing"; then
11648     as_fn_error $? "pkg-config not found" "$LINENO" 5
11649   fi
11650
11651   pkg_config=${pkg_config_prog_path}
11652   guile_version_list=${try_guile_versions}
11653   flag_errors=yes
11654
11655   found_usable_guile=checking
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11657 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11658   for guile_version in ${guile_version_list}; do
11659     ${pkg_config} --exists ${guile_version} 2>/dev/null
11660     if test $? != 0; then
11661       continue
11662     fi
11663             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11664     if test $? != 0; then
11665       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11666     fi
11667     new_LIBS=`${pkg_config} --libs ${guile_version}`
11668     if test $? != 0; then
11669       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11670     fi
11671         found_usable_guile=${guile_version}
11672     break
11673   done
11674   if test "${found_usable_guile}" = "checking"; then
11675     if test "${flag_errors}" = "yes"; then
11676       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11677     else
11678       found_usable_guile=no
11679     fi
11680   fi
11681       if test "${found_usable_guile}" != no; then
11682     save_CPPFLAGS=$CPPFLAGS
11683     save_LIBS=$LIBS
11684     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11685     LIBS="$LIBS $new_LIBS"
11686     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h.  */
11688 #include "libguile.h"
11689 int
11690 main ()
11691 {
11692 scm_init_guile ();
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 if ac_fn_c_try_link "$LINENO"; then :
11698   have_libguile=yes
11699                     GUILE_CPPFLAGS=$new_CPPFLAGS
11700                     GUILE_LIBS=$new_LIBS
11701 else
11702   found_usable_guile=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705     conftest$ac_exeext conftest.$ac_ext
11706         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11707 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11708
11709 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11710
11711
11712 fi
11713
11714     CPPFLAGS=$save_CPPFLAGS
11715     LIBS=$save_LIBS
11716     if test "${found_usable_guile}" = no; then
11717       if test "${flag_errors}" = yes; then
11718         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11720 as_fn_error $? "linking guile version ${guile_version} test program failed
11721 See \`config.log' for more details" "$LINENO" 5; }
11722       fi
11723     fi
11724   fi
11725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11726 $as_echo "${found_usable_guile}" >&6; }
11727
11728   ;;
11729 [\\/]* | ?:[\\/]*)
11730   if test -x "${with_guile}"; then
11731
11732   pkg_config=${with_guile}
11733   guile_version_list=${try_guile_versions}
11734   flag_errors=yes
11735
11736   found_usable_guile=checking
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11738 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11739   for guile_version in ${guile_version_list}; do
11740     ${pkg_config} --exists ${guile_version} 2>/dev/null
11741     if test $? != 0; then
11742       continue
11743     fi
11744             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11745     if test $? != 0; then
11746       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11747     fi
11748     new_LIBS=`${pkg_config} --libs ${guile_version}`
11749     if test $? != 0; then
11750       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11751     fi
11752         found_usable_guile=${guile_version}
11753     break
11754   done
11755   if test "${found_usable_guile}" = "checking"; then
11756     if test "${flag_errors}" = "yes"; then
11757       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11758     else
11759       found_usable_guile=no
11760     fi
11761   fi
11762       if test "${found_usable_guile}" != no; then
11763     save_CPPFLAGS=$CPPFLAGS
11764     save_LIBS=$LIBS
11765     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11766     LIBS="$LIBS $new_LIBS"
11767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h.  */
11769 #include "libguile.h"
11770 int
11771 main ()
11772 {
11773 scm_init_guile ();
11774   ;
11775   return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779   have_libguile=yes
11780                     GUILE_CPPFLAGS=$new_CPPFLAGS
11781                     GUILE_LIBS=$new_LIBS
11782 else
11783   found_usable_guile=no
11784 fi
11785 rm -f core conftest.err conftest.$ac_objext \
11786     conftest$ac_exeext conftest.$ac_ext
11787         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11788 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11789
11790 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11791
11792
11793 fi
11794
11795     CPPFLAGS=$save_CPPFLAGS
11796     LIBS=$save_LIBS
11797     if test "${found_usable_guile}" = no; then
11798       if test "${flag_errors}" = yes; then
11799         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11801 as_fn_error $? "linking guile version ${guile_version} test program failed
11802 See \`config.log' for more details" "$LINENO" 5; }
11803       fi
11804     fi
11805   fi
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11807 $as_echo "${found_usable_guile}" >&6; }
11808
11809   else
11810     as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11811   fi
11812   ;;
11813 "" | */*)
11814   # Disallow --with=guile="" and --with-guile=foo/bar.
11815   as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11816   ;;
11817 *)
11818   # A space separate list of guile versions to try, in order.
11819   if test "${pkg_config_prog_path}" = "missing"; then
11820     as_fn_error $? "pkg-config not found" "$LINENO" 5
11821   fi
11822
11823   pkg_config=${pkg_config_prog_path}
11824   guile_version_list=${with_guile}
11825   flag_errors=yes
11826
11827   found_usable_guile=checking
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11829 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11830   for guile_version in ${guile_version_list}; do
11831     ${pkg_config} --exists ${guile_version} 2>/dev/null
11832     if test $? != 0; then
11833       continue
11834     fi
11835             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11836     if test $? != 0; then
11837       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11838     fi
11839     new_LIBS=`${pkg_config} --libs ${guile_version}`
11840     if test $? != 0; then
11841       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11842     fi
11843         found_usable_guile=${guile_version}
11844     break
11845   done
11846   if test "${found_usable_guile}" = "checking"; then
11847     if test "${flag_errors}" = "yes"; then
11848       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11849     else
11850       found_usable_guile=no
11851     fi
11852   fi
11853       if test "${found_usable_guile}" != no; then
11854     save_CPPFLAGS=$CPPFLAGS
11855     save_LIBS=$LIBS
11856     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11857     LIBS="$LIBS $new_LIBS"
11858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h.  */
11860 #include "libguile.h"
11861 int
11862 main ()
11863 {
11864 scm_init_guile ();
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"; then :
11870   have_libguile=yes
11871                     GUILE_CPPFLAGS=$new_CPPFLAGS
11872                     GUILE_LIBS=$new_LIBS
11873 else
11874   found_usable_guile=no
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext \
11877     conftest$ac_exeext conftest.$ac_ext
11878         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11879 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11880
11881 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11882
11883
11884 fi
11885
11886     CPPFLAGS=$save_CPPFLAGS
11887     LIBS=$save_LIBS
11888     if test "${found_usable_guile}" = no; then
11889       if test "${flag_errors}" = yes; then
11890         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11892 as_fn_error $? "linking guile version ${guile_version} test program failed
11893 See \`config.log' for more details" "$LINENO" 5; }
11894       fi
11895     fi
11896   fi
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11898 $as_echo "${found_usable_guile}" >&6; }
11899
11900   ;;
11901 esac
11902
11903 if test "${have_libguile}" != no; then
11904     case "${with_guile}" in
11905   [\\/]* | ?:[\\/]*)
11906
11907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11908 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11909 if ${ac_cv_guild_program_name+:} false; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11913
11914      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11915      # the 'guild' and 'bindir' variables.  In that case, try to guess
11916      # what the program name is, at the risk of getting it wrong if
11917      # Guile was configured with '--program-suffix' or similar.
11918      if test "x$ac_cv_guild_program_name" = "x"; then
11919        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11920        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11921      fi
11922
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11925 $as_echo "$ac_cv_guild_program_name" >&6; }
11926
11927   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11928     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11929   fi
11930
11931   GUILD="$ac_cv_guild_program_name"
11932
11933
11934     ;;
11935   *)
11936
11937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11938 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11939 if ${ac_cv_guild_program_name+:} false; then :
11940   $as_echo_n "(cached) " >&6
11941 else
11942   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11943
11944      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11945      # the 'guild' and 'bindir' variables.  In that case, try to guess
11946      # what the program name is, at the risk of getting it wrong if
11947      # Guile was configured with '--program-suffix' or similar.
11948      if test "x$ac_cv_guild_program_name" = "x"; then
11949        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11950        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11951      fi
11952
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11955 $as_echo "$ac_cv_guild_program_name" >&6; }
11956
11957   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11958     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11959   fi
11960
11961   GUILD="$ac_cv_guild_program_name"
11962
11963
11964     ;;
11965   esac
11966
11967
11968   if test "$cross_compiling" = no; then
11969     GUILD_TARGET_FLAG=
11970   else
11971     GUILD_TARGET_FLAG="--target=$host"
11972   fi
11973
11974
11975
11976
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11978 $as_echo_n "checking whether guild supports this host... " >&6; }
11979 if ${ac_cv_guild_ok+:} false; then :
11980   $as_echo_n "(cached) " >&6
11981 else
11982   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11983      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11984        ac_cv_guild_ok=yes
11985      else
11986        ac_cv_guild_ok=no
11987      fi
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11990 $as_echo "$ac_cv_guild_ok" >&6; }
11991
11992     if test "$ac_cv_guild_ok" = no; then
11993     have_libguile=no
11994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11995 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11996   fi
11997 fi
11998
11999 if test "${have_libguile}" != no; then
12000
12001 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12002
12003   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12004   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12005   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12006   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
12007   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12008
12009     save_LIBS="$LIBS"
12010   save_CPPFLAGS="$CPPFLAGS"
12011   LIBS="$GUILE_LIBS"
12012   CPPFLAGS="$GUILE_CPPFLAGS"
12013   for ac_func in scm_new_smob
12014 do :
12015   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12016 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
12017   cat >>confdefs.h <<_ACEOF
12018 #define HAVE_SCM_NEW_SMOB 1
12019 _ACEOF
12020
12021 fi
12022 done
12023
12024   LIBS="$save_LIBS"
12025   CPPFLAGS="$save_CPPFLAGS"
12026 else
12027   # Even if Guile support is not compiled in, we need to have these files
12028   # included.
12029   CONFIG_OBS="$CONFIG_OBS guile/guile.o"
12030   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
12031 fi
12032
12033
12034  if test "${have_libguile}" != no; then
12035   HAVE_GUILE_TRUE=
12036   HAVE_GUILE_FALSE='#'
12037 else
12038   HAVE_GUILE_TRUE='#'
12039   HAVE_GUILE_FALSE=
12040 fi
12041
12042
12043 # ---------------------------- #
12044 # Check for source highlight.  #
12045 # ---------------------------- #
12046
12047 SRCHIGH_LIBS=
12048 SRCHIGH_CFLAGS=
12049
12050 # Check whether --enable-source-highlight was given.
12051 if test "${enable_source_highlight+set}" = set; then :
12052   enableval=$enable_source_highlight; case "${enableval}" in
12053   yes)  enable_source_highlight=yes ;;
12054   no)   enable_source_highlight=no  ;;
12055   *)    as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12056 esac
12057 else
12058   enable_source_highlight=auto
12059 fi
12060
12061
12062 if test "${enable_source_highlight}" != "no"; then
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12064 $as_echo_n "checking for the source-highlight library... " >&6; }
12065   if test "${pkg_config_prog_path}" = "missing"; then
12066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12067 $as_echo "no - pkg-config not found" >&6; }
12068     if test "${enable_source_highlight}" = "yes"; then
12069       as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
12070     fi
12071   else
12072     if ${pkg_config_prog_path} --exists source-highlight; then
12073       case "$LDFLAGS" in
12074         *static-libstdc*)
12075           as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12076           ;;
12077       esac
12078
12079       SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
12080       SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`
12081
12082 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12083
12084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12085 $as_echo "yes" >&6; }
12086     else
12087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089       if test "${enable_source_highlight}" = "yes"; then
12090         as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
12091       fi
12092     fi
12093   fi
12094 fi
12095
12096
12097
12098 # ------------------------- #
12099 # Checks for header files.  #
12100 # ------------------------- #
12101
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12103 $as_echo_n "checking for ANSI C header files... " >&6; }
12104 if ${ac_cv_header_stdc+:} false; then :
12105   $as_echo_n "(cached) " >&6
12106 else
12107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h.  */
12109 #include <stdlib.h>
12110 #include <stdarg.h>
12111 #include <string.h>
12112 #include <float.h>
12113
12114 int
12115 main ()
12116 {
12117
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_compile "$LINENO"; then :
12123   ac_cv_header_stdc=yes
12124 else
12125   ac_cv_header_stdc=no
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128
12129 if test $ac_cv_header_stdc = yes; then
12130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h.  */
12133 #include <string.h>
12134
12135 _ACEOF
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137   $EGREP "memchr" >/dev/null 2>&1; then :
12138
12139 else
12140   ac_cv_header_stdc=no
12141 fi
12142 rm -f conftest*
12143
12144 fi
12145
12146 if test $ac_cv_header_stdc = yes; then
12147   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h.  */
12150 #include <stdlib.h>
12151
12152 _ACEOF
12153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12154   $EGREP "free" >/dev/null 2>&1; then :
12155
12156 else
12157   ac_cv_header_stdc=no
12158 fi
12159 rm -f conftest*
12160
12161 fi
12162
12163 if test $ac_cv_header_stdc = yes; then
12164   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12165   if test "$cross_compiling" = yes; then :
12166   :
12167 else
12168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h.  */
12170 #include <ctype.h>
12171 #include <stdlib.h>
12172 #if ((' ' & 0x0FF) == 0x020)
12173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12175 #else
12176 # define ISLOWER(c) \
12177                    (('a' <= (c) && (c) <= 'i') \
12178                      || ('j' <= (c) && (c) <= 'r') \
12179                      || ('s' <= (c) && (c) <= 'z'))
12180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12181 #endif
12182
12183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12184 int
12185 main ()
12186 {
12187   int i;
12188   for (i = 0; i < 256; i++)
12189     if (XOR (islower (i), ISLOWER (i))
12190         || toupper (i) != TOUPPER (i))
12191       return 2;
12192   return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_run "$LINENO"; then :
12196
12197 else
12198   ac_cv_header_stdc=no
12199 fi
12200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12201   conftest.$ac_objext conftest.beam conftest.$ac_ext
12202 fi
12203
12204 fi
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12207 $as_echo "$ac_cv_header_stdc" >&6; }
12208 if test $ac_cv_header_stdc = yes; then
12209
12210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12211
12212 fi
12213
12214 # elf_hp.h is for HP/UX 64-bit shared library support.
12215 for ac_header in nlist.h machine/reg.h \
12216                   thread_db.h \
12217                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12218                   sys/resource.h sys/ptrace.h ptrace.h \
12219                   sys/reg.h sys/debugreg.h \
12220                   termios.h elf_hp.h
12221 do :
12222   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12225   cat >>confdefs.h <<_ACEOF
12226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12227 _ACEOF
12228
12229 fi
12230
12231 done
12232
12233 for ac_header in sys/user.h
12234 do :
12235   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12236 # include <sys/param.h>
12237 #endif
12238
12239 "
12240 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12241   cat >>confdefs.h <<_ACEOF
12242 #define HAVE_SYS_USER_H 1
12243 _ACEOF
12244
12245 fi
12246
12247 done
12248
12249
12250 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12251 do :
12252   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12255   cat >>confdefs.h <<_ACEOF
12256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12257 _ACEOF
12258
12259 fi
12260
12261 done
12262
12263 for ac_header in term.h
12264 do :
12265   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12266 # include <curses.h>
12267 #endif
12268
12269 "
12270 if test "x$ac_cv_header_term_h" = xyes; then :
12271   cat >>confdefs.h <<_ACEOF
12272 #define HAVE_TERM_H 1
12273 _ACEOF
12274
12275 fi
12276
12277 done
12278
12279
12280 for ac_header in sys/socket.h
12281 do :
12282   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12283 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12284   cat >>confdefs.h <<_ACEOF
12285 #define HAVE_SYS_SOCKET_H 1
12286 _ACEOF
12287
12288 fi
12289
12290 done
12291
12292 for ac_header in ws2tcpip.h
12293 do :
12294   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12295 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
12296   cat >>confdefs.h <<_ACEOF
12297 #define HAVE_WS2TCPIP_H 1
12298 _ACEOF
12299
12300 fi
12301
12302 done
12303
12304
12305 # ------------------------- #
12306 # Checks for declarations.  #
12307 # ------------------------- #
12308
12309
12310   # Check for presence and size of long long.
12311   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12312 if test "x$ac_cv_type_long_long" = xyes; then :
12313
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_LONG_LONG 1
12316 _ACEOF
12317
12318 # The cast to long int works around a bug in the HP C Compiler
12319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12321 # This bug is HP SR number 8606223364.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12323 $as_echo_n "checking size of long long... " >&6; }
12324 if ${ac_cv_sizeof_long_long+:} false; then :
12325   $as_echo_n "(cached) " >&6
12326 else
12327   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12328
12329 else
12330   if test "$ac_cv_type_long_long" = yes; then
12331      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error 77 "cannot compute sizeof (long long)
12334 See \`config.log' for more details" "$LINENO" 5; }
12335    else
12336      ac_cv_sizeof_long_long=0
12337    fi
12338 fi
12339
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12342 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12343
12344
12345
12346 cat >>confdefs.h <<_ACEOF
12347 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12348 _ACEOF
12349
12350
12351 fi
12352
12353
12354   as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12355 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12356 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12357   ac_have_decl=1
12358 else
12359   ac_have_decl=0
12360 fi
12361
12362 cat >>confdefs.h <<_ACEOF
12363 #define HAVE_DECL_BASENAME $ac_have_decl
12364 _ACEOF
12365 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12366 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12367   ac_have_decl=1
12368 else
12369   ac_have_decl=0
12370 fi
12371
12372 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_DECL_FFS $ac_have_decl
12374 _ACEOF
12375 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12376 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12377   ac_have_decl=1
12378 else
12379   ac_have_decl=0
12380 fi
12381
12382 cat >>confdefs.h <<_ACEOF
12383 #define HAVE_DECL_ASPRINTF $ac_have_decl
12384 _ACEOF
12385 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12386 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12387   ac_have_decl=1
12388 else
12389   ac_have_decl=0
12390 fi
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_DECL_VASPRINTF $ac_have_decl
12394 _ACEOF
12395 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12396 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12397   ac_have_decl=1
12398 else
12399   ac_have_decl=0
12400 fi
12401
12402 cat >>confdefs.h <<_ACEOF
12403 #define HAVE_DECL_SNPRINTF $ac_have_decl
12404 _ACEOF
12405 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12406 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12407   ac_have_decl=1
12408 else
12409   ac_have_decl=0
12410 fi
12411
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12414 _ACEOF
12415
12416   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12417 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12418   ac_have_decl=1
12419 else
12420   ac_have_decl=0
12421 fi
12422
12423 cat >>confdefs.h <<_ACEOF
12424 #define HAVE_DECL_STRTOL $ac_have_decl
12425 _ACEOF
12426 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12427 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12428   ac_have_decl=1
12429 else
12430   ac_have_decl=0
12431 fi
12432
12433 cat >>confdefs.h <<_ACEOF
12434 #define HAVE_DECL_STRTOUL $ac_have_decl
12435 _ACEOF
12436 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12437 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12438   ac_have_decl=1
12439 else
12440   ac_have_decl=0
12441 fi
12442
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_DECL_STRTOLL $ac_have_decl
12445 _ACEOF
12446 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12447 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12448   ac_have_decl=1
12449 else
12450   ac_have_decl=0
12451 fi
12452
12453 cat >>confdefs.h <<_ACEOF
12454 #define HAVE_DECL_STRTOULL $ac_have_decl
12455 _ACEOF
12456
12457   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12458 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12459   ac_have_decl=1
12460 else
12461   ac_have_decl=0
12462 fi
12463
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12466 _ACEOF
12467
12468
12469
12470 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12471 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12472   ac_have_decl=1
12473 else
12474   ac_have_decl=0
12475 fi
12476
12477 cat >>confdefs.h <<_ACEOF
12478 #define HAVE_DECL_SNPRINTF $ac_have_decl
12479 _ACEOF
12480
12481
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12483 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12484 if ${am_cv_val_LC_MESSAGES+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489 #include <locale.h>
12490 int
12491 main ()
12492 {
12493 return LC_MESSAGES
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499   am_cv_val_LC_MESSAGES=yes
12500 else
12501   am_cv_val_LC_MESSAGES=no
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext \
12504     conftest$ac_exeext conftest.$ac_ext
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12507 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12508   if test $am_cv_val_LC_MESSAGES = yes; then
12509
12510 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12511
12512   fi
12513
12514
12515 # ------------------ #
12516 # Checks for types.  #
12517 # ------------------ #
12518
12519 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12520 #if HAVE_SYS_SOCKET_H
12521 # include <sys/socket.h>
12522 #elif HAVE_WS2TCPIP_H
12523 # include <ws2tcpip.h>
12524 #endif
12525
12526 "
12527 if test "x$ac_cv_type_socklen_t" = xyes; then :
12528
12529 cat >>confdefs.h <<_ACEOF
12530 #define HAVE_SOCKLEN_T 1
12531 _ACEOF
12532
12533
12534 fi
12535
12536
12537 # ------------------------------------- #
12538 # Checks for compiler characteristics.  #
12539 # ------------------------------------- #
12540
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12542 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12543 if ${ac_cv_c_const+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h.  */
12548
12549 int
12550 main ()
12551 {
12552
12553 #ifndef __cplusplus
12554   /* Ultrix mips cc rejects this sort of thing.  */
12555   typedef int charset[2];
12556   const charset cs = { 0, 0 };
12557   /* SunOS 4.1.1 cc rejects this.  */
12558   char const *const *pcpcc;
12559   char **ppc;
12560   /* NEC SVR4.0.2 mips cc rejects this.  */
12561   struct point {int x, y;};
12562   static struct point const zero = {0,0};
12563   /* AIX XL C 1.02.0.0 rejects this.
12564      It does not let you subtract one const X* pointer from another in
12565      an arm of an if-expression whose if-part is not a constant
12566      expression */
12567   const char *g = "string";
12568   pcpcc = &g + (g ? g-g : 0);
12569   /* HPUX 7.0 cc rejects these. */
12570   ++pcpcc;
12571   ppc = (char**) pcpcc;
12572   pcpcc = (char const *const *) ppc;
12573   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12574     char tx;
12575     char *t = &tx;
12576     char const *s = 0 ? (char *) 0 : (char const *) 0;
12577
12578     *t++ = 0;
12579     if (s) return 0;
12580   }
12581   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12582     int x[] = {25, 17};
12583     const int *foo = &x[0];
12584     ++foo;
12585   }
12586   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12587     typedef const int *iptr;
12588     iptr p = 0;
12589     ++p;
12590   }
12591   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12592        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12593     struct s { int j; const int *ap[3]; } bx;
12594     struct s *b = &bx; b->j = 5;
12595   }
12596   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12597     const int foo = 10;
12598     if (!foo) return 0;
12599   }
12600   return !cs[0] && !zero.x;
12601 #endif
12602
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 if ac_fn_c_try_compile "$LINENO"; then :
12608   ac_cv_c_const=yes
12609 else
12610   ac_cv_c_const=no
12611 fi
12612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 fi
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12615 $as_echo "$ac_cv_c_const" >&6; }
12616 if test $ac_cv_c_const = no; then
12617
12618 $as_echo "#define const /**/" >>confdefs.h
12619
12620 fi
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12623 $as_echo_n "checking for inline... " >&6; }
12624 if ${ac_cv_c_inline+:} false; then :
12625   $as_echo_n "(cached) " >&6
12626 else
12627   ac_cv_c_inline=no
12628 for ac_kw in inline __inline__ __inline; do
12629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h.  */
12631 #ifndef __cplusplus
12632 typedef int foo_t;
12633 static $ac_kw foo_t static_foo () {return 0; }
12634 $ac_kw foo_t foo () {return 0; }
12635 #endif
12636
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"; then :
12639   ac_cv_c_inline=$ac_kw
12640 fi
12641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12642   test "$ac_cv_c_inline" != no && break
12643 done
12644
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12647 $as_echo "$ac_cv_c_inline" >&6; }
12648
12649 case $ac_cv_c_inline in
12650   inline | yes) ;;
12651   *)
12652     case $ac_cv_c_inline in
12653       no) ac_val=;;
12654       *) ac_val=$ac_cv_c_inline;;
12655     esac
12656     cat >>confdefs.h <<_ACEOF
12657 #ifndef __cplusplus
12658 #define inline $ac_val
12659 #endif
12660 _ACEOF
12661     ;;
12662 esac
12663
12664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12665 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12666 if ${ac_cv_c_bigendian+:} false; then :
12667   $as_echo_n "(cached) " >&6
12668 else
12669   ac_cv_c_bigendian=unknown
12670     # See if we're dealing with a universal compiler.
12671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h.  */
12673 #ifndef __APPLE_CC__
12674                not a universal capable compiler
12675              #endif
12676              typedef int dummy;
12677
12678 _ACEOF
12679 if ac_fn_c_try_compile "$LINENO"; then :
12680
12681         # Check for potential -arch flags.  It is not universal unless
12682         # there are at least two -arch flags with different values.
12683         ac_arch=
12684         ac_prev=
12685         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12686          if test -n "$ac_prev"; then
12687            case $ac_word in
12688              i?86 | x86_64 | ppc | ppc64)
12689                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12690                  ac_arch=$ac_word
12691                else
12692                  ac_cv_c_bigendian=universal
12693                  break
12694                fi
12695                ;;
12696            esac
12697            ac_prev=
12698          elif test "x$ac_word" = "x-arch"; then
12699            ac_prev=arch
12700          fi
12701        done
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704     if test $ac_cv_c_bigendian = unknown; then
12705       # See if sys/param.h defines the BYTE_ORDER macro.
12706       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708 #include <sys/types.h>
12709              #include <sys/param.h>
12710
12711 int
12712 main ()
12713 {
12714 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12715                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12716                      && LITTLE_ENDIAN)
12717               bogus endian macros
12718              #endif
12719
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725   # It does; now see whether it defined to BIG_ENDIAN or not.
12726          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h.  */
12728 #include <sys/types.h>
12729                 #include <sys/param.h>
12730
12731 int
12732 main ()
12733 {
12734 #if BYTE_ORDER != BIG_ENDIAN
12735                  not big endian
12736                 #endif
12737
12738   ;
12739   return 0;
12740 }
12741 _ACEOF
12742 if ac_fn_c_try_compile "$LINENO"; then :
12743   ac_cv_c_bigendian=yes
12744 else
12745   ac_cv_c_bigendian=no
12746 fi
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750     fi
12751     if test $ac_cv_c_bigendian = unknown; then
12752       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12753       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h.  */
12755 #include <limits.h>
12756
12757 int
12758 main ()
12759 {
12760 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12761               bogus endian macros
12762              #endif
12763
12764   ;
12765   return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_compile "$LINENO"; then :
12769   # It does; now see whether it defined to _BIG_ENDIAN or not.
12770          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h.  */
12772 #include <limits.h>
12773
12774 int
12775 main ()
12776 {
12777 #ifndef _BIG_ENDIAN
12778                  not big endian
12779                 #endif
12780
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786   ac_cv_c_bigendian=yes
12787 else
12788   ac_cv_c_bigendian=no
12789 fi
12790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793     fi
12794     if test $ac_cv_c_bigendian = unknown; then
12795       # Compile a test program.
12796       if test "$cross_compiling" = yes; then :
12797   # Try to guess by grepping values from an object file.
12798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800 short int ascii_mm[] =
12801                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12802                 short int ascii_ii[] =
12803                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12804                 int use_ascii (int i) {
12805                   return ascii_mm[i] + ascii_ii[i];
12806                 }
12807                 short int ebcdic_ii[] =
12808                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12809                 short int ebcdic_mm[] =
12810                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12811                 int use_ebcdic (int i) {
12812                   return ebcdic_mm[i] + ebcdic_ii[i];
12813                 }
12814                 extern int foo;
12815
12816 int
12817 main ()
12818 {
12819 return use_ascii (foo) == use_ebcdic (foo);
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_compile "$LINENO"; then :
12825   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12826               ac_cv_c_bigendian=yes
12827             fi
12828             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12829               if test "$ac_cv_c_bigendian" = unknown; then
12830                 ac_cv_c_bigendian=no
12831               else
12832                 # finding both strings is unlikely to happen, but who knows?
12833                 ac_cv_c_bigendian=unknown
12834               fi
12835             fi
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 else
12839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h.  */
12841 $ac_includes_default
12842 int
12843 main ()
12844 {
12845
12846              /* Are we little or big endian?  From Harbison&Steele.  */
12847              union
12848              {
12849                long int l;
12850                char c[sizeof (long int)];
12851              } u;
12852              u.l = 1;
12853              return u.c[sizeof (long int) - 1] == 1;
12854
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_run "$LINENO"; then :
12860   ac_cv_c_bigendian=no
12861 else
12862   ac_cv_c_bigendian=yes
12863 fi
12864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12865   conftest.$ac_objext conftest.beam conftest.$ac_ext
12866 fi
12867
12868     fi
12869 fi
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12871 $as_echo "$ac_cv_c_bigendian" >&6; }
12872  case $ac_cv_c_bigendian in #(
12873    yes)
12874      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12875 ;; #(
12876    no)
12877       ;; #(
12878    universal)
12879
12880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12881
12882      ;; #(
12883    *)
12884      as_fn_error $? "unknown endianness
12885  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12886  esac
12887
12888
12889 # ------------------------------ #
12890 # Checks for library functions.  #
12891 # ------------------------------ #
12892
12893 for ac_func in getuid getgid \
12894                 pipe pread pread64 pwrite resize_term \
12895                 getpgid setsid \
12896                 sigaction sigsetmask socketpair \
12897                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12898                 setrlimit getrlimit posix_madvise waitpid \
12899                 use_default_colors
12900 do :
12901   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12904   cat >>confdefs.h <<_ACEOF
12905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12906 _ACEOF
12907
12908 fi
12909 done
12910
12911
12912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12913 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12914 if ${am_cv_langinfo_codeset+:} false; then :
12915   $as_echo_n "(cached) " >&6
12916 else
12917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h.  */
12919 #include <langinfo.h>
12920 int
12921 main ()
12922 {
12923 char* cs = nl_langinfo(CODESET);
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 if ac_fn_c_try_link "$LINENO"; then :
12929   am_cv_langinfo_codeset=yes
12930 else
12931   am_cv_langinfo_codeset=no
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext \
12934     conftest$ac_exeext conftest.$ac_ext
12935
12936 fi
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12938 $as_echo "$am_cv_langinfo_codeset" >&6; }
12939   if test $am_cv_langinfo_codeset = yes; then
12940
12941 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12942
12943   fi
12944
12945 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12946 if test "x$ac_cv_type_size_t" = xyes; then :
12947
12948 else
12949
12950 cat >>confdefs.h <<_ACEOF
12951 #define size_t unsigned int
12952 _ACEOF
12953
12954 fi
12955
12956
12957
12958
12959   for ac_header in $ac_header_list
12960 do :
12961   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12963 "
12964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12965   cat >>confdefs.h <<_ACEOF
12966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12967 _ACEOF
12968
12969 fi
12970
12971 done
12972
12973
12974
12975
12976
12977
12978
12979 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12980 if test "x$ac_cv_type_pid_t" = xyes; then :
12981
12982 else
12983
12984 cat >>confdefs.h <<_ACEOF
12985 #define pid_t int
12986 _ACEOF
12987
12988 fi
12989
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12991 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12992 if ${ac_cv_path_SED+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12996      for ac_i in 1 2 3 4 5 6 7; do
12997        ac_script="$ac_script$as_nl$ac_script"
12998      done
12999      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13000      { ac_script=; unset ac_script;}
13001      if test -z "$SED"; then
13002   ac_path_SED_found=false
13003   # Loop through the user's path and test for each of PROGNAME-LIST
13004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007   IFS=$as_save_IFS
13008   test -z "$as_dir" && as_dir=.
13009     for ac_prog in sed gsed; do
13010     for ac_exec_ext in '' $ac_executable_extensions; do
13011       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13012       as_fn_executable_p "$ac_path_SED" || continue
13013 # Check for GNU ac_path_SED and select it if it is found.
13014   # Check for GNU $ac_path_SED
13015 case `"$ac_path_SED" --version 2>&1` in
13016 *GNU*)
13017   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13018 *)
13019   ac_count=0
13020   $as_echo_n 0123456789 >"conftest.in"
13021   while :
13022   do
13023     cat "conftest.in" "conftest.in" >"conftest.tmp"
13024     mv "conftest.tmp" "conftest.in"
13025     cp "conftest.in" "conftest.nl"
13026     $as_echo '' >> "conftest.nl"
13027     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13028     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13029     as_fn_arith $ac_count + 1 && ac_count=$as_val
13030     if test $ac_count -gt ${ac_path_SED_max-0}; then
13031       # Best one so far, save it but keep looking for a better one
13032       ac_cv_path_SED="$ac_path_SED"
13033       ac_path_SED_max=$ac_count
13034     fi
13035     # 10*(2^10) chars as input seems more than enough
13036     test $ac_count -gt 10 && break
13037   done
13038   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13039 esac
13040
13041       $ac_path_SED_found && break 3
13042     done
13043   done
13044   done
13045 IFS=$as_save_IFS
13046   if test -z "$ac_cv_path_SED"; then
13047     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13048   fi
13049 else
13050   ac_cv_path_SED=$SED
13051 fi
13052
13053 fi
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13055 $as_echo "$ac_cv_path_SED" >&6; }
13056  SED="$ac_cv_path_SED"
13057   rm -f conftest.sed
13058
13059
13060   # Set the 'development' global.
13061   . $srcdir/../bfd/development.sh
13062
13063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13064 $as_echo_n "checking for ANSI C header files... " >&6; }
13065 if ${ac_cv_header_stdc+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h.  */
13070 #include <stdlib.h>
13071 #include <stdarg.h>
13072 #include <string.h>
13073 #include <float.h>
13074
13075 int
13076 main ()
13077 {
13078
13079   ;
13080   return 0;
13081 }
13082 _ACEOF
13083 if ac_fn_c_try_compile "$LINENO"; then :
13084   ac_cv_header_stdc=yes
13085 else
13086   ac_cv_header_stdc=no
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089
13090 if test $ac_cv_header_stdc = yes; then
13091   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094 #include <string.h>
13095
13096 _ACEOF
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098   $EGREP "memchr" >/dev/null 2>&1; then :
13099
13100 else
13101   ac_cv_header_stdc=no
13102 fi
13103 rm -f conftest*
13104
13105 fi
13106
13107 if test $ac_cv_header_stdc = yes; then
13108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h.  */
13111 #include <stdlib.h>
13112
13113 _ACEOF
13114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13115   $EGREP "free" >/dev/null 2>&1; then :
13116
13117 else
13118   ac_cv_header_stdc=no
13119 fi
13120 rm -f conftest*
13121
13122 fi
13123
13124 if test $ac_cv_header_stdc = yes; then
13125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13126   if test "$cross_compiling" = yes; then :
13127   :
13128 else
13129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h.  */
13131 #include <ctype.h>
13132 #include <stdlib.h>
13133 #if ((' ' & 0x0FF) == 0x020)
13134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13136 #else
13137 # define ISLOWER(c) \
13138                    (('a' <= (c) && (c) <= 'i') \
13139                      || ('j' <= (c) && (c) <= 'r') \
13140                      || ('s' <= (c) && (c) <= 'z'))
13141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13142 #endif
13143
13144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13145 int
13146 main ()
13147 {
13148   int i;
13149   for (i = 0; i < 256; i++)
13150     if (XOR (islower (i), ISLOWER (i))
13151         || toupper (i) != TOUPPER (i))
13152       return 2;
13153   return 0;
13154 }
13155 _ACEOF
13156 if ac_fn_c_try_run "$LINENO"; then :
13157
13158 else
13159   ac_cv_header_stdc=no
13160 fi
13161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13162   conftest.$ac_objext conftest.beam conftest.$ac_ext
13163 fi
13164
13165 fi
13166 fi
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13168 $as_echo "$ac_cv_header_stdc" >&6; }
13169 if test $ac_cv_header_stdc = yes; then
13170
13171 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13172
13173 fi
13174
13175   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13176 # for constant arguments.  Useless!
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13178 $as_echo_n "checking for working alloca.h... " >&6; }
13179 if ${ac_cv_working_alloca_h+:} false; then :
13180   $as_echo_n "(cached) " >&6
13181 else
13182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h.  */
13184 #include <alloca.h>
13185 int
13186 main ()
13187 {
13188 char *p = (char *) alloca (2 * sizeof (int));
13189                           if (p) return 0;
13190   ;
13191   return 0;
13192 }
13193 _ACEOF
13194 if ac_fn_c_try_link "$LINENO"; then :
13195   ac_cv_working_alloca_h=yes
13196 else
13197   ac_cv_working_alloca_h=no
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext \
13200     conftest$ac_exeext conftest.$ac_ext
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13203 $as_echo "$ac_cv_working_alloca_h" >&6; }
13204 if test $ac_cv_working_alloca_h = yes; then
13205
13206 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13207
13208 fi
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13211 $as_echo_n "checking for alloca... " >&6; }
13212 if ${ac_cv_func_alloca_works+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h.  */
13217 #ifdef __GNUC__
13218 # define alloca __builtin_alloca
13219 #else
13220 # ifdef _MSC_VER
13221 #  include <malloc.h>
13222 #  define alloca _alloca
13223 # else
13224 #  ifdef HAVE_ALLOCA_H
13225 #   include <alloca.h>
13226 #  else
13227 #   ifdef _AIX
13228  #pragma alloca
13229 #   else
13230 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13231 void *alloca (size_t);
13232 #    endif
13233 #   endif
13234 #  endif
13235 # endif
13236 #endif
13237
13238 int
13239 main ()
13240 {
13241 char *p = (char *) alloca (1);
13242                                     if (p) return 0;
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_c_try_link "$LINENO"; then :
13248   ac_cv_func_alloca_works=yes
13249 else
13250   ac_cv_func_alloca_works=no
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext \
13253     conftest$ac_exeext conftest.$ac_ext
13254 fi
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13256 $as_echo "$ac_cv_func_alloca_works" >&6; }
13257
13258 if test $ac_cv_func_alloca_works = yes; then
13259
13260 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13261
13262 else
13263   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13264 # that cause trouble.  Some versions do not even contain alloca or
13265 # contain a buggy version.  If you still want to use their alloca,
13266 # use ar to extract alloca.o from them instead of compiling alloca.c.
13267
13268 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13269
13270 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13271
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13274 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13275 if ${ac_cv_os_cray+:} false; then :
13276   $as_echo_n "(cached) " >&6
13277 else
13278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h.  */
13280 #if defined CRAY && ! defined CRAY2
13281 webecray
13282 #else
13283 wenotbecray
13284 #endif
13285
13286 _ACEOF
13287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13288   $EGREP "webecray" >/dev/null 2>&1; then :
13289   ac_cv_os_cray=yes
13290 else
13291   ac_cv_os_cray=no
13292 fi
13293 rm -f conftest*
13294
13295 fi
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13297 $as_echo "$ac_cv_os_cray" >&6; }
13298 if test $ac_cv_os_cray = yes; then
13299   for ac_func in _getb67 GETB67 getb67; do
13300     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13302 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13303
13304 cat >>confdefs.h <<_ACEOF
13305 #define CRAY_STACKSEG_END $ac_func
13306 _ACEOF
13307
13308     break
13309 fi
13310
13311   done
13312 fi
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13315 $as_echo_n "checking stack direction for C alloca... " >&6; }
13316 if ${ac_cv_c_stack_direction+:} false; then :
13317   $as_echo_n "(cached) " >&6
13318 else
13319   if test "$cross_compiling" = yes; then :
13320   ac_cv_c_stack_direction=0
13321 else
13322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h.  */
13324 $ac_includes_default
13325 int
13326 find_stack_direction (int *addr, int depth)
13327 {
13328   int dir, dummy = 0;
13329   if (! addr)
13330     addr = &dummy;
13331   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13332   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13333   return dir + dummy;
13334 }
13335
13336 int
13337 main (int argc, char **argv)
13338 {
13339   return find_stack_direction (0, argc + !argv + 20) < 0;
13340 }
13341 _ACEOF
13342 if ac_fn_c_try_run "$LINENO"; then :
13343   ac_cv_c_stack_direction=1
13344 else
13345   ac_cv_c_stack_direction=-1
13346 fi
13347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13348   conftest.$ac_objext conftest.beam conftest.$ac_ext
13349 fi
13350
13351 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13353 $as_echo "$ac_cv_c_stack_direction" >&6; }
13354 cat >>confdefs.h <<_ACEOF
13355 #define STACK_DIRECTION $ac_cv_c_stack_direction
13356 _ACEOF
13357
13358
13359 fi
13360
13361
13362   WIN32APILIBS=
13363   case ${host} in
13364     *mingw32*)
13365
13366 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13367
13368       WIN32APILIBS="-lws2_32"
13369       ;;
13370   esac
13371
13372
13373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13375 if ${am_cv_langinfo_codeset+:} false; then :
13376   $as_echo_n "(cached) " >&6
13377 else
13378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h.  */
13380 #include <langinfo.h>
13381 int
13382 main ()
13383 {
13384 char* cs = nl_langinfo(CODESET);
13385   ;
13386   return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_link "$LINENO"; then :
13390   am_cv_langinfo_codeset=yes
13391 else
13392   am_cv_langinfo_codeset=no
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext \
13395     conftest$ac_exeext conftest.$ac_ext
13396
13397 fi
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13399 $as_echo "$am_cv_langinfo_codeset" >&6; }
13400   if test $am_cv_langinfo_codeset = yes; then
13401
13402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13403
13404   fi
13405
13406
13407   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
13408 do :
13409   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13412   cat >>confdefs.h <<_ACEOF
13413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13414 _ACEOF
13415
13416 fi
13417
13418 done
13419
13420
13421
13422 for ac_func in getpagesize
13423 do :
13424   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13425 if test "x$ac_cv_func_getpagesize" = xyes; then :
13426   cat >>confdefs.h <<_ACEOF
13427 #define HAVE_GETPAGESIZE 1
13428 _ACEOF
13429
13430 fi
13431 done
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13434 $as_echo_n "checking for working mmap... " >&6; }
13435 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13436   $as_echo_n "(cached) " >&6
13437 else
13438   if test "$cross_compiling" = yes; then :
13439   ac_cv_func_mmap_fixed_mapped=no
13440 else
13441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h.  */
13443 $ac_includes_default
13444 /* malloc might have been renamed as rpl_malloc. */
13445 #undef malloc
13446
13447 /* Thanks to Mike Haertel and Jim Avera for this test.
13448    Here is a matrix of mmap possibilities:
13449         mmap private not fixed
13450         mmap private fixed at somewhere currently unmapped
13451         mmap private fixed at somewhere already mapped
13452         mmap shared not fixed
13453         mmap shared fixed at somewhere currently unmapped
13454         mmap shared fixed at somewhere already mapped
13455    For private mappings, we should verify that changes cannot be read()
13456    back from the file, nor mmap's back from the file at a different
13457    address.  (There have been systems where private was not correctly
13458    implemented like the infamous i386 svr4.0, and systems where the
13459    VM page cache was not coherent with the file system buffer cache
13460    like early versions of FreeBSD and possibly contemporary NetBSD.)
13461    For shared mappings, we should conversely verify that changes get
13462    propagated back to all the places they're supposed to be.
13463
13464    Grep wants private fixed already mapped.
13465    The main things grep needs to know about mmap are:
13466    * does it exist and is it safe to write into the mmap'd area
13467    * how to use it (BSD variants)  */
13468
13469 #include <fcntl.h>
13470 #include <sys/mman.h>
13471
13472 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13473 char *malloc ();
13474 #endif
13475
13476 /* This mess was copied from the GNU getpagesize.h.  */
13477 #ifndef HAVE_GETPAGESIZE
13478 # ifdef _SC_PAGESIZE
13479 #  define getpagesize() sysconf(_SC_PAGESIZE)
13480 # else /* no _SC_PAGESIZE */
13481 #  ifdef HAVE_SYS_PARAM_H
13482 #   include <sys/param.h>
13483 #   ifdef EXEC_PAGESIZE
13484 #    define getpagesize() EXEC_PAGESIZE
13485 #   else /* no EXEC_PAGESIZE */
13486 #    ifdef NBPG
13487 #     define getpagesize() NBPG * CLSIZE
13488 #     ifndef CLSIZE
13489 #      define CLSIZE 1
13490 #     endif /* no CLSIZE */
13491 #    else /* no NBPG */
13492 #     ifdef NBPC
13493 #      define getpagesize() NBPC
13494 #     else /* no NBPC */
13495 #      ifdef PAGESIZE
13496 #       define getpagesize() PAGESIZE
13497 #      endif /* PAGESIZE */
13498 #     endif /* no NBPC */
13499 #    endif /* no NBPG */
13500 #   endif /* no EXEC_PAGESIZE */
13501 #  else /* no HAVE_SYS_PARAM_H */
13502 #   define getpagesize() 8192   /* punt totally */
13503 #  endif /* no HAVE_SYS_PARAM_H */
13504 # endif /* no _SC_PAGESIZE */
13505
13506 #endif /* no HAVE_GETPAGESIZE */
13507
13508 int
13509 main ()
13510 {
13511   char *data, *data2, *data3;
13512   const char *cdata2;
13513   int i, pagesize;
13514   int fd, fd2;
13515
13516   pagesize = getpagesize ();
13517
13518   /* First, make a file with some known garbage in it. */
13519   data = (char *) malloc (pagesize);
13520   if (!data)
13521     return 1;
13522   for (i = 0; i < pagesize; ++i)
13523     *(data + i) = rand ();
13524   umask (0);
13525   fd = creat ("conftest.mmap", 0600);
13526   if (fd < 0)
13527     return 2;
13528   if (write (fd, data, pagesize) != pagesize)
13529     return 3;
13530   close (fd);
13531
13532   /* Next, check that the tail of a page is zero-filled.  File must have
13533      non-zero length, otherwise we risk SIGBUS for entire page.  */
13534   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13535   if (fd2 < 0)
13536     return 4;
13537   cdata2 = "";
13538   if (write (fd2, cdata2, 1) != 1)
13539     return 5;
13540   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13541   if (data2 == MAP_FAILED)
13542     return 6;
13543   for (i = 0; i < pagesize; ++i)
13544     if (*(data2 + i))
13545       return 7;
13546   close (fd2);
13547   if (munmap (data2, pagesize))
13548     return 8;
13549
13550   /* Next, try to mmap the file at a fixed address which already has
13551      something else allocated at it.  If we can, also make sure that
13552      we see the same garbage.  */
13553   fd = open ("conftest.mmap", O_RDWR);
13554   if (fd < 0)
13555     return 9;
13556   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13557                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13558     return 10;
13559   for (i = 0; i < pagesize; ++i)
13560     if (*(data + i) != *(data2 + i))
13561       return 11;
13562
13563   /* Finally, make sure that changes to the mapped area do not
13564      percolate back to the file as seen by read().  (This is a bug on
13565      some variants of i386 svr4.0.)  */
13566   for (i = 0; i < pagesize; ++i)
13567     *(data2 + i) = *(data2 + i) + 1;
13568   data3 = (char *) malloc (pagesize);
13569   if (!data3)
13570     return 12;
13571   if (read (fd, data3, pagesize) != pagesize)
13572     return 13;
13573   for (i = 0; i < pagesize; ++i)
13574     if (*(data + i) != *(data3 + i))
13575       return 14;
13576   close (fd);
13577   return 0;
13578 }
13579 _ACEOF
13580 if ac_fn_c_try_run "$LINENO"; then :
13581   ac_cv_func_mmap_fixed_mapped=yes
13582 else
13583   ac_cv_func_mmap_fixed_mapped=no
13584 fi
13585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13586   conftest.$ac_objext conftest.beam conftest.$ac_ext
13587 fi
13588
13589 fi
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13591 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13593
13594 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13595
13596 fi
13597 rm -f conftest.mmap conftest.txt
13598
13599   for ac_header in vfork.h
13600 do :
13601   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13602 if test "x$ac_cv_header_vfork_h" = xyes; then :
13603   cat >>confdefs.h <<_ACEOF
13604 #define HAVE_VFORK_H 1
13605 _ACEOF
13606
13607 fi
13608
13609 done
13610
13611 for ac_func in fork vfork
13612 do :
13613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13616   cat >>confdefs.h <<_ACEOF
13617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13618 _ACEOF
13619
13620 fi
13621 done
13622
13623 if test "x$ac_cv_func_fork" = xyes; then
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13625 $as_echo_n "checking for working fork... " >&6; }
13626 if ${ac_cv_func_fork_works+:} false; then :
13627   $as_echo_n "(cached) " >&6
13628 else
13629   if test "$cross_compiling" = yes; then :
13630   ac_cv_func_fork_works=cross
13631 else
13632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h.  */
13634 $ac_includes_default
13635 int
13636 main ()
13637 {
13638
13639           /* By Ruediger Kuhlmann. */
13640           return fork () < 0;
13641
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_run "$LINENO"; then :
13647   ac_cv_func_fork_works=yes
13648 else
13649   ac_cv_func_fork_works=no
13650 fi
13651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13652   conftest.$ac_objext conftest.beam conftest.$ac_ext
13653 fi
13654
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13657 $as_echo "$ac_cv_func_fork_works" >&6; }
13658
13659 else
13660   ac_cv_func_fork_works=$ac_cv_func_fork
13661 fi
13662 if test "x$ac_cv_func_fork_works" = xcross; then
13663   case $host in
13664     *-*-amigaos* | *-*-msdosdjgpp*)
13665       # Override, as these systems have only a dummy fork() stub
13666       ac_cv_func_fork_works=no
13667       ;;
13668     *)
13669       ac_cv_func_fork_works=yes
13670       ;;
13671   esac
13672   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13674 fi
13675 ac_cv_func_vfork_works=$ac_cv_func_vfork
13676 if test "x$ac_cv_func_vfork" = xyes; then
13677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13678 $as_echo_n "checking for working vfork... " >&6; }
13679 if ${ac_cv_func_vfork_works+:} false; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   if test "$cross_compiling" = yes; then :
13683   ac_cv_func_vfork_works=cross
13684 else
13685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687 /* Thanks to Paul Eggert for this test.  */
13688 $ac_includes_default
13689 #include <sys/wait.h>
13690 #ifdef HAVE_VFORK_H
13691 # include <vfork.h>
13692 #endif
13693 /* On some sparc systems, changes by the child to local and incoming
13694    argument registers are propagated back to the parent.  The compiler
13695    is told about this with #include <vfork.h>, but some compilers
13696    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13697    static variable whose address is put into a register that is
13698    clobbered by the vfork.  */
13699 static void
13700 #ifdef __cplusplus
13701 sparc_address_test (int arg)
13702 # else
13703 sparc_address_test (arg) int arg;
13704 #endif
13705 {
13706   static pid_t child;
13707   if (!child) {
13708     child = vfork ();
13709     if (child < 0) {
13710       perror ("vfork");
13711       _exit(2);
13712     }
13713     if (!child) {
13714       arg = getpid();
13715       write(-1, "", 0);
13716       _exit (arg);
13717     }
13718   }
13719 }
13720
13721 int
13722 main ()
13723 {
13724   pid_t parent = getpid ();
13725   pid_t child;
13726
13727   sparc_address_test (0);
13728
13729   child = vfork ();
13730
13731   if (child == 0) {
13732     /* Here is another test for sparc vfork register problems.  This
13733        test uses lots of local variables, at least as many local
13734        variables as main has allocated so far including compiler
13735        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13736        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13737        reuse the register of parent for one of the local variables,
13738        since it will think that parent can't possibly be used any more
13739        in this routine.  Assigning to the local variable will thus
13740        munge parent in the parent process.  */
13741     pid_t
13742       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13743       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13744     /* Convince the compiler that p..p7 are live; otherwise, it might
13745        use the same hardware register for all 8 local variables.  */
13746     if (p != p1 || p != p2 || p != p3 || p != p4
13747         || p != p5 || p != p6 || p != p7)
13748       _exit(1);
13749
13750     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13751        from child file descriptors.  If the child closes a descriptor
13752        before it execs or exits, this munges the parent's descriptor
13753        as well.  Test for this by closing stdout in the child.  */
13754     _exit(close(fileno(stdout)) != 0);
13755   } else {
13756     int status;
13757     struct stat st;
13758
13759     while (wait(&status) != child)
13760       ;
13761     return (
13762          /* Was there some problem with vforking?  */
13763          child < 0
13764
13765          /* Did the child fail?  (This shouldn't happen.)  */
13766          || status
13767
13768          /* Did the vfork/compiler bug occur?  */
13769          || parent != getpid()
13770
13771          /* Did the file descriptor bug occur?  */
13772          || fstat(fileno(stdout), &st) != 0
13773          );
13774   }
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_run "$LINENO"; then :
13778   ac_cv_func_vfork_works=yes
13779 else
13780   ac_cv_func_vfork_works=no
13781 fi
13782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13783   conftest.$ac_objext conftest.beam conftest.$ac_ext
13784 fi
13785
13786 fi
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13788 $as_echo "$ac_cv_func_vfork_works" >&6; }
13789
13790 fi;
13791 if test "x$ac_cv_func_fork_works" = xcross; then
13792   ac_cv_func_vfork_works=$ac_cv_func_vfork
13793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13795 fi
13796
13797 if test "x$ac_cv_func_vfork_works" = xyes; then
13798
13799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13800
13801 else
13802
13803 $as_echo "#define vfork fork" >>confdefs.h
13804
13805 fi
13806 if test "x$ac_cv_func_fork_works" = xyes; then
13807
13808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13809
13810 fi
13811
13812   for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13813                   ptrace64 sbrk setns sigaltstack sigprocmask \
13814                   setpgid setpgrp getrusage getauxval
13815 do :
13816   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13819   cat >>confdefs.h <<_ACEOF
13820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13821 _ACEOF
13822
13823 fi
13824 done
13825
13826
13827       ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13828 "
13829 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
13830   ac_have_decl=1
13831 else
13832   ac_have_decl=0
13833 fi
13834
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13837 _ACEOF
13838
13839
13840   if test "$cross_compiling" = yes; then :
13841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h.  */
13843 #include <sys/personality.h>
13844 int
13845 main ()
13846 {
13847
13848   #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13849   #       define ADDR_NO_RANDOMIZE 0x0040000
13850   #      endif
13851          /* Test the flag could be set and stays set.  */
13852          personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13853          if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13854              return 1
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 if ac_fn_c_try_link "$LINENO"; then :
13860   have_personality=true
13861 else
13862   have_personality=false
13863 fi
13864 rm -f core conftest.err conftest.$ac_objext \
13865     conftest$ac_exeext conftest.$ac_ext
13866 else
13867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h.  */
13869 #include <sys/personality.h>
13870 int
13871 main ()
13872 {
13873
13874   #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13875   #       define ADDR_NO_RANDOMIZE 0x0040000
13876   #      endif
13877          /* Test the flag could be set and stays set.  */
13878          personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13879          if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13880              return 1
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 if ac_fn_c_try_run "$LINENO"; then :
13886   have_personality=true
13887 else
13888   have_personality=false
13889 fi
13890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13891   conftest.$ac_objext conftest.beam conftest.$ac_ext
13892 fi
13893
13894   if $have_personality
13895   then
13896
13897 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13898
13899   fi
13900
13901   ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13902 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13903   ac_have_decl=1
13904 else
13905   ac_have_decl=0
13906 fi
13907
13908 cat >>confdefs.h <<_ACEOF
13909 #define HAVE_DECL_STRSTR $ac_have_decl
13910 _ACEOF
13911
13912
13913   # ----------------------- #
13914   # Checks for structures.  #
13915   # ----------------------- #
13916
13917   ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13918 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13919
13920 cat >>confdefs.h <<_ACEOF
13921 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13922 _ACEOF
13923
13924
13925 fi
13926 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13927 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13928
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13931 _ACEOF
13932
13933
13934 fi
13935
13936
13937   # On FreeBSD we need libutil for the kinfo_get* functions.  On
13938   # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13939   # Figure out which one to use.
13940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13941 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13942 if ${ac_cv_search_kinfo_getfile+:} false; then :
13943   $as_echo_n "(cached) " >&6
13944 else
13945   ac_func_search_save_LIBS=$LIBS
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h.  */
13948
13949 /* Override any GCC internal prototype to avoid an error.
13950    Use char because int might match the return type of a GCC
13951    builtin and then its argument prototype would still apply.  */
13952 #ifdef __cplusplus
13953 extern "C"
13954 #endif
13955 char kinfo_getfile ();
13956 int
13957 main ()
13958 {
13959 return kinfo_getfile ();
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 for ac_lib in '' util util-freebsd; do
13965   if test -z "$ac_lib"; then
13966     ac_res="none required"
13967   else
13968     ac_res=-l$ac_lib
13969     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13970   fi
13971   if ac_fn_c_try_link "$LINENO"; then :
13972   ac_cv_search_kinfo_getfile=$ac_res
13973 fi
13974 rm -f core conftest.err conftest.$ac_objext \
13975     conftest$ac_exeext
13976   if ${ac_cv_search_kinfo_getfile+:} false; then :
13977   break
13978 fi
13979 done
13980 if ${ac_cv_search_kinfo_getfile+:} false; then :
13981
13982 else
13983   ac_cv_search_kinfo_getfile=no
13984 fi
13985 rm conftest.$ac_ext
13986 LIBS=$ac_func_search_save_LIBS
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13989 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13990 ac_res=$ac_cv_search_kinfo_getfile
13991 if test "$ac_res" != no; then :
13992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13993
13994 fi
13995
13996
13997   # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13998   for ac_func in kinfo_getfile
13999 do :
14000   ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
14001 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
14002   cat >>confdefs.h <<_ACEOF
14003 #define HAVE_KINFO_GETFILE 1
14004 _ACEOF
14005
14006 fi
14007 done
14008
14009
14010   # Check for std::thread.  This does not work on some platforms, like
14011   # mingw and DJGPP.
14012   ac_ext=cpp
14013 ac_cpp='$CXXCPP $CPPFLAGS'
14014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14017
14018
14019
14020
14021
14022 ac_ext=c
14023 ac_cpp='$CPP $CPPFLAGS'
14024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027
14028 ax_pthread_ok=no
14029
14030 # We used to check for pthread.h first, but this fails if pthread.h
14031 # requires special compiler flags (e.g. on Tru64 or Sequent).
14032 # It gets checked for in the link test anyway.
14033
14034 # First of all, check if the user has set any of the PTHREAD_LIBS,
14035 # etcetera environment variables, and if threads linking works using
14036 # them:
14037 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14038         ax_pthread_save_CC="$CC"
14039         ax_pthread_save_CFLAGS="$CFLAGS"
14040         ax_pthread_save_LIBS="$LIBS"
14041         if test "x$PTHREAD_CC" != "x"; then :
14042   CC="$PTHREAD_CC"
14043 fi
14044         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14045         LIBS="$PTHREAD_LIBS $LIBS"
14046         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14047 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14048         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h.  */
14050
14051 /* Override any GCC internal prototype to avoid an error.
14052    Use char because int might match the return type of a GCC
14053    builtin and then its argument prototype would still apply.  */
14054 #ifdef __cplusplus
14055 extern "C"
14056 #endif
14057 char pthread_join ();
14058 int
14059 main ()
14060 {
14061 return pthread_join ();
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_link "$LINENO"; then :
14067   ax_pthread_ok=yes
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext \
14070     conftest$ac_exeext conftest.$ac_ext
14071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14072 $as_echo "$ax_pthread_ok" >&6; }
14073         if test "x$ax_pthread_ok" = "xno"; then
14074                 PTHREAD_LIBS=""
14075                 PTHREAD_CFLAGS=""
14076         fi
14077         CC="$ax_pthread_save_CC"
14078         CFLAGS="$ax_pthread_save_CFLAGS"
14079         LIBS="$ax_pthread_save_LIBS"
14080 fi
14081
14082 # We must check for the threads library under a number of different
14083 # names; the ordering is very important because some systems
14084 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14085 # libraries is broken (non-POSIX).
14086
14087 # Create a list of thread flags to try.  Items starting with a "-" are
14088 # C compiler flags, and other items are library names, except for "none"
14089 # which indicates that we try without any flags at all, and "pthread-config"
14090 # which is a program returning the flags for the Pth emulation library.
14091
14092 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14093
14094 # The ordering *is* (sometimes) important.  Some notes on the
14095 # individual items follow:
14096
14097 # pthreads: AIX (must check this before -lpthread)
14098 # none: in case threads are in libc; should be tried before -Kthread and
14099 #       other compiler flags to prevent continual compiler warnings
14100 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14101 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14102 #           (Note: HP C rejects this with "bad form for `-t' option")
14103 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14104 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14105 #      doesn't hurt to check since this sometimes defines pthreads and
14106 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
14107 #      is present but should not be used directly; and before -mthreads,
14108 #      because the compiler interprets this as "-mt" + "-hreads")
14109 # -mthreads: Mingw32/gcc, Lynx/gcc
14110 # pthread: Linux, etcetera
14111 # --thread-safe: KAI C++
14112 # pthread-config: use pthread-config program (for GNU Pth library)
14113
14114 case $host_os in
14115
14116         freebsd*)
14117
14118         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14119         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14120
14121         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
14122         ;;
14123
14124         hpux*)
14125
14126         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14127         # multi-threading and also sets -lpthread."
14128
14129         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
14130         ;;
14131
14132         openedition*)
14133
14134         # IBM z/OS requires a feature-test macro to be defined in order to
14135         # enable POSIX threads at all, so give the user a hint if this is
14136         # not set. (We don't define these ourselves, as they can affect
14137         # other portions of the system API in unpredictable ways.)
14138
14139         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h.  */
14141
14142 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14143              AX_PTHREAD_ZOS_MISSING
14144 #            endif
14145
14146 _ACEOF
14147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14148   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
14149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14150 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14151 fi
14152 rm -f conftest*
14153
14154         ;;
14155
14156         solaris*)
14157
14158         # On Solaris (at least, for some versions), libc contains stubbed
14159         # (non-functional) versions of the pthreads routines, so link-based
14160         # tests will erroneously succeed. (N.B.: The stubs are missing
14161         # pthread_cleanup_push, or rather a function called by this macro,
14162         # so we could check for that, but who knows whether they'll stub
14163         # that too in a future libc.)  So we'll check first for the
14164         # standard Solaris way of linking pthreads (-mt -lpthread).
14165
14166         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
14167         ;;
14168 esac
14169
14170 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14171
14172 if test "x$GCC" = "xyes"; then :
14173   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
14174 fi
14175
14176 # The presence of a feature test macro requesting re-entrant function
14177 # definitions is, on some systems, a strong hint that pthreads support is
14178 # correctly enabled
14179
14180 case $host_os in
14181         darwin* | hpux* | linux* | osf* | solaris*)
14182         ax_pthread_check_macro="_REENTRANT"
14183         ;;
14184
14185         aix*)
14186         ax_pthread_check_macro="_THREAD_SAFE"
14187         ;;
14188
14189         *)
14190         ax_pthread_check_macro="--"
14191         ;;
14192 esac
14193 if test "x$ax_pthread_check_macro" = "x--"; then :
14194   ax_pthread_check_cond=0
14195 else
14196   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
14197 fi
14198
14199 # Are we compiling with Clang?
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14202 $as_echo_n "checking whether $CC is Clang... " >&6; }
14203 if ${ax_cv_PTHREAD_CLANG+:} false; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206   ax_cv_PTHREAD_CLANG=no
14207      # Note that Autoconf sets GCC=yes for Clang as well as GCC
14208      if test "x$GCC" = "xyes"; then
14209         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14212 #            if defined(__clang__) && defined(__llvm__)
14213              AX_PTHREAD_CC_IS_CLANG
14214 #            endif
14215
14216 _ACEOF
14217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14218   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
14219   ax_cv_PTHREAD_CLANG=yes
14220 fi
14221 rm -f conftest*
14222
14223      fi
14224
14225 fi
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14227 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14228 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
14229
14230 ax_pthread_clang_warning=no
14231
14232 # Clang needs special handling, because older versions handle the -pthread
14233 # option in a rather... idiosyncratic way
14234
14235 if test "x$ax_pthread_clang" = "xyes"; then
14236
14237         # Clang takes -pthread; it has never supported any other flag
14238
14239         # (Note 1: This will need to be revisited if a system that Clang
14240         # supports has POSIX threads in a separate library.  This tends not
14241         # to be the way of modern systems, but it's conceivable.)
14242
14243         # (Note 2: On some systems, notably Darwin, -pthread is not needed
14244         # to get POSIX threads support; the API is always present and
14245         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
14246         # -pthread does define _REENTRANT, and while the Darwin headers
14247         # ignore this macro, third-party headers might not.)
14248
14249         PTHREAD_CFLAGS="-pthread"
14250         PTHREAD_LIBS=
14251
14252         ax_pthread_ok=yes
14253
14254         # However, older versions of Clang make a point of warning the user
14255         # that, in an invocation where only linking and no compilation is
14256         # taking place, the -pthread option has no effect ("argument unused
14257         # during compilation").  They expect -pthread to be passed in only
14258         # when source code is being compiled.
14259         #
14260         # Problem is, this is at odds with the way Automake and most other
14261         # C build frameworks function, which is that the same flags used in
14262         # compilation (CFLAGS) are also used in linking.  Many systems
14263         # supported by AX_PTHREAD require exactly this for POSIX threads
14264         # support, and in fact it is often not straightforward to specify a
14265         # flag that is used only in the compilation phase and not in
14266         # linking.  Such a scenario is extremely rare in practice.
14267         #
14268         # Even though use of the -pthread flag in linking would only print
14269         # a warning, this can be a nuisance for well-run software projects
14270         # that build with -Werror.  So if the active version of Clang has
14271         # this misfeature, we search for an option to squash it.
14272
14273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14274 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14275 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
14276   $as_echo_n "(cached) " >&6
14277 else
14278   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
14279              # Create an alternate version of $ac_link that compiles and
14280              # links in two steps (.c -> .o, .o -> exe) instead of one
14281              # (.c -> exe), because the warning occurs only in the second
14282              # step
14283              ax_pthread_save_ac_link="$ac_link"
14284              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14285              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14286              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14287              ax_pthread_save_CFLAGS="$CFLAGS"
14288              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14289                 if test "x$ax_pthread_try" = "xunknown"; then :
14290   break
14291 fi
14292                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14293                 ac_link="$ax_pthread_save_ac_link"
14294                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h.  */
14296 int main(void){return 0;}
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299   ac_link="$ax_pthread_2step_ac_link"
14300                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h.  */
14302 int main(void){return 0;}
14303 _ACEOF
14304 if ac_fn_c_try_link "$LINENO"; then :
14305   break
14306 fi
14307 rm -f core conftest.err conftest.$ac_objext \
14308     conftest$ac_exeext conftest.$ac_ext
14309
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312     conftest$ac_exeext conftest.$ac_ext
14313              done
14314              ac_link="$ax_pthread_save_ac_link"
14315              CFLAGS="$ax_pthread_save_CFLAGS"
14316              if test "x$ax_pthread_try" = "x"; then :
14317   ax_pthread_try=no
14318 fi
14319              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
14320
14321 fi
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14323 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14324
14325         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14326                 no | unknown) ;;
14327                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14328         esac
14329
14330 fi # $ax_pthread_clang = yes
14331
14332 if test "x$ax_pthread_ok" = "xno"; then
14333 for ax_pthread_try_flag in $ax_pthread_flags; do
14334
14335         case $ax_pthread_try_flag in
14336                 none)
14337                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14338 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14339                 ;;
14340
14341                 -mt,pthread)
14342                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14343 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14344                 PTHREAD_CFLAGS="-mt"
14345                 PTHREAD_LIBS="-lpthread"
14346                 ;;
14347
14348                 -*)
14349                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14350 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14351                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
14352                 ;;
14353
14354                 pthread-config)
14355                 # Extract the first word of "pthread-config", so it can be a program name with args.
14356 set dummy pthread-config; ac_word=$2
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14358 $as_echo_n "checking for $ac_word... " >&6; }
14359 if ${ac_cv_prog_ax_pthread_config+:} false; then :
14360   $as_echo_n "(cached) " >&6
14361 else
14362   if test -n "$ax_pthread_config"; then
14363   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14364 else
14365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366 for as_dir in $PATH
14367 do
14368   IFS=$as_save_IFS
14369   test -z "$as_dir" && as_dir=.
14370     for ac_exec_ext in '' $ac_executable_extensions; do
14371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14372     ac_cv_prog_ax_pthread_config="yes"
14373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14374     break 2
14375   fi
14376 done
14377   done
14378 IFS=$as_save_IFS
14379
14380   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14381 fi
14382 fi
14383 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14384 if test -n "$ax_pthread_config"; then
14385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14386 $as_echo "$ax_pthread_config" >&6; }
14387 else
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14390 fi
14391
14392
14393                 if test "x$ax_pthread_config" = "xno"; then :
14394   continue
14395 fi
14396                 PTHREAD_CFLAGS="`pthread-config --cflags`"
14397                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14398                 ;;
14399
14400                 *)
14401                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14402 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14403                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
14404                 ;;
14405         esac
14406
14407         ax_pthread_save_CFLAGS="$CFLAGS"
14408         ax_pthread_save_LIBS="$LIBS"
14409         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14410         LIBS="$PTHREAD_LIBS $LIBS"
14411
14412         # Check for various functions.  We must include pthread.h,
14413         # since some functions may be macros.  (On the Sequent, we
14414         # need a special flag -Kthread to make this header compile.)
14415         # We check for pthread_join because it is in -lpthread on IRIX
14416         # while pthread_create is in libc.  We check for pthread_attr_init
14417         # due to DEC craziness with -lpthreads.  We check for
14418         # pthread_cleanup_push because it is one of the few pthread
14419         # functions on Solaris that doesn't have a non-functional libc stub.
14420         # We try pthread_create on general principles.
14421
14422         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h.  */
14424 #include <pthread.h>
14425 #                       if $ax_pthread_check_cond
14426 #                        error "$ax_pthread_check_macro must be defined"
14427 #                       endif
14428                         static void routine(void *a) { a = 0; }
14429                         static void *start_routine(void *a) { return a; }
14430 int
14431 main ()
14432 {
14433 pthread_t th; pthread_attr_t attr;
14434                         pthread_create(&th, 0, start_routine, 0);
14435                         pthread_join(th, 0);
14436                         pthread_attr_init(&attr);
14437                         pthread_cleanup_push(routine, 0);
14438                         pthread_cleanup_pop(0) /* ; */
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"; then :
14444   ax_pthread_ok=yes
14445 fi
14446 rm -f core conftest.err conftest.$ac_objext \
14447     conftest$ac_exeext conftest.$ac_ext
14448
14449         CFLAGS="$ax_pthread_save_CFLAGS"
14450         LIBS="$ax_pthread_save_LIBS"
14451
14452         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14453 $as_echo "$ax_pthread_ok" >&6; }
14454         if test "x$ax_pthread_ok" = "xyes"; then :
14455   break
14456 fi
14457
14458         PTHREAD_LIBS=""
14459         PTHREAD_CFLAGS=""
14460 done
14461 fi
14462
14463 # Various other checks:
14464 if test "x$ax_pthread_ok" = "xyes"; then
14465         ax_pthread_save_CFLAGS="$CFLAGS"
14466         ax_pthread_save_LIBS="$LIBS"
14467         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14468         LIBS="$PTHREAD_LIBS $LIBS"
14469
14470         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14471         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14472 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14473 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
14477              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14478                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h.  */
14480 #include <pthread.h>
14481 int
14482 main ()
14483 {
14484 int attr = $ax_pthread_attr; return attr /* ; */
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 if ac_fn_c_try_link "$LINENO"; then :
14490   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
14491 fi
14492 rm -f core conftest.err conftest.$ac_objext \
14493     conftest$ac_exeext conftest.$ac_ext
14494              done
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14498 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14499         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14500                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14501                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14502
14503 cat >>confdefs.h <<_ACEOF
14504 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14505 _ACEOF
14506
14507                ax_pthread_joinable_attr_defined=yes
14508
14509 fi
14510
14511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14512 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14513 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   ax_cv_PTHREAD_SPECIAL_FLAGS=no
14517              case $host_os in
14518              solaris*)
14519              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
14520              ;;
14521              esac
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14525 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14526         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14527                test "x$ax_pthread_special_flags_added" != "xyes"; then :
14528   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14529                ax_pthread_special_flags_added=yes
14530 fi
14531
14532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14533 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14534 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h.  */
14539 #include <pthread.h>
14540 int
14541 main ()
14542 {
14543 int i = PTHREAD_PRIO_INHERIT;
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_link "$LINENO"; then :
14549   ax_cv_PTHREAD_PRIO_INHERIT=yes
14550 else
14551   ax_cv_PTHREAD_PRIO_INHERIT=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext \
14554     conftest$ac_exeext conftest.$ac_ext
14555
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14558 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14559         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14560                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14561
14562 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14563
14564                ax_pthread_prio_inherit_defined=yes
14565
14566 fi
14567
14568         CFLAGS="$ax_pthread_save_CFLAGS"
14569         LIBS="$ax_pthread_save_LIBS"
14570
14571         # More AIX lossage: compile with *_r variant
14572         if test "x$GCC" != "xyes"; then
14573             case $host_os in
14574                 aix*)
14575                 case "x/$CC" in #(
14576   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14577     #handle absolute path differently from PATH based program lookup
14578                      case "x$CC" in #(
14579   x/*) :
14580     if as_fn_executable_p ${CC}_r; then :
14581   PTHREAD_CC="${CC}_r"
14582 fi ;; #(
14583   *) :
14584     for ac_prog in ${CC}_r
14585 do
14586   # Extract the first word of "$ac_prog", so it can be a program name with args.
14587 set dummy $ac_prog; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14591   $as_echo_n "(cached) " >&6
14592 else
14593   if test -n "$PTHREAD_CC"; then
14594   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14595 else
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14598 do
14599   IFS=$as_save_IFS
14600   test -z "$as_dir" && as_dir=.
14601     for ac_exec_ext in '' $ac_executable_extensions; do
14602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14603     ac_cv_prog_PTHREAD_CC="$ac_prog"
14604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14605     break 2
14606   fi
14607 done
14608   done
14609 IFS=$as_save_IFS
14610
14611 fi
14612 fi
14613 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14614 if test -n "$PTHREAD_CC"; then
14615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14616 $as_echo "$PTHREAD_CC" >&6; }
14617 else
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620 fi
14621
14622
14623   test -n "$PTHREAD_CC" && break
14624 done
14625 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14626  ;;
14627 esac ;; #(
14628   *) :
14629      ;;
14630 esac
14631                 ;;
14632             esac
14633         fi
14634 fi
14635
14636 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14637
14638
14639
14640
14641
14642 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14643 if test "x$ax_pthread_ok" = "xyes"; then
14644         threads=yes
14645         :
14646 else
14647         ax_pthread_ok=no
14648         threads=no
14649 fi
14650 ac_ext=cpp
14651 ac_cpp='$CXXCPP $CPPFLAGS'
14652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14655
14656
14657   if test "$threads" = "yes"; then
14658     save_LIBS="$LIBS"
14659     LIBS="$PTHREAD_LIBS $LIBS"
14660     save_CXXFLAGS="$CXXFLAGS"
14661     CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
14662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14663 $as_echo_n "checking for std::thread... " >&6; }
14664 if ${gdb_cv_cxx_std_thread+:} false; then :
14665   $as_echo_n "(cached) " >&6
14666 else
14667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14669 #include <thread>
14670       void callback() { }
14671 int
14672 main ()
14673 {
14674 std::thread t(callback);
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 if ac_fn_cxx_try_compile "$LINENO"; then :
14680   gdb_cv_cxx_std_thread=yes
14681 else
14682   gdb_cv_cxx_std_thread=no
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 fi
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14687 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14688
14689     # This check must be here, while LIBS includes any necessary
14690     # threading library.
14691     for ac_func in pthread_sigmask pthread_setname_np
14692 do :
14693   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14696   cat >>confdefs.h <<_ACEOF
14697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14698 _ACEOF
14699
14700 fi
14701 done
14702
14703
14704     LIBS="$save_LIBS"
14705     CXXFLAGS="$save_CXXFLAGS"
14706   fi
14707   if test "$gdb_cv_cxx_std_thread" = "yes"; then
14708
14709 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14710
14711   fi
14712   ac_ext=c
14713 ac_cpp='$CPP $CPPFLAGS'
14714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14717
14718
14719       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14720 $as_echo_n "checking for sigsetjmp... " >&6; }
14721 if ${gdb_cv_func_sigsetjmp+:} false; then :
14722   $as_echo_n "(cached) " >&6
14723 else
14724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h.  */
14726 #include <setjmp.h>
14727 int
14728 main ()
14729 {
14730 sigjmp_buf env;
14731            while (! sigsetjmp (env, 1))
14732              siglongjmp (env, 1);
14733
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 if ac_fn_c_try_compile "$LINENO"; then :
14739   gdb_cv_func_sigsetjmp=yes
14740 else
14741   gdb_cv_func_sigsetjmp=no
14742
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745
14746 fi
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14748 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14749   if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14750
14751 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14752
14753   fi
14754
14755
14756 # Check whether --with-intel_pt was given.
14757 if test "${with_intel_pt+set}" = set; then :
14758   withval=$with_intel_pt;
14759 else
14760   with_intel_pt=auto
14761 fi
14762
14763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14764 $as_echo_n "checking whether to use intel pt... " >&6; }
14765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14766 $as_echo "$with_intel_pt" >&6; }
14767
14768   if test "${with_intel_pt}" = no; then
14769     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14770 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14771     HAVE_LIBIPT=no
14772   else
14773     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h.  */
14775
14776   #include <linux/perf_event.h>
14777   #ifndef PERF_ATTR_SIZE_VER5
14778   # error
14779   #endif
14780
14781 _ACEOF
14782 if ac_fn_c_try_cpp "$LINENO"; then :
14783   perf_event=yes
14784 else
14785   perf_event=no
14786 fi
14787 rm -f conftest.err conftest.i conftest.$ac_ext
14788     if test "$perf_event" != yes; then
14789       if test "$with_intel_pt" = yes; then
14790         as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
14791       else
14792         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14793 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14794       fi
14795     fi
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805     use_additional=yes
14806
14807   acl_save_prefix="$prefix"
14808   prefix="$acl_final_prefix"
14809   acl_save_exec_prefix="$exec_prefix"
14810   exec_prefix="$acl_final_exec_prefix"
14811
14812     eval additional_includedir=\"$includedir\"
14813     eval additional_libdir=\"$libdir\"
14814
14815   exec_prefix="$acl_save_exec_prefix"
14816   prefix="$acl_save_prefix"
14817
14818
14819 # Check whether --with-libipt-prefix was given.
14820 if test "${with_libipt_prefix+set}" = set; then :
14821   withval=$with_libipt_prefix;
14822     if test "X$withval" = "Xno"; then
14823       use_additional=no
14824     else
14825       if test "X$withval" = "X"; then
14826
14827   acl_save_prefix="$prefix"
14828   prefix="$acl_final_prefix"
14829   acl_save_exec_prefix="$exec_prefix"
14830   exec_prefix="$acl_final_exec_prefix"
14831
14832           eval additional_includedir=\"$includedir\"
14833           eval additional_libdir=\"$libdir\"
14834
14835   exec_prefix="$acl_save_exec_prefix"
14836   prefix="$acl_save_prefix"
14837
14838       else
14839         additional_includedir="$withval/include"
14840         additional_libdir="$withval/lib"
14841       fi
14842     fi
14843
14844 fi
14845
14846
14847 # Check whether --with-libipt-type was given.
14848 if test "${with_libipt_type+set}" = set; then :
14849   withval=$with_libipt_type;  with_libipt_type=$withval
14850 else
14851    with_libipt_type=auto
14852 fi
14853
14854   lib_type=`eval echo \$with_libipt_type`
14855
14856       LIBIPT=
14857   LTLIBIPT=
14858   INCIPT=
14859   rpathdirs=
14860   ltrpathdirs=
14861   names_already_handled=
14862   names_next_round='ipt '
14863   while test -n "$names_next_round"; do
14864     names_this_round="$names_next_round"
14865     names_next_round=
14866     for name in $names_this_round; do
14867       already_handled=
14868       for n in $names_already_handled; do
14869         if test "$n" = "$name"; then
14870           already_handled=yes
14871           break
14872         fi
14873       done
14874       if test -z "$already_handled"; then
14875         names_already_handled="$names_already_handled $name"
14876                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14877         eval value=\"\$HAVE_LIB$uppername\"
14878         if test -n "$value"; then
14879           if test "$value" = yes; then
14880             eval value=\"\$LIB$uppername\"
14881             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
14882             eval value=\"\$LTLIB$uppername\"
14883             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
14884           else
14885                                     :
14886           fi
14887         else
14888                               found_dir=
14889           found_la=
14890           found_so=
14891           found_a=
14892           if test $use_additional = yes; then
14893             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14894               found_dir="$additional_libdir"
14895               found_so="$additional_libdir/lib$name.$shlibext"
14896               if test -f "$additional_libdir/lib$name.la"; then
14897                 found_la="$additional_libdir/lib$name.la"
14898               fi
14899             elif test x$lib_type != xshared; then
14900               if test -f "$additional_libdir/lib$name.$libext"; then
14901                 found_dir="$additional_libdir"
14902                 found_a="$additional_libdir/lib$name.$libext"
14903                 if test -f "$additional_libdir/lib$name.la"; then
14904                   found_la="$additional_libdir/lib$name.la"
14905                 fi
14906               fi
14907             fi
14908           fi
14909           if test "X$found_dir" = "X"; then
14910             for x in $LDFLAGS $LTLIBIPT; do
14911
14912   acl_save_prefix="$prefix"
14913   prefix="$acl_final_prefix"
14914   acl_save_exec_prefix="$exec_prefix"
14915   exec_prefix="$acl_final_exec_prefix"
14916   eval x=\"$x\"
14917   exec_prefix="$acl_save_exec_prefix"
14918   prefix="$acl_save_prefix"
14919
14920               case "$x" in
14921                 -L*)
14922                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14923                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14924                     found_dir="$dir"
14925                     found_so="$dir/lib$name.$shlibext"
14926                     if test -f "$dir/lib$name.la"; then
14927                       found_la="$dir/lib$name.la"
14928                     fi
14929                   elif test x$lib_type != xshared; then
14930                     if test -f "$dir/lib$name.$libext"; then
14931                       found_dir="$dir"
14932                       found_a="$dir/lib$name.$libext"
14933                       if test -f "$dir/lib$name.la"; then
14934                         found_la="$dir/lib$name.la"
14935                       fi
14936                     fi
14937                   fi
14938                   ;;
14939               esac
14940               if test "X$found_dir" != "X"; then
14941                 break
14942               fi
14943             done
14944           fi
14945           if test "X$found_dir" != "X"; then
14946                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14947             if test "X$found_so" != "X"; then
14948                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14949                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14950               else
14951                                                                                 haveit=
14952                 for x in $ltrpathdirs; do
14953                   if test "X$x" = "X$found_dir"; then
14954                     haveit=yes
14955                     break
14956                   fi
14957                 done
14958                 if test -z "$haveit"; then
14959                   ltrpathdirs="$ltrpathdirs $found_dir"
14960                 fi
14961                                 if test "$hardcode_direct" = yes; then
14962                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14963                 else
14964                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14965                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14966                                                             haveit=
14967                     for x in $rpathdirs; do
14968                       if test "X$x" = "X$found_dir"; then
14969                         haveit=yes
14970                         break
14971                       fi
14972                     done
14973                     if test -z "$haveit"; then
14974                       rpathdirs="$rpathdirs $found_dir"
14975                     fi
14976                   else
14977                                                                                 haveit=
14978                     for x in $LDFLAGS $LIBIPT; do
14979
14980   acl_save_prefix="$prefix"
14981   prefix="$acl_final_prefix"
14982   acl_save_exec_prefix="$exec_prefix"
14983   exec_prefix="$acl_final_exec_prefix"
14984   eval x=\"$x\"
14985   exec_prefix="$acl_save_exec_prefix"
14986   prefix="$acl_save_prefix"
14987
14988                       if test "X$x" = "X-L$found_dir"; then
14989                         haveit=yes
14990                         break
14991                       fi
14992                     done
14993                     if test -z "$haveit"; then
14994                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14995                     fi
14996                     if test "$hardcode_minus_L" != no; then
14997                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
14998                     else
14999                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
15000                     fi
15001                   fi
15002                 fi
15003               fi
15004             else
15005               if test "X$found_a" != "X"; then
15006                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
15007               else
15008                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
15009               fi
15010             fi
15011                         additional_includedir=
15012             case "$found_dir" in
15013               */lib | */lib/)
15014                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15015                 additional_includedir="$basedir/include"
15016                 ;;
15017             esac
15018             if test "X$additional_includedir" != "X"; then
15019                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15020                 haveit=
15021                 if test "X$additional_includedir" = "X/usr/local/include"; then
15022                   if test -n "$GCC"; then
15023                     case $host_os in
15024                       linux*) haveit=yes;;
15025                     esac
15026                   fi
15027                 fi
15028                 if test -z "$haveit"; then
15029                   for x in $CPPFLAGS $INCIPT; do
15030
15031   acl_save_prefix="$prefix"
15032   prefix="$acl_final_prefix"
15033   acl_save_exec_prefix="$exec_prefix"
15034   exec_prefix="$acl_final_exec_prefix"
15035   eval x=\"$x\"
15036   exec_prefix="$acl_save_exec_prefix"
15037   prefix="$acl_save_prefix"
15038
15039                     if test "X$x" = "X-I$additional_includedir"; then
15040                       haveit=yes
15041                       break
15042                     fi
15043                   done
15044                   if test -z "$haveit"; then
15045                     if test -d "$additional_includedir"; then
15046                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15047                     fi
15048                   fi
15049                 fi
15050               fi
15051             fi
15052                         if test -n "$found_la"; then
15053                                                         save_libdir="$libdir"
15054               case "$found_la" in
15055                 */* | *\\*) . "$found_la" ;;
15056                 *) . "./$found_la" ;;
15057               esac
15058               libdir="$save_libdir"
15059                             for dep in $dependency_libs; do
15060                 case "$dep" in
15061                   -L*)
15062                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15063                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15064                       haveit=
15065                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15066                         if test -n "$GCC"; then
15067                           case $host_os in
15068                             linux*) haveit=yes;;
15069                           esac
15070                         fi
15071                       fi
15072                       if test -z "$haveit"; then
15073                         haveit=
15074                         for x in $LDFLAGS $LIBIPT; do
15075
15076   acl_save_prefix="$prefix"
15077   prefix="$acl_final_prefix"
15078   acl_save_exec_prefix="$exec_prefix"
15079   exec_prefix="$acl_final_exec_prefix"
15080   eval x=\"$x\"
15081   exec_prefix="$acl_save_exec_prefix"
15082   prefix="$acl_save_prefix"
15083
15084                           if test "X$x" = "X-L$additional_libdir"; then
15085                             haveit=yes
15086                             break
15087                           fi
15088                         done
15089                         if test -z "$haveit"; then
15090                           if test -d "$additional_libdir"; then
15091                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15092                           fi
15093                         fi
15094                         haveit=
15095                         for x in $LDFLAGS $LTLIBIPT; do
15096
15097   acl_save_prefix="$prefix"
15098   prefix="$acl_final_prefix"
15099   acl_save_exec_prefix="$exec_prefix"
15100   exec_prefix="$acl_final_exec_prefix"
15101   eval x=\"$x\"
15102   exec_prefix="$acl_save_exec_prefix"
15103   prefix="$acl_save_prefix"
15104
15105                           if test "X$x" = "X-L$additional_libdir"; then
15106                             haveit=yes
15107                             break
15108                           fi
15109                         done
15110                         if test -z "$haveit"; then
15111                           if test -d "$additional_libdir"; then
15112                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15113                           fi
15114                         fi
15115                       fi
15116                     fi
15117                     ;;
15118                   -R*)
15119                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15120                     if test "$enable_rpath" != no; then
15121                                                                   haveit=
15122                       for x in $rpathdirs; do
15123                         if test "X$x" = "X$dir"; then
15124                           haveit=yes
15125                           break
15126                         fi
15127                       done
15128                       if test -z "$haveit"; then
15129                         rpathdirs="$rpathdirs $dir"
15130                       fi
15131                                                                   haveit=
15132                       for x in $ltrpathdirs; do
15133                         if test "X$x" = "X$dir"; then
15134                           haveit=yes
15135                           break
15136                         fi
15137                       done
15138                       if test -z "$haveit"; then
15139                         ltrpathdirs="$ltrpathdirs $dir"
15140                       fi
15141                     fi
15142                     ;;
15143                   -l*)
15144                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15145                     ;;
15146                   *.la)
15147                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15148                     ;;
15149                   *)
15150                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
15151                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15152                     ;;
15153                 esac
15154               done
15155             fi
15156           else
15157                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
15158               LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
15159               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15160             else
15161               LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15162               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15163             fi
15164           fi
15165         fi
15166       fi
15167     done
15168   done
15169   if test "X$rpathdirs" != "X"; then
15170     if test -n "$hardcode_libdir_separator"; then
15171                         alldirs=
15172       for found_dir in $rpathdirs; do
15173         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15174       done
15175             acl_save_libdir="$libdir"
15176       libdir="$alldirs"
15177       eval flag=\"$hardcode_libdir_flag_spec\"
15178       libdir="$acl_save_libdir"
15179       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
15180     else
15181             for found_dir in $rpathdirs; do
15182         acl_save_libdir="$libdir"
15183         libdir="$found_dir"
15184         eval flag=\"$hardcode_libdir_flag_spec\"
15185         libdir="$acl_save_libdir"
15186         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
15187       done
15188     fi
15189   fi
15190   if test "X$ltrpathdirs" != "X"; then
15191             for found_dir in $ltrpathdirs; do
15192       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15193     done
15194   fi
15195
15196
15197         ac_save_CPPFLAGS="$CPPFLAGS"
15198
15199   for element in $INCIPT; do
15200     haveit=
15201     for x in $CPPFLAGS; do
15202
15203   acl_save_prefix="$prefix"
15204   prefix="$acl_final_prefix"
15205   acl_save_exec_prefix="$exec_prefix"
15206   exec_prefix="$acl_final_exec_prefix"
15207   eval x=\"$x\"
15208   exec_prefix="$acl_save_exec_prefix"
15209   prefix="$acl_save_prefix"
15210
15211       if test "X$x" = "X$element"; then
15212         haveit=yes
15213         break
15214       fi
15215     done
15216     if test -z "$haveit"; then
15217       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15218     fi
15219   done
15220
15221
15222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15223 $as_echo_n "checking for libipt... " >&6; }
15224 if ${ac_cv_libipt+:} false; then :
15225   $as_echo_n "(cached) " >&6
15226 else
15227
15228     ac_save_LIBS="$LIBS"
15229     LIBS="$LIBS $LIBIPT"
15230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h.  */
15232 #include "intel-pt.h"
15233 int
15234 main ()
15235 {
15236 pt_insn_alloc_decoder (0);
15237   ;
15238   return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_c_try_link "$LINENO"; then :
15242   ac_cv_libipt=yes
15243 else
15244   ac_cv_libipt=no
15245 fi
15246 rm -f core conftest.err conftest.$ac_objext \
15247     conftest$ac_exeext conftest.$ac_ext
15248     LIBS="$ac_save_LIBS"
15249
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15252 $as_echo "$ac_cv_libipt" >&6; }
15253   if test "$ac_cv_libipt" = yes; then
15254     HAVE_LIBIPT=yes
15255
15256 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15257
15258     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15259 $as_echo_n "checking how to link with libipt... " >&6; }
15260     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15261 $as_echo "$LIBIPT" >&6; }
15262   else
15263     HAVE_LIBIPT=no
15264             CPPFLAGS="$ac_save_CPPFLAGS"
15265     LIBIPT=
15266     LTLIBIPT=
15267   fi
15268
15269
15270
15271
15272
15273
15274     if test "$HAVE_LIBIPT" != yes; then
15275       if test "$with_intel_pt" = yes; then
15276         as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
15277       else
15278         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15279 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15280       fi
15281     else
15282       save_LIBS=$LIBS
15283       LIBS="$LIBS $LIBIPT"
15284       for ac_func in pt_insn_event
15285 do :
15286   ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15287 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
15288   cat >>confdefs.h <<_ACEOF
15289 #define HAVE_PT_INSN_EVENT 1
15290 _ACEOF
15291
15292 fi
15293 done
15294
15295       ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15296 "
15297 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
15298
15299 cat >>confdefs.h <<_ACEOF
15300 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15301 _ACEOF
15302
15303
15304 fi
15305 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15306 "
15307 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
15308
15309 cat >>confdefs.h <<_ACEOF
15310 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15311 _ACEOF
15312
15313
15314 fi
15315
15316       LIBS=$save_LIBS
15317     fi
15318   fi
15319
15320
15321 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15322
15323  for ac_header in sys/procfs.h
15324 do :
15325   ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15326 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
15327   cat >>confdefs.h <<_ACEOF
15328 #define HAVE_SYS_PROCFS_H 1
15329 _ACEOF
15330
15331 fi
15332
15333 done
15334
15335   if test "$ac_cv_header_sys_procfs_h" = yes; then
15336
15337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15338 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15339  if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h.  */
15344
15345 #define _SYSCALL32
15346 #include <sys/procfs.h>
15347 int
15348 main ()
15349 {
15350 gregset_t avar
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 if ac_fn_c_try_compile "$LINENO"; then :
15356   bfd_cv_have_sys_procfs_type_gregset_t=yes
15357 else
15358   bfd_cv_have_sys_procfs_type_gregset_t=no
15359
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 fi
15363
15364  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15365
15366 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15367
15368  fi
15369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15370 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15371
15372
15373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15374 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15375  if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
15376   $as_echo_n "(cached) " >&6
15377 else
15378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h.  */
15380
15381 #define _SYSCALL32
15382 #include <sys/procfs.h>
15383 int
15384 main ()
15385 {
15386 fpregset_t avar
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392   bfd_cv_have_sys_procfs_type_fpregset_t=yes
15393 else
15394   bfd_cv_have_sys_procfs_type_fpregset_t=no
15395
15396 fi
15397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15398 fi
15399
15400  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15401
15402 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15403
15404  fi
15405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15406 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15407
15408
15409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15410 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15411  if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
15412   $as_echo_n "(cached) " >&6
15413 else
15414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h.  */
15416
15417 #define _SYSCALL32
15418 #include <sys/procfs.h>
15419 int
15420 main ()
15421 {
15422 prgregset_t avar
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 if ac_fn_c_try_compile "$LINENO"; then :
15428   bfd_cv_have_sys_procfs_type_prgregset_t=yes
15429 else
15430   bfd_cv_have_sys_procfs_type_prgregset_t=no
15431
15432 fi
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 fi
15435
15436  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15437
15438 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15439
15440  fi
15441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15442 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15443
15444
15445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15446 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15447  if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h.  */
15452
15453 #define _SYSCALL32
15454 #include <sys/procfs.h>
15455 int
15456 main ()
15457 {
15458 prfpregset_t avar
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"; then :
15464   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
15465 else
15466   bfd_cv_have_sys_procfs_type_prfpregset_t=no
15467
15468 fi
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 fi
15471
15472  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15473
15474 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15475
15476  fi
15477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15478 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15479
15480
15481  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15482 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15483  if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
15484   $as_echo_n "(cached) " >&6
15485 else
15486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h.  */
15488
15489 #define _SYSCALL32
15490 #include <sys/procfs.h>
15491 int
15492 main ()
15493 {
15494 prgregset32_t avar
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_compile "$LINENO"; then :
15500   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
15501 else
15502   bfd_cv_have_sys_procfs_type_prgregset32_t=no
15503
15504 fi
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 fi
15507
15508  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15509
15510 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15511
15512  fi
15513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15514 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15515
15516
15517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15518 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15519  if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
15520   $as_echo_n "(cached) " >&6
15521 else
15522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h.  */
15524
15525 #define _SYSCALL32
15526 #include <sys/procfs.h>
15527 int
15528 main ()
15529 {
15530 lwpid_t avar
15531   ;
15532   return 0;
15533 }
15534 _ACEOF
15535 if ac_fn_c_try_compile "$LINENO"; then :
15536   bfd_cv_have_sys_procfs_type_lwpid_t=yes
15537 else
15538   bfd_cv_have_sys_procfs_type_lwpid_t=no
15539
15540 fi
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 fi
15543
15544  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15545
15546 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15547
15548  fi
15549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15550 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15551
15552
15553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15554 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15555  if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
15556   $as_echo_n "(cached) " >&6
15557 else
15558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h.  */
15560
15561 #define _SYSCALL32
15562 #include <sys/procfs.h>
15563 int
15564 main ()
15565 {
15566 psaddr_t avar
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 if ac_fn_c_try_compile "$LINENO"; then :
15572   bfd_cv_have_sys_procfs_type_psaddr_t=yes
15573 else
15574   bfd_cv_have_sys_procfs_type_psaddr_t=no
15575
15576 fi
15577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15578 fi
15579
15580  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15581
15582 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15583
15584  fi
15585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15586 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15587
15588
15589  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15590 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15591  if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
15592   $as_echo_n "(cached) " >&6
15593 else
15594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h.  */
15596
15597 #define _SYSCALL32
15598 #include <sys/procfs.h>
15599 int
15600 main ()
15601 {
15602 elf_fpregset_t avar
15603   ;
15604   return 0;
15605 }
15606 _ACEOF
15607 if ac_fn_c_try_compile "$LINENO"; then :
15608   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
15609 else
15610   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
15611
15612 fi
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615
15616  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15617
15618 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15619
15620  fi
15621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15622 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15623
15624   fi
15625
15626
15627 # Check the return and argument types of ptrace.
15628
15629
15630 for ac_header in sys/ptrace.h ptrace.h
15631 do :
15632   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15633 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15635   cat >>confdefs.h <<_ACEOF
15636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637 _ACEOF
15638
15639 fi
15640
15641 done
15642
15643
15644 gdb_ptrace_headers='
15645 #include <sys/types.h>
15646 #if HAVE_SYS_PTRACE_H
15647 # include <sys/ptrace.h>
15648 #endif
15649 #if HAVE_UNISTD_H
15650 # include <unistd.h>
15651 #endif
15652 '
15653
15654 # Check return type.  Varargs (used on GNU/Linux) conflict with the
15655 # empty argument list, so check for that explicitly.
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15657 $as_echo_n "checking return type of ptrace... " >&6; }
15658 if ${gdb_cv_func_ptrace_ret+:} false; then :
15659   $as_echo_n "(cached) " >&6
15660 else
15661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h.  */
15663  $gdb_ptrace_headers
15664 int
15665 main ()
15666 {
15667 extern long ptrace (enum __ptrace_request, ...);
15668
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_compile "$LINENO"; then :
15674   gdb_cv_func_ptrace_ret='long'
15675 else
15676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h.  */
15678 $gdb_ptrace_headers
15679 int
15680 main ()
15681 {
15682 extern int ptrace ();
15683
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_compile "$LINENO"; then :
15689   gdb_cv_func_ptrace_ret='int'
15690 else
15691   gdb_cv_func_ptrace_ret='long'
15692
15693 fi
15694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15695
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698
15699 fi
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15701 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15702
15703
15704 cat >>confdefs.h <<_ACEOF
15705 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15706 _ACEOF
15707
15708
15709 # Check argument types.
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15711 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15712 if ${gdb_cv_func_ptrace_args+:} false; then :
15713   $as_echo_n "(cached) " >&6
15714 else
15715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h.  */
15717 $gdb_ptrace_headers
15718 int
15719 main ()
15720 {
15721 extern long ptrace (enum __ptrace_request, ...);
15722
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 if ac_fn_c_try_compile "$LINENO"; then :
15728   gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
15729 else
15730   for gdb_arg1 in 'int' 'long'; do
15731         for gdb_arg2 in 'pid_t' 'int' 'long'; do
15732           for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15733             for gdb_arg4 in 'int' 'long' 'void *'; do
15734               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h.  */
15736 $gdb_ptrace_headers
15737 int
15738 main ()
15739 {
15740 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15741
15742   ;
15743   return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_compile "$LINENO"; then :
15747   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15748                  break 4;
15749
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752
15753               for gdb_arg5 in 'int *' 'int' 'long'; do
15754                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h.  */
15756 $gdb_ptrace_headers
15757 int
15758 main ()
15759 {
15760 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15761
15762   ;
15763   return 0;
15764 }
15765 _ACEOF
15766 if ac_fn_c_try_compile "$LINENO"; then :
15767   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15768                    break 5;
15769
15770 fi
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772               done
15773             done
15774           done
15775         done
15776       done
15777       # Provide a safe default value.
15778       : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15779
15780 fi
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782
15783 fi
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15785 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15786
15787 ac_save_IFS=$IFS; IFS=','
15788 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15789 IFS=$ac_save_IFS
15790 shift
15791
15792 cat >>confdefs.h <<_ACEOF
15793 #define PTRACE_TYPE_ARG1 $1
15794 _ACEOF
15795
15796
15797 cat >>confdefs.h <<_ACEOF
15798 #define PTRACE_TYPE_ARG3 $3
15799 _ACEOF
15800
15801
15802 cat >>confdefs.h <<_ACEOF
15803 #define PTRACE_TYPE_ARG4 $4
15804 _ACEOF
15805
15806 if test -n "$5"; then
15807
15808 cat >>confdefs.h <<_ACEOF
15809 #define PTRACE_TYPE_ARG5 $5
15810 _ACEOF
15811
15812 fi
15813
15814
15815 if test "$cross_compiling" = no; then
15816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15817 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15818 if ${ac_cv_func_setpgrp_void+:} false; then :
15819   $as_echo_n "(cached) " >&6
15820 else
15821   if test "$cross_compiling" = yes; then :
15822   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
15823 else
15824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h.  */
15826 $ac_includes_default
15827 int
15828 main ()
15829 {
15830 /* If this system has a BSD-style setpgrp which takes arguments,
15831   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15832   exit successfully. */
15833   return setpgrp (1,1) != -1;
15834   ;
15835   return 0;
15836 }
15837 _ACEOF
15838 if ac_fn_c_try_run "$LINENO"; then :
15839   ac_cv_func_setpgrp_void=no
15840 else
15841   ac_cv_func_setpgrp_void=yes
15842 fi
15843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15844   conftest.$ac_objext conftest.beam conftest.$ac_ext
15845 fi
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15849 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15850 if test $ac_cv_func_setpgrp_void = yes; then
15851
15852 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15853
15854 fi
15855
15856 else
15857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15858 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15859 if ${ac_cv_func_setpgrp_void+:} false; then :
15860   $as_echo_n "(cached) " >&6
15861 else
15862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h.  */
15864 #include <unistd.h>
15865 int
15866 main ()
15867 {
15868 if (setpgrp(1,1) == -1)
15869              exit (0);
15870            else
15871              exit (1);
15872
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 if ac_fn_c_try_compile "$LINENO"; then :
15878   ac_cv_func_setpgrp_void=no
15879 else
15880   ac_cv_func_setpgrp_void=yes
15881
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884
15885 fi
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15887 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15888 if test "$ac_cv_func_setpgrp_void" = yes; then
15889   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15890
15891 fi
15892 fi
15893
15894 # Assume we'll default to using the included libiberty regex.
15895 gdb_use_included_regex=yes
15896
15897 # However, if the system regex is GNU regex, then default to *not*
15898 # using the included regex.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15900 $as_echo_n "checking for GNU regex... " >&6; }
15901 if ${gdb_cv_have_gnu_regex+:} false; then :
15902   $as_echo_n "(cached) " >&6
15903 else
15904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h.  */
15906 #include <gnu-versions.h>
15907 int
15908 main ()
15909 {
15910 #define REGEX_INTERFACE_VERSION 1
15911          #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15912          # error "Version mismatch"
15913          #endif
15914
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_compile "$LINENO"; then :
15920   gdb_cv_have_gnu_regex=yes
15921 else
15922   gdb_cv_have_gnu_regex=no
15923
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926
15927 fi
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15929 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15930 if test "$gdb_cv_have_gnu_regex" = yes; then
15931   gdb_use_included_regex=no
15932 fi
15933
15934
15935 # Check whether --with-included-regex was given.
15936 if test "${with_included_regex+set}" = set; then :
15937   withval=$with_included_regex; gdb_with_regex=$withval
15938 else
15939   gdb_with_regex=$gdb_use_included_regex
15940 fi
15941
15942 if test "$gdb_with_regex" = yes; then
15943
15944 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15945
15946 fi
15947
15948 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15949 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15950 #include <sys/proc.h>
15951
15952 "
15953 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
15954
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_STRUCT_THREAD_TD_PCB 1
15957 _ACEOF
15958
15959
15960 fi
15961
15962
15963 # See if <sys/lwp.h> defines `struct lwp`.
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15965 $as_echo_n "checking for struct lwp... " >&6; }
15966 if ${gdb_cv_struct_lwp+:} false; then :
15967   $as_echo_n "(cached) " >&6
15968 else
15969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h.  */
15971 #include <sys/param.h>
15972          #define _KMEMUSER
15973          #include <sys/lwp.h>
15974 int
15975 main ()
15976 {
15977 struct lwp l;
15978
15979   ;
15980   return 0;
15981 }
15982 _ACEOF
15983 if ac_fn_c_try_compile "$LINENO"; then :
15984   gdb_cv_struct_lwp=yes
15985 else
15986   gdb_cv_struct_lwp=no
15987
15988 fi
15989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15990
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15993 $as_echo "$gdb_cv_struct_lwp" >&6; }
15994 if test "$gdb_cv_struct_lwp" = yes; then
15995
15996 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15997
15998 fi
15999
16000 # See if <machine/reg.h> degines `struct reg'.
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
16002 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
16003 if ${gdb_cv_struct_reg+:} false; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008 #include <sys/types.h>
16009          #include <machine/reg.h>
16010 int
16011 main ()
16012 {
16013 struct reg r;
16014
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 if ac_fn_c_try_compile "$LINENO"; then :
16020   gdb_cv_struct_reg=yes
16021 else
16022   gdb_cv_struct_reg=no
16023
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
16029 $as_echo "$gdb_cv_struct_reg" >&6; }
16030 if test "$gdb_cv_struct_reg" = yes; then
16031
16032 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
16033
16034 fi
16035
16036 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16037 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16038 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
16039 #include <machine/reg.h>
16040 "
16041 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
16042
16043 cat >>confdefs.h <<_ACEOF
16044 #define HAVE_STRUCT_REG_R_FS 1
16045 _ACEOF
16046
16047
16048 fi
16049 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
16050 #include <machine/reg.h>
16051 "
16052 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
16053
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_STRUCT_REG_R_GS 1
16056 _ACEOF
16057
16058
16059 fi
16060
16061
16062 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16064 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16065 if ${gdb_cv_have_ptrace_getregs+:} false; then :
16066   $as_echo_n "(cached) " >&6
16067 else
16068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h.  */
16070 #include <sys/ptrace.h>
16071 int
16072 main ()
16073 {
16074 PTRACE_GETREGS;
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_compile "$LINENO"; then :
16080   gdb_cv_have_ptrace_getregs=yes
16081 else
16082   gdb_cv_have_ptrace_getregs=no
16083
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086
16087 fi
16088
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16090 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16091 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16092
16093 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16094
16095 fi
16096
16097 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16099 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16100 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
16101   $as_echo_n "(cached) " >&6
16102 else
16103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h.  */
16105 #include <sys/ptrace.h>
16106 int
16107 main ()
16108 {
16109 PTRACE_GETFPXREGS;
16110   ;
16111   return 0;
16112 }
16113 _ACEOF
16114 if ac_fn_c_try_compile "$LINENO"; then :
16115   gdb_cv_have_ptrace_getfpxregs=yes
16116 else
16117   gdb_cv_have_ptrace_getfpxregs=no
16118
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121
16122 fi
16123
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16125 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16126 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16127
16128 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16129
16130 fi
16131
16132 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16134 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16135 if ${gdb_cv_have_pt_getdbregs+:} false; then :
16136   $as_echo_n "(cached) " >&6
16137 else
16138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h.  */
16140 #include <sys/types.h>
16141          #include <sys/ptrace.h>
16142 int
16143 main ()
16144 {
16145 PT_GETDBREGS;
16146
16147   ;
16148   return 0;
16149 }
16150 _ACEOF
16151 if ac_fn_c_try_compile "$LINENO"; then :
16152   gdb_cv_have_pt_getdbregs=yes
16153 else
16154   gdb_cv_have_pt_getdbregs=no
16155
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158
16159 fi
16160
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16162 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16163 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16164
16165 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16166
16167 fi
16168
16169 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16171 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16172 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
16173   $as_echo_n "(cached) " >&6
16174 else
16175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h.  */
16177 #include <sys/types.h>
16178          #include <sys/ptrace.h>
16179 int
16180 main ()
16181 {
16182 PT_GETXMMREGS;
16183
16184   ;
16185   return 0;
16186 }
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"; then :
16189   gdb_cv_have_pt_getxmmregs=yes
16190 else
16191   gdb_cv_have_pt_getxmmregs=no
16192
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195
16196 fi
16197
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16199 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16200 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16201
16202 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16203
16204 fi
16205
16206 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16207 # Older FreeBSD versions don't have the pl_tdname member of
16208 # `struct ptrace_lwpinfo'.
16209 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16210 "
16211 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
16212
16213 cat >>confdefs.h <<_ACEOF
16214 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16215 _ACEOF
16216
16217
16218 fi
16219
16220
16221 # See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
16222 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16223 # FreeBSD 10.3.
16224 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
16225 "
16226 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
16227
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16230 _ACEOF
16231
16232
16233 fi
16234
16235
16236 # Check if the compiler supports the `long long' type.
16237
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16239 $as_echo_n "checking for long long support in compiler... " >&6; }
16240 if ${gdb_cv_c_long_long+:} false; then :
16241   $as_echo_n "(cached) " >&6
16242 else
16243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h.  */
16245 extern long long foo;
16246 int
16247 main ()
16248 {
16249 switch (foo & 2) { case 0: return 1; }
16250   ;
16251   return 0;
16252 }
16253 _ACEOF
16254 if ac_fn_c_try_compile "$LINENO"; then :
16255   gdb_cv_c_long_long=yes
16256 else
16257   gdb_cv_c_long_long=no
16258 fi
16259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 fi
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16262 $as_echo "$gdb_cv_c_long_long" >&6; }
16263 if test "$gdb_cv_c_long_long" != yes; then
16264   # libdecnumber requires long long.
16265   as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
16266 fi
16267
16268 # Check if the compiler and runtime support printing long longs.
16269
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
16271 $as_echo_n "checking for long long support in printf... " >&6; }
16272 if ${gdb_cv_printf_has_long_long+:} false; then :
16273   $as_echo_n "(cached) " >&6
16274 else
16275   if test "$cross_compiling" = yes; then :
16276   gdb_cv_printf_has_long_long=no
16277 else
16278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h.  */
16280 $ac_includes_default
16281 int
16282 main ()
16283 {
16284 char buf[32];
16285   long long l = 0;
16286   l = (l << 16) + 0x0123;
16287   l = (l << 16) + 0x4567;
16288   l = (l << 16) + 0x89ab;
16289   l = (l << 16) + 0xcdef;
16290   sprintf (buf, "0x%016llx", l);
16291   return (strcmp ("0x0123456789abcdef", buf));
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_c_try_run "$LINENO"; then :
16297   gdb_cv_printf_has_long_long=yes
16298 else
16299   gdb_cv_printf_has_long_long=no
16300 fi
16301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16302   conftest.$ac_objext conftest.beam conftest.$ac_ext
16303 fi
16304
16305 fi
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
16307 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
16308 if test "$gdb_cv_printf_has_long_long" = yes; then
16309
16310 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
16311
16312 fi
16313
16314 # Check if the compiler and runtime support printing decfloats.
16315
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16317 $as_echo_n "checking for decfloat support in printf... " >&6; }
16318 if ${gdb_cv_printf_has_decfloat+:} false; then :
16319   $as_echo_n "(cached) " >&6
16320 else
16321   if test "$cross_compiling" = yes; then :
16322   gdb_cv_printf_has_decfloat=no
16323 else
16324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h.  */
16326 $ac_includes_default
16327 int
16328 main ()
16329 {
16330 char buf[64];
16331   _Decimal32 d32 = 1.2345df;
16332   _Decimal64 d64 = 1.2345dd;
16333   _Decimal128 d128 = 1.2345dl;
16334   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16335   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_run "$LINENO"; then :
16341   gdb_cv_printf_has_decfloat=yes
16342 else
16343   gdb_cv_printf_has_decfloat=no
16344 fi
16345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16346   conftest.$ac_objext conftest.beam conftest.$ac_ext
16347 fi
16348
16349 fi
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16351 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16352 if test "$gdb_cv_printf_has_decfloat" = yes; then
16353
16354 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16355
16356 fi
16357
16358 # Check if the compiler supports the `long double' type.  We can't use
16359 # AC_C_LONG_DOUBLE because that one does additional checks on the
16360 # constants defined in <float.h> that fail on some systems,
16361 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16362
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16364 $as_echo_n "checking for long double support in compiler... " >&6; }
16365 if ${gdb_cv_c_long_double+:} false; then :
16366   $as_echo_n "(cached) " >&6
16367 else
16368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h.  */
16370 long double foo;
16371 _ACEOF
16372 if ac_fn_c_try_compile "$LINENO"; then :
16373   gdb_cv_c_long_double=yes
16374 else
16375   gdb_cv_c_long_double=no
16376 fi
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 fi
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16380 $as_echo "$gdb_cv_c_long_double" >&6; }
16381 if test "$gdb_cv_c_long_double" = yes; then
16382
16383 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16384
16385 fi
16386
16387 # Check if the compiler and runtime support printing long doubles.
16388
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16390 $as_echo_n "checking for long double support in printf... " >&6; }
16391 if ${gdb_cv_printf_has_long_double+:} false; then :
16392   $as_echo_n "(cached) " >&6
16393 else
16394   if test "$cross_compiling" = yes; then :
16395   gdb_cv_printf_has_long_double=no
16396 else
16397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399 $ac_includes_default
16400 int
16401 main ()
16402 {
16403 char buf[16];
16404   long double f = 3.141592653;
16405   sprintf (buf, "%Lg", f);
16406   return (strncmp ("3.14159", buf, 7));
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 if ac_fn_c_try_run "$LINENO"; then :
16412   gdb_cv_printf_has_long_double=yes
16413 else
16414   gdb_cv_printf_has_long_double=no
16415 fi
16416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16417   conftest.$ac_objext conftest.beam conftest.$ac_ext
16418 fi
16419
16420 fi
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16422 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16423 if test "$gdb_cv_printf_has_long_double" = yes; then
16424
16425 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16426
16427 fi
16428
16429 # Check if the compiler and runtime support scanning long doubles.
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16432 $as_echo_n "checking for long double support in scanf... " >&6; }
16433 if ${gdb_cv_scanf_has_long_double+:} false; then :
16434   $as_echo_n "(cached) " >&6
16435 else
16436   if test "$cross_compiling" = yes; then :
16437   gdb_cv_scanf_has_long_double=no
16438 else
16439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h.  */
16441 #include <stdio.h>
16442 int
16443 main ()
16444 {
16445 char *buf = "3.141592653";
16446   long double f = 0;
16447   sscanf (buf, "%Lg", &f);
16448   return !(f > 3.14159 && f < 3.14160);
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 if ac_fn_c_try_run "$LINENO"; then :
16454   gdb_cv_scanf_has_long_double=yes
16455 else
16456   gdb_cv_scanf_has_long_double=no
16457 fi
16458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16459   conftest.$ac_objext conftest.beam conftest.$ac_ext
16460 fi
16461
16462 fi
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16464 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16465 if test "$gdb_cv_scanf_has_long_double" = yes; then
16466
16467 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16468
16469 fi
16470
16471 case ${host_os} in
16472 aix*)
16473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16474 $as_echo_n "checking for -bbigtoc option... " >&6; }
16475 if ${gdb_cv_bigtoc+:} false; then :
16476   $as_echo_n "(cached) " >&6
16477 else
16478   SAVE_LDFLAGS=$LDFLAGS
16479
16480      case $GCC in
16481        yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
16482        *) gdb_cv_bigtoc=-bbigtoc ;;
16483      esac
16484
16485      LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
16486      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h.  */
16488
16489 int
16490 main ()
16491 {
16492 int i;
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 if ac_fn_c_try_link "$LINENO"; then :
16498
16499 else
16500   gdb_cv_bigtoc=
16501
16502 fi
16503 rm -f core conftest.err conftest.$ac_objext \
16504     conftest$ac_exeext conftest.$ac_ext
16505      LDFLAGS="${SAVE_LDFLAGS}"
16506
16507 fi
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16509 $as_echo "$gdb_cv_bigtoc" >&6; }
16510   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16511   ;;
16512 esac
16513
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16515 $as_echo_n "checking for the dynamic export flag... " >&6; }
16516 dynamic_list=false
16517 if test "${gdb_native}" = yes; then
16518    # The dynamically loaded libthread_db needs access to symbols in the gdb
16519    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
16520    # may not be supported there.
16521    old_LDFLAGS="$LDFLAGS"
16522    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16523    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16524    LDFLAGS="$LDFLAGS $RDYNAMIC"
16525    if test "${have_libpython}" = no; then
16526      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h.  */
16528
16529 int
16530 main ()
16531 {
16532
16533   ;
16534   return 0;
16535 }
16536 _ACEOF
16537 if ac_fn_c_try_link "$LINENO"; then :
16538   dynamic_list=true
16539 fi
16540 rm -f core conftest.err conftest.$ac_objext \
16541     conftest$ac_exeext conftest.$ac_ext
16542    else
16543      # Workaround http://bugs.python.org/issue4434 where static
16544      # libpythonX.Y.a would get its symbols required for
16545      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16546      # Problem does not happen for the recommended libpythonX.Y.so linkage.
16547
16548      # Note the workaround for Python
16549      # http://bugs.python.org/issue10112 earlier has removed
16550      # -export-dynamic from PYTHON_LIBS.  That's exactly what we want
16551      # here too, as otherwise it'd make this -Wl,--dynamic-list test
16552      # always pass.
16553      old_CFLAGS="$CFLAGS"
16554      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
16555      old_LIBS="$LIBS"
16556      LIBS="$LIBS $PYTHON_LIBS"
16557      old_CPPFLAGS="$CPPFLAGS"
16558      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
16559      if test "$cross_compiling" = yes; then :
16560   true
16561 else
16562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h.  */
16564 #include "Python.h"
16565 int
16566 main ()
16567 {
16568 int err;
16569           Py_Initialize ();
16570           err = PyRun_SimpleString ("import ctypes\n");
16571           Py_Finalize ();
16572           return err == 0 ? 0 : 1;
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_run "$LINENO"; then :
16578   dynamic_list=true
16579 fi
16580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16581   conftest.$ac_objext conftest.beam conftest.$ac_ext
16582 fi
16583
16584      LIBS="$old_LIBS"
16585      CFLAGS="$old_CFLAGS"
16586      CPPFLAGS="$old_CPPFLAGS"
16587    fi
16588    LDFLAGS="$old_LDFLAGS"
16589 fi
16590 if $dynamic_list; then
16591   found="-Wl,--dynamic-list"
16592   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16593 else
16594   found="-rdynamic"
16595   RDYNAMIC="-rdynamic"
16596 fi
16597
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16599 $as_echo "$found" >&6; }
16600
16601
16602 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16603    case ${host_os} in
16604    aix*)
16605       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16606 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16607       if ${gdb_cv_have_aix_thread_debug+:} false; then :
16608   $as_echo_n "(cached) " >&6
16609 else
16610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h.  */
16612 #include <sys/pthdebug.h>
16613 int
16614 main ()
16615 {
16616 #ifndef PTHDB_VERSION_3
16617                #error
16618                #endif
16619
16620   ;
16621   return 0;
16622 }
16623 _ACEOF
16624 if ac_fn_c_try_compile "$LINENO"; then :
16625   gdb_cv_have_aix_thread_debug=yes
16626 else
16627   gdb_cv_have_aix_thread_debug=no
16628
16629 fi
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631
16632 fi
16633
16634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16635 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16636       if test "$gdb_cv_have_aix_thread_debug" = yes; then
16637          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
16638          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
16639          LIBS="$LIBS -lpthdebug"
16640
16641          # Older versions of AIX do not provide the declaration for
16642          # the getthrds function (it appears that it was introduced
16643          # with AIX 6.x).
16644          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16645 "
16646 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
16647   ac_have_decl=1
16648 else
16649   ac_have_decl=0
16650 fi
16651
16652 cat >>confdefs.h <<_ACEOF
16653 #define HAVE_DECL_GETTHRDS $ac_have_decl
16654 _ACEOF
16655
16656       fi
16657       ;;
16658    esac
16659
16660 fi
16661
16662 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16664 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16665 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
16666   $as_echo_n "(cached) " >&6
16667 else
16668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h.  */
16670 #include <thread_db.h>
16671 int
16672 main ()
16673 {
16674 int i = TD_NOTALLOC;
16675
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 if ac_fn_c_try_compile "$LINENO"; then :
16681   gdb_cv_thread_db_h_has_td_notalloc=yes
16682 else
16683   gdb_cv_thread_db_h_has_td_notalloc=no
16684
16685 fi
16686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16687
16688 fi
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16690 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16691
16692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16693 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16694 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
16695   $as_echo_n "(cached) " >&6
16696 else
16697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h.  */
16699 #include <thread_db.h>
16700 int
16701 main ()
16702 {
16703 int i = TD_VERSION;
16704
16705   ;
16706   return 0;
16707 }
16708 _ACEOF
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710   gdb_cv_thread_db_h_has_td_version=yes
16711 else
16712   gdb_cv_thread_db_h_has_td_version=no
16713
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716
16717 fi
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16719 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16720
16721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16722 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16723 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
16724   $as_echo_n "(cached) " >&6
16725 else
16726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h.  */
16728 #include <thread_db.h>
16729 int
16730 main ()
16731 {
16732 int i = TD_NOTLS;
16733
16734   ;
16735   return 0;
16736 }
16737 _ACEOF
16738 if ac_fn_c_try_compile "$LINENO"; then :
16739   gdb_cv_thread_db_h_has_td_notls=yes
16740 else
16741   gdb_cv_thread_db_h_has_td_notls=no
16742
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16748 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16749 fi
16750 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16751
16752 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16753
16754 fi
16755 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16756
16757 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16758
16759 fi
16760 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16761
16762 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16763
16764 fi
16765
16766 case $host_os in
16767   go32* | *djgpp*)
16768     gdbinit=gdb.ini
16769     ;;
16770   *)
16771     gdbinit=.gdbinit
16772     ;;
16773 esac
16774
16775 cat >>confdefs.h <<_ACEOF
16776 #define GDBINIT "$gdbinit"
16777 _ACEOF
16778
16779
16780
16781 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16782 # except that the argument to --with-sysroot is optional.
16783 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16784 if test "x$with_sysroot" = xyes; then
16785   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
16786 fi
16787
16788 # Check whether --with-sysroot was given.
16789 if test "${with_sysroot+set}" = set; then :
16790   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
16791 else
16792   TARGET_SYSTEM_ROOT=
16793 fi
16794
16795
16796   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16797   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16798   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
16799   ac_define_dir=`eval echo $ac_define_dir`
16800
16801 cat >>confdefs.h <<_ACEOF
16802 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16803 _ACEOF
16804
16805
16806
16807
16808   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16809      if test "x$prefix" = xNONE; then
16810         test_prefix=/usr/local
16811      else
16812         test_prefix=$prefix
16813      fi
16814   else
16815      test_prefix=$exec_prefix
16816   fi
16817   value=0
16818   case ${ac_define_dir} in
16819      "${test_prefix}"|"${test_prefix}/"*|\
16820         '${exec_prefix}'|'${exec_prefix}/'*)
16821      value=1
16822      ;;
16823   esac
16824
16825 cat >>confdefs.h <<_ACEOF
16826 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16827 _ACEOF
16828
16829
16830
16831
16832
16833 # Check whether --with-system-gdbinit was given.
16834 if test "${with_system_gdbinit+set}" = set; then :
16835   withval=$with_system_gdbinit;
16836     SYSTEM_GDBINIT=$withval
16837 else
16838   SYSTEM_GDBINIT=
16839 fi
16840
16841
16842   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16843   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16844   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
16845   ac_define_dir=`eval echo $ac_define_dir`
16846
16847 cat >>confdefs.h <<_ACEOF
16848 #define SYSTEM_GDBINIT "$ac_define_dir"
16849 _ACEOF
16850
16851
16852
16853
16854   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16855      if test "x$prefix" = xNONE; then
16856         test_prefix=/usr/local
16857      else
16858         test_prefix=$prefix
16859      fi
16860   else
16861      test_prefix=$exec_prefix
16862   fi
16863   value=0
16864   case ${ac_define_dir} in
16865      "${test_prefix}"|"${test_prefix}/"*|\
16866         '${exec_prefix}'|'${exec_prefix}/'*)
16867      value=1
16868      ;;
16869   esac
16870
16871 cat >>confdefs.h <<_ACEOF
16872 #define SYSTEM_GDBINIT_RELOCATABLE $value
16873 _ACEOF
16874
16875
16876
16877
16878
16879 # Check whether --with-system-gdbinit-dir was given.
16880 if test "${with_system_gdbinit_dir+set}" = set; then :
16881   withval=$with_system_gdbinit_dir;
16882     SYSTEM_GDBINIT_DIR=$withval
16883 else
16884   SYSTEM_GDBINIT_DIR=
16885 fi
16886
16887
16888   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
16889   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16890   ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
16891   ac_define_dir=`eval echo $ac_define_dir`
16892
16893 cat >>confdefs.h <<_ACEOF
16894 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16895 _ACEOF
16896
16897
16898
16899
16900   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
16901      if test "x$prefix" = xNONE; then
16902         test_prefix=/usr/local
16903      else
16904         test_prefix=$prefix
16905      fi
16906   else
16907      test_prefix=$exec_prefix
16908   fi
16909   value=0
16910   case ${ac_define_dir} in
16911      "${test_prefix}"|"${test_prefix}/"*|\
16912         '${exec_prefix}'|'${exec_prefix}/'*)
16913      value=1
16914      ;;
16915   esac
16916
16917 cat >>confdefs.h <<_ACEOF
16918 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16919 _ACEOF
16920
16921
16922
16923
16924
16925 # Check whether --enable-werror was given.
16926 if test "${enable_werror+set}" = set; then :
16927   enableval=$enable_werror; case "${enableval}" in
16928      yes | y) ERROR_ON_WARNING="yes" ;;
16929      no | n)  ERROR_ON_WARNING="no" ;;
16930      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16931    esac
16932 fi
16933
16934
16935 # Enable -Werror by default when using gcc.  Turn it off for releases.
16936 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16937     ERROR_ON_WARNING=yes
16938 fi
16939
16940 WERROR_CFLAGS=""
16941 if test "${ERROR_ON_WARNING}" = yes ; then
16942     WERROR_CFLAGS="-Werror"
16943 fi
16944
16945 # The options we'll try to enable.
16946 build_warnings="-Wall -Wpointer-arith \
16947 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16948 -Wno-switch -Wno-char-subscripts \
16949 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16950 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16951 -Wno-mismatched-tags \
16952 -Wno-error=deprecated-register \
16953 -Wsuggest-override \
16954 -Wimplicit-fallthrough=3 \
16955 -Wduplicated-cond \
16956 -Wshadow=local \
16957 -Wdeprecated-copy \
16958 -Wdeprecated-copy-dtor \
16959 -Wredundant-move \
16960 -Wmissing-declarations \
16961 -Wmissing-prototypes \
16962 -Wstrict-null-sentinel \
16963 "
16964
16965 case "${host}" in
16966   *-*-mingw32*)
16967     # Enable -Wno-format by default when using gcc on mingw since many
16968     # GCC versions complain about %I64.
16969     build_warnings="$build_warnings -Wno-format" ;;
16970   *-*-solaris*)
16971     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16972     # doesn't understand.
16973     build_warnings="$build_warnings -Wno-unknown-pragmas"
16974     # Solaris 11 <unistd.h> marks vfork deprecated.
16975     build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
16976   *)
16977     # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16978     # but there's a special case for this below.
16979     build_warnings="$build_warnings -Wformat-nonliteral" ;;
16980 esac
16981
16982 # Check whether --enable-build-warnings was given.
16983 if test "${enable_build_warnings+set}" = set; then :
16984   enableval=$enable_build_warnings; case "${enableval}" in
16985   yes)  ;;
16986   no)   build_warnings="-w";;
16987   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16988         build_warnings="${build_warnings} ${t}";;
16989   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
16990         build_warnings="${t} ${build_warnings}";;
16991   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16992 esac
16993 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16994   echo "Setting compiler warning flags = $build_warnings" 6>&1
16995 fi
16996 fi
16997 # Check whether --enable-gdb-build-warnings was given.
16998 if test "${enable_gdb_build_warnings+set}" = set; then :
16999   enableval=$enable_gdb_build_warnings; case "${enableval}" in
17000   yes)  ;;
17001   no)   build_warnings="-w";;
17002   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
17003         build_warnings="${build_warnings} ${t}";;
17004   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
17005         build_warnings="${t} ${build_warnings}";;
17006   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17007 esac
17008 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
17009   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
17010 fi
17011 fi
17012
17013 # The set of warnings supported by a C++ compiler is not the same as
17014 # of the C compiler.
17015 ac_ext=cpp
17016 ac_cpp='$CXXCPP $CPPFLAGS'
17017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17020
17021
17022 WARN_CFLAGS=""
17023 if test "x${build_warnings}" != x -a "x$GCC" = xyes
17024 then
17025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
17026 $as_echo_n "checking compiler warning flags... " >&6; }
17027     # Separate out the -Werror flag as some files just cannot be
17028     # compiled with it enabled.
17029     for w in ${build_warnings}; do
17030         # GCC does not complain about -Wno-unknown-warning.  Invert
17031         # and test -Wunknown-warning instead.
17032         case $w in
17033         -Wno-*)
17034                 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
17035         -Wformat-nonliteral)
17036                 # gcc requires -Wformat before -Wformat-nonliteral
17037                 # will work, so stick them together.
17038                 w="-Wformat $w"
17039                 wtest="$w"
17040                 ;;
17041         *)
17042                 wtest=$w ;;
17043         esac
17044
17045         case $w in
17046         -Werr*) WERROR_CFLAGS=-Werror ;;
17047         *)
17048             # Check whether GCC accepts it.
17049             saved_CFLAGS="$CFLAGS"
17050             CFLAGS="$CFLAGS -Werror $wtest"
17051             saved_CXXFLAGS="$CXXFLAGS"
17052             CXXFLAGS="$CXXFLAGS -Werror $wtest"
17053             if test "x$w" = "x-Wunused-variable"; then
17054               # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17055               # fixed in GCC 4.9.  This test is derived from the gdb
17056               # source code that triggered this bug in GCC.
17057               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h.  */
17059 struct scoped_restore_base {};
17060                     struct scoped_restore_tmpl : public scoped_restore_base {
17061                       ~scoped_restore_tmpl() {}
17062                     };
17063 int
17064 main ()
17065 {
17066 const scoped_restore_base &b = scoped_restore_tmpl();
17067
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 if ac_fn_cxx_try_compile "$LINENO"; then :
17073   WARN_CFLAGS="${WARN_CFLAGS} $w"
17074 fi
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076             else
17077               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h.  */
17079
17080 int
17081 main ()
17082 {
17083
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_cxx_try_compile "$LINENO"; then :
17089   WARN_CFLAGS="${WARN_CFLAGS} $w"
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092             fi
17093             CFLAGS="$saved_CFLAGS"
17094             CXXFLAGS="$saved_CXXFLAGS"
17095         esac
17096     done
17097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17098 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17099 fi
17100
17101
17102
17103 ac_ext=c
17104 ac_cpp='$CPP $CPPFLAGS'
17105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17108
17109
17110
17111 # Check whether --enable-ubsan was given.
17112 if test "${enable_ubsan+set}" = set; then :
17113   enableval=$enable_ubsan;
17114 else
17115   enable_ubsan=no
17116 fi
17117
17118 if test "x$enable_ubsan" = xauto; then
17119   if $development; then
17120     enable_ubsan=yes
17121   fi
17122 fi
17123 ac_ext=cpp
17124 ac_cpp='$CXXCPP $CPPFLAGS'
17125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17128
17129 if test "x$enable_ubsan" = xyes; then
17130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
17131 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
17132   saved_CXXFLAGS="$CXXFLAGS"
17133   CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
17134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h.  */
17136
17137 int
17138 main ()
17139 {
17140
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 if ac_fn_cxx_try_link "$LINENO"; then :
17146   enable_ubsan=yes
17147 else
17148   enable_ubsan=no
17149
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152     conftest$ac_exeext conftest.$ac_ext
17153   CXXFLAGS="$saved_CXXFLAGS"
17154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
17155 $as_echo "$enable_ubsan" >&6; }
17156   if test "x$enable_ubsan" = xyes; then
17157     WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
17158     CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
17159   fi
17160 fi
17161 ac_ext=c
17162 ac_cpp='$CPP $CPPFLAGS'
17163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17166
17167
17168
17169 # In the Cygwin environment, we need some additional flags.
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
17171 $as_echo_n "checking for cygwin... " >&6; }
17172 if ${gdb_cv_os_cygwin+:} false; then :
17173   $as_echo_n "(cached) " >&6
17174 else
17175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h.  */
17177
17178 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17179 lose
17180 #endif
17181 _ACEOF
17182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17183   $EGREP "^lose$" >/dev/null 2>&1; then :
17184   gdb_cv_os_cygwin=yes
17185 else
17186   gdb_cv_os_cygwin=no
17187 fi
17188 rm -f conftest*
17189
17190 fi
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
17192 $as_echo "$gdb_cv_os_cygwin" >&6; }
17193
17194
17195 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
17196 case ${host} in
17197   *go32* ) SER_HARDWIRE=ser-go32.o ;;
17198   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17199   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
17200   *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
17201 esac
17202
17203
17204 # libreadline needs libuser32.a in a cygwin environment
17205 WIN32LIBS=
17206 if test x"$gdb_cv_os_cygwin" = xyes; then
17207     WIN32LIBS="-luser32"
17208     case "${target}" in
17209         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17210         ;;
17211     esac
17212 fi
17213
17214 # The ser-tcp.c module requires sockets.
17215 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17216 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17217
17218 # Add ELF support to GDB, but only if BFD includes ELF support.
17219
17220   OLD_CFLAGS=$CFLAGS
17221   OLD_LDFLAGS=$LDFLAGS
17222   OLD_LIBS=$LIBS
17223   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17224   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
17225   # always want our bfd.
17226   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17227   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17228   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17229   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17230   LIBS="-lbfd -liberty -lz $intl $LIBS"
17231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
17232 $as_echo_n "checking for ELF support in BFD... " >&6; }
17233 if ${gdb_cv_var_elf+:} false; then :
17234   $as_echo_n "(cached) " >&6
17235 else
17236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h.  */
17238 #include <stdlib.h>
17239            #include <string.h>
17240            #include "bfd.h"
17241            #include "elf-bfd.h"
17242 int
17243 main ()
17244 {
17245 return bfd_get_elf_phdr_upper_bound (NULL);
17246
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 if ac_fn_c_try_link "$LINENO"; then :
17252   gdb_cv_var_elf=yes
17253 else
17254   gdb_cv_var_elf=no
17255
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext \
17258     conftest$ac_exeext conftest.$ac_ext
17259
17260 fi
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
17262 $as_echo "$gdb_cv_var_elf" >&6; }
17263   CFLAGS=$OLD_CFLAGS
17264   LDFLAGS=$OLD_LDFLAGS
17265   LIBS=$OLD_LIBS
17266 if test "$gdb_cv_var_elf" = yes; then
17267   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
17268
17269 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17270
17271   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17272   if test "$plugins" = "yes"; then
17273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17274 $as_echo_n "checking for library containing dlopen... " >&6; }
17275 if ${ac_cv_search_dlopen+:} false; then :
17276   $as_echo_n "(cached) " >&6
17277 else
17278   ac_func_search_save_LIBS=$LIBS
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h.  */
17281
17282 /* Override any GCC internal prototype to avoid an error.
17283    Use char because int might match the return type of a GCC
17284    builtin and then its argument prototype would still apply.  */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char dlopen ();
17289 int
17290 main ()
17291 {
17292 return dlopen ();
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 for ac_lib in '' dl; do
17298   if test -z "$ac_lib"; then
17299     ac_res="none required"
17300   else
17301     ac_res=-l$ac_lib
17302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17303   fi
17304   if ac_fn_c_try_link "$LINENO"; then :
17305   ac_cv_search_dlopen=$ac_res
17306 fi
17307 rm -f core conftest.err conftest.$ac_objext \
17308     conftest$ac_exeext
17309   if ${ac_cv_search_dlopen+:} false; then :
17310   break
17311 fi
17312 done
17313 if ${ac_cv_search_dlopen+:} false; then :
17314
17315 else
17316   ac_cv_search_dlopen=no
17317 fi
17318 rm conftest.$ac_ext
17319 LIBS=$ac_func_search_save_LIBS
17320 fi
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17322 $as_echo "$ac_cv_search_dlopen" >&6; }
17323 ac_res=$ac_cv_search_dlopen
17324 if test "$ac_res" != no; then :
17325   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17326
17327 fi
17328
17329   fi
17330 fi
17331
17332 # Add macho support to GDB, but only if BFD includes it.
17333
17334   OLD_CFLAGS=$CFLAGS
17335   OLD_LDFLAGS=$LDFLAGS
17336   OLD_LIBS=$LIBS
17337   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17338   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
17339   # always want our bfd.
17340   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17341   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17342   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17343   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17344   LIBS="-lbfd -liberty -lz $intl $LIBS"
17345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17346 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17347 if ${gdb_cv_var_macho+:} false; then :
17348   $as_echo_n "(cached) " >&6
17349 else
17350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351 /* end confdefs.h.  */
17352 #include <stdlib.h>
17353            #include <string.h>
17354            #include "bfd.h"
17355            #include "mach-o.h"
17356 int
17357 main ()
17358 {
17359 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17360
17361   ;
17362   return 0;
17363 }
17364 _ACEOF
17365 if ac_fn_c_try_link "$LINENO"; then :
17366   gdb_cv_var_macho=yes
17367 else
17368   gdb_cv_var_macho=no
17369
17370 fi
17371 rm -f core conftest.err conftest.$ac_objext \
17372     conftest$ac_exeext conftest.$ac_ext
17373
17374 fi
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17376 $as_echo "$gdb_cv_var_macho" >&6; }
17377   CFLAGS=$OLD_CFLAGS
17378   LDFLAGS=$OLD_LDFLAGS
17379   LIBS=$OLD_LIBS
17380 if test "$gdb_cv_var_macho" = yes; then
17381   CONFIG_OBS="$CONFIG_OBS machoread.o"
17382 fi
17383
17384 # Add any host-specific objects to GDB.
17385 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
17386
17387 # If building on ELF, look for lzma support for embedded compressed debug info.
17388 if test "$gdb_cv_var_elf" = yes; then
17389
17390 # Check whether --with-lzma was given.
17391 if test "${with_lzma+set}" = set; then :
17392   withval=$with_lzma;
17393 else
17394   with_lzma=auto
17395 fi
17396
17397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17398 $as_echo_n "checking whether to use lzma... " >&6; }
17399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17400 $as_echo "$with_lzma" >&6; }
17401
17402   if test "${with_lzma}" != no; then
17403
17404
17405
17406
17407
17408
17409
17410
17411     use_additional=yes
17412
17413   acl_save_prefix="$prefix"
17414   prefix="$acl_final_prefix"
17415   acl_save_exec_prefix="$exec_prefix"
17416   exec_prefix="$acl_final_exec_prefix"
17417
17418     eval additional_includedir=\"$includedir\"
17419     eval additional_libdir=\"$libdir\"
17420
17421   exec_prefix="$acl_save_exec_prefix"
17422   prefix="$acl_save_prefix"
17423
17424
17425 # Check whether --with-liblzma-prefix was given.
17426 if test "${with_liblzma_prefix+set}" = set; then :
17427   withval=$with_liblzma_prefix;
17428     if test "X$withval" = "Xno"; then
17429       use_additional=no
17430     else
17431       if test "X$withval" = "X"; then
17432
17433   acl_save_prefix="$prefix"
17434   prefix="$acl_final_prefix"
17435   acl_save_exec_prefix="$exec_prefix"
17436   exec_prefix="$acl_final_exec_prefix"
17437
17438           eval additional_includedir=\"$includedir\"
17439           eval additional_libdir=\"$libdir\"
17440
17441   exec_prefix="$acl_save_exec_prefix"
17442   prefix="$acl_save_prefix"
17443
17444       else
17445         additional_includedir="$withval/include"
17446         additional_libdir="$withval/lib"
17447       fi
17448     fi
17449
17450 fi
17451
17452
17453 # Check whether --with-liblzma-type was given.
17454 if test "${with_liblzma_type+set}" = set; then :
17455   withval=$with_liblzma_type;  with_liblzma_type=$withval
17456 else
17457    with_liblzma_type=auto
17458 fi
17459
17460   lib_type=`eval echo \$with_liblzma_type`
17461
17462       LIBLZMA=
17463   LTLIBLZMA=
17464   INCLZMA=
17465   rpathdirs=
17466   ltrpathdirs=
17467   names_already_handled=
17468   names_next_round='lzma '
17469   while test -n "$names_next_round"; do
17470     names_this_round="$names_next_round"
17471     names_next_round=
17472     for name in $names_this_round; do
17473       already_handled=
17474       for n in $names_already_handled; do
17475         if test "$n" = "$name"; then
17476           already_handled=yes
17477           break
17478         fi
17479       done
17480       if test -z "$already_handled"; then
17481         names_already_handled="$names_already_handled $name"
17482                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17483         eval value=\"\$HAVE_LIB$uppername\"
17484         if test -n "$value"; then
17485           if test "$value" = yes; then
17486             eval value=\"\$LIB$uppername\"
17487             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
17488             eval value=\"\$LTLIB$uppername\"
17489             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17490           else
17491                                     :
17492           fi
17493         else
17494                               found_dir=
17495           found_la=
17496           found_so=
17497           found_a=
17498           if test $use_additional = yes; then
17499             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17500               found_dir="$additional_libdir"
17501               found_so="$additional_libdir/lib$name.$shlibext"
17502               if test -f "$additional_libdir/lib$name.la"; then
17503                 found_la="$additional_libdir/lib$name.la"
17504               fi
17505             elif test x$lib_type != xshared; then
17506               if test -f "$additional_libdir/lib$name.$libext"; then
17507                 found_dir="$additional_libdir"
17508                 found_a="$additional_libdir/lib$name.$libext"
17509                 if test -f "$additional_libdir/lib$name.la"; then
17510                   found_la="$additional_libdir/lib$name.la"
17511                 fi
17512               fi
17513             fi
17514           fi
17515           if test "X$found_dir" = "X"; then
17516             for x in $LDFLAGS $LTLIBLZMA; do
17517
17518   acl_save_prefix="$prefix"
17519   prefix="$acl_final_prefix"
17520   acl_save_exec_prefix="$exec_prefix"
17521   exec_prefix="$acl_final_exec_prefix"
17522   eval x=\"$x\"
17523   exec_prefix="$acl_save_exec_prefix"
17524   prefix="$acl_save_prefix"
17525
17526               case "$x" in
17527                 -L*)
17528                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17529                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17530                     found_dir="$dir"
17531                     found_so="$dir/lib$name.$shlibext"
17532                     if test -f "$dir/lib$name.la"; then
17533                       found_la="$dir/lib$name.la"
17534                     fi
17535                   elif test x$lib_type != xshared; then
17536                     if test -f "$dir/lib$name.$libext"; then
17537                       found_dir="$dir"
17538                       found_a="$dir/lib$name.$libext"
17539                       if test -f "$dir/lib$name.la"; then
17540                         found_la="$dir/lib$name.la"
17541                       fi
17542                     fi
17543                   fi
17544                   ;;
17545               esac
17546               if test "X$found_dir" != "X"; then
17547                 break
17548               fi
17549             done
17550           fi
17551           if test "X$found_dir" != "X"; then
17552                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17553             if test "X$found_so" != "X"; then
17554                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17555                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17556               else
17557                                                                                 haveit=
17558                 for x in $ltrpathdirs; do
17559                   if test "X$x" = "X$found_dir"; then
17560                     haveit=yes
17561                     break
17562                   fi
17563                 done
17564                 if test -z "$haveit"; then
17565                   ltrpathdirs="$ltrpathdirs $found_dir"
17566                 fi
17567                                 if test "$hardcode_direct" = yes; then
17568                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17569                 else
17570                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17571                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17572                                                             haveit=
17573                     for x in $rpathdirs; do
17574                       if test "X$x" = "X$found_dir"; then
17575                         haveit=yes
17576                         break
17577                       fi
17578                     done
17579                     if test -z "$haveit"; then
17580                       rpathdirs="$rpathdirs $found_dir"
17581                     fi
17582                   else
17583                                                                                 haveit=
17584                     for x in $LDFLAGS $LIBLZMA; do
17585
17586   acl_save_prefix="$prefix"
17587   prefix="$acl_final_prefix"
17588   acl_save_exec_prefix="$exec_prefix"
17589   exec_prefix="$acl_final_exec_prefix"
17590   eval x=\"$x\"
17591   exec_prefix="$acl_save_exec_prefix"
17592   prefix="$acl_save_prefix"
17593
17594                       if test "X$x" = "X-L$found_dir"; then
17595                         haveit=yes
17596                         break
17597                       fi
17598                     done
17599                     if test -z "$haveit"; then
17600                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17601                     fi
17602                     if test "$hardcode_minus_L" != no; then
17603                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
17604                     else
17605                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
17606                     fi
17607                   fi
17608                 fi
17609               fi
17610             else
17611               if test "X$found_a" != "X"; then
17612                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
17613               else
17614                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17615               fi
17616             fi
17617                         additional_includedir=
17618             case "$found_dir" in
17619               */lib | */lib/)
17620                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17621                 additional_includedir="$basedir/include"
17622                 ;;
17623             esac
17624             if test "X$additional_includedir" != "X"; then
17625                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17626                 haveit=
17627                 if test "X$additional_includedir" = "X/usr/local/include"; then
17628                   if test -n "$GCC"; then
17629                     case $host_os in
17630                       linux*) haveit=yes;;
17631                     esac
17632                   fi
17633                 fi
17634                 if test -z "$haveit"; then
17635                   for x in $CPPFLAGS $INCLZMA; do
17636
17637   acl_save_prefix="$prefix"
17638   prefix="$acl_final_prefix"
17639   acl_save_exec_prefix="$exec_prefix"
17640   exec_prefix="$acl_final_exec_prefix"
17641   eval x=\"$x\"
17642   exec_prefix="$acl_save_exec_prefix"
17643   prefix="$acl_save_prefix"
17644
17645                     if test "X$x" = "X-I$additional_includedir"; then
17646                       haveit=yes
17647                       break
17648                     fi
17649                   done
17650                   if test -z "$haveit"; then
17651                     if test -d "$additional_includedir"; then
17652                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17653                     fi
17654                   fi
17655                 fi
17656               fi
17657             fi
17658                         if test -n "$found_la"; then
17659                                                         save_libdir="$libdir"
17660               case "$found_la" in
17661                 */* | *\\*) . "$found_la" ;;
17662                 *) . "./$found_la" ;;
17663               esac
17664               libdir="$save_libdir"
17665                             for dep in $dependency_libs; do
17666                 case "$dep" in
17667                   -L*)
17668                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17669                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17670                       haveit=
17671                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17672                         if test -n "$GCC"; then
17673                           case $host_os in
17674                             linux*) haveit=yes;;
17675                           esac
17676                         fi
17677                       fi
17678                       if test -z "$haveit"; then
17679                         haveit=
17680                         for x in $LDFLAGS $LIBLZMA; do
17681
17682   acl_save_prefix="$prefix"
17683   prefix="$acl_final_prefix"
17684   acl_save_exec_prefix="$exec_prefix"
17685   exec_prefix="$acl_final_exec_prefix"
17686   eval x=\"$x\"
17687   exec_prefix="$acl_save_exec_prefix"
17688   prefix="$acl_save_prefix"
17689
17690                           if test "X$x" = "X-L$additional_libdir"; then
17691                             haveit=yes
17692                             break
17693                           fi
17694                         done
17695                         if test -z "$haveit"; then
17696                           if test -d "$additional_libdir"; then
17697                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17698                           fi
17699                         fi
17700                         haveit=
17701                         for x in $LDFLAGS $LTLIBLZMA; do
17702
17703   acl_save_prefix="$prefix"
17704   prefix="$acl_final_prefix"
17705   acl_save_exec_prefix="$exec_prefix"
17706   exec_prefix="$acl_final_exec_prefix"
17707   eval x=\"$x\"
17708   exec_prefix="$acl_save_exec_prefix"
17709   prefix="$acl_save_prefix"
17710
17711                           if test "X$x" = "X-L$additional_libdir"; then
17712                             haveit=yes
17713                             break
17714                           fi
17715                         done
17716                         if test -z "$haveit"; then
17717                           if test -d "$additional_libdir"; then
17718                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17719                           fi
17720                         fi
17721                       fi
17722                     fi
17723                     ;;
17724                   -R*)
17725                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17726                     if test "$enable_rpath" != no; then
17727                                                                   haveit=
17728                       for x in $rpathdirs; do
17729                         if test "X$x" = "X$dir"; then
17730                           haveit=yes
17731                           break
17732                         fi
17733                       done
17734                       if test -z "$haveit"; then
17735                         rpathdirs="$rpathdirs $dir"
17736                       fi
17737                                                                   haveit=
17738                       for x in $ltrpathdirs; do
17739                         if test "X$x" = "X$dir"; then
17740                           haveit=yes
17741                           break
17742                         fi
17743                       done
17744                       if test -z "$haveit"; then
17745                         ltrpathdirs="$ltrpathdirs $dir"
17746                       fi
17747                     fi
17748                     ;;
17749                   -l*)
17750                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17751                     ;;
17752                   *.la)
17753                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17754                     ;;
17755                   *)
17756                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
17757                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17758                     ;;
17759                 esac
17760               done
17761             fi
17762           else
17763                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17764               LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
17765               LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17766             else
17767               LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17768               LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17769             fi
17770           fi
17771         fi
17772       fi
17773     done
17774   done
17775   if test "X$rpathdirs" != "X"; then
17776     if test -n "$hardcode_libdir_separator"; then
17777                         alldirs=
17778       for found_dir in $rpathdirs; do
17779         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17780       done
17781             acl_save_libdir="$libdir"
17782       libdir="$alldirs"
17783       eval flag=\"$hardcode_libdir_flag_spec\"
17784       libdir="$acl_save_libdir"
17785       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
17786     else
17787             for found_dir in $rpathdirs; do
17788         acl_save_libdir="$libdir"
17789         libdir="$found_dir"
17790         eval flag=\"$hardcode_libdir_flag_spec\"
17791         libdir="$acl_save_libdir"
17792         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
17793       done
17794     fi
17795   fi
17796   if test "X$ltrpathdirs" != "X"; then
17797             for found_dir in $ltrpathdirs; do
17798       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17799     done
17800   fi
17801
17802
17803         ac_save_CPPFLAGS="$CPPFLAGS"
17804
17805   for element in $INCLZMA; do
17806     haveit=
17807     for x in $CPPFLAGS; do
17808
17809   acl_save_prefix="$prefix"
17810   prefix="$acl_final_prefix"
17811   acl_save_exec_prefix="$exec_prefix"
17812   exec_prefix="$acl_final_exec_prefix"
17813   eval x=\"$x\"
17814   exec_prefix="$acl_save_exec_prefix"
17815   prefix="$acl_save_prefix"
17816
17817       if test "X$x" = "X$element"; then
17818         haveit=yes
17819         break
17820       fi
17821     done
17822     if test -z "$haveit"; then
17823       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17824     fi
17825   done
17826
17827
17828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17829 $as_echo_n "checking for liblzma... " >&6; }
17830 if ${ac_cv_liblzma+:} false; then :
17831   $as_echo_n "(cached) " >&6
17832 else
17833
17834     ac_save_LIBS="$LIBS"
17835     LIBS="$LIBS $LIBLZMA"
17836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h.  */
17838 #include "lzma.h"
17839 int
17840 main ()
17841 {
17842 lzma_index_iter iter;
17843                            lzma_index_iter_init (&iter, 0);
17844                            lzma_mf_is_supported (LZMA_MF_HC3);
17845   ;
17846   return 0;
17847 }
17848 _ACEOF
17849 if ac_fn_c_try_link "$LINENO"; then :
17850   ac_cv_liblzma=yes
17851 else
17852   ac_cv_liblzma=no
17853 fi
17854 rm -f core conftest.err conftest.$ac_objext \
17855     conftest$ac_exeext conftest.$ac_ext
17856     LIBS="$ac_save_LIBS"
17857
17858 fi
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17860 $as_echo "$ac_cv_liblzma" >&6; }
17861   if test "$ac_cv_liblzma" = yes; then
17862     HAVE_LIBLZMA=yes
17863
17864 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17865
17866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17867 $as_echo_n "checking how to link with liblzma... " >&6; }
17868     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17869 $as_echo "$LIBLZMA" >&6; }
17870   else
17871     HAVE_LIBLZMA=no
17872             CPPFLAGS="$ac_save_CPPFLAGS"
17873     LIBLZMA=
17874     LTLIBLZMA=
17875   fi
17876
17877
17878
17879
17880
17881
17882     if test "$HAVE_LIBLZMA" != yes; then
17883       if test "$with_lzma" = yes; then
17884         as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
17885       fi
17886     fi
17887   fi
17888 fi
17889
17890 LIBGUI="../libgui/src/libgui.a"
17891 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
17892
17893
17894
17895 WIN32LDAPP=
17896
17897
17898
17899 case "${host}" in
17900 *-*-cygwin* | *-*-mingw* )
17901     configdir="win"
17902     ;;
17903 *)
17904     configdir="unix"
17905     ;;
17906 esac
17907
17908 GDBTKLIBS=
17909 if test "${enable_gdbtk}" = "yes"; then
17910
17911     # Gdbtk must have an absolute path to srcdir in order to run
17912     # properly when not installed.
17913     here=`pwd`
17914     cd ${srcdir}
17915     GDBTK_SRC_DIR=`pwd`
17916     cd $here
17917
17918
17919     #
17920     # Ok, lets find the tcl configuration
17921     # First, look for one uninstalled.
17922     # the alternative search directory is invoked by --with-tcl
17923     #
17924
17925     if test x"${no_tcl}" = x ; then
17926         # we reset no_tcl in case something fails here
17927         no_tcl=true
17928
17929 # Check whether --with-tcl was given.
17930 if test "${with_tcl+set}" = set; then :
17931   withval=$with_tcl; with_tclconfig=${withval}
17932 fi
17933
17934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17935 $as_echo_n "checking for Tcl configuration... " >&6; }
17936         if ${ac_cv_c_tclconfig+:} false; then :
17937   $as_echo_n "(cached) " >&6
17938 else
17939
17940
17941             # First check to see if --with-tcl was specified.
17942             case "${host}" in
17943                 *-*-cygwin*) platDir="win" ;;
17944                 *) platDir="unix" ;;
17945             esac
17946             if test x"${with_tclconfig}" != x ; then
17947                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17948                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
17949                 else
17950                     as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17951                 fi
17952             fi
17953
17954             # then check for a private Tcl installation
17955             if test x"${ac_cv_c_tclconfig}" = x ; then
17956                 for i in \
17957                         ../tcl \
17958                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17959                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17960                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17961                         ../../tcl \
17962                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17963                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17964                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17965                         ../../../tcl \
17966                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17967                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17968                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17969                     if test -f "$i/$platDir/tclConfig.sh" ; then
17970                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
17971                         break
17972                     fi
17973                 done
17974             fi
17975
17976             # on Darwin, check in Framework installation locations
17977             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
17978                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
17979                         `ls -d /Library/Frameworks 2>/dev/null` \
17980                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
17981                         `ls -d /System/Library/Frameworks 2>/dev/null` \
17982                         ; do
17983                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17984                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
17985                         break
17986                     fi
17987                 done
17988             fi
17989
17990             # check in a few common install locations
17991             if test x"${ac_cv_c_tclconfig}" = x ; then
17992                 for i in `ls -d ${libdir} 2>/dev/null` \
17993                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
17994                         `ls -d ${prefix}/lib 2>/dev/null` \
17995                         `ls -d /usr/local/lib 2>/dev/null` \
17996                         `ls -d /usr/contrib/lib 2>/dev/null` \
17997                         `ls -d /usr/lib 2>/dev/null` \
17998                         ; do
17999                     if test -f "$i/tclConfig.sh" ; then
18000                         ac_cv_c_tclconfig=`(cd $i; pwd)`
18001                         break
18002                     fi
18003                 done
18004             fi
18005
18006             # check in a few other private locations
18007             if test x"${ac_cv_c_tclconfig}" = x ; then
18008                 for i in \
18009                         ${srcdir}/../tcl \
18010                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18011                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
18012                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
18013                     if test -f "$i/$platDir/tclConfig.sh" ; then
18014                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
18015                     break
18016                 fi
18017                 done
18018             fi
18019
18020 fi
18021
18022
18023         if test x"${ac_cv_c_tclconfig}" = x ; then
18024             TCL_BIN_DIR="# no Tcl configs found"
18025             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
18026 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18027         else
18028             no_tcl=
18029             TCL_BIN_DIR=${ac_cv_c_tclconfig}
18030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
18031 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18032         fi
18033     fi
18034
18035
18036     # If $no_tk is nonempty, then we can't do Tk, and there is no
18037     # point to doing Tcl.
18038
18039     #
18040     # Ok, lets find the tk configuration
18041     # First, look for one uninstalled.
18042     # the alternative search directory is invoked by --with-tk
18043     #
18044
18045     if test x"${no_tk}" = x ; then
18046         # we reset no_tk in case something fails here
18047         no_tk=true
18048
18049 # Check whether --with-tk was given.
18050 if test "${with_tk+set}" = set; then :
18051   withval=$with_tk; with_tkconfig=${withval}
18052 fi
18053
18054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18055 $as_echo_n "checking for Tk configuration... " >&6; }
18056         if ${ac_cv_c_tkconfig+:} false; then :
18057   $as_echo_n "(cached) " >&6
18058 else
18059
18060
18061             # First check to see if --with-tkconfig was specified.
18062             if test x"${with_tkconfig}" != x ; then
18063                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18064                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
18065                 else
18066                     as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18067                 fi
18068             fi
18069
18070             # then check for a private Tk library
18071             case "${host}" in
18072                 *-*-cygwin*) platDir="win" ;;
18073                 *) platDir="unix" ;;
18074             esac
18075             if test x"${ac_cv_c_tkconfig}" = x ; then
18076                 for i in \
18077                         ../tk \
18078                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18079                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18080                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18081                         ../../tk \
18082                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18083                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18084                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18085                         ../../../tk \
18086                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18087                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18088                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18089                     if test -f "$i/$platDir/tkConfig.sh" ; then
18090                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
18091                         break
18092                     fi
18093                 done
18094             fi
18095
18096             # on Darwin, check in Framework installation locations
18097             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
18098                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
18099                         `ls -d /Library/Frameworks 2>/dev/null` \
18100                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
18101                         `ls -d /System/Library/Frameworks 2>/dev/null` \
18102                         ; do
18103                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
18104                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
18105                         break
18106                     fi
18107                 done
18108             fi
18109
18110             # check in a few common install locations
18111             if test x"${ac_cv_c_tkconfig}" = x ; then
18112                 for i in `ls -d ${libdir} 2>/dev/null` \
18113                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
18114                         `ls -d ${prefix}/lib 2>/dev/null` \
18115                         `ls -d /usr/local/lib 2>/dev/null` \
18116                         `ls -d /usr/contrib/lib 2>/dev/null` \
18117                         `ls -d /usr/lib 2>/dev/null` \
18118                         ; do
18119                     if test -f "$i/tkConfig.sh" ; then
18120                         ac_cv_c_tkconfig=`(cd $i; pwd)`
18121                         break
18122                     fi
18123                 done
18124             fi
18125             # check in a few other private locations
18126             if test x"${ac_cv_c_tkconfig}" = x ; then
18127                 for i in \
18128                         ${srcdir}/../tk \
18129                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18130                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18131                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18132                     if test -f "$i/$platDir/tkConfig.sh" ; then
18133                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
18134                         break
18135                     fi
18136                 done
18137             fi
18138
18139 fi
18140
18141
18142         if test x"${ac_cv_c_tkconfig}" = x ; then
18143             TK_BIN_DIR="# no Tk configs found"
18144             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18145 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18146         else
18147             no_tk=
18148             TK_BIN_DIR=${ac_cv_c_tkconfig}
18149             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18150 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18151         fi
18152     fi
18153
18154
18155     if test -z "${no_tcl}" -a -z "${no_tk}"; then
18156
18157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18158 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18159
18160     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18162 $as_echo "loading" >&6; }
18163         . ${TCL_BIN_DIR}/tclConfig.sh
18164     else
18165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18166 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18167     fi
18168
18169     # eval is required to do the TCL_DBGX substitution
18170     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18171     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18172
18173     # If the TCL_BIN_DIR is the build directory (not the install directory),
18174     # then set the common variable name to the value of the build variables.
18175     # For example, the variable TCL_LIB_SPEC will be set to the value
18176     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18177     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18178     # installed and uninstalled version of Tcl.
18179     if test -f "${TCL_BIN_DIR}/Makefile" ; then
18180         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
18181         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
18182         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
18183     elif test "`uname -s`" = "Darwin"; then
18184         # If Tcl was built as a framework, attempt to use the libraries
18185         # from the framework at the given location so that linking works
18186         # against Tcl.framework installed in an arbitrary location.
18187         case ${TCL_DEFS} in
18188             *TCL_FRAMEWORK*)
18189                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18190                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
18191                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18192                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18193                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18194                             break
18195                         fi
18196                     done
18197                 fi
18198                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18199                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18200                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18201                 fi
18202                 ;;
18203         esac
18204     fi
18205
18206     # eval is required to do the TCL_DBGX substitution
18207     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18208     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18209     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18210     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226         # Check for in-tree tcl
18227         here=`pwd`
18228         cd ${srcdir}/..
18229         topdir=`pwd`
18230         cd ${here}
18231
18232         intree="no"
18233         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18234           intree="yes"
18235         fi
18236
18237         # Find Tcl private headers
18238         if test x"${intree}" = xno; then
18239
18240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18241 $as_echo_n "checking for Tcl private headers... " >&6; }
18242   private_dir=""
18243   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18244   if test -f ${dir}/tclInt.h ; then
18245     private_dir=${dir}
18246   fi
18247
18248   if test x"${private_dir}" = x; then
18249     as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
18250   else
18251     TCL_PRIVATE_INCLUDE="-I${private_dir}"
18252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18253 $as_echo "${private_dir}" >&6; }
18254   fi
18255
18256           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18257           TCL_LIBRARY="${TCL_LIB_SPEC}"
18258           TCL_DEPS=""
18259         else
18260           # If building tcl in the same src tree, private headers
18261           # are not needed, but we need to be sure to use the right
18262           # headers library
18263           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
18264           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
18265           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
18266         fi
18267
18268
18269
18270
18271
18272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18273 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18274
18275     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18277 $as_echo "loading" >&6; }
18278         . ${TK_BIN_DIR}/tkConfig.sh
18279     else
18280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18281 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18282     fi
18283
18284     # eval is required to do the TK_DBGX substitution
18285     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18286     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18287
18288     # If the TK_BIN_DIR is the build directory (not the install directory),
18289     # then set the common variable name to the value of the build variables.
18290     # For example, the variable TK_LIB_SPEC will be set to the value
18291     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18292     # instead of TK_BUILD_LIB_SPEC since it will work with both an
18293     # installed and uninstalled version of Tcl.
18294     if test -f "${TK_BIN_DIR}/Makefile" ; then
18295         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
18296         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
18297         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
18298     elif test "`uname -s`" = "Darwin"; then
18299         # If Tk was built as a framework, attempt to use the libraries
18300         # from the framework at the given location so that linking works
18301         # against Tk.framework installed in an arbitrary location.
18302         case ${TK_DEFS} in
18303             *TK_FRAMEWORK*)
18304                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18305                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
18306                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18307                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18308                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18309                             break
18310                         fi
18311                     done
18312                 fi
18313                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18314                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18315                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18316                 fi
18317                 ;;
18318         esac
18319     fi
18320
18321     # eval is required to do the TK_DBGX substitution
18322     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18323     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18324     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18325     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340         # Check for in-tree Tk
18341         intree="no"
18342         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18343           intree="yes"
18344         fi
18345
18346         # Find Tk private headers
18347         if test x"${intree}" = xno; then
18348
18349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18350 $as_echo_n "checking for Tk private headers... " >&6; }
18351   private_dir=""
18352   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18353   if test -f ${dir}/tkInt.h; then
18354     private_dir=${dir}
18355   fi
18356
18357   if test x"${private_dir}" = x; then
18358     as_fn_error $? "could not find Tk private headers" "$LINENO" 5
18359   else
18360     TK_PRIVATE_INCLUDE="-I${private_dir}"
18361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18362 $as_echo "${private_dir}" >&6; }
18363   fi
18364
18365           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18366           TK_LIBRARY=${TK_LIB_SPEC}
18367           TK_DEPS=""
18368         else
18369           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
18370           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
18371           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
18372         fi
18373
18374
18375
18376
18377
18378         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18379
18380         # Include some libraries that Tcl and Tk want.
18381         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18382         # Yes, the ordering seems wrong here.  But it isn't.
18383         # TK_LIBS is the list of libraries that need to be linked
18384         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
18385         # were in LIBS then any link tests after this point would
18386         # try to include things like `$(LIBGUI)', which wouldn't work.
18387         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
18388
18389         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18390         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18391         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18392         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
18393         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
18394         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
18395         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
18396
18397         if test x"$gdb_cv_os_cygwin" = xyes; then
18398           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18399           WIN32LDAPP="-Wl,--subsystem,console"
18400           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
18401         fi
18402
18403         subdirs="$subdirs gdbtk"
18404
18405     fi
18406 fi
18407
18408
18409
18410
18411
18412
18413
18414
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18416 $as_echo_n "checking for X... " >&6; }
18417
18418
18419 # Check whether --with-x was given.
18420 if test "${with_x+set}" = set; then :
18421   withval=$with_x;
18422 fi
18423
18424 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18425 if test "x$with_x" = xno; then
18426   # The user explicitly disabled X.
18427   have_x=disabled
18428 else
18429   case $x_includes,$x_libraries in #(
18430     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18431     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18432   $as_echo_n "(cached) " >&6
18433 else
18434   # One or both of the vars are not set, and there is no cached value.
18435 ac_x_includes=no ac_x_libraries=no
18436 rm -f -r conftest.dir
18437 if mkdir conftest.dir; then
18438   cd conftest.dir
18439   cat >Imakefile <<'_ACEOF'
18440 incroot:
18441         @echo incroot='${INCROOT}'
18442 usrlibdir:
18443         @echo usrlibdir='${USRLIBDIR}'
18444 libdir:
18445         @echo libdir='${LIBDIR}'
18446 _ACEOF
18447   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18448     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18449     for ac_var in incroot usrlibdir libdir; do
18450       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18451     done
18452     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18453     for ac_extension in a so sl dylib la dll; do
18454       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18455          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18456         ac_im_usrlibdir=$ac_im_libdir; break
18457       fi
18458     done
18459     # Screen out bogus values from the imake configuration.  They are
18460     # bogus both because they are the default anyway, and because
18461     # using them would break gcc on systems where it needs fixed includes.
18462     case $ac_im_incroot in
18463         /usr/include) ac_x_includes= ;;
18464         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18465     esac
18466     case $ac_im_usrlibdir in
18467         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18468         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18469     esac
18470   fi
18471   cd ..
18472   rm -f -r conftest.dir
18473 fi
18474
18475 # Standard set of common directories for X headers.
18476 # Check X11 before X11Rn because it is often a symlink to the current release.
18477 ac_x_header_dirs='
18478 /usr/X11/include
18479 /usr/X11R7/include
18480 /usr/X11R6/include
18481 /usr/X11R5/include
18482 /usr/X11R4/include
18483
18484 /usr/include/X11
18485 /usr/include/X11R7
18486 /usr/include/X11R6
18487 /usr/include/X11R5
18488 /usr/include/X11R4
18489
18490 /usr/local/X11/include
18491 /usr/local/X11R7/include
18492 /usr/local/X11R6/include
18493 /usr/local/X11R5/include
18494 /usr/local/X11R4/include
18495
18496 /usr/local/include/X11
18497 /usr/local/include/X11R7
18498 /usr/local/include/X11R6
18499 /usr/local/include/X11R5
18500 /usr/local/include/X11R4
18501
18502 /usr/X386/include
18503 /usr/x386/include
18504 /usr/XFree86/include/X11
18505
18506 /usr/include
18507 /usr/local/include
18508 /usr/unsupported/include
18509 /usr/athena/include
18510 /usr/local/x11r5/include
18511 /usr/lpp/Xamples/include
18512
18513 /usr/openwin/include
18514 /usr/openwin/share/include'
18515
18516 if test "$ac_x_includes" = no; then
18517   # Guess where to find include files, by looking for Xlib.h.
18518   # First, try using that file with no special directory specified.
18519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h.  */
18521 #include <X11/Xlib.h>
18522 _ACEOF
18523 if ac_fn_c_try_cpp "$LINENO"; then :
18524   # We can compile using X headers with no special include directory.
18525 ac_x_includes=
18526 else
18527   for ac_dir in $ac_x_header_dirs; do
18528   if test -r "$ac_dir/X11/Xlib.h"; then
18529     ac_x_includes=$ac_dir
18530     break
18531   fi
18532 done
18533 fi
18534 rm -f conftest.err conftest.i conftest.$ac_ext
18535 fi # $ac_x_includes = no
18536
18537 if test "$ac_x_libraries" = no; then
18538   # Check for the libraries.
18539   # See if we find them without any special options.
18540   # Don't add to $LIBS permanently.
18541   ac_save_LIBS=$LIBS
18542   LIBS="-lX11 $LIBS"
18543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h.  */
18545 #include <X11/Xlib.h>
18546 int
18547 main ()
18548 {
18549 XrmInitialize ()
18550   ;
18551   return 0;
18552 }
18553 _ACEOF
18554 if ac_fn_c_try_link "$LINENO"; then :
18555   LIBS=$ac_save_LIBS
18556 # We can link X programs with no special library path.
18557 ac_x_libraries=
18558 else
18559   LIBS=$ac_save_LIBS
18560 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18561 do
18562   # Don't even attempt the hair of trying to link an X program!
18563   for ac_extension in a so sl dylib la dll; do
18564     if test -r "$ac_dir/libX11.$ac_extension"; then
18565       ac_x_libraries=$ac_dir
18566       break 2
18567     fi
18568   done
18569 done
18570 fi
18571 rm -f core conftest.err conftest.$ac_objext \
18572     conftest$ac_exeext conftest.$ac_ext
18573 fi # $ac_x_libraries = no
18574
18575 case $ac_x_includes,$ac_x_libraries in #(
18576   no,* | *,no | *\'*)
18577     # Didn't find X, or a directory has "'" in its name.
18578     ac_cv_have_x="have_x=no";; #(
18579   *)
18580     # Record where we found X for the cache.
18581     ac_cv_have_x="have_x=yes\
18582         ac_x_includes='$ac_x_includes'\
18583         ac_x_libraries='$ac_x_libraries'"
18584 esac
18585 fi
18586 ;; #(
18587     *) have_x=yes;;
18588   esac
18589   eval "$ac_cv_have_x"
18590 fi # $with_x != no
18591
18592 if test "$have_x" != yes; then
18593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18594 $as_echo "$have_x" >&6; }
18595   no_x=yes
18596 else
18597   # If each of the values was on the command line, it overrides each guess.
18598   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18599   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18600   # Update the cache value to reflect the command line values.
18601   ac_cv_have_x="have_x=yes\
18602         ac_x_includes='$x_includes'\
18603         ac_x_libraries='$x_libraries'"
18604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18605 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18606 fi
18607
18608
18609 # Unlike the sim directory, whether a simulator is linked is controlled by
18610 # presence of a gdb_sim definition in the target configure.tgt entry.
18611 # This code just checks for a few cases where we'd like to ignore those
18612 # definitions, even when they're present in the '.mt' file.  These cases
18613 # are when --disable-sim is specified, or if the simulator directory is
18614 # not part of the source tree.
18615 #
18616 # Check whether --enable-sim was given.
18617 if test "${enable_sim+set}" = set; then :
18618   enableval=$enable_sim; echo "enable_sim = $enable_sim";
18619  echo "enableval = ${enableval}";
18620  case "${enableval}" in
18621   yes) ignore_sim=false ;;
18622   no)  ignore_sim=true ;;
18623   *)   ignore_sim=false ;;
18624  esac
18625 else
18626   ignore_sim=false
18627 fi
18628
18629
18630 if test ! -d "${srcdir}/../sim"; then
18631   ignore_sim=true
18632 fi
18633
18634 SIM=
18635 SIM_OBS=
18636 if test "${ignore_sim}" = "false"; then
18637   if test x"${gdb_sim}" != x ; then
18638     SIM="${gdb_sim}"
18639     SIM_OBS="remote-sim.o"
18640
18641 $as_echo "#define WITH_SIM 1" >>confdefs.h
18642
18643
18644     # Some tdep code should only be compiled in when the ppc sim is
18645     # built.  PR sim/13418.
18646     case $target in
18647       powerpc*-*-*)
18648
18649 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18650
18651         ;;
18652     esac
18653   fi
18654 fi
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669 # List of host floatformats.
18670
18671 cat >>confdefs.h <<_ACEOF
18672 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18673 _ACEOF
18674
18675
18676 cat >>confdefs.h <<_ACEOF
18677 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18678 _ACEOF
18679
18680
18681 cat >>confdefs.h <<_ACEOF
18682 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18683 _ACEOF
18684
18685
18686 # target_subdir is used by the testsuite to find the target libraries.
18687 target_subdir=
18688 if test "${host}" != "${target}"; then
18689     target_subdir="${target_alias}/"
18690 fi
18691
18692
18693 # Import nat definitions.
18694 nat_makefile_frag=/dev/null
18695 if test "${gdb_native}" = "yes"; then
18696   . ${srcdir}/configure.nat
18697   nativefile=$NAT_FILE
18698 fi
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710 if test x"${gdb_osabi}" != x ; then
18711
18712 cat >>confdefs.h <<_ACEOF
18713 #define GDB_OSABI_DEFAULT $gdb_osabi
18714 _ACEOF
18715
18716 fi
18717
18718 # Check for babeltrace and babeltrace-ctf
18719
18720 # Check whether --with-babeltrace was given.
18721 if test "${with_babeltrace+set}" = set; then :
18722   withval=$with_babeltrace;
18723 else
18724   with_babeltrace=auto
18725 fi
18726
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18728 $as_echo_n "checking whether to use babeltrace... " >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18730 $as_echo "$with_babeltrace" >&6; }
18731
18732 if test "x$with_babeltrace" = "xno"; then
18733   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18734 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18735 else
18736   # Append -Werror to CFLAGS so that configure can catch the warning
18737   # "assignment from incompatible pointer type", which is related to
18738   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
18739   # in GDB, while babeltrace 1.0.3 is broken.
18740   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18741   # safe to save and restore CFLAGS here.
18742   saved_CFLAGS=$CFLAGS
18743   CFLAGS="$CFLAGS -Werror"
18744
18745
18746
18747
18748
18749
18750
18751
18752     use_additional=yes
18753
18754   acl_save_prefix="$prefix"
18755   prefix="$acl_final_prefix"
18756   acl_save_exec_prefix="$exec_prefix"
18757   exec_prefix="$acl_final_exec_prefix"
18758
18759     eval additional_includedir=\"$includedir\"
18760     eval additional_libdir=\"$libdir\"
18761
18762   exec_prefix="$acl_save_exec_prefix"
18763   prefix="$acl_save_prefix"
18764
18765
18766 # Check whether --with-libbabeltrace-prefix was given.
18767 if test "${with_libbabeltrace_prefix+set}" = set; then :
18768   withval=$with_libbabeltrace_prefix;
18769     if test "X$withval" = "Xno"; then
18770       use_additional=no
18771     else
18772       if test "X$withval" = "X"; then
18773
18774   acl_save_prefix="$prefix"
18775   prefix="$acl_final_prefix"
18776   acl_save_exec_prefix="$exec_prefix"
18777   exec_prefix="$acl_final_exec_prefix"
18778
18779           eval additional_includedir=\"$includedir\"
18780           eval additional_libdir=\"$libdir\"
18781
18782   exec_prefix="$acl_save_exec_prefix"
18783   prefix="$acl_save_prefix"
18784
18785       else
18786         additional_includedir="$withval/include"
18787         additional_libdir="$withval/lib"
18788       fi
18789     fi
18790
18791 fi
18792
18793
18794 # Check whether --with-libbabeltrace-type was given.
18795 if test "${with_libbabeltrace_type+set}" = set; then :
18796   withval=$with_libbabeltrace_type;  with_libbabeltrace_type=$withval
18797 else
18798    with_libbabeltrace_type=auto
18799 fi
18800
18801   lib_type=`eval echo \$with_libbabeltrace_type`
18802
18803       LIBBABELTRACE=
18804   LTLIBBABELTRACE=
18805   INCBABELTRACE=
18806   rpathdirs=
18807   ltrpathdirs=
18808   names_already_handled=
18809   names_next_round='babeltrace babeltrace-ctf'
18810   while test -n "$names_next_round"; do
18811     names_this_round="$names_next_round"
18812     names_next_round=
18813     for name in $names_this_round; do
18814       already_handled=
18815       for n in $names_already_handled; do
18816         if test "$n" = "$name"; then
18817           already_handled=yes
18818           break
18819         fi
18820       done
18821       if test -z "$already_handled"; then
18822         names_already_handled="$names_already_handled $name"
18823                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18824         eval value=\"\$HAVE_LIB$uppername\"
18825         if test -n "$value"; then
18826           if test "$value" = yes; then
18827             eval value=\"\$LIB$uppername\"
18828             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18829             eval value=\"\$LTLIB$uppername\"
18830             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18831           else
18832                                     :
18833           fi
18834         else
18835                               found_dir=
18836           found_la=
18837           found_so=
18838           found_a=
18839           if test $use_additional = yes; then
18840             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
18841               found_dir="$additional_libdir"
18842               found_so="$additional_libdir/lib$name.$shlibext"
18843               if test -f "$additional_libdir/lib$name.la"; then
18844                 found_la="$additional_libdir/lib$name.la"
18845               fi
18846             elif test x$lib_type != xshared; then
18847               if test -f "$additional_libdir/lib$name.$libext"; then
18848                 found_dir="$additional_libdir"
18849                 found_a="$additional_libdir/lib$name.$libext"
18850                 if test -f "$additional_libdir/lib$name.la"; then
18851                   found_la="$additional_libdir/lib$name.la"
18852                 fi
18853               fi
18854             fi
18855           fi
18856           if test "X$found_dir" = "X"; then
18857             for x in $LDFLAGS $LTLIBBABELTRACE; do
18858
18859   acl_save_prefix="$prefix"
18860   prefix="$acl_final_prefix"
18861   acl_save_exec_prefix="$exec_prefix"
18862   exec_prefix="$acl_final_exec_prefix"
18863   eval x=\"$x\"
18864   exec_prefix="$acl_save_exec_prefix"
18865   prefix="$acl_save_prefix"
18866
18867               case "$x" in
18868                 -L*)
18869                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18870                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
18871                     found_dir="$dir"
18872                     found_so="$dir/lib$name.$shlibext"
18873                     if test -f "$dir/lib$name.la"; then
18874                       found_la="$dir/lib$name.la"
18875                     fi
18876                   elif test x$lib_type != xshared; then
18877                     if test -f "$dir/lib$name.$libext"; then
18878                       found_dir="$dir"
18879                       found_a="$dir/lib$name.$libext"
18880                       if test -f "$dir/lib$name.la"; then
18881                         found_la="$dir/lib$name.la"
18882                       fi
18883                     fi
18884                   fi
18885                   ;;
18886               esac
18887               if test "X$found_dir" != "X"; then
18888                 break
18889               fi
18890             done
18891           fi
18892           if test "X$found_dir" != "X"; then
18893                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18894             if test "X$found_so" != "X"; then
18895                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18896                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18897               else
18898                                                                                 haveit=
18899                 for x in $ltrpathdirs; do
18900                   if test "X$x" = "X$found_dir"; then
18901                     haveit=yes
18902                     break
18903                   fi
18904                 done
18905                 if test -z "$haveit"; then
18906                   ltrpathdirs="$ltrpathdirs $found_dir"
18907                 fi
18908                                 if test "$hardcode_direct" = yes; then
18909                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18910                 else
18911                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18912                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18913                                                             haveit=
18914                     for x in $rpathdirs; do
18915                       if test "X$x" = "X$found_dir"; then
18916                         haveit=yes
18917                         break
18918                       fi
18919                     done
18920                     if test -z "$haveit"; then
18921                       rpathdirs="$rpathdirs $found_dir"
18922                     fi
18923                   else
18924                                                                                 haveit=
18925                     for x in $LDFLAGS $LIBBABELTRACE; do
18926
18927   acl_save_prefix="$prefix"
18928   prefix="$acl_final_prefix"
18929   acl_save_exec_prefix="$exec_prefix"
18930   exec_prefix="$acl_final_exec_prefix"
18931   eval x=\"$x\"
18932   exec_prefix="$acl_save_exec_prefix"
18933   prefix="$acl_save_prefix"
18934
18935                       if test "X$x" = "X-L$found_dir"; then
18936                         haveit=yes
18937                         break
18938                       fi
18939                     done
18940                     if test -z "$haveit"; then
18941                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18942                     fi
18943                     if test "$hardcode_minus_L" != no; then
18944                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18945                     else
18946                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18947                     fi
18948                   fi
18949                 fi
18950               fi
18951             else
18952               if test "X$found_a" != "X"; then
18953                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18954               else
18955                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18956               fi
18957             fi
18958                         additional_includedir=
18959             case "$found_dir" in
18960               */lib | */lib/)
18961                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18962                 additional_includedir="$basedir/include"
18963                 ;;
18964             esac
18965             if test "X$additional_includedir" != "X"; then
18966                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18967                 haveit=
18968                 if test "X$additional_includedir" = "X/usr/local/include"; then
18969                   if test -n "$GCC"; then
18970                     case $host_os in
18971                       linux*) haveit=yes;;
18972                     esac
18973                   fi
18974                 fi
18975                 if test -z "$haveit"; then
18976                   for x in $CPPFLAGS $INCBABELTRACE; do
18977
18978   acl_save_prefix="$prefix"
18979   prefix="$acl_final_prefix"
18980   acl_save_exec_prefix="$exec_prefix"
18981   exec_prefix="$acl_final_exec_prefix"
18982   eval x=\"$x\"
18983   exec_prefix="$acl_save_exec_prefix"
18984   prefix="$acl_save_prefix"
18985
18986                     if test "X$x" = "X-I$additional_includedir"; then
18987                       haveit=yes
18988                       break
18989                     fi
18990                   done
18991                   if test -z "$haveit"; then
18992                     if test -d "$additional_includedir"; then
18993                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18994                     fi
18995                   fi
18996                 fi
18997               fi
18998             fi
18999                         if test -n "$found_la"; then
19000                                                         save_libdir="$libdir"
19001               case "$found_la" in
19002                 */* | *\\*) . "$found_la" ;;
19003                 *) . "./$found_la" ;;
19004               esac
19005               libdir="$save_libdir"
19006                             for dep in $dependency_libs; do
19007                 case "$dep" in
19008                   -L*)
19009                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19010                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
19011                       haveit=
19012                       if test "X$additional_libdir" = "X/usr/local/lib"; then
19013                         if test -n "$GCC"; then
19014                           case $host_os in
19015                             linux*) haveit=yes;;
19016                           esac
19017                         fi
19018                       fi
19019                       if test -z "$haveit"; then
19020                         haveit=
19021                         for x in $LDFLAGS $LIBBABELTRACE; do
19022
19023   acl_save_prefix="$prefix"
19024   prefix="$acl_final_prefix"
19025   acl_save_exec_prefix="$exec_prefix"
19026   exec_prefix="$acl_final_exec_prefix"
19027   eval x=\"$x\"
19028   exec_prefix="$acl_save_exec_prefix"
19029   prefix="$acl_save_prefix"
19030
19031                           if test "X$x" = "X-L$additional_libdir"; then
19032                             haveit=yes
19033                             break
19034                           fi
19035                         done
19036                         if test -z "$haveit"; then
19037                           if test -d "$additional_libdir"; then
19038                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
19039                           fi
19040                         fi
19041                         haveit=
19042                         for x in $LDFLAGS $LTLIBBABELTRACE; do
19043
19044   acl_save_prefix="$prefix"
19045   prefix="$acl_final_prefix"
19046   acl_save_exec_prefix="$exec_prefix"
19047   exec_prefix="$acl_final_exec_prefix"
19048   eval x=\"$x\"
19049   exec_prefix="$acl_save_exec_prefix"
19050   prefix="$acl_save_prefix"
19051
19052                           if test "X$x" = "X-L$additional_libdir"; then
19053                             haveit=yes
19054                             break
19055                           fi
19056                         done
19057                         if test -z "$haveit"; then
19058                           if test -d "$additional_libdir"; then
19059                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19060                           fi
19061                         fi
19062                       fi
19063                     fi
19064                     ;;
19065                   -R*)
19066                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19067                     if test "$enable_rpath" != no; then
19068                                                                   haveit=
19069                       for x in $rpathdirs; do
19070                         if test "X$x" = "X$dir"; then
19071                           haveit=yes
19072                           break
19073                         fi
19074                       done
19075                       if test -z "$haveit"; then
19076                         rpathdirs="$rpathdirs $dir"
19077                       fi
19078                                                                   haveit=
19079                       for x in $ltrpathdirs; do
19080                         if test "X$x" = "X$dir"; then
19081                           haveit=yes
19082                           break
19083                         fi
19084                       done
19085                       if test -z "$haveit"; then
19086                         ltrpathdirs="$ltrpathdirs $dir"
19087                       fi
19088                     fi
19089                     ;;
19090                   -l*)
19091                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19092                     ;;
19093                   *.la)
19094                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19095                     ;;
19096                   *)
19097                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19098                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19099                     ;;
19100                 esac
19101               done
19102             fi
19103           else
19104                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
19105               LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19106               LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19107             else
19108               LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19109               LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19110             fi
19111           fi
19112         fi
19113       fi
19114     done
19115   done
19116   if test "X$rpathdirs" != "X"; then
19117     if test -n "$hardcode_libdir_separator"; then
19118                         alldirs=
19119       for found_dir in $rpathdirs; do
19120         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19121       done
19122             acl_save_libdir="$libdir"
19123       libdir="$alldirs"
19124       eval flag=\"$hardcode_libdir_flag_spec\"
19125       libdir="$acl_save_libdir"
19126       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19127     else
19128             for found_dir in $rpathdirs; do
19129         acl_save_libdir="$libdir"
19130         libdir="$found_dir"
19131         eval flag=\"$hardcode_libdir_flag_spec\"
19132         libdir="$acl_save_libdir"
19133         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19134       done
19135     fi
19136   fi
19137   if test "X$ltrpathdirs" != "X"; then
19138             for found_dir in $ltrpathdirs; do
19139       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19140     done
19141   fi
19142
19143
19144         ac_save_CPPFLAGS="$CPPFLAGS"
19145
19146   for element in $INCBABELTRACE; do
19147     haveit=
19148     for x in $CPPFLAGS; do
19149
19150   acl_save_prefix="$prefix"
19151   prefix="$acl_final_prefix"
19152   acl_save_exec_prefix="$exec_prefix"
19153   exec_prefix="$acl_final_exec_prefix"
19154   eval x=\"$x\"
19155   exec_prefix="$acl_save_exec_prefix"
19156   prefix="$acl_save_prefix"
19157
19158       if test "X$x" = "X$element"; then
19159         haveit=yes
19160         break
19161       fi
19162     done
19163     if test -z "$haveit"; then
19164       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19165     fi
19166   done
19167
19168
19169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19170 $as_echo_n "checking for libbabeltrace... " >&6; }
19171 if ${ac_cv_libbabeltrace+:} false; then :
19172   $as_echo_n "(cached) " >&6
19173 else
19174
19175     ac_save_LIBS="$LIBS"
19176     LIBS="$LIBS $LIBBABELTRACE"
19177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h.  */
19179 #include <babeltrace/babeltrace.h>
19180                          #include <babeltrace/ctf/events.h>
19181                          #include <babeltrace/ctf/iterator.h>
19182 int
19183 main ()
19184 {
19185 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19186                         struct bt_ctf_event *event = NULL;
19187                         const struct bt_definition *scope;
19188
19189                         pos->type = BT_SEEK_BEGIN;
19190                         bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19191                         scope = bt_ctf_get_top_level_scope (event,
19192                                                            BT_STREAM_EVENT_HEADER);
19193                         bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19194
19195   ;
19196   return 0;
19197 }
19198 _ACEOF
19199 if ac_fn_c_try_link "$LINENO"; then :
19200   ac_cv_libbabeltrace=yes
19201 else
19202   ac_cv_libbabeltrace=no
19203 fi
19204 rm -f core conftest.err conftest.$ac_objext \
19205     conftest$ac_exeext conftest.$ac_ext
19206     LIBS="$ac_save_LIBS"
19207
19208 fi
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19210 $as_echo "$ac_cv_libbabeltrace" >&6; }
19211   if test "$ac_cv_libbabeltrace" = yes; then
19212     HAVE_LIBBABELTRACE=yes
19213
19214 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19215
19216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19217 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19219 $as_echo "$LIBBABELTRACE" >&6; }
19220   else
19221     HAVE_LIBBABELTRACE=no
19222             CPPFLAGS="$ac_save_CPPFLAGS"
19223     LIBBABELTRACE=
19224     LTLIBBABELTRACE=
19225   fi
19226
19227
19228
19229
19230
19231
19232   CFLAGS=$saved_CFLAGS
19233
19234   if test "$HAVE_LIBBABELTRACE" != yes; then
19235      if test "$with_babeltrace" = yes; then
19236        as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
19237      else
19238        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19239 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19240      fi
19241   fi
19242 fi
19243
19244 # Check for xxhash
19245
19246 # Check whether --with-xxhash was given.
19247 if test "${with_xxhash+set}" = set; then :
19248   withval=$with_xxhash;
19249 else
19250   with_xxhash=auto
19251 fi
19252
19253
19254  # Check whether --enable-libctf was given.
19255 if test "${enable_libctf+set}" = set; then :
19256   enableval=$enable_libctf;
19257       case "$enableval" in
19258        yes|no) ;;
19259        *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19260       esac
19261
19262 else
19263   enable_libctf=yes
19264 fi
19265
19266
19267 if test x${enable_static} = xno; then
19268   LIBCTF="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19269   CTF_DEPS="../libctf/.libs/libctf.so"
19270 else
19271   LIBCTF="../libctf/.libs/libctf.a"
19272   CTF_DEPS="$LIBCTF"
19273 fi
19274 if test "${enable_libctf}" = yes; then
19275
19276 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19277
19278 else
19279   LIBCTF=
19280   CTF_DEPS=
19281 fi
19282
19283
19284
19285
19286 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19287 # empty version.
19288
19289 if test "x$with_xxhash" != "xno"; then
19290
19291
19292
19293
19294
19295
19296
19297
19298     use_additional=yes
19299
19300   acl_save_prefix="$prefix"
19301   prefix="$acl_final_prefix"
19302   acl_save_exec_prefix="$exec_prefix"
19303   exec_prefix="$acl_final_exec_prefix"
19304
19305     eval additional_includedir=\"$includedir\"
19306     eval additional_libdir=\"$libdir\"
19307
19308   exec_prefix="$acl_save_exec_prefix"
19309   prefix="$acl_save_prefix"
19310
19311
19312 # Check whether --with-libxxhash-prefix was given.
19313 if test "${with_libxxhash_prefix+set}" = set; then :
19314   withval=$with_libxxhash_prefix;
19315     if test "X$withval" = "Xno"; then
19316       use_additional=no
19317     else
19318       if test "X$withval" = "X"; then
19319
19320   acl_save_prefix="$prefix"
19321   prefix="$acl_final_prefix"
19322   acl_save_exec_prefix="$exec_prefix"
19323   exec_prefix="$acl_final_exec_prefix"
19324
19325           eval additional_includedir=\"$includedir\"
19326           eval additional_libdir=\"$libdir\"
19327
19328   exec_prefix="$acl_save_exec_prefix"
19329   prefix="$acl_save_prefix"
19330
19331       else
19332         additional_includedir="$withval/include"
19333         additional_libdir="$withval/lib"
19334       fi
19335     fi
19336
19337 fi
19338
19339
19340 # Check whether --with-libxxhash-type was given.
19341 if test "${with_libxxhash_type+set}" = set; then :
19342   withval=$with_libxxhash_type;  with_libxxhash_type=$withval
19343 else
19344    with_libxxhash_type=auto
19345 fi
19346
19347   lib_type=`eval echo \$with_libxxhash_type`
19348
19349       LIBXXHASH=
19350   LTLIBXXHASH=
19351   INCXXHASH=
19352   rpathdirs=
19353   ltrpathdirs=
19354   names_already_handled=
19355   names_next_round='xxhash '
19356   while test -n "$names_next_round"; do
19357     names_this_round="$names_next_round"
19358     names_next_round=
19359     for name in $names_this_round; do
19360       already_handled=
19361       for n in $names_already_handled; do
19362         if test "$n" = "$name"; then
19363           already_handled=yes
19364           break
19365         fi
19366       done
19367       if test -z "$already_handled"; then
19368         names_already_handled="$names_already_handled $name"
19369                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19370         eval value=\"\$HAVE_LIB$uppername\"
19371         if test -n "$value"; then
19372           if test "$value" = yes; then
19373             eval value=\"\$LIB$uppername\"
19374             test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
19375             eval value=\"\$LTLIB$uppername\"
19376             test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19377           else
19378                                     :
19379           fi
19380         else
19381                               found_dir=
19382           found_la=
19383           found_so=
19384           found_a=
19385           if test $use_additional = yes; then
19386             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19387               found_dir="$additional_libdir"
19388               found_so="$additional_libdir/lib$name.$shlibext"
19389               if test -f "$additional_libdir/lib$name.la"; then
19390                 found_la="$additional_libdir/lib$name.la"
19391               fi
19392             elif test x$lib_type != xshared; then
19393               if test -f "$additional_libdir/lib$name.$libext"; then
19394                 found_dir="$additional_libdir"
19395                 found_a="$additional_libdir/lib$name.$libext"
19396                 if test -f "$additional_libdir/lib$name.la"; then
19397                   found_la="$additional_libdir/lib$name.la"
19398                 fi
19399               fi
19400             fi
19401           fi
19402           if test "X$found_dir" = "X"; then
19403             for x in $LDFLAGS $LTLIBXXHASH; do
19404
19405   acl_save_prefix="$prefix"
19406   prefix="$acl_final_prefix"
19407   acl_save_exec_prefix="$exec_prefix"
19408   exec_prefix="$acl_final_exec_prefix"
19409   eval x=\"$x\"
19410   exec_prefix="$acl_save_exec_prefix"
19411   prefix="$acl_save_prefix"
19412
19413               case "$x" in
19414                 -L*)
19415                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19416                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
19417                     found_dir="$dir"
19418                     found_so="$dir/lib$name.$shlibext"
19419                     if test -f "$dir/lib$name.la"; then
19420                       found_la="$dir/lib$name.la"
19421                     fi
19422                   elif test x$lib_type != xshared; then
19423                     if test -f "$dir/lib$name.$libext"; then
19424                       found_dir="$dir"
19425                       found_a="$dir/lib$name.$libext"
19426                       if test -f "$dir/lib$name.la"; then
19427                         found_la="$dir/lib$name.la"
19428                       fi
19429                     fi
19430                   fi
19431                   ;;
19432               esac
19433               if test "X$found_dir" != "X"; then
19434                 break
19435               fi
19436             done
19437           fi
19438           if test "X$found_dir" != "X"; then
19439                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19440             if test "X$found_so" != "X"; then
19441                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
19442                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19443               else
19444                                                                                 haveit=
19445                 for x in $ltrpathdirs; do
19446                   if test "X$x" = "X$found_dir"; then
19447                     haveit=yes
19448                     break
19449                   fi
19450                 done
19451                 if test -z "$haveit"; then
19452                   ltrpathdirs="$ltrpathdirs $found_dir"
19453                 fi
19454                                 if test "$hardcode_direct" = yes; then
19455                                                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19456                 else
19457                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19458                                                             LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19459                                                             haveit=
19460                     for x in $rpathdirs; do
19461                       if test "X$x" = "X$found_dir"; then
19462                         haveit=yes
19463                         break
19464                       fi
19465                     done
19466                     if test -z "$haveit"; then
19467                       rpathdirs="$rpathdirs $found_dir"
19468                     fi
19469                   else
19470                                                                                 haveit=
19471                     for x in $LDFLAGS $LIBXXHASH; do
19472
19473   acl_save_prefix="$prefix"
19474   prefix="$acl_final_prefix"
19475   acl_save_exec_prefix="$exec_prefix"
19476   exec_prefix="$acl_final_exec_prefix"
19477   eval x=\"$x\"
19478   exec_prefix="$acl_save_exec_prefix"
19479   prefix="$acl_save_prefix"
19480
19481                       if test "X$x" = "X-L$found_dir"; then
19482                         haveit=yes
19483                         break
19484                       fi
19485                     done
19486                     if test -z "$haveit"; then
19487                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19488                     fi
19489                     if test "$hardcode_minus_L" != no; then
19490                                                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19491                     else
19492                                                                                                                                                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19493                     fi
19494                   fi
19495                 fi
19496               fi
19497             else
19498               if test "X$found_a" != "X"; then
19499                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19500               else
19501                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19502               fi
19503             fi
19504                         additional_includedir=
19505             case "$found_dir" in
19506               */lib | */lib/)
19507                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19508                 additional_includedir="$basedir/include"
19509                 ;;
19510             esac
19511             if test "X$additional_includedir" != "X"; then
19512                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19513                 haveit=
19514                 if test "X$additional_includedir" = "X/usr/local/include"; then
19515                   if test -n "$GCC"; then
19516                     case $host_os in
19517                       linux*) haveit=yes;;
19518                     esac
19519                   fi
19520                 fi
19521                 if test -z "$haveit"; then
19522                   for x in $CPPFLAGS $INCXXHASH; do
19523
19524   acl_save_prefix="$prefix"
19525   prefix="$acl_final_prefix"
19526   acl_save_exec_prefix="$exec_prefix"
19527   exec_prefix="$acl_final_exec_prefix"
19528   eval x=\"$x\"
19529   exec_prefix="$acl_save_exec_prefix"
19530   prefix="$acl_save_prefix"
19531
19532                     if test "X$x" = "X-I$additional_includedir"; then
19533                       haveit=yes
19534                       break
19535                     fi
19536                   done
19537                   if test -z "$haveit"; then
19538                     if test -d "$additional_includedir"; then
19539                                             INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19540                     fi
19541                   fi
19542                 fi
19543               fi
19544             fi
19545                         if test -n "$found_la"; then
19546                                                         save_libdir="$libdir"
19547               case "$found_la" in
19548                 */* | *\\*) . "$found_la" ;;
19549                 *) . "./$found_la" ;;
19550               esac
19551               libdir="$save_libdir"
19552                             for dep in $dependency_libs; do
19553                 case "$dep" in
19554                   -L*)
19555                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19556                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
19557                       haveit=
19558                       if test "X$additional_libdir" = "X/usr/local/lib"; then
19559                         if test -n "$GCC"; then
19560                           case $host_os in
19561                             linux*) haveit=yes;;
19562                           esac
19563                         fi
19564                       fi
19565                       if test -z "$haveit"; then
19566                         haveit=
19567                         for x in $LDFLAGS $LIBXXHASH; do
19568
19569   acl_save_prefix="$prefix"
19570   prefix="$acl_final_prefix"
19571   acl_save_exec_prefix="$exec_prefix"
19572   exec_prefix="$acl_final_exec_prefix"
19573   eval x=\"$x\"
19574   exec_prefix="$acl_save_exec_prefix"
19575   prefix="$acl_save_prefix"
19576
19577                           if test "X$x" = "X-L$additional_libdir"; then
19578                             haveit=yes
19579                             break
19580                           fi
19581                         done
19582                         if test -z "$haveit"; then
19583                           if test -d "$additional_libdir"; then
19584                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19585                           fi
19586                         fi
19587                         haveit=
19588                         for x in $LDFLAGS $LTLIBXXHASH; do
19589
19590   acl_save_prefix="$prefix"
19591   prefix="$acl_final_prefix"
19592   acl_save_exec_prefix="$exec_prefix"
19593   exec_prefix="$acl_final_exec_prefix"
19594   eval x=\"$x\"
19595   exec_prefix="$acl_save_exec_prefix"
19596   prefix="$acl_save_prefix"
19597
19598                           if test "X$x" = "X-L$additional_libdir"; then
19599                             haveit=yes
19600                             break
19601                           fi
19602                         done
19603                         if test -z "$haveit"; then
19604                           if test -d "$additional_libdir"; then
19605                                                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19606                           fi
19607                         fi
19608                       fi
19609                     fi
19610                     ;;
19611                   -R*)
19612                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19613                     if test "$enable_rpath" != no; then
19614                                                                   haveit=
19615                       for x in $rpathdirs; do
19616                         if test "X$x" = "X$dir"; then
19617                           haveit=yes
19618                           break
19619                         fi
19620                       done
19621                       if test -z "$haveit"; then
19622                         rpathdirs="$rpathdirs $dir"
19623                       fi
19624                                                                   haveit=
19625                       for x in $ltrpathdirs; do
19626                         if test "X$x" = "X$dir"; then
19627                           haveit=yes
19628                           break
19629                         fi
19630                       done
19631                       if test -z "$haveit"; then
19632                         ltrpathdirs="$ltrpathdirs $dir"
19633                       fi
19634                     fi
19635                     ;;
19636                   -l*)
19637                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19638                     ;;
19639                   *.la)
19640                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19641                     ;;
19642                   *)
19643                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19644                     LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19645                     ;;
19646                 esac
19647               done
19648             fi
19649           else
19650                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
19651               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19652               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19653             else
19654               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19655               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19656             fi
19657           fi
19658         fi
19659       fi
19660     done
19661   done
19662   if test "X$rpathdirs" != "X"; then
19663     if test -n "$hardcode_libdir_separator"; then
19664                         alldirs=
19665       for found_dir in $rpathdirs; do
19666         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19667       done
19668             acl_save_libdir="$libdir"
19669       libdir="$alldirs"
19670       eval flag=\"$hardcode_libdir_flag_spec\"
19671       libdir="$acl_save_libdir"
19672       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19673     else
19674             for found_dir in $rpathdirs; do
19675         acl_save_libdir="$libdir"
19676         libdir="$found_dir"
19677         eval flag=\"$hardcode_libdir_flag_spec\"
19678         libdir="$acl_save_libdir"
19679         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19680       done
19681     fi
19682   fi
19683   if test "X$ltrpathdirs" != "X"; then
19684             for found_dir in $ltrpathdirs; do
19685       LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19686     done
19687   fi
19688
19689
19690         ac_save_CPPFLAGS="$CPPFLAGS"
19691
19692   for element in $INCXXHASH; do
19693     haveit=
19694     for x in $CPPFLAGS; do
19695
19696   acl_save_prefix="$prefix"
19697   prefix="$acl_final_prefix"
19698   acl_save_exec_prefix="$exec_prefix"
19699   exec_prefix="$acl_final_exec_prefix"
19700   eval x=\"$x\"
19701   exec_prefix="$acl_save_exec_prefix"
19702   prefix="$acl_save_prefix"
19703
19704       if test "X$x" = "X$element"; then
19705         haveit=yes
19706         break
19707       fi
19708     done
19709     if test -z "$haveit"; then
19710       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19711     fi
19712   done
19713
19714
19715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19716 $as_echo_n "checking for libxxhash... " >&6; }
19717 if ${ac_cv_libxxhash+:} false; then :
19718   $as_echo_n "(cached) " >&6
19719 else
19720
19721     ac_save_LIBS="$LIBS"
19722     LIBS="$LIBS $LIBXXHASH"
19723     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h.  */
19725 #include <xxhash.h>
19726 int
19727 main ()
19728 {
19729 XXH32("foo", 3, 0);
19730
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 if ac_fn_c_try_link "$LINENO"; then :
19736   ac_cv_libxxhash=yes
19737 else
19738   ac_cv_libxxhash=no
19739 fi
19740 rm -f core conftest.err conftest.$ac_objext \
19741     conftest$ac_exeext conftest.$ac_ext
19742     LIBS="$ac_save_LIBS"
19743
19744 fi
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19746 $as_echo "$ac_cv_libxxhash" >&6; }
19747   if test "$ac_cv_libxxhash" = yes; then
19748     HAVE_LIBXXHASH=yes
19749
19750 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19751
19752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19753 $as_echo_n "checking how to link with libxxhash... " >&6; }
19754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19755 $as_echo "$LIBXXHASH" >&6; }
19756   else
19757     HAVE_LIBXXHASH=no
19758             CPPFLAGS="$ac_save_CPPFLAGS"
19759     LIBXXHASH=
19760     LTLIBXXHASH=
19761   fi
19762
19763
19764
19765
19766
19767
19768   if test "$HAVE_LIBXXHASH" != yes; then
19769     if test "$with_xxhash" = yes; then
19770       as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
19771     fi
19772   fi
19773   if test "x$with_xxhash" = "xauto"; then
19774     with_xxhash="$HAVE_LIBXXHASH"
19775   fi
19776 fi
19777
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19779 $as_echo_n "checking whether to use xxhash... " >&6; }
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19781 $as_echo "$with_xxhash" >&6; }
19782
19783 NM_H=
19784 rm -f nm.h
19785 if test "${nativefile}" != ""; then
19786     case "${nativefile}" in
19787       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
19788       * ) GDB_NM_FILE="${nativefile}"
19789     esac
19790     ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
19791
19792
19793 cat >>confdefs.h <<_ACEOF
19794 #define GDB_NM_FILE "${GDB_NM_FILE}"
19795 _ACEOF
19796
19797     NM_H=nm.h
19798 fi
19799
19800
19801
19802 for ac_prog in xsltproc
19803 do
19804   # Extract the first word of "$ac_prog", so it can be a program name with args.
19805 set dummy $ac_prog; ac_word=$2
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19807 $as_echo_n "checking for $ac_word... " >&6; }
19808 if ${ac_cv_path_XSLTPROC+:} false; then :
19809   $as_echo_n "(cached) " >&6
19810 else
19811   case $XSLTPROC in
19812   [\\/]* | ?:[\\/]*)
19813   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19814   ;;
19815   *)
19816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19817 for as_dir in $PATH
19818 do
19819   IFS=$as_save_IFS
19820   test -z "$as_dir" && as_dir=.
19821     for ac_exec_ext in '' $ac_executable_extensions; do
19822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19823     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19825     break 2
19826   fi
19827 done
19828   done
19829 IFS=$as_save_IFS
19830
19831   ;;
19832 esac
19833 fi
19834 XSLTPROC=$ac_cv_path_XSLTPROC
19835 if test -n "$XSLTPROC"; then
19836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19837 $as_echo "$XSLTPROC" >&6; }
19838 else
19839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19840 $as_echo "no" >&6; }
19841 fi
19842
19843
19844   test -n "$XSLTPROC" && break
19845 done
19846 test -n "$XSLTPROC" || XSLTPROC="missing"
19847
19848 if test "x$USE_MAINTAINER_MODE" = xyes; then
19849   if test "${XSLTPROC}" = missing; then
19850     as_fn_error $? "unable to find xsltproc.  maintainer-mode requires xsltproc." "$LINENO" 5
19851   fi
19852 fi
19853
19854
19855
19856
19857
19858 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19859
19860
19861
19862 # Check whether we will enable the inclusion of unit tests when
19863 # compiling GDB.
19864 #
19865 # The default value of this option changes depending whether we're on
19866 # development mode (in which case it's "true") or not (in which case
19867 # it's "false").  The $development variable is set by the GDB_AC_COMMON
19868 # macro, which must therefore be used before GDB_AC_SELFTEST.
19869
19870 if test "x$development" != xtrue && test "x$development" != xfalse; then :
19871   as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19872 fi
19873
19874 # Check whether --enable-unit-tests was given.
19875 if test "${enable_unit_tests+set}" = set; then :
19876   enableval=$enable_unit_tests; case "${enableval}" in
19877   yes)  enable_unittests=true  ;;
19878   no)   enable_unittests=false ;;
19879   *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19880 esac
19881 else
19882   enable_unittests=$development
19883 fi
19884
19885
19886 if $enable_unittests; then
19887
19888 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19889
19890
19891   CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
19892   CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19893
19894 fi
19895
19896
19897
19898   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19899   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
19900   if test "x$GDB_TRANSFORM_NAME" = x; then
19901      GDB_TRANSFORM_NAME=gdb
19902   fi
19903
19904
19905
19906   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19907   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
19908   if test "x$GCORE_TRANSFORM_NAME" = x; then
19909      GCORE_TRANSFORM_NAME=gcore
19910   fi
19911
19912
19913 ac_config_files="$ac_config_files gcore"
19914
19915 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19916
19917
19918 cat >confcache <<\_ACEOF
19919 # This file is a shell script that caches the results of configure
19920 # tests run on this system so they can be shared between configure
19921 # scripts and configure runs, see configure's option --config-cache.
19922 # It is not useful on other systems.  If it contains results you don't
19923 # want to keep, you may remove or edit it.
19924 #
19925 # config.status only pays attention to the cache file if you give it
19926 # the --recheck option to rerun configure.
19927 #
19928 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19929 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19930 # following values.
19931
19932 _ACEOF
19933
19934 # The following way of writing the cache mishandles newlines in values,
19935 # but we know of no workaround that is simple, portable, and efficient.
19936 # So, we kill variables containing newlines.
19937 # Ultrix sh set writes to stderr and can't be redirected directly,
19938 # and sets the high bit in the cache file unless we assign to the vars.
19939 (
19940   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19941     eval ac_val=\$$ac_var
19942     case $ac_val in #(
19943     *${as_nl}*)
19944       case $ac_var in #(
19945       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19947       esac
19948       case $ac_var in #(
19949       _ | IFS | as_nl) ;; #(
19950       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19951       *) { eval $ac_var=; unset $ac_var;} ;;
19952       esac ;;
19953     esac
19954   done
19955
19956   (set) 2>&1 |
19957     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19958     *${as_nl}ac_space=\ *)
19959       # `set' does not quote correctly, so add quotes: double-quote
19960       # substitution turns \\\\ into \\, and sed turns \\ into \.
19961       sed -n \
19962         "s/'/'\\\\''/g;
19963           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19964       ;; #(
19965     *)
19966       # `set' quotes correctly as required by POSIX, so do not add quotes.
19967       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19968       ;;
19969     esac |
19970     sort
19971 ) |
19972   sed '
19973      /^ac_cv_env_/b end
19974      t clear
19975      :clear
19976      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19977      t end
19978      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19979      :end' >>confcache
19980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19981   if test -w "$cache_file"; then
19982     if test "x$cache_file" != "x/dev/null"; then
19983       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19984 $as_echo "$as_me: updating cache $cache_file" >&6;}
19985       if test ! -f "$cache_file" || test -h "$cache_file"; then
19986         cat confcache >"$cache_file"
19987       else
19988         case $cache_file in #(
19989         */* | ?:*)
19990           mv -f confcache "$cache_file"$$ &&
19991           mv -f "$cache_file"$$ "$cache_file" ;; #(
19992         *)
19993           mv -f confcache "$cache_file" ;;
19994         esac
19995       fi
19996     fi
19997   else
19998     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19999 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20000   fi
20001 fi
20002 rm -f confcache
20003
20004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20005 # Let make expand exec_prefix.
20006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20007
20008 DEFS=-DHAVE_CONFIG_H
20009
20010 ac_libobjs=
20011 ac_ltlibobjs=
20012 U=
20013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20014   # 1. Remove the extension, and $U if already installed.
20015   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20016   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20017   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20018   #    will be set to the directory where LIBOBJS objects are built.
20019   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20020   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20021 done
20022 LIBOBJS=$ac_libobjs
20023
20024 LTLIBOBJS=$ac_ltlibobjs
20025
20026
20027 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20028   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20030 fi
20031 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
20032   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
20033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20034 fi
20035 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20036   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
20037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20038 fi
20039
20040
20041 : "${CONFIG_STATUS=./config.status}"
20042 ac_write_fail=0
20043 ac_clean_files_save=$ac_clean_files
20044 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20047 as_write_fail=0
20048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20049 #! $SHELL
20050 # Generated by $as_me.
20051 # Run this file to recreate the current configuration.
20052 # Compiler output produced by configure, useful for debugging
20053 # configure, is in config.log if it exists.
20054
20055 debug=false
20056 ac_cs_recheck=false
20057 ac_cs_silent=false
20058
20059 SHELL=\${CONFIG_SHELL-$SHELL}
20060 export SHELL
20061 _ASEOF
20062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20063 ## -------------------- ##
20064 ## M4sh Initialization. ##
20065 ## -------------------- ##
20066
20067 # Be more Bourne compatible
20068 DUALCASE=1; export DUALCASE # for MKS sh
20069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20070   emulate sh
20071   NULLCMD=:
20072   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20073   # is contrary to our usage.  Disable this feature.
20074   alias -g '${1+"$@"}'='"$@"'
20075   setopt NO_GLOB_SUBST
20076 else
20077   case `(set -o) 2>/dev/null` in #(
20078   *posix*) :
20079     set -o posix ;; #(
20080   *) :
20081      ;;
20082 esac
20083 fi
20084
20085
20086 as_nl='
20087 '
20088 export as_nl
20089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20090 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20093 # Prefer a ksh shell builtin over an external printf program on Solaris,
20094 # but without wasting forks for bash or zsh.
20095 if test -z "$BASH_VERSION$ZSH_VERSION" \
20096     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20097   as_echo='print -r --'
20098   as_echo_n='print -rn --'
20099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20100   as_echo='printf %s\n'
20101   as_echo_n='printf %s'
20102 else
20103   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20104     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20105     as_echo_n='/usr/ucb/echo -n'
20106   else
20107     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20108     as_echo_n_body='eval
20109       arg=$1;
20110       case $arg in #(
20111       *"$as_nl"*)
20112         expr "X$arg" : "X\\(.*\\)$as_nl";
20113         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20114       esac;
20115       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20116     '
20117     export as_echo_n_body
20118     as_echo_n='sh -c $as_echo_n_body as_echo'
20119   fi
20120   export as_echo_body
20121   as_echo='sh -c $as_echo_body as_echo'
20122 fi
20123
20124 # The user is always right.
20125 if test "${PATH_SEPARATOR+set}" != set; then
20126   PATH_SEPARATOR=:
20127   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20128     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20129       PATH_SEPARATOR=';'
20130   }
20131 fi
20132
20133
20134 # IFS
20135 # We need space, tab and new line, in precisely that order.  Quoting is
20136 # there to prevent editors from complaining about space-tab.
20137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20138 # splitting by setting IFS to empty value.)
20139 IFS=" ""        $as_nl"
20140
20141 # Find who we are.  Look in the path if we contain no directory separator.
20142 as_myself=
20143 case $0 in #((
20144   *[\\/]* ) as_myself=$0 ;;
20145   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20146 for as_dir in $PATH
20147 do
20148   IFS=$as_save_IFS
20149   test -z "$as_dir" && as_dir=.
20150     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20151   done
20152 IFS=$as_save_IFS
20153
20154      ;;
20155 esac
20156 # We did not find ourselves, most probably we were run as `sh COMMAND'
20157 # in which case we are not to be found in the path.
20158 if test "x$as_myself" = x; then
20159   as_myself=$0
20160 fi
20161 if test ! -f "$as_myself"; then
20162   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20163   exit 1
20164 fi
20165
20166 # Unset variables that we do not need and which cause bugs (e.g. in
20167 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20168 # suppresses any "Segmentation fault" message there.  '((' could
20169 # trigger a bug in pdksh 5.2.14.
20170 for as_var in BASH_ENV ENV MAIL MAILPATH
20171 do eval test x\${$as_var+set} = xset \
20172   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20173 done
20174 PS1='$ '
20175 PS2='> '
20176 PS4='+ '
20177
20178 # NLS nuisances.
20179 LC_ALL=C
20180 export LC_ALL
20181 LANGUAGE=C
20182 export LANGUAGE
20183
20184 # CDPATH.
20185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20186
20187
20188 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20189 # ----------------------------------------
20190 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20191 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20192 # script with STATUS, using 1 if that was 0.
20193 as_fn_error ()
20194 {
20195   as_status=$1; test $as_status -eq 0 && as_status=1
20196   if test "$4"; then
20197     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20198     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20199   fi
20200   $as_echo "$as_me: error: $2" >&2
20201   as_fn_exit $as_status
20202 } # as_fn_error
20203
20204
20205 # as_fn_set_status STATUS
20206 # -----------------------
20207 # Set $? to STATUS, without forking.
20208 as_fn_set_status ()
20209 {
20210   return $1
20211 } # as_fn_set_status
20212
20213 # as_fn_exit STATUS
20214 # -----------------
20215 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20216 as_fn_exit ()
20217 {
20218   set +e
20219   as_fn_set_status $1
20220   exit $1
20221 } # as_fn_exit
20222
20223 # as_fn_unset VAR
20224 # ---------------
20225 # Portably unset VAR.
20226 as_fn_unset ()
20227 {
20228   { eval $1=; unset $1;}
20229 }
20230 as_unset=as_fn_unset
20231 # as_fn_append VAR VALUE
20232 # ----------------------
20233 # Append the text in VALUE to the end of the definition contained in VAR. Take
20234 # advantage of any shell optimizations that allow amortized linear growth over
20235 # repeated appends, instead of the typical quadratic growth present in naive
20236 # implementations.
20237 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20238   eval 'as_fn_append ()
20239   {
20240     eval $1+=\$2
20241   }'
20242 else
20243   as_fn_append ()
20244   {
20245     eval $1=\$$1\$2
20246   }
20247 fi # as_fn_append
20248
20249 # as_fn_arith ARG...
20250 # ------------------
20251 # Perform arithmetic evaluation on the ARGs, and store the result in the
20252 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20253 # must be portable across $(()) and expr.
20254 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20255   eval 'as_fn_arith ()
20256   {
20257     as_val=$(( $* ))
20258   }'
20259 else
20260   as_fn_arith ()
20261   {
20262     as_val=`expr "$@" || test $? -eq 1`
20263   }
20264 fi # as_fn_arith
20265
20266
20267 if expr a : '\(a\)' >/dev/null 2>&1 &&
20268    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20269   as_expr=expr
20270 else
20271   as_expr=false
20272 fi
20273
20274 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20275   as_basename=basename
20276 else
20277   as_basename=false
20278 fi
20279
20280 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20281   as_dirname=dirname
20282 else
20283   as_dirname=false
20284 fi
20285
20286 as_me=`$as_basename -- "$0" ||
20287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20288          X"$0" : 'X\(//\)$' \| \
20289          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20290 $as_echo X/"$0" |
20291     sed '/^.*\/\([^/][^/]*\)\/*$/{
20292             s//\1/
20293             q
20294           }
20295           /^X\/\(\/\/\)$/{
20296             s//\1/
20297             q
20298           }
20299           /^X\/\(\/\).*/{
20300             s//\1/
20301             q
20302           }
20303           s/.*/./; q'`
20304
20305 # Avoid depending upon Character Ranges.
20306 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20307 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20308 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20309 as_cr_digits='0123456789'
20310 as_cr_alnum=$as_cr_Letters$as_cr_digits
20311
20312 ECHO_C= ECHO_N= ECHO_T=
20313 case `echo -n x` in #(((((
20314 -n*)
20315   case `echo 'xy\c'` in
20316   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20317   xy)  ECHO_C='\c';;
20318   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20319        ECHO_T=' ';;
20320   esac;;
20321 *)
20322   ECHO_N='-n';;
20323 esac
20324
20325 rm -f conf$$ conf$$.exe conf$$.file
20326 if test -d conf$$.dir; then
20327   rm -f conf$$.dir/conf$$.file
20328 else
20329   rm -f conf$$.dir
20330   mkdir conf$$.dir 2>/dev/null
20331 fi
20332 if (echo >conf$$.file) 2>/dev/null; then
20333   if ln -s conf$$.file conf$$ 2>/dev/null; then
20334     as_ln_s='ln -s'
20335     # ... but there are two gotchas:
20336     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20337     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20338     # In both cases, we have to default to `cp -pR'.
20339     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20340       as_ln_s='cp -pR'
20341   elif ln conf$$.file conf$$ 2>/dev/null; then
20342     as_ln_s=ln
20343   else
20344     as_ln_s='cp -pR'
20345   fi
20346 else
20347   as_ln_s='cp -pR'
20348 fi
20349 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20350 rmdir conf$$.dir 2>/dev/null
20351
20352
20353 # as_fn_mkdir_p
20354 # -------------
20355 # Create "$as_dir" as a directory, including parents if necessary.
20356 as_fn_mkdir_p ()
20357 {
20358
20359   case $as_dir in #(
20360   -*) as_dir=./$as_dir;;
20361   esac
20362   test -d "$as_dir" || eval $as_mkdir_p || {
20363     as_dirs=
20364     while :; do
20365       case $as_dir in #(
20366       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20367       *) as_qdir=$as_dir;;
20368       esac
20369       as_dirs="'$as_qdir' $as_dirs"
20370       as_dir=`$as_dirname -- "$as_dir" ||
20371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20372          X"$as_dir" : 'X\(//\)[^/]' \| \
20373          X"$as_dir" : 'X\(//\)$' \| \
20374          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20375 $as_echo X"$as_dir" |
20376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20377             s//\1/
20378             q
20379           }
20380           /^X\(\/\/\)[^/].*/{
20381             s//\1/
20382             q
20383           }
20384           /^X\(\/\/\)$/{
20385             s//\1/
20386             q
20387           }
20388           /^X\(\/\).*/{
20389             s//\1/
20390             q
20391           }
20392           s/.*/./; q'`
20393       test -d "$as_dir" && break
20394     done
20395     test -z "$as_dirs" || eval "mkdir $as_dirs"
20396   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20397
20398
20399 } # as_fn_mkdir_p
20400 if mkdir -p . 2>/dev/null; then
20401   as_mkdir_p='mkdir -p "$as_dir"'
20402 else
20403   test -d ./-p && rmdir ./-p
20404   as_mkdir_p=false
20405 fi
20406
20407
20408 # as_fn_executable_p FILE
20409 # -----------------------
20410 # Test if FILE is an executable regular file.
20411 as_fn_executable_p ()
20412 {
20413   test -f "$1" && test -x "$1"
20414 } # as_fn_executable_p
20415 as_test_x='test -x'
20416 as_executable_p=as_fn_executable_p
20417
20418 # Sed expression to map a string onto a valid CPP name.
20419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20420
20421 # Sed expression to map a string onto a valid variable name.
20422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20423
20424
20425 exec 6>&1
20426 ## ----------------------------------- ##
20427 ## Main body of $CONFIG_STATUS script. ##
20428 ## ----------------------------------- ##
20429 _ASEOF
20430 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20431
20432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20433 # Save the log message, to keep $0 and so on meaningful, and to
20434 # report actual input values of CONFIG_FILES etc. instead of their
20435 # values after options handling.
20436 ac_log="
20437 This file was extended by $as_me, which was
20438 generated by GNU Autoconf 2.69.  Invocation command line was
20439
20440   CONFIG_FILES    = $CONFIG_FILES
20441   CONFIG_HEADERS  = $CONFIG_HEADERS
20442   CONFIG_LINKS    = $CONFIG_LINKS
20443   CONFIG_COMMANDS = $CONFIG_COMMANDS
20444   $ $0 $@
20445
20446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20447 "
20448
20449 _ACEOF
20450
20451 case $ac_config_files in *"
20452 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20453 esac
20454
20455 case $ac_config_headers in *"
20456 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20457 esac
20458
20459
20460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20461 # Files that config.status was made for.
20462 config_files="$ac_config_files"
20463 config_headers="$ac_config_headers"
20464 config_links="$ac_config_links"
20465 config_commands="$ac_config_commands"
20466
20467 _ACEOF
20468
20469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20470 ac_cs_usage="\
20471 \`$as_me' instantiates files and other configuration actions
20472 from templates according to the current configuration.  Unless the files
20473 and actions are specified as TAGs, all are instantiated by default.
20474
20475 Usage: $0 [OPTION]... [TAG]...
20476
20477   -h, --help       print this help, then exit
20478   -V, --version    print version number and configuration settings, then exit
20479       --config     print configuration, then exit
20480   -q, --quiet, --silent
20481                    do not print progress messages
20482   -d, --debug      don't remove temporary files
20483       --recheck    update $as_me by reconfiguring in the same conditions
20484       --file=FILE[:TEMPLATE]
20485                    instantiate the configuration file FILE
20486       --header=FILE[:TEMPLATE]
20487                    instantiate the configuration header FILE
20488
20489 Configuration files:
20490 $config_files
20491
20492 Configuration headers:
20493 $config_headers
20494
20495 Configuration links:
20496 $config_links
20497
20498 Configuration commands:
20499 $config_commands
20500
20501 Report bugs to the package provider."
20502
20503 _ACEOF
20504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20505 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20506 ac_cs_version="\\
20507 config.status
20508 configured by $0, generated by GNU Autoconf 2.69,
20509   with options \\"\$ac_cs_config\\"
20510
20511 Copyright (C) 2012 Free Software Foundation, Inc.
20512 This config.status script is free software; the Free Software Foundation
20513 gives unlimited permission to copy, distribute and modify it."
20514
20515 ac_pwd='$ac_pwd'
20516 srcdir='$srcdir'
20517 INSTALL='$INSTALL'
20518 AWK='$AWK'
20519 test -n "\$AWK" || AWK=awk
20520 _ACEOF
20521
20522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523 # The default lists apply if the user does not specify any file.
20524 ac_need_defaults=:
20525 while test $# != 0
20526 do
20527   case $1 in
20528   --*=?*)
20529     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20530     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20531     ac_shift=:
20532     ;;
20533   --*=)
20534     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20535     ac_optarg=
20536     ac_shift=:
20537     ;;
20538   *)
20539     ac_option=$1
20540     ac_optarg=$2
20541     ac_shift=shift
20542     ;;
20543   esac
20544
20545   case $ac_option in
20546   # Handling of the options.
20547   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20548     ac_cs_recheck=: ;;
20549   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20550     $as_echo "$ac_cs_version"; exit ;;
20551   --config | --confi | --conf | --con | --co | --c )
20552     $as_echo "$ac_cs_config"; exit ;;
20553   --debug | --debu | --deb | --de | --d | -d )
20554     debug=: ;;
20555   --file | --fil | --fi | --f )
20556     $ac_shift
20557     case $ac_optarg in
20558     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20559     '') as_fn_error $? "missing file argument" ;;
20560     esac
20561     as_fn_append CONFIG_FILES " '$ac_optarg'"
20562     ac_need_defaults=false;;
20563   --header | --heade | --head | --hea )
20564     $ac_shift
20565     case $ac_optarg in
20566     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20567     esac
20568     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20569     ac_need_defaults=false;;
20570   --he | --h)
20571     # Conflict between --help and --header
20572     as_fn_error $? "ambiguous option: \`$1'
20573 Try \`$0 --help' for more information.";;
20574   --help | --hel | -h )
20575     $as_echo "$ac_cs_usage"; exit ;;
20576   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20577   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20578     ac_cs_silent=: ;;
20579
20580   # This is an error.
20581   -*) as_fn_error $? "unrecognized option: \`$1'
20582 Try \`$0 --help' for more information." ;;
20583
20584   *) as_fn_append ac_config_targets " $1"
20585      ac_need_defaults=false ;;
20586
20587   esac
20588   shift
20589 done
20590
20591 ac_configure_extra_args=
20592
20593 if $ac_cs_silent; then
20594   exec 6>/dev/null
20595   ac_configure_extra_args="$ac_configure_extra_args --silent"
20596 fi
20597
20598 _ACEOF
20599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20600 if \$ac_cs_recheck; then
20601   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20602   shift
20603   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20604   CONFIG_SHELL='$SHELL'
20605   export CONFIG_SHELL
20606   exec "\$@"
20607 fi
20608
20609 _ACEOF
20610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20611 exec 5>>config.log
20612 {
20613   echo
20614   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20615 ## Running $as_me. ##
20616 _ASBOX
20617   $as_echo "$ac_log"
20618 } >&5
20619
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20622 #
20623 # INIT-COMMANDS
20624 #
20625 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20626 GDB_NM_FILE=$GDB_NM_FILE
20627
20628 _ACEOF
20629
20630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20631
20632 # Handling of arguments.
20633 for ac_config_target in $ac_config_targets
20634 do
20635   case $ac_config_target in
20636     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20637     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
20638     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20639     "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20640     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
20641     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20642     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
20643     "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
20644     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20645     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
20646
20647   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20648   esac
20649 done
20650
20651
20652 # If the user did not use the arguments to specify the items to instantiate,
20653 # then the envvar interface is used.  Set only those that are not.
20654 # We use the long form for the default assignment because of an extremely
20655 # bizarre bug on SunOS 4.1.3.
20656 if $ac_need_defaults; then
20657   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20658   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20659   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20660   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20661 fi
20662
20663 # Have a temporary directory for convenience.  Make it in the build tree
20664 # simply because there is no reason against having it here, and in addition,
20665 # creating and moving files from /tmp can sometimes cause problems.
20666 # Hook for its removal unless debugging.
20667 # Note that there is a small window in which the directory will not be cleaned:
20668 # after its creation but before its name has been assigned to `$tmp'.
20669 $debug ||
20670 {
20671   tmp= ac_tmp=
20672   trap 'exit_status=$?
20673   : "${ac_tmp:=$tmp}"
20674   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20675 ' 0
20676   trap 'as_fn_exit 1' 1 2 13 15
20677 }
20678 # Create a (secure) tmp directory for tmp files.
20679
20680 {
20681   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20682   test -d "$tmp"
20683 }  ||
20684 {
20685   tmp=./conf$$-$RANDOM
20686   (umask 077 && mkdir "$tmp")
20687 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20688 ac_tmp=$tmp
20689
20690 # Set up the scripts for CONFIG_FILES section.
20691 # No need to generate them if there are no CONFIG_FILES.
20692 # This happens for instance with `./config.status config.h'.
20693 if test -n "$CONFIG_FILES"; then
20694
20695 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20696   ac_cs_awk_getline=:
20697   ac_cs_awk_pipe_init=
20698   ac_cs_awk_read_file='
20699       while ((getline aline < (F[key])) > 0)
20700         print(aline)
20701       close(F[key])'
20702   ac_cs_awk_pipe_fini=
20703 else
20704   ac_cs_awk_getline=false
20705   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20706   ac_cs_awk_read_file='
20707       print "|#_!!_#|"
20708       print "cat " F[key] " &&"
20709       '$ac_cs_awk_pipe_init
20710   # The final `:' finishes the AND list.
20711   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20712 fi
20713 ac_cr=`echo X | tr X '\015'`
20714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20715 # But we know of no other shell where ac_cr would be empty at this
20716 # point, so we can use a bashism as a fallback.
20717 if test "x$ac_cr" = x; then
20718   eval ac_cr=\$\'\\r\'
20719 fi
20720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20722   ac_cs_awk_cr='\\r'
20723 else
20724   ac_cs_awk_cr=$ac_cr
20725 fi
20726
20727 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20728 _ACEOF
20729
20730 # Create commands to substitute file output variables.
20731 {
20732   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20733   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20734   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20735   echo "_ACAWK" &&
20736   echo "_ACEOF"
20737 } >conf$$files.sh &&
20738 . ./conf$$files.sh ||
20739   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20740 rm -f conf$$files.sh
20741
20742 {
20743   echo "cat >conf$$subs.awk <<_ACEOF" &&
20744   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20745   echo "_ACEOF"
20746 } >conf$$subs.sh ||
20747   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20748 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20749 ac_delim='%!_!# '
20750 for ac_last_try in false false false false false :; do
20751   . ./conf$$subs.sh ||
20752     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20753
20754   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20755   if test $ac_delim_n = $ac_delim_num; then
20756     break
20757   elif $ac_last_try; then
20758     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20759   else
20760     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20761   fi
20762 done
20763 rm -f conf$$subs.sh
20764
20765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20766 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20767 _ACEOF
20768 sed -n '
20769 h
20770 s/^/S["/; s/!.*/"]=/
20771 p
20772 g
20773 s/^[^!]*!//
20774 :repl
20775 t repl
20776 s/'"$ac_delim"'$//
20777 t delim
20778 :nl
20779 h
20780 s/\(.\{148\}\)..*/\1/
20781 t more1
20782 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20783 p
20784 n
20785 b repl
20786 :more1
20787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20788 p
20789 g
20790 s/.\{148\}//
20791 t nl
20792 :delim
20793 h
20794 s/\(.\{148\}\)..*/\1/
20795 t more2
20796 s/["\\]/\\&/g; s/^/"/; s/$/"/
20797 p
20798 b
20799 :more2
20800 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20801 p
20802 g
20803 s/.\{148\}//
20804 t delim
20805 ' <conf$$subs.awk | sed '
20806 /^[^""]/{
20807   N
20808   s/\n//
20809 }
20810 ' >>$CONFIG_STATUS || ac_write_fail=1
20811 rm -f conf$$subs.awk
20812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20813 _ACAWK
20814 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20815   for (key in S) S_is_set[key] = 1
20816   FS = "\a"
20817   \$ac_cs_awk_pipe_init
20818 }
20819 {
20820   line = $ 0
20821   nfields = split(line, field, "@")
20822   substed = 0
20823   len = length(field[1])
20824   for (i = 2; i < nfields; i++) {
20825     key = field[i]
20826     keylen = length(key)
20827     if (S_is_set[key]) {
20828       value = S[key]
20829       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20830       len += length(value) + length(field[++i])
20831       substed = 1
20832     } else
20833       len += 1 + keylen
20834   }
20835   if (nfields == 3 && !substed) {
20836     key = field[2]
20837     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
20838       \$ac_cs_awk_read_file
20839       next
20840     }
20841   }
20842   print line
20843 }
20844 \$ac_cs_awk_pipe_fini
20845 _ACAWK
20846 _ACEOF
20847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20848 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20849   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20850 else
20851   cat
20852 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20853   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20854 _ACEOF
20855
20856 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20857 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20858 # trailing colons and then remove the whole line if VPATH becomes empty
20859 # (actually we leave an empty line to preserve line numbers).
20860 if test "x$srcdir" = x.; then
20861   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
20862 h
20863 s///
20864 s/^/:/
20865 s/[      ]*$/:/
20866 s/:\$(srcdir):/:/g
20867 s/:\${srcdir}:/:/g
20868 s/:@srcdir@:/:/g
20869 s/^:*//
20870 s/:*$//
20871 x
20872 s/\(=[   ]*\).*/\1/
20873 G
20874 s/\n//
20875 s/^[^=]*=[       ]*$//
20876 }'
20877 fi
20878
20879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20880 fi # test -n "$CONFIG_FILES"
20881
20882 # Set up the scripts for CONFIG_HEADERS section.
20883 # No need to generate them if there are no CONFIG_HEADERS.
20884 # This happens for instance with `./config.status Makefile'.
20885 if test -n "$CONFIG_HEADERS"; then
20886 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20887 BEGIN {
20888 _ACEOF
20889
20890 # Transform confdefs.h into an awk script `defines.awk', embedded as
20891 # here-document in config.status, that substitutes the proper values into
20892 # config.h.in to produce config.h.
20893
20894 # Create a delimiter string that does not exist in confdefs.h, to ease
20895 # handling of long lines.
20896 ac_delim='%!_!# '
20897 for ac_last_try in false false :; do
20898   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20899   if test -z "$ac_tt"; then
20900     break
20901   elif $ac_last_try; then
20902     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20903   else
20904     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20905   fi
20906 done
20907
20908 # For the awk script, D is an array of macro values keyed by name,
20909 # likewise P contains macro parameters if any.  Preserve backslash
20910 # newline sequences.
20911
20912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20913 sed -n '
20914 s/.\{148\}/&'"$ac_delim"'/g
20915 t rset
20916 :rset
20917 s/^[     ]*#[    ]*define[       ][      ]*/ /
20918 t def
20919 d
20920 :def
20921 s/\\$//
20922 t bsnl
20923 s/["\\]/\\&/g
20924 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20925 D["\1"]=" \3"/p
20926 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
20927 d
20928 :bsnl
20929 s/["\\]/\\&/g
20930 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
20931 D["\1"]=" \3\\\\\\n"\\/p
20932 t cont
20933 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20934 t cont
20935 d
20936 :cont
20937 n
20938 s/.\{148\}/&'"$ac_delim"'/g
20939 t clear
20940 :clear
20941 s/\\$//
20942 t bsnlc
20943 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20944 d
20945 :bsnlc
20946 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20947 b cont
20948 ' <confdefs.h | sed '
20949 s/'"$ac_delim"'/"\\\
20950 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20951
20952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20953   for (key in D) D_is_set[key] = 1
20954   FS = "\a"
20955 }
20956 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20957   line = \$ 0
20958   split(line, arg, " ")
20959   if (arg[1] == "#") {
20960     defundef = arg[2]
20961     mac1 = arg[3]
20962   } else {
20963     defundef = substr(arg[1], 2)
20964     mac1 = arg[2]
20965   }
20966   split(mac1, mac2, "(") #)
20967   macro = mac2[1]
20968   prefix = substr(line, 1, index(line, defundef) - 1)
20969   if (D_is_set[macro]) {
20970     # Preserve the white space surrounding the "#".
20971     print prefix "define", macro P[macro] D[macro]
20972     next
20973   } else {
20974     # Replace #undef with comments.  This is necessary, for example,
20975     # in the case of _POSIX_SOURCE, which is predefined and required
20976     # on some systems where configure will not decide to define it.
20977     if (defundef == "undef") {
20978       print "/*", prefix defundef, macro, "*/"
20979       next
20980     }
20981   }
20982 }
20983 { print }
20984 _ACAWK
20985 _ACEOF
20986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20987   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20988 fi # test -n "$CONFIG_HEADERS"
20989
20990
20991 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
20992 shift
20993 for ac_tag
20994 do
20995   case $ac_tag in
20996   :[FHLC]) ac_mode=$ac_tag; continue;;
20997   esac
20998   case $ac_mode$ac_tag in
20999   :[FHL]*:*);;
21000   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21001   :[FH]-) ac_tag=-:-;;
21002   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21003   esac
21004   ac_save_IFS=$IFS
21005   IFS=:
21006   set x $ac_tag
21007   IFS=$ac_save_IFS
21008   shift
21009   ac_file=$1
21010   shift
21011
21012   case $ac_mode in
21013   :L) ac_source=$1;;
21014   :[FH])
21015     ac_file_inputs=
21016     for ac_f
21017     do
21018       case $ac_f in
21019       -) ac_f="$ac_tmp/stdin";;
21020       *) # Look for the file first in the build tree, then in the source tree
21021          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21022          # because $ac_f cannot contain `:'.
21023          test -f "$ac_f" ||
21024            case $ac_f in
21025            [\\/$]*) false;;
21026            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21027            esac ||
21028            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21029       esac
21030       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21031       as_fn_append ac_file_inputs " '$ac_f'"
21032     done
21033
21034     # Let's still pretend it is `configure' which instantiates (i.e., don't
21035     # use $as_me), people would be surprised to read:
21036     #    /* config.h.  Generated by config.status.  */
21037     configure_input='Generated from '`
21038           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21039         `' by configure.'
21040     if test x"$ac_file" != x-; then
21041       configure_input="$ac_file.  $configure_input"
21042       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21043 $as_echo "$as_me: creating $ac_file" >&6;}
21044     fi
21045     # Neutralize special characters interpreted by sed in replacement strings.
21046     case $configure_input in #(
21047     *\&* | *\|* | *\\* )
21048        ac_sed_conf_input=`$as_echo "$configure_input" |
21049        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21050     *) ac_sed_conf_input=$configure_input;;
21051     esac
21052
21053     case $ac_tag in
21054     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21055       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21056     esac
21057     ;;
21058   esac
21059
21060   ac_dir=`$as_dirname -- "$ac_file" ||
21061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21062          X"$ac_file" : 'X\(//\)[^/]' \| \
21063          X"$ac_file" : 'X\(//\)$' \| \
21064          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21065 $as_echo X"$ac_file" |
21066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21067             s//\1/
21068             q
21069           }
21070           /^X\(\/\/\)[^/].*/{
21071             s//\1/
21072             q
21073           }
21074           /^X\(\/\/\)$/{
21075             s//\1/
21076             q
21077           }
21078           /^X\(\/\).*/{
21079             s//\1/
21080             q
21081           }
21082           s/.*/./; q'`
21083   as_dir="$ac_dir"; as_fn_mkdir_p
21084   ac_builddir=.
21085
21086 case "$ac_dir" in
21087 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21088 *)
21089   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21090   # A ".." for each directory in $ac_dir_suffix.
21091   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21092   case $ac_top_builddir_sub in
21093   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21094   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21095   esac ;;
21096 esac
21097 ac_abs_top_builddir=$ac_pwd
21098 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21099 # for backward compatibility:
21100 ac_top_builddir=$ac_top_build_prefix
21101
21102 case $srcdir in
21103   .)  # We are building in place.
21104     ac_srcdir=.
21105     ac_top_srcdir=$ac_top_builddir_sub
21106     ac_abs_top_srcdir=$ac_pwd ;;
21107   [\\/]* | ?:[\\/]* )  # Absolute name.
21108     ac_srcdir=$srcdir$ac_dir_suffix;
21109     ac_top_srcdir=$srcdir
21110     ac_abs_top_srcdir=$srcdir ;;
21111   *) # Relative name.
21112     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21113     ac_top_srcdir=$ac_top_build_prefix$srcdir
21114     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21115 esac
21116 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21117
21118
21119   case $ac_mode in
21120   :F)
21121   #
21122   # CONFIG_FILE
21123   #
21124
21125   case $INSTALL in
21126   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21127   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21128   esac
21129 _ACEOF
21130
21131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21132 # If the template does not know about datarootdir, expand it.
21133 # FIXME: This hack should be removed a few years after 2.60.
21134 ac_datarootdir_hack=; ac_datarootdir_seen=
21135 ac_sed_dataroot='
21136 /datarootdir/ {
21137   p
21138   q
21139 }
21140 /@datadir@/p
21141 /@docdir@/p
21142 /@infodir@/p
21143 /@localedir@/p
21144 /@mandir@/p'
21145 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21146 *datarootdir*) ac_datarootdir_seen=yes;;
21147 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21148   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21149 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21150 _ACEOF
21151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21152   ac_datarootdir_hack='
21153   s&@datadir@&$datadir&g
21154   s&@docdir@&$docdir&g
21155   s&@infodir@&$infodir&g
21156   s&@localedir@&$localedir&g
21157   s&@mandir@&$mandir&g
21158   s&\\\${datarootdir}&$datarootdir&g' ;;
21159 esac
21160 _ACEOF
21161
21162 # Neutralize VPATH when `$srcdir' = `.'.
21163 # Shell code in configure.ac might set extrasub.
21164 # FIXME: do we really want to maintain this feature?
21165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21166 ac_sed_extra="$ac_vpsub
21167 $extrasub
21168 _ACEOF
21169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21170 :t
21171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21172 s|@configure_input@|$ac_sed_conf_input|;t t
21173 s&@top_builddir@&$ac_top_builddir_sub&;t t
21174 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21175 s&@srcdir@&$ac_srcdir&;t t
21176 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21177 s&@top_srcdir@&$ac_top_srcdir&;t t
21178 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21179 s&@builddir@&$ac_builddir&;t t
21180 s&@abs_builddir@&$ac_abs_builddir&;t t
21181 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21182 s&@INSTALL@&$ac_INSTALL&;t t
21183 $ac_datarootdir_hack
21184 "
21185 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21186 if $ac_cs_awk_getline; then
21187   $AWK -f "$ac_tmp/subs.awk"
21188 else
21189   $AWK -f "$ac_tmp/subs.awk" | $SHELL
21190 fi \
21191   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21192
21193 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21194   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21195   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21196       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21197   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21198 which seems to be undefined.  Please make sure it is defined" >&5
21199 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21200 which seems to be undefined.  Please make sure it is defined" >&2;}
21201
21202   rm -f "$ac_tmp/stdin"
21203   case $ac_file in
21204   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21205   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21206   esac \
21207   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21208  ;;
21209   :H)
21210   #
21211   # CONFIG_HEADER
21212   #
21213   if test x"$ac_file" != x-; then
21214     {
21215       $as_echo "/* $configure_input  */" \
21216       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21217     } >"$ac_tmp/config.h" \
21218       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21219     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21220       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21221 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21222     else
21223       rm -f "$ac_file"
21224       mv "$ac_tmp/config.h" "$ac_file" \
21225         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21226     fi
21227   else
21228     $as_echo "/* $configure_input  */" \
21229       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21230       || as_fn_error $? "could not create -" "$LINENO" 5
21231   fi
21232  ;;
21233   :L)
21234   #
21235   # CONFIG_LINK
21236   #
21237
21238   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
21239     :
21240   else
21241     # Prefer the file from the source tree if names are identical.
21242     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21243       ac_source=$srcdir/$ac_source
21244     fi
21245
21246     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21247 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21248
21249     if test ! -r "$ac_source"; then
21250       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21251     fi
21252     rm -f "$ac_file"
21253
21254     # Try a relative symlink, then a hard link, then a copy.
21255     case $ac_source in
21256     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21257         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21258     esac
21259     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21260       ln "$ac_source" "$ac_file" 2>/dev/null ||
21261       cp -p "$ac_source" "$ac_file" ||
21262       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21263   fi
21264  ;;
21265   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21266 $as_echo "$as_me: executing $ac_file commands" >&6;}
21267  ;;
21268   esac
21269
21270
21271   case $ac_file$ac_mode in
21272     "config.h":H) echo > stamp-h ;;
21273     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21274     "nm.h":L) echo > stamp-nmh ;;
21275     "gcore":F) chmod +x gcore ;;
21276
21277   esac
21278 done # for ac_tag
21279
21280
21281 as_fn_exit 0
21282 _ACEOF
21283 ac_clean_files=$ac_clean_files_save
21284
21285 test $ac_write_fail = 0 ||
21286   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21287
21288
21289 # configure is writing to config.log, and then calls config.status.
21290 # config.status does its own redirection, appending to config.log.
21291 # Unfortunately, on DOS this fails, as config.log is still kept open
21292 # by configure, so config.status won't be able to write to it; its
21293 # output is simply discarded.  So we exec the FD to /dev/null,
21294 # effectively closing config.log, so it can be properly (re)opened and
21295 # appended to by config.status.  When coming back to configure, we
21296 # need to make the FD available again.
21297 if test "$no_create" != yes; then
21298   ac_cs_success=:
21299   ac_config_status_args=
21300   test "$silent" = yes &&
21301     ac_config_status_args="$ac_config_status_args --quiet"
21302   exec 5>/dev/null
21303   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21304   exec 5>>config.log
21305   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21306   # would make configure fail if this is the last instruction.
21307   $ac_cs_success || as_fn_exit 1
21308 fi
21309
21310 #
21311 # CONFIG_SUBDIRS section.
21312 #
21313 if test "$no_recursion" != yes; then
21314
21315   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21316   # so they do not pile up.
21317   ac_sub_configure_args=
21318   ac_prev=
21319   eval "set x $ac_configure_args"
21320   shift
21321   for ac_arg
21322   do
21323     if test -n "$ac_prev"; then
21324       ac_prev=
21325       continue
21326     fi
21327     case $ac_arg in
21328     -cache-file | --cache-file | --cache-fil | --cache-fi \
21329     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21330       ac_prev=cache_file ;;
21331     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21332     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21333     | --c=*)
21334       ;;
21335     --config-cache | -C)
21336       ;;
21337     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21338       ac_prev=srcdir ;;
21339     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21340       ;;
21341     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21342       ac_prev=prefix ;;
21343     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21344       ;;
21345     --disable-option-checking)
21346       ;;
21347     *)
21348       case $ac_arg in
21349       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21350       esac
21351       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21352     esac
21353   done
21354
21355   # Always prepend --prefix to ensure using the same prefix
21356   # in subdir configurations.
21357   ac_arg="--prefix=$prefix"
21358   case $ac_arg in
21359   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21360   esac
21361   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21362
21363   # Pass --silent
21364   if test "$silent" = yes; then
21365     ac_sub_configure_args="--silent $ac_sub_configure_args"
21366   fi
21367
21368   # Always prepend --disable-option-checking to silence warnings, since
21369   # different subdirs can have different --enable and --with options.
21370   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21371
21372   ac_popdir=`pwd`
21373   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21374
21375     # Do not complain, so a configure script can configure whichever
21376     # parts of a large source tree are present.
21377     test -d "$srcdir/$ac_dir" || continue
21378
21379     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21380     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21381     $as_echo "$ac_msg" >&6
21382     as_dir="$ac_dir"; as_fn_mkdir_p
21383     ac_builddir=.
21384
21385 case "$ac_dir" in
21386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21387 *)
21388   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21389   # A ".." for each directory in $ac_dir_suffix.
21390   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21391   case $ac_top_builddir_sub in
21392   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21393   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21394   esac ;;
21395 esac
21396 ac_abs_top_builddir=$ac_pwd
21397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21398 # for backward compatibility:
21399 ac_top_builddir=$ac_top_build_prefix
21400
21401 case $srcdir in
21402   .)  # We are building in place.
21403     ac_srcdir=.
21404     ac_top_srcdir=$ac_top_builddir_sub
21405     ac_abs_top_srcdir=$ac_pwd ;;
21406   [\\/]* | ?:[\\/]* )  # Absolute name.
21407     ac_srcdir=$srcdir$ac_dir_suffix;
21408     ac_top_srcdir=$srcdir
21409     ac_abs_top_srcdir=$srcdir ;;
21410   *) # Relative name.
21411     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21412     ac_top_srcdir=$ac_top_build_prefix$srcdir
21413     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21414 esac
21415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21416
21417
21418     cd "$ac_dir"
21419
21420     # Check for guested configure; otherwise get Cygnus style configure.
21421     if test -f "$ac_srcdir/configure.gnu"; then
21422       ac_sub_configure=$ac_srcdir/configure.gnu
21423     elif test -f "$ac_srcdir/configure"; then
21424       ac_sub_configure=$ac_srcdir/configure
21425     elif test -f "$ac_srcdir/configure.in"; then
21426       # This should be Cygnus configure.
21427       ac_sub_configure=$ac_aux_dir/configure
21428     else
21429       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21430 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21431       ac_sub_configure=
21432     fi
21433
21434     # The recursion is here.
21435     if test -n "$ac_sub_configure"; then
21436       # Make the cache file name correct relative to the subdirectory.
21437       case $cache_file in
21438       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21439       *) # Relative name.
21440         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21441       esac
21442
21443       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21444 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21445       # The eval makes quoting arguments work.
21446       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21447            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21448         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21449     fi
21450
21451     cd "$ac_popdir"
21452   done
21453 fi
21454 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21456 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21457 fi
21458
This page took 1.281703 seconds and 4 git commands to generate.