move sparc-sol-thread.c back into sol-thread.c.
[platform/upstream/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 GCORE_TRANSFORM_NAME
595 GDB_TRANSFORM_NAME
596 GDB_NM_FILE
597 LTLIBBABELTRACE
598 LIBBABELTRACE
599 HAVE_LIBBABELTRACE
600 frags
601 target_subdir
602 CONFIG_UNINSTALL
603 CONFIG_INSTALL
604 CONFIG_CLEAN
605 CONFIG_ALL
606 CONFIG_SRCS
607 CONFIG_DEPS
608 CONFIG_OBS
609 PROFILE_CFLAGS
610 ENABLE_CFLAGS
611 SIM_OBS
612 SIM
613 XMKMF
614 GDBTK_SRC_DIR
615 GDBTK_CFLAGS
616 GDBTKLIBS
617 X_LIBS
618 X_LDFLAGS
619 X_CFLAGS
620 TK_XINCLUDES
621 TK_DEPS
622 TK_LIBRARY
623 TK_INCLUDE
624 TK_STUB_LIB_SPEC
625 TK_STUB_LIB_FLAG
626 TK_STUB_LIB_FILE
627 TK_LIB_SPEC
628 TK_LIB_FLAG
629 TK_LIB_FILE
630 TK_SRC_DIR
631 TK_BIN_DIR
632 TK_VERSION
633 TCL_DEPS
634 TCL_LIBRARY
635 TCL_INCLUDE
636 TCL_STUB_LIB_SPEC
637 TCL_STUB_LIB_FLAG
638 TCL_STUB_LIB_FILE
639 TCL_LIB_SPEC
640 TCL_LIB_FLAG
641 TCL_LIB_FILE
642 TCL_SRC_DIR
643 TCL_BIN_DIR
644 TCL_PATCH_LEVEL
645 TCL_VERSION
646 WIN32LDAPP
647 GUI_CFLAGS_X
648 LIBGUI
649 LTLIBLZMA
650 LIBLZMA
651 HAVE_LIBLZMA
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 RDYNAMIC
660 ALLOCA
661 PYTHON_LIBS
662 PYTHON_CPPFLAGS
663 PYTHON_CFLAGS
664 python_prog_path
665 LTLIBEXPAT
666 LIBEXPAT
667 HAVE_LIBEXPAT
668 JIT_READER_DIR
669 TARGET_PTR
670 READLINE_TEXI_INCFLAG
671 READLINE_CFLAGS
672 READLINE_DEPS
673 READLINE
674 MIG
675 WINDRES
676 DLLTOOL
677 AR
678 YFLAGS
679 YACC
680 RANLIB
681 LN_S
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 AWK
686 REPORT_BUGS_TEXI
687 REPORT_BUGS_TO
688 PKGVERSION
689 HAVE_NATIVE_GCORE_TARGET
690 TARGET_OBS
691 subdirs
692 GDB_DATADIR
693 DEBUGDIR
694 MAKEINFO_EXTRA_FLAGS
695 MAKEINFOFLAGS
696 MAKEINFO
697 PACKAGE
698 GNULIB_STDINT_H
699 CATOBJEXT
700 GENCAT
701 INSTOBJEXT
702 DATADIRNAME
703 CATALOGS
704 POSUB
705 GMSGFMT
706 XGETTEXT
707 INCINTL
708 LIBINTL_DEP
709 LIBINTL
710 USE_NLS
711 SET_MAKE
712 GMAKE_FALSE
713 GMAKE_TRUE
714 MAKE
715 CCDEPMODE
716 DEPDIR
717 am__leading_dot
718 target_os
719 target_vendor
720 target_cpu
721 target
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 EGREP
731 GREP
732 CPP
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL'
781 ac_subst_files='host_makefile_frag'
782 ac_user_opts='
783 enable_option_checking
784 enable_maintainer_mode
785 enable_plugins
786 enable_largefile
787 with_separate_debug_dir
788 with_gdb_datadir
789 with_relocated_sources
790 with_auto_load_dir
791 with_auto_load_safe_path
792 enable_targets
793 enable_64_bit_bfd
794 enable_gdbcli
795 enable_gdbmi
796 enable_tui
797 enable_gdbtk
798 with_libunwind_ia64
799 with_curses
800 enable_profiling
801 with_pkgversion
802 with_bugurl
803 with_zlib
804 with_libiconv_prefix
805 with_iconv_bin
806 with_system_readline
807 with_jit_reader_dir
808 with_expat
809 with_gnu_ld
810 enable_rpath
811 with_libexpat_prefix
812 with_python
813 enable_libmcheck
814 with_included_regex
815 with_sysroot
816 with_system_gdbinit
817 enable_werror
818 enable_build_warnings
819 enable_gdb_build_warnings
820 with_lzma
821 with_liblzma_prefix
822 with_tcl
823 with_tk
824 with_x
825 enable_sim
826 enable_multi_ice
827 enable_gdbserver
828 with_babeltrace
829 with_libbabeltrace_prefix
830 '
831       ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CPP
840 MAKEINFO
841 MAKEINFOFLAGS
842 YACC
843 YFLAGS
844 XMKMF'
845 ac_subdirs_all='testsuite
846 gdbtk
847 multi-ice
848 gdbserver'
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902   # If the previous option needs an argument, assign it.
903   if test -n "$ac_prev"; then
904     eval $ac_prev=\$ac_option
905     ac_prev=
906     continue
907   fi
908
909   case $ac_option in
910   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911   *)    ac_optarg=yes ;;
912   esac
913
914   # Accept the important Cygnus configure options, so we can diagnose typos.
915
916   case $ac_dashdash$ac_option in
917   --)
918     ac_dashdash=yes ;;
919
920   -bindir | --bindir | --bindi | --bind | --bin | --bi)
921     ac_prev=bindir ;;
922   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
923     bindir=$ac_optarg ;;
924
925   -build | --build | --buil | --bui | --bu)
926     ac_prev=build_alias ;;
927   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928     build_alias=$ac_optarg ;;
929
930   -cache-file | --cache-file | --cache-fil | --cache-fi \
931   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932     ac_prev=cache_file ;;
933   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935     cache_file=$ac_optarg ;;
936
937   --config-cache | -C)
938     cache_file=config.cache ;;
939
940   -datadir | --datadir | --datadi | --datad)
941     ac_prev=datadir ;;
942   -datadir=* | --datadir=* | --datadi=* | --datad=*)
943     datadir=$ac_optarg ;;
944
945   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946   | --dataroo | --dataro | --datar)
947     ac_prev=datarootdir ;;
948   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950     datarootdir=$ac_optarg ;;
951
952   -disable-* | --disable-*)
953     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954     # Reject names that are not valid shell variable names.
955     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956       as_fn_error "invalid feature name: $ac_useropt"
957     ac_useropt_orig=$ac_useropt
958     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959     case $ac_user_opts in
960       *"
961 "enable_$ac_useropt"
962 "*) ;;
963       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964          ac_unrecognized_sep=', ';;
965     esac
966     eval enable_$ac_useropt=no ;;
967
968   -docdir | --docdir | --docdi | --doc | --do)
969     ac_prev=docdir ;;
970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971     docdir=$ac_optarg ;;
972
973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974     ac_prev=dvidir ;;
975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976     dvidir=$ac_optarg ;;
977
978   -enable-* | --enable-*)
979     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982       as_fn_error "invalid feature name: $ac_useropt"
983     ac_useropt_orig=$ac_useropt
984     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985     case $ac_user_opts in
986       *"
987 "enable_$ac_useropt"
988 "*) ;;
989       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990          ac_unrecognized_sep=', ';;
991     esac
992     eval enable_$ac_useropt=\$ac_optarg ;;
993
994   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996   | --exec | --exe | --ex)
997     ac_prev=exec_prefix ;;
998   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000   | --exec=* | --exe=* | --ex=*)
1001     exec_prefix=$ac_optarg ;;
1002
1003   -gas | --gas | --ga | --g)
1004     # Obsolete; use --with-gas.
1005     with_gas=yes ;;
1006
1007   -help | --help | --hel | --he | -h)
1008     ac_init_help=long ;;
1009   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010     ac_init_help=recursive ;;
1011   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012     ac_init_help=short ;;
1013
1014   -host | --host | --hos | --ho)
1015     ac_prev=host_alias ;;
1016   -host=* | --host=* | --hos=* | --ho=*)
1017     host_alias=$ac_optarg ;;
1018
1019   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020     ac_prev=htmldir ;;
1021   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022   | --ht=*)
1023     htmldir=$ac_optarg ;;
1024
1025   -includedir | --includedir | --includedi | --included | --include \
1026   | --includ | --inclu | --incl | --inc)
1027     ac_prev=includedir ;;
1028   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029   | --includ=* | --inclu=* | --incl=* | --inc=*)
1030     includedir=$ac_optarg ;;
1031
1032   -infodir | --infodir | --infodi | --infod | --info | --inf)
1033     ac_prev=infodir ;;
1034   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035     infodir=$ac_optarg ;;
1036
1037   -libdir | --libdir | --libdi | --libd)
1038     ac_prev=libdir ;;
1039   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040     libdir=$ac_optarg ;;
1041
1042   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043   | --libexe | --libex | --libe)
1044     ac_prev=libexecdir ;;
1045   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046   | --libexe=* | --libex=* | --libe=*)
1047     libexecdir=$ac_optarg ;;
1048
1049   -localedir | --localedir | --localedi | --localed | --locale)
1050     ac_prev=localedir ;;
1051   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052     localedir=$ac_optarg ;;
1053
1054   -localstatedir | --localstatedir | --localstatedi | --localstated \
1055   | --localstate | --localstat | --localsta | --localst | --locals)
1056     ac_prev=localstatedir ;;
1057   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059     localstatedir=$ac_optarg ;;
1060
1061   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062     ac_prev=mandir ;;
1063   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064     mandir=$ac_optarg ;;
1065
1066   -nfp | --nfp | --nf)
1067     # Obsolete; use --without-fp.
1068     with_fp=no ;;
1069
1070   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071   | --no-cr | --no-c | -n)
1072     no_create=yes ;;
1073
1074   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076     no_recursion=yes ;;
1077
1078   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080   | --oldin | --oldi | --old | --ol | --o)
1081     ac_prev=oldincludedir ;;
1082   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085     oldincludedir=$ac_optarg ;;
1086
1087   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088     ac_prev=prefix ;;
1089   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090     prefix=$ac_optarg ;;
1091
1092   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093   | --program-pre | --program-pr | --program-p)
1094     ac_prev=program_prefix ;;
1095   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097     program_prefix=$ac_optarg ;;
1098
1099   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100   | --program-suf | --program-su | --program-s)
1101     ac_prev=program_suffix ;;
1102   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104     program_suffix=$ac_optarg ;;
1105
1106   -program-transform-name | --program-transform-name \
1107   | --program-transform-nam | --program-transform-na \
1108   | --program-transform-n | --program-transform- \
1109   | --program-transform | --program-transfor \
1110   | --program-transfo | --program-transf \
1111   | --program-trans | --program-tran \
1112   | --progr-tra | --program-tr | --program-t)
1113     ac_prev=program_transform_name ;;
1114   -program-transform-name=* | --program-transform-name=* \
1115   | --program-transform-nam=* | --program-transform-na=* \
1116   | --program-transform-n=* | --program-transform-=* \
1117   | --program-transform=* | --program-transfor=* \
1118   | --program-transfo=* | --program-transf=* \
1119   | --program-trans=* | --program-tran=* \
1120   | --progr-tra=* | --program-tr=* | --program-t=*)
1121     program_transform_name=$ac_optarg ;;
1122
1123   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124     ac_prev=pdfdir ;;
1125   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126     pdfdir=$ac_optarg ;;
1127
1128   -psdir | --psdir | --psdi | --psd | --ps)
1129     ac_prev=psdir ;;
1130   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131     psdir=$ac_optarg ;;
1132
1133   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134   | -silent | --silent | --silen | --sile | --sil)
1135     silent=yes ;;
1136
1137   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138     ac_prev=sbindir ;;
1139   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140   | --sbi=* | --sb=*)
1141     sbindir=$ac_optarg ;;
1142
1143   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145   | --sharedst | --shareds | --shared | --share | --shar \
1146   | --sha | --sh)
1147     ac_prev=sharedstatedir ;;
1148   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151   | --sha=* | --sh=*)
1152     sharedstatedir=$ac_optarg ;;
1153
1154   -site | --site | --sit)
1155     ac_prev=site ;;
1156   -site=* | --site=* | --sit=*)
1157     site=$ac_optarg ;;
1158
1159   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160     ac_prev=srcdir ;;
1161   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162     srcdir=$ac_optarg ;;
1163
1164   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165   | --syscon | --sysco | --sysc | --sys | --sy)
1166     ac_prev=sysconfdir ;;
1167   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169     sysconfdir=$ac_optarg ;;
1170
1171   -target | --target | --targe | --targ | --tar | --ta | --t)
1172     ac_prev=target_alias ;;
1173   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174     target_alias=$ac_optarg ;;
1175
1176   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177     verbose=yes ;;
1178
1179   -version | --version | --versio | --versi | --vers | -V)
1180     ac_init_version=: ;;
1181
1182   -with-* | --with-*)
1183     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186       as_fn_error "invalid package name: $ac_useropt"
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=\$ac_optarg ;;
1197
1198   -without-* | --without-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error "invalid package name: $ac_useropt"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=no ;;
1213
1214   --x)
1215     # Obsolete; use --with-x.
1216     with_x=yes ;;
1217
1218   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219   | --x-incl | --x-inc | --x-in | --x-i)
1220     ac_prev=x_includes ;;
1221   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223     x_includes=$ac_optarg ;;
1224
1225   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227     ac_prev=x_libraries ;;
1228   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230     x_libraries=$ac_optarg ;;
1231
1232   -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     case $ac_envvar in #(
1240       '' | [0-9]* | *[!_$as_cr_alnum]* )
1241       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1242     esac
1243     eval $ac_envvar=\$ac_optarg
1244     export $ac_envvar ;;
1245
1246   *)
1247     # FIXME: should be removed in autoconf 3.0.
1248     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252     ;;
1253
1254   esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259   as_fn_error "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263   case $enable_option_checking in
1264     no) ;;
1265     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267   esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272                 datadir sysconfdir sharedstatedir localstatedir includedir \
1273                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274                 libdir localedir mandir
1275 do
1276   eval ac_val=\$$ac_var
1277   # Remove trailing slashes.
1278   case $ac_val in
1279     */ )
1280       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281       eval $ac_var=\$ac_val;;
1282   esac
1283   # Be sure to have absolute directory names.
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   as_fn_error "pwd does not report name of working directory"
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325   ac_srcdir_defaulted=yes
1326   # Try the directory containing this script, then the parent directory.
1327   ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329          X"$as_myself" : 'X\(//\)[^/]' \| \
1330          X"$as_myself" : 'X\(//\)$' \| \
1331          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)[^/].*/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\).*/{
1346             s//\1/
1347             q
1348           }
1349           s/.*/./; q'`
1350   srcdir=$ac_confdir
1351   if test ! -r "$srcdir/$ac_unique_file"; then
1352     srcdir=..
1353   fi
1354 else
1355   ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 fi
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 ac_abs_confdir=`(
1363         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1364         pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367   srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_env_${ac_var}_value=\$${ac_var}
1378   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386   # Omit some internal or obsolete options to make the list less imposing.
1387   # This message is too long to be a string in the A/UX 3.1 sh.
1388   cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399   -h, --help              display this help and exit
1400       --help=short        display options specific to this package
1401       --help=recursive    display the short help of all the included packages
1402   -V, --version           display version information and exit
1403   -q, --quiet, --silent   do not print \`checking...' messages
1404       --cache-file=FILE   cache test results in FILE [disabled]
1405   -C, --config-cache      alias for \`--cache-file=config.cache'
1406   -n, --no-create         do not create output files
1407       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410   --prefix=PREFIX         install architecture-independent files in PREFIX
1411                           [$ac_default_prefix]
1412   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                           [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423   --bindir=DIR            user executables [EPREFIX/bin]
1424   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1425   --libexecdir=DIR        program executables [EPREFIX/libexec]
1426   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1427   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1428   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1429   --libdir=DIR            object code libraries [EPREFIX/lib]
1430   --includedir=DIR        C header files [PREFIX/include]
1431   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1432   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1433   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1434   --infodir=DIR           info documentation [DATAROOTDIR/info]
1435   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1436   --mandir=DIR            man documentation [DATAROOTDIR/man]
1437   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1438   --htmldir=DIR           html documentation [DOCDIR]
1439   --dvidir=DIR            dvi documentation [DOCDIR]
1440   --pdfdir=DIR            pdf documentation [DOCDIR]
1441   --psdir=DIR             ps documentation [DOCDIR]
1442 _ACEOF
1443
1444   cat <<\_ACEOF
1445
1446 Program names:
1447   --program-prefix=PREFIX            prepend PREFIX to installed program names
1448   --program-suffix=SUFFIX            append SUFFIX to installed program names
1449   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1450
1451 X features:
1452   --x-includes=DIR    X include files are in DIR
1453   --x-libraries=DIR   X library files are in DIR
1454
1455 System types:
1456   --build=BUILD     configure for building on BUILD [guessed]
1457   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1458   --target=TARGET   configure for building compilers for TARGET [HOST]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-option-checking  ignore unrecognized --enable/--with options
1468   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470   --enable-maintainer-mode  enable make rules and dependencies not useful
1471                           (and sometimes confusing) to the casual installer
1472   --enable-plugins        Enable support for plugins (defaults no)
1473   --disable-largefile     omit support for large files
1474   --enable-targets=TARGETS
1475                           alternative target configurations
1476   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1477   --disable-gdbcli        disable command-line interface (CLI)
1478   --disable-gdbmi         disable machine-interface (MI)
1479   --enable-tui            enable full-screen terminal user interface (TUI)
1480   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1481   --enable-profiling      enable profiling of GDB
1482   --disable-rpath         do not hardcode runtime library paths
1483   --enable-libmcheck      Try building GDB with -lmcheck if available
1484   --enable-werror         treat compile warnings as errors
1485   --enable-build-warnings enable build-time compiler warnings if gcc is used
1486   --enable-gdb-build-warnings
1487                           enable GDB specific build-time compiler warnings if
1488                           gcc is used
1489   --enable-sim            link gdb with simulator
1490   --enable-multi-ice      build the multi-ice-gdb-server
1491   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
1492                           is auto)
1493
1494 Optional Packages:
1495   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497   --with-separate-debug-dir=PATH
1498                           look for global separate debug info in this path
1499                           [LIBDIR/debug]
1500   --with-gdb-datadir=PATH look for global separate data files in this path
1501                           [DATADIR/gdb]
1502   --with-relocated-sources=PATH
1503                           automatically relocate this path for source files
1504   --with-auto-load-dir=PATH
1505                           directories from which to load auto-loaded scripts
1506                           [$debugdir:$datadir/auto-load]
1507   --with-auto-load-safe-path=PATH
1508                           directories safe to hold auto-loaded files
1509                           [--with-auto-load-dir]
1510   --without-auto-load-safe-path
1511                           do not restrict auto-loaded files locations
1512   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1513   --with-curses           use the curses library instead of the termcap
1514                           library
1515   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1516   --with-bugurl=URL       Direct users to URL to report a bug
1517   --with-zlib             include zlib support (auto/yes/no) default=auto
1518   --with-libiconv-prefix=DIR
1519                           search for libiconv in DIR/include and DIR/lib
1520   --with-iconv-bin=PATH   specify where to find the iconv program
1521   --with-system-readline  use installed readline library
1522   --with-jit-reader-dir=PATH
1523                           directory to load the JIT readers from
1524   --with-expat            include expat support (auto/yes/no)
1525   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1526   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1527   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1528   --with-python[=PYTHON]  include python support
1529                           (auto/yes/no/<python-program>)
1530   --without-included-regex
1531                           don't use included regex; this is the default on
1532                           systems with version 2 of the GNU C library (use
1533                           with caution on other system)
1534   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1535   --with-system-gdbinit=PATH
1536                           automatically load a system-wide gdbinit file
1537   --with-lzma             support lzma compression (auto/yes/no)
1538   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
1539   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
1540   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1541   --with-tk               directory containing tk configuration (tkConfig.sh)
1542   --with-x                use the X Window System
1543   --with-babeltrace       include babeltrace support (auto/yes/no)
1544   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
1545   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   MAKEINFO    Parent configure detects if it is of sufficient version.
1557   MAKEINFOFLAGS
1558               Parameters for MAKEINFO.
1559   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1560               the first program found out of: `bison -y', `byacc', `yacc'.
1561   YFLAGS      The list of arguments that will be passed by default to $YACC.
1562               This script will default YFLAGS to the empty string to avoid a
1563               default value of `-d' given by some make applications.
1564   XMKMF       Path to xmkmf, Makefile generator for X Window System
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to the package provider.
1570 _ACEOF
1571 ac_status=$?
1572 fi
1573
1574 if test "$ac_init_help" = "recursive"; then
1575   # If there are subdirs, report their specific --help.
1576   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577     test -d "$ac_dir" ||
1578       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579       continue
1580     ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586   # A ".." for each directory in $ac_dir_suffix.
1587   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588   case $ac_top_builddir_sub in
1589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591   esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599   .)  # We are building in place.
1600     ac_srcdir=.
1601     ac_top_srcdir=$ac_top_builddir_sub
1602     ac_abs_top_srcdir=$ac_pwd ;;
1603   [\\/]* | ?:[\\/]* )  # Absolute name.
1604     ac_srcdir=$srcdir$ac_dir_suffix;
1605     ac_top_srcdir=$srcdir
1606     ac_abs_top_srcdir=$srcdir ;;
1607   *) # Relative name.
1608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609     ac_top_srcdir=$ac_top_build_prefix$srcdir
1610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614     cd "$ac_dir" || { ac_status=$?; continue; }
1615     # Check for guested configure.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 configure
1633 generated by GNU Autoconf 2.64
1634
1635 Copyright (C) 2009 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639   exit
1640 fi
1641
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1645
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   rm -f conftest.$ac_objext
1653   if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_compile") 2>conftest.err
1661   ac_status=$?
1662   if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666   fi
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && {
1669          test -z "$ac_c_werror_flag" ||
1670          test ! -s conftest.err
1671        } && test -s conftest.$ac_objext; then :
1672   ac_retval=0
1673 else
1674   $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677         ac_retval=1
1678 fi
1679   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680   return $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698   ac_status=$?
1699   if test -s conftest.err; then
1700     grep -v '^ *+' conftest.err >conftest.er1
1701     cat conftest.er1 >&5
1702     mv -f conftest.er1 conftest.err
1703   fi
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } >/dev/null && {
1706          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707          test ! -s conftest.err
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714     ac_retval=1
1715 fi
1716   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717   return $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1722 # -------------------------------------------------------
1723 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1724 # the include files in INCLUDES and setting the cache variable VAR
1725 # accordingly.
1726 ac_fn_c_check_header_mongrel ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733   $as_echo_n "(cached) " >&6
1734 fi
1735 eval ac_res=\$$3
1736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 else
1739   # Is the header compilable?
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1741 $as_echo_n "checking $2 usability... " >&6; }
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h.  */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748   ac_header_compiler=yes
1749 else
1750   ac_header_compiler=no
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1754 $as_echo "$ac_header_compiler" >&6; }
1755
1756 # Is the header present?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1758 $as_echo_n "checking $2 presence... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h.  */
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_cpp "$LINENO"; then :
1764   ac_header_preproc=yes
1765 else
1766   ac_header_preproc=no
1767 fi
1768 rm -f conftest.err conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1770 $as_echo "$ac_header_preproc" >&6; }
1771
1772 # So?  What about this header?
1773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774   yes:no: )
1775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1776 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1778 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1779     ;;
1780   no:yes:* )
1781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1782 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1784 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1786 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1788 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1790 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791     ;;
1792 esac
1793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796   $as_echo_n "(cached) " >&6
1797 else
1798   eval "$3=\$ac_header_compiler"
1799 fi
1800 eval ac_res=\$$3
1801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 fi
1804   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
1806 } # ac_fn_c_check_header_mongrel
1807
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1812 ac_fn_c_try_run ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_link") 2>&5
1823   ac_status=$?
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826   { { case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_try") 2>&5
1833   ac_status=$?
1834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835   test $ac_status = 0; }; }; then :
1836   ac_retval=0
1837 else
1838   $as_echo "$as_me: program exited with status $ac_status" >&5
1839        $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842        ac_retval=$ac_status
1843 fi
1844   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846   return $ac_retval
1847
1848 } # ac_fn_c_try_run
1849
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860   $as_echo_n "(cached) " >&6
1861 else
1862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868   eval "$3=yes"
1869 else
1870   eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879 } # ac_fn_c_check_header_compile
1880
1881 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1882 # --------------------------------------------
1883 # Tries to find the compile-time value of EXPR in a program that includes
1884 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1885 # computed
1886 ac_fn_c_compute_int ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if test "$cross_compiling" = yes; then
1890     # Depending upon the size, compute the lo and hi bounds.
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 int
1895 main ()
1896 {
1897 static int test_array [1 - 2 * !(($2) >= 0)];
1898 test_array [0] = 0
1899
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905   ac_lo=0 ac_mid=0
1906   while :; do
1907     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 int
1911 main ()
1912 {
1913 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1914 test_array [0] = 0
1915
1916   ;
1917   return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921   ac_hi=$ac_mid; break
1922 else
1923   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1924                         if test $ac_lo -le $ac_mid; then
1925                           ac_lo= ac_hi=
1926                           break
1927                         fi
1928                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931   done
1932 else
1933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 $4
1936 int
1937 main ()
1938 {
1939 static int test_array [1 - 2 * !(($2) < 0)];
1940 test_array [0] = 0
1941
1942   ;
1943   return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947   ac_hi=-1 ac_mid=-1
1948   while :; do
1949     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1956 test_array [0] = 0
1957
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_lo=$ac_mid; break
1964 else
1965   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1966                         if test $ac_mid -le $ac_hi; then
1967                           ac_lo= ac_hi=
1968                           break
1969                         fi
1970                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973   done
1974 else
1975   ac_lo= ac_hi=
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 # Binary search between lo and hi bounds.
1981 while test "x$ac_lo" != "x$ac_hi"; do
1982   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1990 test_array [0] = 0
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_hi=$ac_mid
1998 else
1999   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 done
2003 case $ac_lo in #((
2004 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2005 '') ac_retval=1 ;;
2006 esac
2007   else
2008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 static long int longval () { return $2; }
2012 static unsigned long int ulongval () { return $2; }
2013 #include <stdio.h>
2014 #include <stdlib.h>
2015 int
2016 main ()
2017 {
2018
2019   FILE *f = fopen ("conftest.val", "w");
2020   if (! f)
2021     return 1;
2022   if (($2) < 0)
2023     {
2024       long int i = longval ();
2025       if (i != ($2))
2026         return 1;
2027       fprintf (f, "%ld", i);
2028     }
2029   else
2030     {
2031       unsigned long int i = ulongval ();
2032       if (i != ($2))
2033         return 1;
2034       fprintf (f, "%lu", i);
2035     }
2036   /* Do not output a trailing newline, as this causes \r\n confusion
2037      on some platforms.  */
2038   return ferror (f) || fclose (f) != 0;
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_run "$LINENO"; then :
2045   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2046 else
2047   ac_retval=1
2048 fi
2049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050   conftest.$ac_objext conftest.beam conftest.$ac_ext
2051 rm -f conftest.val
2052
2053   fi
2054   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055   return $ac_retval
2056
2057 } # ac_fn_c_compute_int
2058
2059 # ac_fn_c_try_link LINENO
2060 # -----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_c_try_link ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   rm -f conftest.$ac_objext conftest$ac_exeext
2066   if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_link") 2>conftest.err
2074   ac_status=$?
2075   if test -s conftest.err; then
2076     grep -v '^ *+' conftest.err >conftest.er1
2077     cat conftest.er1 >&5
2078     mv -f conftest.er1 conftest.err
2079   fi
2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081   test $ac_status = 0; } && {
2082          test -z "$ac_c_werror_flag" ||
2083          test ! -s conftest.err
2084        } && test -s conftest$ac_exeext && {
2085          test "$cross_compiling" = yes ||
2086          $as_test_x conftest$ac_exeext
2087        }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093         ac_retval=1
2094 fi
2095   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2096   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2097   # interfere with the next link command; also delete a directory that is
2098   # left behind by Apple's compiler.  We do this before executing the actions.
2099   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101   return $ac_retval
2102
2103 } # ac_fn_c_try_link
2104
2105 # ac_fn_c_check_func LINENO FUNC VAR
2106 # ----------------------------------
2107 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2108 ac_fn_c_check_func ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2114   $as_echo_n "(cached) " >&6
2115 else
2116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2120 #define $2 innocuous_$2
2121
2122 /* System header to define __stub macros and hopefully few prototypes,
2123     which can conflict with char $2 (); below.
2124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2125     <limits.h> exists even on freestanding compilers.  */
2126
2127 #ifdef __STDC__
2128 # include <limits.h>
2129 #else
2130 # include <assert.h>
2131 #endif
2132
2133 #undef $2
2134
2135 /* Override any GCC internal prototype to avoid an error.
2136    Use char because int might match the return type of a GCC
2137    builtin and then its argument prototype would still apply.  */
2138 #ifdef __cplusplus
2139 extern "C"
2140 #endif
2141 char $2 ();
2142 /* The GNU C library defines this for functions which it implements
2143     to always fail with ENOSYS.  Some functions are actually named
2144     something starting with __ and the normal name is an alias.  */
2145 #if defined __stub_$2 || defined __stub___$2
2146 choke me
2147 #endif
2148
2149 int
2150 main ()
2151 {
2152 return $2 ();
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_link "$LINENO"; then :
2158   eval "$3=yes"
2159 else
2160   eval "$3=no"
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext \
2163     conftest$ac_exeext conftest.$ac_ext
2164 fi
2165 eval ac_res=\$$3
2166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169
2170 } # ac_fn_c_check_func
2171
2172 # ac_fn_c_check_decl LINENO SYMBOL VAR
2173 # ------------------------------------
2174 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2175 ac_fn_c_check_decl ()
2176 {
2177   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178   as_decl_name=`echo $2|sed 's/ *(.*//'`
2179   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183   $as_echo_n "(cached) " >&6
2184 else
2185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $4
2188 int
2189 main ()
2190 {
2191 #ifndef $as_decl_name
2192 #ifdef __cplusplus
2193   (void) $as_decl_use;
2194 #else
2195   (void) $as_decl_name;
2196 #endif
2197 #endif
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204   eval "$3=yes"
2205 else
2206   eval "$3=no"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$3
2211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214
2215 } # ac_fn_c_check_decl
2216
2217 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2218 # ----------------------------------------------------
2219 # Tries to find if the field MEMBER exists in type AGGR, after including
2220 # INCLUDES, setting cache variable VAR accordingly.
2221 ac_fn_c_check_member ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2225 $as_echo_n "checking for $2.$3... " >&6; }
2226 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $5
2232 int
2233 main ()
2234 {
2235 static $2 ac_aggr;
2236 if (ac_aggr.$3)
2237 return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   eval "$4=yes"
2244 else
2245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $5
2248 int
2249 main ()
2250 {
2251 static $2 ac_aggr;
2252 if (sizeof ac_aggr.$3)
2253 return 0;
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259   eval "$4=yes"
2260 else
2261   eval "$4=no"
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 eval ac_res=\$$4
2268                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271
2272 } # ac_fn_c_check_member
2273
2274 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2275 # -------------------------------------------
2276 # Tests whether TYPE exists after having included INCLUDES, setting cache
2277 # variable VAR accordingly.
2278 ac_fn_c_check_type ()
2279 {
2280   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284   $as_echo_n "(cached) " >&6
2285 else
2286   eval "$3=no"
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 int
2291 main ()
2292 {
2293 if (sizeof ($2))
2294          return 0;
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $4
2303 int
2304 main ()
2305 {
2306 if (sizeof (($2)))
2307             return 0;
2308   ;
2309   return 0;
2310 }
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313
2314 else
2315   eval "$3=yes"
2316 fi
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 fi
2321 eval ac_res=\$$3
2322                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2323 $as_echo "$ac_res" >&6; }
2324   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2325
2326 } # ac_fn_c_check_type
2327 cat >config.log <<_ACEOF
2328 This file contains any messages produced by compilers while
2329 running configure, to aid debugging if configure makes a mistake.
2330
2331 It was created by $as_me, which was
2332 generated by GNU Autoconf 2.64.  Invocation command line was
2333
2334   $ $0 $@
2335
2336 _ACEOF
2337 exec 5>>config.log
2338 {
2339 cat <<_ASUNAME
2340 ## --------- ##
2341 ## Platform. ##
2342 ## --------- ##
2343
2344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2349
2350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2351 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2352
2353 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2354 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2356 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2357 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2358 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2359 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2360
2361 _ASUNAME
2362
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368     $as_echo "PATH: $as_dir"
2369   done
2370 IFS=$as_save_IFS
2371
2372 } >&5
2373
2374 cat >&5 <<_ACEOF
2375
2376
2377 ## ----------- ##
2378 ## Core tests. ##
2379 ## ----------- ##
2380
2381 _ACEOF
2382
2383
2384 # Keep a trace of the command line.
2385 # Strip out --no-create and --no-recursion so they do not pile up.
2386 # Strip out --silent because we don't want to record it for future runs.
2387 # Also quote any args containing shell meta-characters.
2388 # Make two passes to allow for proper duplicate-argument suppression.
2389 ac_configure_args=
2390 ac_configure_args0=
2391 ac_configure_args1=
2392 ac_must_keep_next=false
2393 for ac_pass in 1 2
2394 do
2395   for ac_arg
2396   do
2397     case $ac_arg in
2398     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2399     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2400     | -silent | --silent | --silen | --sile | --sil)
2401       continue ;;
2402     *\'*)
2403       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2404     esac
2405     case $ac_pass in
2406     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2407     2)
2408       as_fn_append ac_configure_args1 " '$ac_arg'"
2409       if test $ac_must_keep_next = true; then
2410         ac_must_keep_next=false # Got value, back to normal.
2411       else
2412         case $ac_arg in
2413           *=* | --config-cache | -C | -disable-* | --disable-* \
2414           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2415           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2416           | -with-* | --with-* | -without-* | --without-* | --x)
2417             case "$ac_configure_args0 " in
2418               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2419             esac
2420             ;;
2421           -* ) ac_must_keep_next=true ;;
2422         esac
2423       fi
2424       as_fn_append ac_configure_args " '$ac_arg'"
2425       ;;
2426     esac
2427   done
2428 done
2429 { ac_configure_args0=; unset ac_configure_args0;}
2430 { ac_configure_args1=; unset ac_configure_args1;}
2431
2432 # When interrupted or exit'd, cleanup temporary files, and complete
2433 # config.log.  We remove comments because anyway the quotes in there
2434 # would cause problems or look ugly.
2435 # WARNING: Use '\'' to represent an apostrophe within the trap.
2436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2437 trap 'exit_status=$?
2438   # Save into config.log some information that might help in debugging.
2439   {
2440     echo
2441
2442     cat <<\_ASBOX
2443 ## ---------------- ##
2444 ## Cache variables. ##
2445 ## ---------------- ##
2446 _ASBOX
2447     echo
2448     # The following way of writing the cache mishandles newlines in values,
2449 (
2450   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2451     eval ac_val=\$$ac_var
2452     case $ac_val in #(
2453     *${as_nl}*)
2454       case $ac_var in #(
2455       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2456 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2457       esac
2458       case $ac_var in #(
2459       _ | IFS | as_nl) ;; #(
2460       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2461       *) { eval $ac_var=; unset $ac_var;} ;;
2462       esac ;;
2463     esac
2464   done
2465   (set) 2>&1 |
2466     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2467     *${as_nl}ac_space=\ *)
2468       sed -n \
2469         "s/'\''/'\''\\\\'\'''\''/g;
2470           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2471       ;; #(
2472     *)
2473       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2474       ;;
2475     esac |
2476     sort
2477 )
2478     echo
2479
2480     cat <<\_ASBOX
2481 ## ----------------- ##
2482 ## Output variables. ##
2483 ## ----------------- ##
2484 _ASBOX
2485     echo
2486     for ac_var in $ac_subst_vars
2487     do
2488       eval ac_val=\$$ac_var
2489       case $ac_val in
2490       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2491       esac
2492       $as_echo "$ac_var='\''$ac_val'\''"
2493     done | sort
2494     echo
2495
2496     if test -n "$ac_subst_files"; then
2497       cat <<\_ASBOX
2498 ## ------------------- ##
2499 ## File substitutions. ##
2500 ## ------------------- ##
2501 _ASBOX
2502       echo
2503       for ac_var in $ac_subst_files
2504       do
2505         eval ac_val=\$$ac_var
2506         case $ac_val in
2507         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508         esac
2509         $as_echo "$ac_var='\''$ac_val'\''"
2510       done | sort
2511       echo
2512     fi
2513
2514     if test -s confdefs.h; then
2515       cat <<\_ASBOX
2516 ## ----------- ##
2517 ## confdefs.h. ##
2518 ## ----------- ##
2519 _ASBOX
2520       echo
2521       cat confdefs.h
2522       echo
2523     fi
2524     test "$ac_signal" != 0 &&
2525       $as_echo "$as_me: caught signal $ac_signal"
2526     $as_echo "$as_me: exit $exit_status"
2527   } >&5
2528   rm -f core *.core core.conftest.* &&
2529     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2530     exit $exit_status
2531 ' 0
2532 for ac_signal in 1 2 13 15; do
2533   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2534 done
2535 ac_signal=0
2536
2537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2538 rm -f -r conftest* confdefs.h
2539
2540 $as_echo "/* confdefs.h */" > confdefs.h
2541
2542 # Predefined preprocessor variables.
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_NAME "$PACKAGE_NAME"
2546 _ACEOF
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2550 _ACEOF
2551
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2554 _ACEOF
2555
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_STRING "$PACKAGE_STRING"
2558 _ACEOF
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2562 _ACEOF
2563
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_URL "$PACKAGE_URL"
2566 _ACEOF
2567
2568
2569 # Let the site file select an alternate cache file if it wants to.
2570 # Prefer an explicitly selected file to automatically selected ones.
2571 ac_site_file1=NONE
2572 ac_site_file2=NONE
2573 if test -n "$CONFIG_SITE"; then
2574   ac_site_file1=$CONFIG_SITE
2575 elif test "x$prefix" != xNONE; then
2576   ac_site_file1=$prefix/share/config.site
2577   ac_site_file2=$prefix/etc/config.site
2578 else
2579   ac_site_file1=$ac_default_prefix/share/config.site
2580   ac_site_file2=$ac_default_prefix/etc/config.site
2581 fi
2582 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2583 do
2584   test "x$ac_site_file" = xNONE && continue
2585   if test -r "$ac_site_file"; then
2586     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2587 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2588     sed 's/^/| /' "$ac_site_file" >&5
2589     . "$ac_site_file"
2590   fi
2591 done
2592
2593 if test -r "$cache_file"; then
2594   # Some versions of bash will fail to source /dev/null (special
2595   # files actually), so we avoid doing that.
2596   if test -f "$cache_file"; then
2597     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2598 $as_echo "$as_me: loading cache $cache_file" >&6;}
2599     case $cache_file in
2600       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2601       *)                      . "./$cache_file";;
2602     esac
2603   fi
2604 else
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2606 $as_echo "$as_me: creating cache $cache_file" >&6;}
2607   >$cache_file
2608 fi
2609
2610 # Check that the precious variables saved in the cache have kept the same
2611 # value.
2612 ac_cache_corrupted=false
2613 for ac_var in $ac_precious_vars; do
2614   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2615   eval ac_new_set=\$ac_env_${ac_var}_set
2616   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2617   eval ac_new_val=\$ac_env_${ac_var}_value
2618   case $ac_old_set,$ac_new_set in
2619     set,)
2620       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2621 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2622       ac_cache_corrupted=: ;;
2623     ,set)
2624       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2626       ac_cache_corrupted=: ;;
2627     ,);;
2628     *)
2629       if test "x$ac_old_val" != "x$ac_new_val"; then
2630         # differences in whitespace do not lead to failure.
2631         ac_old_val_w=`echo x $ac_old_val`
2632         ac_new_val_w=`echo x $ac_new_val`
2633         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2634           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2635 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2636           ac_cache_corrupted=:
2637         else
2638           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2639 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2640           eval $ac_var=\$ac_old_val
2641         fi
2642         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2643 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2644         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2645 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2646       fi;;
2647   esac
2648   # Pass precious variables to config.status.
2649   if test "$ac_new_set" = set; then
2650     case $ac_new_val in
2651     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2652     *) ac_arg=$ac_var=$ac_new_val ;;
2653     esac
2654     case " $ac_configure_args " in
2655       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2656       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657     esac
2658   fi
2659 done
2660 if $ac_cache_corrupted; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2664 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2665   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2666 fi
2667 ## -------------------- ##
2668 ## Main body of script. ##
2669 ## -------------------- ##
2670
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676
2677
2678
2679
2680
2681 ac_config_headers="$ac_config_headers config.h:config.in"
2682
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2685 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2686     # Check whether --enable-maintainer-mode was given.
2687 if test "${enable_maintainer_mode+set}" = set; then :
2688   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2689 else
2690   USE_MAINTAINER_MODE=no
2691 fi
2692
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2694 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2695    if test $USE_MAINTAINER_MODE = yes; then
2696   MAINTAINER_MODE_TRUE=
2697   MAINTAINER_MODE_FALSE='#'
2698 else
2699   MAINTAINER_MODE_TRUE='#'
2700   MAINTAINER_MODE_FALSE=
2701 fi
2702
2703   MAINT=$MAINTAINER_MODE_TRUE
2704
2705
2706
2707 # Provide more thorough testing by -lmcheck.
2708 # Set it to 'true' for development snapshots, 'false' for releases or
2709 # pre-releases.
2710 development=true
2711
2712 ac_ext=c
2713 ac_cpp='$CPP $CPPFLAGS'
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717 if test -n "$ac_tool_prefix"; then
2718   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if test "${ac_cv_prog_CC+set}" = set; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   if test -n "$CC"; then
2726   ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733     for ac_exec_ext in '' $ac_executable_extensions; do
2734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737     break 2
2738   fi
2739 done
2740   done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2749 else
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754
2755 fi
2756 if test -z "$ac_cv_prog_CC"; then
2757   ac_ct_CC=$CC
2758   # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$ac_ct_CC"; then
2766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     ac_cv_prog_ac_ct_CC="gcc"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794   if test "x$ac_ct_CC" = x; then
2795     CC=""
2796   else
2797     case $cross_compiling:$ac_tool_warned in
2798 yes:)
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801 ac_tool_warned=yes ;;
2802 esac
2803     CC=$ac_ct_CC
2804   fi
2805 else
2806   CC="$ac_cv_prog_CC"
2807 fi
2808
2809 if test -z "$CC"; then
2810           if test -n "$ac_tool_prefix"; then
2811     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}cc; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_CC+set}" = set; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$CC"; then
2819   ac_cv_prog_CC="$CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_CC="${ac_tool_prefix}cc"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 CC=$ac_cv_prog_CC
2839 if test -n "$CC"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841 $as_echo "$CC" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848   fi
2849 fi
2850 if test -z "$CC"; then
2851   # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if test "${ac_cv_prog_CC+set}" = set; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$CC"; then
2859   ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861   ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865   IFS=$as_save_IFS
2866   test -z "$as_dir" && as_dir=.
2867     for ac_exec_ext in '' $ac_executable_extensions; do
2868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870        ac_prog_rejected=yes
2871        continue
2872      fi
2873     ac_cv_prog_CC="cc"
2874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875     break 2
2876   fi
2877 done
2878   done
2879 IFS=$as_save_IFS
2880
2881 if test $ac_prog_rejected = yes; then
2882   # We found a bogon in the path, so make sure we never use it.
2883   set dummy $ac_cv_prog_CC
2884   shift
2885   if test $# != 0; then
2886     # We chose a different compiler from the bogus one.
2887     # However, it has the same basename, so the bogon will be chosen
2888     # first if we set CC to just the basename; use the full file name.
2889     shift
2890     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891   fi
2892 fi
2893 fi
2894 fi
2895 CC=$ac_cv_prog_CC
2896 if test -n "$CC"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898 $as_echo "$CC" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$CC"; then
2907   if test -n "$ac_tool_prefix"; then
2908   for ac_prog in cl.exe
2909   do
2910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if test "${ac_cv_prog_CC+set}" = set; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947     test -n "$CC" && break
2948   done
2949 fi
2950 if test -z "$CC"; then
2951   ac_ct_CC=$CC
2952   for ac_prog in cl.exe
2953 do
2954   # Extract the first word of "$ac_prog", so it can be a program name with args.
2955 set dummy $ac_prog; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   if test -n "$ac_ct_CC"; then
2962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967   IFS=$as_save_IFS
2968   test -z "$as_dir" && as_dir=.
2969     for ac_exec_ext in '' $ac_executable_extensions; do
2970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971     ac_cv_prog_ac_ct_CC="$ac_prog"
2972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973     break 2
2974   fi
2975 done
2976   done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 $as_echo "$ac_ct_CC" >&6; }
2985 else
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991   test -n "$ac_ct_CC" && break
2992 done
2993
2994   if test "x$ac_ct_CC" = x; then
2995     CC=""
2996   else
2997     case $cross_compiling:$ac_tool_warned in
2998 yes:)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003     CC=$ac_ct_CC
3004   fi
3005 fi
3006
3007 fi
3008
3009
3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error "no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details." "$LINENO" 5; }
3014
3015 # Provide some information about the compiler.
3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017 set X $ac_compile
3018 ac_compiler=$2
3019 for ac_option in --version -v -V -qversion; do
3020   { { ac_try="$ac_compiler $ac_option >&5"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3028   ac_status=$?
3029   if test -s conftest.err; then
3030     sed '10a\
3031 ... rest of stderr output deleted ...
3032          10q' conftest.err >conftest.er1
3033     cat conftest.er1 >&5
3034     rm -f conftest.er1 conftest.err
3035   fi
3036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037   test $ac_status = 0; }
3038 done
3039
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h.  */
3042
3043 int
3044 main ()
3045 {
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 ac_clean_files_save=$ac_clean_files
3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3053 # Try to create an executable without -o first, disregard a.out.
3054 # It will help us diagnose broken compilers, and finding out an intuition
3055 # of exeext.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3057 $as_echo_n "checking for C compiler default output file name... " >&6; }
3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3059
3060 # The possible output files:
3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3062
3063 ac_rmfiles=
3064 for ac_file in $ac_files
3065 do
3066   case $ac_file in
3067     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069   esac
3070 done
3071 rm -f $ac_rmfiles
3072
3073 if { { ac_try="$ac_link_default"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080   (eval "$ac_link_default") 2>&5
3081   ac_status=$?
3082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083   test $ac_status = 0; }; then :
3084   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3087 # so that the user can short-circuit this test for compilers unknown to
3088 # Autoconf.
3089 for ac_file in $ac_files ''
3090 do
3091   test -f "$ac_file" || continue
3092   case $ac_file in
3093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094         ;;
3095     [ab].out )
3096         # We found the default executable, but exeext='' is most
3097         # certainly right.
3098         break;;
3099     *.* )
3100         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3101         then :; else
3102            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103         fi
3104         # We set ac_cv_exeext here because the later test for it is not
3105         # safe: cross compilers may not add the suffix if given an `-o'
3106         # argument, so we may need to know it at that point already.
3107         # Even if this section looks crufty: it has the advantage of
3108         # actually working.
3109         break;;
3110     * )
3111         break;;
3112   esac
3113 done
3114 test "$ac_cv_exeext" = no && ac_cv_exeext=
3115
3116 else
3117   ac_file=''
3118 fi
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3120 $as_echo "$ac_file" >&6; }
3121 if test -z "$ac_file"; then :
3122   $as_echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 { as_fn_set_status 77
3128 as_fn_error "C compiler cannot create executables
3129 See \`config.log' for more details." "$LINENO" 5; }; }
3130 fi
3131 ac_exeext=$ac_cv_exeext
3132
3133 # Check that the compiler produces executables we can run.  If not, either
3134 # the compiler is broken, or we cross compile.
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3136 $as_echo_n "checking whether the C compiler works... " >&6; }
3137 # If not cross compiling, check that we can run a simple program.
3138 if test "$cross_compiling" != yes; then
3139   if { ac_try='./$ac_file'
3140   { { case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149   test $ac_status = 0; }; }; then
3150     cross_compiling=no
3151   else
3152     if test "$cross_compiling" = maybe; then
3153         cross_compiling=yes
3154     else
3155         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error "cannot run C compiled programs.
3158 If you meant to cross compile, use \`--host'.
3159 See \`config.log' for more details." "$LINENO" 5; }
3160     fi
3161   fi
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3165
3166 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3167 ac_clean_files=$ac_clean_files_save
3168 # Check that the compiler produces executables we can run.  If not, either
3169 # the compiler is broken, or we cross compile.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3171 $as_echo_n "checking whether we are cross compiling... " >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3173 $as_echo "$cross_compiling" >&6; }
3174
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3176 $as_echo_n "checking for suffix of executables... " >&6; }
3177 if { { ac_try="$ac_link"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184   (eval "$ac_link") 2>&5
3185   ac_status=$?
3186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187   test $ac_status = 0; }; then :
3188   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3189 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3190 # work properly (i.e., refer to `conftest.exe'), while it won't with
3191 # `rm'.
3192 for ac_file in conftest.exe conftest conftest.*; do
3193   test -f "$ac_file" || continue
3194   case $ac_file in
3195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3197           break;;
3198     * ) break;;
3199   esac
3200 done
3201 else
3202   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error "cannot compute suffix of executables: cannot compile and link
3205 See \`config.log' for more details." "$LINENO" 5; }
3206 fi
3207 rm -f conftest$ac_cv_exeext
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3209 $as_echo "$ac_cv_exeext" >&6; }
3210
3211 rm -f conftest.$ac_ext
3212 EXEEXT=$ac_cv_exeext
3213 ac_exeext=$EXEEXT
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215 $as_echo_n "checking for suffix of object files... " >&6; }
3216 if test "${ac_cv_objext+set}" = set; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.o conftest.obj
3231 if { { ac_try="$ac_compile"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238   (eval "$ac_compile") 2>&5
3239   ac_status=$?
3240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241   test $ac_status = 0; }; then :
3242   for ac_file in conftest.o conftest.obj conftest.*; do
3243   test -f "$ac_file" || continue;
3244   case $ac_file in
3245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247        break;;
3248   esac
3249 done
3250 else
3251   $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error "cannot compute suffix of object files: cannot compile
3257 See \`config.log' for more details." "$LINENO" 5; }
3258 fi
3259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260 fi
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262 $as_echo "$ac_cv_objext" >&6; }
3263 OBJEXT=$ac_cv_objext
3264 ac_objext=$OBJEXT
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h.  */
3272
3273 int
3274 main ()
3275 {
3276 #ifndef __GNUC__
3277        choke me
3278 #endif
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285   ac_compiler_gnu=yes
3286 else
3287   ac_compiler_gnu=no
3288 fi
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295 if test $ac_compiler_gnu = yes; then
3296   GCC=yes
3297 else
3298   GCC=
3299 fi
3300 ac_test_CFLAGS=${CFLAGS+set}
3301 ac_save_CFLAGS=$CFLAGS
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3304 if test "${ac_cv_prog_cc_g+set}" = set; then :
3305   $as_echo_n "(cached) " >&6
3306 else
3307   ac_save_c_werror_flag=$ac_c_werror_flag
3308    ac_c_werror_flag=yes
3309    ac_cv_prog_cc_g=no
3310    CFLAGS="-g"
3311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h.  */
3313
3314 int
3315 main ()
3316 {
3317
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323   ac_cv_prog_cc_g=yes
3324 else
3325   CFLAGS=""
3326       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h.  */
3328
3329 int
3330 main ()
3331 {
3332
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338
3339 else
3340   ac_c_werror_flag=$ac_save_c_werror_flag
3341          CFLAGS="-g"
3342          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h.  */
3344
3345 int
3346 main ()
3347 {
3348
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 if ac_fn_c_try_compile "$LINENO"; then :
3354   ac_cv_prog_cc_g=yes
3355 fi
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 fi
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361    ac_c_werror_flag=$ac_save_c_werror_flag
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364 $as_echo "$ac_cv_prog_cc_g" >&6; }
3365 if test "$ac_test_CFLAGS" = set; then
3366   CFLAGS=$ac_save_CFLAGS
3367 elif test $ac_cv_prog_cc_g = yes; then
3368   if test "$GCC" = yes; then
3369     CFLAGS="-g -O2"
3370   else
3371     CFLAGS="-g"
3372   fi
3373 else
3374   if test "$GCC" = yes; then
3375     CFLAGS="-O2"
3376   else
3377     CFLAGS=
3378   fi
3379 fi
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   ac_cv_prog_cc_c89=no
3386 ac_save_CC=$CC
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h.  */
3389 #include <stdarg.h>
3390 #include <stdio.h>
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3397      char **p;
3398      int i;
3399 {
3400   return p[i];
3401 }
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3403 {
3404   char *s;
3405   va_list v;
3406   va_start (v,p);
3407   s = g (p, va_arg (v,int));
3408   va_end (v);
3409   return s;
3410 }
3411
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3413    function prototypes and stuff, but not '\xHH' hex character constants.
3414    These don't provoke an error unfortunately, instead are silently treated
3415    as 'x'.  The following induces an error, until -std is added to get
3416    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3417    array size at least.  It's necessary to write '\x00'==0 to get something
3418    that's true only with -std.  */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422    inside strings and character constants.  */
3423 #define FOO(x) 'x'
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430 int argc;
3431 char **argv;
3432 int
3433 main ()
3434 {
3435 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 do
3443   CC="$ac_save_CC $ac_arg"
3444   if ac_fn_c_try_compile "$LINENO"; then :
3445   ac_cv_prog_cc_c89=$ac_arg
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext
3448   test "x$ac_cv_prog_cc_c89" != "xno" && break
3449 done
3450 rm -f conftest.$ac_ext
3451 CC=$ac_save_CC
3452
3453 fi
3454 # AC_CACHE_VAL
3455 case "x$ac_cv_prog_cc_c89" in
3456   x)
3457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3458 $as_echo "none needed" >&6; } ;;
3459   xno)
3460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461 $as_echo "unsupported" >&6; } ;;
3462   *)
3463     CC="$CC $ac_cv_prog_cc_c89"
3464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3465 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466 esac
3467 if test "x$ac_cv_prog_cc_c89" != xno; then :
3468
3469 fi
3470
3471 ac_ext=c
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3485 # On Suns, sometimes $CPP names a directory.
3486 if test -n "$CPP" && test -d "$CPP"; then
3487   CPP=
3488 fi
3489 if test -z "$CPP"; then
3490   if test "${ac_cv_prog_CPP+set}" = set; then :
3491   $as_echo_n "(cached) " >&6
3492 else
3493       # Double quotes because CPP needs to be expanded
3494     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3495     do
3496       ac_preproc_ok=false
3497 for ac_c_preproc_warn_flag in '' yes
3498 do
3499   # Use a header file that comes with gcc, so configuring glibc
3500   # with a fresh cross-compiler works.
3501   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502   # <limits.h> exists even on freestanding compilers.
3503   # On the NeXT, cc -E runs the code through the compiler's parser,
3504   # not just through cpp. "Syntax error" is here to catch this case.
3505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h.  */
3507 #ifdef __STDC__
3508 # include <limits.h>
3509 #else
3510 # include <assert.h>
3511 #endif
3512                      Syntax error
3513 _ACEOF
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3515
3516 else
3517   # Broken: fails on valid input.
3518 continue
3519 fi
3520 rm -f conftest.err conftest.$ac_ext
3521
3522   # OK, works on sane cases.  Now check whether nonexistent headers
3523   # can be detected and how.
3524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526 #include <ac_nonexistent.h>
3527 _ACEOF
3528 if ac_fn_c_try_cpp "$LINENO"; then :
3529   # Broken: success on invalid input.
3530 continue
3531 else
3532   # Passes both tests.
3533 ac_preproc_ok=:
3534 break
3535 fi
3536 rm -f conftest.err conftest.$ac_ext
3537
3538 done
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.err conftest.$ac_ext
3541 if $ac_preproc_ok; then :
3542   break
3543 fi
3544
3545     done
3546     ac_cv_prog_CPP=$CPP
3547
3548 fi
3549   CPP=$ac_cv_prog_CPP
3550 else
3551   ac_cv_prog_CPP=$CPP
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554 $as_echo "$CPP" >&6; }
3555 ac_preproc_ok=false
3556 for ac_c_preproc_warn_flag in '' yes
3557 do
3558   # Use a header file that comes with gcc, so configuring glibc
3559   # with a fresh cross-compiler works.
3560   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561   # <limits.h> exists even on freestanding compilers.
3562   # On the NeXT, cc -E runs the code through the compiler's parser,
3563   # not just through cpp. "Syntax error" is here to catch this case.
3564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h.  */
3566 #ifdef __STDC__
3567 # include <limits.h>
3568 #else
3569 # include <assert.h>
3570 #endif
3571                      Syntax error
3572 _ACEOF
3573 if ac_fn_c_try_cpp "$LINENO"; then :
3574
3575 else
3576   # Broken: fails on valid input.
3577 continue
3578 fi
3579 rm -f conftest.err conftest.$ac_ext
3580
3581   # OK, works on sane cases.  Now check whether nonexistent headers
3582   # can be detected and how.
3583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h.  */
3585 #include <ac_nonexistent.h>
3586 _ACEOF
3587 if ac_fn_c_try_cpp "$LINENO"; then :
3588   # Broken: success on invalid input.
3589 continue
3590 else
3591   # Passes both tests.
3592 ac_preproc_ok=:
3593 break
3594 fi
3595 rm -f conftest.err conftest.$ac_ext
3596
3597 done
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.err conftest.$ac_ext
3600 if $ac_preproc_ok; then :
3601
3602 else
3603   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details." "$LINENO" 5; }
3607 fi
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then :
3619   $as_echo_n "(cached) " >&6
3620 else
3621   if test -z "$GREP"; then
3622   ac_path_GREP_found=false
3623   # Loop through the user's path and test for each of PROGNAME-LIST
3624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629     for ac_prog in grep ggrep; do
3630     for ac_exec_ext in '' $ac_executable_extensions; do
3631       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634   # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3636 *GNU*)
3637   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638 *)
3639   ac_count=0
3640   $as_echo_n 0123456789 >"conftest.in"
3641   while :
3642   do
3643     cat "conftest.in" "conftest.in" >"conftest.tmp"
3644     mv "conftest.tmp" "conftest.in"
3645     cp "conftest.in" "conftest.nl"
3646     $as_echo 'GREP' >> "conftest.nl"
3647     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649     as_fn_arith $ac_count + 1 && ac_count=$as_val
3650     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651       # Best one so far, save it but keep looking for a better one
3652       ac_cv_path_GREP="$ac_path_GREP"
3653       ac_path_GREP_max=$ac_count
3654     fi
3655     # 10*(2^10) chars as input seems more than enough
3656     test $ac_count -gt 10 && break
3657   done
3658   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659 esac
3660
3661       $ac_path_GREP_found && break 3
3662     done
3663   done
3664   done
3665 IFS=$as_save_IFS
3666   if test -z "$ac_cv_path_GREP"; then
3667     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668   fi
3669 else
3670   ac_cv_path_GREP=$GREP
3671 fi
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675 $as_echo "$ac_cv_path_GREP" >&6; }
3676  GREP="$ac_cv_path_GREP"
3677
3678
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680 $as_echo_n "checking for egrep... " >&6; }
3681 if test "${ac_cv_path_EGREP+set}" = set; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685    then ac_cv_path_EGREP="$GREP -E"
3686    else
3687      if test -z "$EGREP"; then
3688   ac_path_EGREP_found=false
3689   # Loop through the user's path and test for each of PROGNAME-LIST
3690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695     for ac_prog in egrep; do
3696     for ac_exec_ext in '' $ac_executable_extensions; do
3697       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3699 # Check for GNU ac_path_EGREP and select it if it is found.
3700   # Check for GNU $ac_path_EGREP
3701 case `"$ac_path_EGREP" --version 2>&1` in
3702 *GNU*)
3703   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3704 *)
3705   ac_count=0
3706   $as_echo_n 0123456789 >"conftest.in"
3707   while :
3708   do
3709     cat "conftest.in" "conftest.in" >"conftest.tmp"
3710     mv "conftest.tmp" "conftest.in"
3711     cp "conftest.in" "conftest.nl"
3712     $as_echo 'EGREP' >> "conftest.nl"
3713     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715     as_fn_arith $ac_count + 1 && ac_count=$as_val
3716     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717       # Best one so far, save it but keep looking for a better one
3718       ac_cv_path_EGREP="$ac_path_EGREP"
3719       ac_path_EGREP_max=$ac_count
3720     fi
3721     # 10*(2^10) chars as input seems more than enough
3722     test $ac_count -gt 10 && break
3723   done
3724   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725 esac
3726
3727       $ac_path_EGREP_found && break 3
3728     done
3729   done
3730   done
3731 IFS=$as_save_IFS
3732   if test -z "$ac_cv_path_EGREP"; then
3733     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3734   fi
3735 else
3736   ac_cv_path_EGREP=$EGREP
3737 fi
3738
3739    fi
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742 $as_echo "$ac_cv_path_EGREP" >&6; }
3743  EGREP="$ac_cv_path_EGREP"
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747 $as_echo_n "checking for ANSI C header files... " >&6; }
3748 if test "${ac_cv_header_stdc+set}" = set; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h.  */
3753 #include <stdlib.h>
3754 #include <stdarg.h>
3755 #include <string.h>
3756 #include <float.h>
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767   ac_cv_header_stdc=yes
3768 else
3769   ac_cv_header_stdc=no
3770 fi
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772
3773 if test $ac_cv_header_stdc = yes; then
3774   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777 #include <string.h>
3778
3779 _ACEOF
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781   $EGREP "memchr" >/dev/null 2>&1; then :
3782
3783 else
3784   ac_cv_header_stdc=no
3785 fi
3786 rm -f conftest*
3787
3788 fi
3789
3790 if test $ac_cv_header_stdc = yes; then
3791   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h.  */
3794 #include <stdlib.h>
3795
3796 _ACEOF
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798   $EGREP "free" >/dev/null 2>&1; then :
3799
3800 else
3801   ac_cv_header_stdc=no
3802 fi
3803 rm -f conftest*
3804
3805 fi
3806
3807 if test $ac_cv_header_stdc = yes; then
3808   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809   if test "$cross_compiling" = yes; then :
3810   :
3811 else
3812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h.  */
3814 #include <ctype.h>
3815 #include <stdlib.h>
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819 #else
3820 # define ISLOWER(c) \
3821                    (('a' <= (c) && (c) <= 'i') \
3822                      || ('j' <= (c) && (c) <= 'r') \
3823                      || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825 #endif
3826
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828 int
3829 main ()
3830 {
3831   int i;
3832   for (i = 0; i < 256; i++)
3833     if (XOR (islower (i), ISLOWER (i))
3834         || toupper (i) != TOUPPER (i))
3835       return 2;
3836   return 0;
3837 }
3838 _ACEOF
3839 if ac_fn_c_try_run "$LINENO"; then :
3840
3841 else
3842   ac_cv_header_stdc=no
3843 fi
3844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845   conftest.$ac_objext conftest.beam conftest.$ac_ext
3846 fi
3847
3848 fi
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851 $as_echo "$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3853
3854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3855
3856 fi
3857
3858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860                   inttypes.h stdint.h unistd.h
3861 do :
3862   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3864 "
3865 eval as_val=\$$as_ac_Header
3866    if test "x$as_val" = x""yes; then :
3867   cat >>confdefs.h <<_ACEOF
3868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3869 _ACEOF
3870
3871 fi
3872
3873 done
3874
3875
3876
3877   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3878 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3879   MINIX=yes
3880 else
3881   MINIX=
3882 fi
3883
3884
3885   if test "$MINIX" = yes; then
3886
3887 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3888
3889
3890 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3891
3892
3893 $as_echo "#define _MINIX 1" >>confdefs.h
3894
3895   fi
3896
3897
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3899 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3900 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3901   $as_echo_n "(cached) " >&6
3902 else
3903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 #         define __EXTENSIONS__ 1
3907           $ac_includes_default
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917   ac_cv_safe_to_define___extensions__=yes
3918 else
3919   ac_cv_safe_to_define___extensions__=no
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3924 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3925   test $ac_cv_safe_to_define___extensions__ = yes &&
3926     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3927
3928   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3929
3930   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3931
3932   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3933
3934   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3935
3936
3937 ac_aux_dir=
3938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3939   for ac_t in install-sh install.sh shtool; do
3940     if test -f "$ac_dir/$ac_t"; then
3941       ac_aux_dir=$ac_dir
3942       ac_install_sh="$ac_aux_dir/$ac_t -c"
3943       break 2
3944     fi
3945   done
3946 done
3947 if test -z "$ac_aux_dir"; then
3948   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3949 fi
3950
3951 # These three variables are undocumented and unsupported,
3952 # and are intended to be withdrawn in a future Autoconf release.
3953 # They can cause serious problems if a builder's source tree is in a directory
3954 # whose full name contains unusual characters.
3955 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3956 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3957 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3958
3959
3960 # Make sure we can run config.sub.
3961 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3962   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3963
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3965 $as_echo_n "checking build system type... " >&6; }
3966 if test "${ac_cv_build+set}" = set; then :
3967   $as_echo_n "(cached) " >&6
3968 else
3969   ac_build_alias=$build_alias
3970 test "x$ac_build_alias" = x &&
3971   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3972 test "x$ac_build_alias" = x &&
3973   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3974 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3975   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3979 $as_echo "$ac_cv_build" >&6; }
3980 case $ac_cv_build in
3981 *-*-*) ;;
3982 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3983 esac
3984 build=$ac_cv_build
3985 ac_save_IFS=$IFS; IFS='-'
3986 set x $ac_cv_build
3987 shift
3988 build_cpu=$1
3989 build_vendor=$2
3990 shift; shift
3991 # Remember, the first character of IFS is used to create $*,
3992 # except with old shells:
3993 build_os=$*
3994 IFS=$ac_save_IFS
3995 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3999 $as_echo_n "checking host system type... " >&6; }
4000 if test "${ac_cv_host+set}" = set; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test "x$host_alias" = x; then
4004   ac_cv_host=$ac_cv_build
4005 else
4006   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4007     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4008 fi
4009
4010 fi
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4012 $as_echo "$ac_cv_host" >&6; }
4013 case $ac_cv_host in
4014 *-*-*) ;;
4015 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4016 esac
4017 host=$ac_cv_host
4018 ac_save_IFS=$IFS; IFS='-'
4019 set x $ac_cv_host
4020 shift
4021 host_cpu=$1
4022 host_vendor=$2
4023 shift; shift
4024 # Remember, the first character of IFS is used to create $*,
4025 # except with old shells:
4026 host_os=$*
4027 IFS=$ac_save_IFS
4028 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4029
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4032 $as_echo_n "checking target system type... " >&6; }
4033 if test "${ac_cv_target+set}" = set; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   if test "x$target_alias" = x; then
4037   ac_cv_target=$ac_cv_host
4038 else
4039   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4040     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4041 fi
4042
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4045 $as_echo "$ac_cv_target" >&6; }
4046 case $ac_cv_target in
4047 *-*-*) ;;
4048 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4049 esac
4050 target=$ac_cv_target
4051 ac_save_IFS=$IFS; IFS='-'
4052 set x $ac_cv_target
4053 shift
4054 target_cpu=$1
4055 target_vendor=$2
4056 shift; shift
4057 # Remember, the first character of IFS is used to create $*,
4058 # except with old shells:
4059 target_os=$*
4060 IFS=$ac_save_IFS
4061 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4062
4063
4064 # The aliases save the names the user supplied, while $host etc.
4065 # will get canonicalized.
4066 test -n "$target_alias" &&
4067   test "$program_prefix$program_suffix$program_transform_name" = \
4068     NONENONEs,x,x, &&
4069   program_prefix=${target_alias}-
4070
4071 # The tests for host and target for $enable_largefile require
4072 # canonical names.
4073
4074
4075
4076 # As the $enable_largefile decision depends on --enable-plugins we must set it
4077 # even in directories otherwise not depending on the $plugins option.
4078
4079
4080 # Check whether --enable-plugins was given.
4081 if test "${enable_plugins+set}" = set; then :
4082   enableval=$enable_plugins; case "${enableval}" in
4083   yes | "") plugins=yes ;;
4084   no) plugins=no ;;
4085   *) plugins=yes ;;
4086  esac
4087 else
4088   plugins=no
4089 fi
4090
4091
4092
4093 case "${host}" in
4094   sparc-*-solaris*|i[3-7]86-*-solaris*)
4095     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4096     # are mutually exclusive; and without procfs support, the bfd/ elf module
4097     # cannot provide certain routines such as elfcore_write_prpsinfo
4098     # or elfcore_write_prstatus.  So unless the user explicitly requested
4099     # large-file support through the --enable-largefile switch, disable
4100     # large-file support in favor of procfs support.
4101     test "${target}" = "${host}" -a "x$plugins" = xno \
4102       && : ${enable_largefile="no"}
4103     ;;
4104 esac
4105
4106 # Check whether --enable-largefile was given.
4107 if test "${enable_largefile+set}" = set; then :
4108   enableval=$enable_largefile;
4109 fi
4110
4111 if test "$enable_largefile" != no; then
4112
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4114 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4115 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4116   $as_echo_n "(cached) " >&6
4117 else
4118   ac_cv_sys_largefile_CC=no
4119      if test "$GCC" != yes; then
4120        ac_save_CC=$CC
4121        while :; do
4122          # IRIX 6.2 and later do not support large files by default,
4123          # so use the C compiler's -n32 option if that helps.
4124          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126 #include <sys/types.h>
4127  /* Check that off_t can represent 2**63 - 1 correctly.
4128     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4129     since some C++ compilers masquerading as C compilers
4130     incorrectly reject 9223372036854775807.  */
4131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4132   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4133                        && LARGE_OFF_T % 2147483647 == 1)
4134                       ? 1 : -1];
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143          if ac_fn_c_try_compile "$LINENO"; then :
4144   break
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext
4147          CC="$CC -n32"
4148          if ac_fn_c_try_compile "$LINENO"; then :
4149   ac_cv_sys_largefile_CC=' -n32'; break
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext
4152          break
4153        done
4154        CC=$ac_save_CC
4155        rm -f conftest.$ac_ext
4156     fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4159 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4160   if test "$ac_cv_sys_largefile_CC" != no; then
4161     CC=$CC$ac_cv_sys_largefile_CC
4162   fi
4163
4164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4165 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4166 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   while :; do
4170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #include <sys/types.h>
4173  /* Check that off_t can represent 2**63 - 1 correctly.
4174     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4175     since some C++ compilers masquerading as C compilers
4176     incorrectly reject 9223372036854775807.  */
4177 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4178   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4179                        && LARGE_OFF_T % 2147483647 == 1)
4180                       ? 1 : -1];
4181 int
4182 main ()
4183 {
4184
4185   ;
4186   return 0;
4187 }
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190   ac_cv_sys_file_offset_bits=no; break
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h.  */
4195 #define _FILE_OFFSET_BITS 64
4196 #include <sys/types.h>
4197  /* Check that off_t can represent 2**63 - 1 correctly.
4198     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4199     since some C++ compilers masquerading as C compilers
4200     incorrectly reject 9223372036854775807.  */
4201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4202   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4203                        && LARGE_OFF_T % 2147483647 == 1)
4204                       ? 1 : -1];
4205 int
4206 main ()
4207 {
4208
4209   ;
4210   return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214   ac_cv_sys_file_offset_bits=64; break
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217   ac_cv_sys_file_offset_bits=unknown
4218   break
4219 done
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4222 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4223 case $ac_cv_sys_file_offset_bits in #(
4224   no | unknown) ;;
4225   *)
4226 cat >>confdefs.h <<_ACEOF
4227 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4228 _ACEOF
4229 ;;
4230 esac
4231 rm -rf conftest*
4232   if test $ac_cv_sys_file_offset_bits = unknown; then
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4234 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4235 if test "${ac_cv_sys_large_files+set}" = set; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   while :; do
4239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h.  */
4241 #include <sys/types.h>
4242  /* Check that off_t can represent 2**63 - 1 correctly.
4243     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4244     since some C++ compilers masquerading as C compilers
4245     incorrectly reject 9223372036854775807.  */
4246 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4247   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4248                        && LARGE_OFF_T % 2147483647 == 1)
4249                       ? 1 : -1];
4250 int
4251 main ()
4252 {
4253
4254   ;
4255   return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259   ac_cv_sys_large_files=no; break
4260 fi
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h.  */
4264 #define _LARGE_FILES 1
4265 #include <sys/types.h>
4266  /* Check that off_t can represent 2**63 - 1 correctly.
4267     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4268     since some C++ compilers masquerading as C compilers
4269     incorrectly reject 9223372036854775807.  */
4270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4271   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4272                        && LARGE_OFF_T % 2147483647 == 1)
4273                       ? 1 : -1];
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283   ac_cv_sys_large_files=1; break
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286   ac_cv_sys_large_files=unknown
4287   break
4288 done
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4291 $as_echo "$ac_cv_sys_large_files" >&6; }
4292 case $ac_cv_sys_large_files in #(
4293   no | unknown) ;;
4294   *)
4295 cat >>confdefs.h <<_ACEOF
4296 #define _LARGE_FILES $ac_cv_sys_large_files
4297 _ACEOF
4298 ;;
4299 esac
4300 rm -rf conftest*
4301   fi
4302 fi
4303
4304
4305
4306
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4309 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4310 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   am_cv_prog_cc_stdc=no
4314 ac_save_CC="$CC"
4315 # Don't try gcc -ansi; that turns off useful extensions and
4316 # breaks some systems' header files.
4317 # AIX                   -qlanglvl=ansi
4318 # Ultrix and OSF/1      -std1
4319 # HP-UX 10.20 and later -Ae
4320 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4321 # SVR4                  -Xc -D__EXTENSIONS__
4322 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 do
4324   CC="$ac_save_CC $ac_arg"
4325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h.  */
4327 #include <stdarg.h>
4328 #include <stdio.h>
4329 #include <sys/types.h>
4330 #include <sys/stat.h>
4331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4332 struct buf { int x; };
4333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334 static char *e (p, i)
4335      char **p;
4336      int i;
4337 {
4338   return p[i];
4339 }
4340 static char *f (char * (*g) (char **, int), char **p, ...)
4341 {
4342   char *s;
4343   va_list v;
4344   va_start (v,p);
4345   s = g (p, va_arg (v,int));
4346   va_end (v);
4347   return s;
4348 }
4349 int test (int i, double x);
4350 struct s1 {int (*f) (int a);};
4351 struct s2 {int (*f) (double a);};
4352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4353 int argc;
4354 char **argv;
4355
4356 int
4357 main ()
4358 {
4359
4360 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367   am_cv_prog_cc_stdc="$ac_arg"; break
4368 fi
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 done
4371 CC="$ac_save_CC"
4372
4373 fi
4374
4375 if test -z "$am_cv_prog_cc_stdc"; then
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4377 $as_echo "none needed" >&6; }
4378 else
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4380 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4381 fi
4382 case "x$am_cv_prog_cc_stdc" in
4383   x|xno) ;;
4384   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4385 esac
4386
4387
4388 ac_aux_dir=
4389 for ac_dir in .. "$srcdir"/..; do
4390   for ac_t in install-sh install.sh shtool; do
4391     if test -f "$ac_dir/$ac_t"; then
4392       ac_aux_dir=$ac_dir
4393       ac_install_sh="$ac_aux_dir/$ac_t -c"
4394       break 2
4395     fi
4396   done
4397 done
4398 if test -z "$ac_aux_dir"; then
4399   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4400 fi
4401
4402 # These three variables are undocumented and unsupported,
4403 # and are intended to be withdrawn in a future Autoconf release.
4404 # They can cause serious problems if a builder's source tree is in a directory
4405 # whose full name contains unusual characters.
4406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4408 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4409
4410
4411
4412 test "$program_prefix" != NONE &&
4413   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4414 # Use a double $ so make ignores it.
4415 test "$program_suffix" != NONE &&
4416   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4417 # Double any \ or $.
4418 # By default was `s,x,x', remove it if useless.
4419 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4420 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4421
4422
4423 # Dependency checking.
4424 rm -rf .tst 2>/dev/null
4425 mkdir .tst 2>/dev/null
4426 if test -d .tst; then
4427   am__leading_dot=.
4428 else
4429   am__leading_dot=_
4430 fi
4431 rmdir .tst 2>/dev/null
4432
4433 DEPDIR="${am__leading_dot}deps"
4434
4435 ac_config_commands="$ac_config_commands depdir"
4436
4437
4438 depcc="$CC"   am_compiler_list=
4439
4440 am_depcomp=$ac_aux_dir/depcomp
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4442 $as_echo_n "checking dependency style of $depcc... " >&6; }
4443 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4444   $as_echo_n "(cached) " >&6
4445 else
4446   if test -f "$am_depcomp"; then
4447   # We make a subdir and do the tests there.  Otherwise we can end up
4448   # making bogus files that we don't know about and never remove.  For
4449   # instance it was reported that on HP-UX the gcc test will end up
4450   # making a dummy file named `D' -- because `-MD' means `put the output
4451   # in D'.
4452   mkdir conftest.dir
4453   # Copy depcomp to subdir because otherwise we won't find it if we're
4454   # using a relative directory.
4455   cp "$am_depcomp" conftest.dir
4456   cd conftest.dir
4457   # We will build objects and dependencies in a subdirectory because
4458   # it helps to detect inapplicable dependency modes.  For instance
4459   # both Tru64's cc and ICC support -MD to output dependencies as a
4460   # side effect of compilation, but ICC will put the dependencies in
4461   # the current directory while Tru64 will put them in the object
4462   # directory.
4463   mkdir sub
4464
4465   am_cv_CC_dependencies_compiler_type=none
4466   if test "$am_compiler_list" = ""; then
4467      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4468   fi
4469   for depmode in $am_compiler_list; do
4470     if test $depmode = none; then break; fi
4471
4472     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4473     # Setup a source with many dependencies, because some compilers
4474     # like to wrap large dependency lists on column 80 (with \), and
4475     # we should not choose a depcomp mode which is confused by this.
4476     #
4477     # We need to recreate these files for each test, as the compiler may
4478     # overwrite some of them when testing with obscure command lines.
4479     # This happens at least with the AIX C compiler.
4480     : > sub/conftest.c
4481     for i in 1 2 3 4 5 6; do
4482       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4483       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4484       # Solaris 8's {/usr,}/bin/sh.
4485       touch sub/conftst$i.h
4486     done
4487     echo "include sub/conftest.Po" > confmf
4488
4489     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4490     # mode.  It turns out that the SunPro C++ compiler does not properly
4491     # handle `-M -o', and we need to detect this.
4492     depcmd="depmode=$depmode \
4493        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4494        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4496     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4497     if env $depcmd > conftest.err 2>&1 &&
4498        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4499        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4500        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4501       # icc doesn't choke on unknown options, it will just issue warnings
4502       # or remarks (even with -Werror).  So we grep stderr for any message
4503       # that says an option was ignored or not supported.
4504       # When given -MP, icc 7.0 and 7.1 complain thusly:
4505       #   icc: Command line warning: ignoring option '-M'; no argument required
4506       # The diagnosis changed in icc 8.0:
4507       #   icc: Command line remark: option '-MP' not supported
4508       if (grep 'ignoring option' conftest.err ||
4509           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510         am_cv_CC_dependencies_compiler_type=$depmode
4511         $as_echo "$as_me:$LINENO: success" >&5
4512         break
4513       fi
4514     fi
4515     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4516     sed -e 's/^/| /' < conftest.err >&5
4517   done
4518
4519   cd ..
4520   rm -rf conftest.dir
4521 else
4522   am_cv_CC_dependencies_compiler_type=none
4523 fi
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4527 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4528 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4529 then as_fn_error "no usable dependency style found" "$LINENO" 5
4530 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4531
4532 fi
4533
4534
4535 # Check for the 'make' the user wants to use.
4536 for ac_prog in make
4537 do
4538   # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_MAKE+set}" = set; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   if test -n "$MAKE"; then
4546   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555     ac_cv_prog_MAKE="$ac_prog"
4556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560   done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 MAKE=$ac_cv_prog_MAKE
4566 if test -n "$MAKE"; then
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4568 $as_echo "$MAKE" >&6; }
4569 else
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575   test -n "$MAKE" && break
4576 done
4577
4578 MAKE_IS_GNU=
4579 case "`$MAKE --version 2>&1 | sed 1q`" in
4580   *GNU*)
4581     MAKE_IS_GNU=yes
4582     ;;
4583 esac
4584  if test "$MAKE_IS_GNU" = yes; then
4585   GMAKE_TRUE=
4586   GMAKE_FALSE='#'
4587 else
4588   GMAKE_TRUE='#'
4589   GMAKE_FALSE=
4590 fi
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4594 set x ${MAKE-make}
4595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4596 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4597   $as_echo_n "(cached) " >&6
4598 else
4599   cat >conftest.make <<\_ACEOF
4600 SHELL = /bin/sh
4601 all:
4602         @echo '@@@%%%=$(MAKE)=@@@%%%'
4603 _ACEOF
4604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4606   *@@@%%%=?*=@@@%%%*)
4607     eval ac_cv_prog_make_${ac_make}_set=yes;;
4608   *)
4609     eval ac_cv_prog_make_${ac_make}_set=no;;
4610 esac
4611 rm -f conftest.make
4612 fi
4613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4616   SET_MAKE=
4617 else
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620   SET_MAKE="MAKE=${MAKE-make}"
4621 fi
4622
4623
4624 # Configure gnulib.  We need to build gnulib under some other
4625 # directory not "gnulib", to avoid the problem of both GDB and
4626 # GDBserver wanting to build it in the same directory, when building
4627 # in the source dir.
4628
4629   in_src="gnulib"
4630   in_build="build-gnulib"
4631
4632   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4633   # so they do not pile up.
4634   ac_sub_configure_args=
4635   ac_prev=
4636   eval "set x $ac_configure_args"
4637   shift
4638   for ac_arg
4639   do
4640     if test -n "$ac_prev"; then
4641       ac_prev=
4642       continue
4643     fi
4644     case $ac_arg in
4645     -cache-file | --cache-file | --cache-fil | --cache-fi \
4646     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4647       ac_prev=cache_file ;;
4648     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4649     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4650     | --c=*)
4651       ;;
4652     --config-cache | -C)
4653       ;;
4654     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4655       ac_prev=srcdir ;;
4656     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4657       ;;
4658     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4659       ac_prev=prefix ;;
4660     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4661       ;;
4662     --disable-option-checking)
4663       ;;
4664     *)
4665       case $ac_arg in
4666       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4667       esac
4668       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4669     esac
4670   done
4671
4672   # Always prepend --prefix to ensure using the same prefix
4673   # in subdir configurations.
4674   ac_arg="--prefix=$prefix"
4675   case $ac_arg in
4676   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4677   esac
4678   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4679
4680   # Pass --silent
4681   if test "$silent" = yes; then
4682     ac_sub_configure_args="--silent $ac_sub_configure_args"
4683   fi
4684
4685   # Always prepend --disable-option-checking to silence warnings, since
4686   # different subdirs can have different --enable and --with options.
4687   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4688
4689   ac_popdir=`pwd`
4690   ac_dir=$in_build
4691
4692   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4693   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4694   $as_echo "$ac_msg" >&6
4695   as_dir="$ac_dir"; as_fn_mkdir_p
4696
4697   case $srcdir in
4698   [\\/]* | ?:[\\/]* )
4699     ac_srcdir=$srcdir/$in_src ;;
4700   *) # Relative name.
4701     ac_srcdir=../$srcdir/$in_src ;;
4702   esac
4703
4704   cd "$ac_dir"
4705
4706   ac_sub_configure=$ac_srcdir/configure
4707
4708   # Make the cache file name correct relative to the subdirectory.
4709   case $cache_file in
4710   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4711   *) # Relative name.
4712     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4713   esac
4714
4715   { $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
4716 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4717   # The eval makes quoting arguments work.
4718   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4719        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4720     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4721
4722   cd "$ac_popdir"
4723
4724
4725
4726 CONFIG_OBS=
4727 CONFIG_DEPS=
4728 CONFIG_SRCS=
4729 ENABLE_CFLAGS=
4730
4731 CONFIG_ALL=
4732 CONFIG_CLEAN=
4733 CONFIG_INSTALL=
4734 CONFIG_UNINSTALL=
4735
4736 # If we haven't got the data from the intl directory,
4737 # assume NLS is disabled.
4738 USE_NLS=no
4739 LIBINTL=
4740 LIBINTL_DEP=
4741 INCINTL=
4742 XGETTEXT=
4743 GMSGFMT=
4744 POSUB=
4745
4746 if test -f  ../intl/config.intl; then
4747   .  ../intl/config.intl
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4750 $as_echo_n "checking whether NLS is requested... " >&6; }
4751 if test x"$USE_NLS" != xyes; then
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 else
4755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4756 $as_echo "yes" >&6; }
4757
4758 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4759
4760
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4762 $as_echo_n "checking for catalogs to be installed... " >&6; }
4763   # Look for .po and .gmo files in the source directory.
4764   CATALOGS=
4765   XLINGUAS=
4766   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4767     # If there aren't any .gmo files the shell will give us the
4768     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4769     # weeded out.
4770     case "$cat" in *\**)
4771       continue;;
4772     esac
4773     # The quadruple backslash is collapsed to a double backslash
4774     # by the backticks, then collapsed again by the double quotes,
4775     # leaving us with one backslash in the sed expression (right
4776     # before the dot that mustn't act as a wildcard).
4777     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4778     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4779     # The user is allowed to set LINGUAS to a list of languages to
4780     # install catalogs for.  If it's empty that means "all of them."
4781     if test "x$LINGUAS" = x; then
4782       CATALOGS="$CATALOGS $cat"
4783       XLINGUAS="$XLINGUAS $lang"
4784     else
4785       case "$LINGUAS" in *$lang*)
4786         CATALOGS="$CATALOGS $cat"
4787         XLINGUAS="$XLINGUAS $lang"
4788         ;;
4789       esac
4790     fi
4791   done
4792   LINGUAS="$XLINGUAS"
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4794 $as_echo "$LINGUAS" >&6; }
4795
4796
4797     DATADIRNAME=share
4798
4799   INSTOBJEXT=.mo
4800
4801   GENCAT=gencat
4802
4803   CATOBJEXT=.gmo
4804
4805 fi
4806
4807 localedir='${datadir}/locale'
4808
4809
4810 if test x"$USE_NLS" = xyes; then
4811    CONFIG_ALL="$CONFIG_ALL all-po"
4812    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4813    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4814    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4815 fi
4816
4817 GNULIB=build-gnulib/import
4818
4819 # For Makefile dependencies.
4820 GNULIB_STDINT_H=
4821 if test x"$STDINT_H" != x; then
4822   GNULIB_STDINT_H=$GNULIB/$STDINT_H
4823 fi
4824
4825
4826 PACKAGE=gdb
4827
4828 cat >>confdefs.h <<_ACEOF
4829 #define PACKAGE "$PACKAGE"
4830 _ACEOF
4831
4832
4833
4834 # We never need to detect it in this sub-configure.
4835 # But preserve it for config.status --recheck.
4836
4837
4838
4839 MAKEINFO_EXTRA_FLAGS=""
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4841 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4842 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4843   $as_echo_n "(cached) " >&6
4844 else
4845   echo '@clicksequence{a @click{} b}' >conftest.texinfo
4846   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4847     gdb_cv_have_makeinfo_click=yes
4848   else
4849     gdb_cv_have_makeinfo_click=no
4850   fi
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4853 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4854 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4855   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4856 fi
4857
4858
4859
4860
4861 # Check whether --with-separate-debug-dir was given.
4862 if test "${with_separate_debug_dir+set}" = set; then :
4863   withval=$with_separate_debug_dir;
4864     DEBUGDIR=$withval
4865 else
4866   DEBUGDIR=${libdir}/debug
4867 fi
4868
4869
4870   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4871   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4872   ac_define_dir=`eval echo $DEBUGDIR`
4873   ac_define_dir=`eval echo $ac_define_dir`
4874
4875 cat >>confdefs.h <<_ACEOF
4876 #define DEBUGDIR "$ac_define_dir"
4877 _ACEOF
4878
4879
4880
4881
4882   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4883      if test "x$prefix" = xNONE; then
4884         test_prefix=/usr/local
4885      else
4886         test_prefix=$prefix
4887      fi
4888   else
4889      test_prefix=$exec_prefix
4890   fi
4891   value=0
4892   case ${ac_define_dir} in
4893      "${test_prefix}"|"${test_prefix}/"*|\
4894         '${exec_prefix}'|'${exec_prefix}/'*)
4895      value=1
4896      ;;
4897   esac
4898
4899 cat >>confdefs.h <<_ACEOF
4900 #define DEBUGDIR_RELOCATABLE $value
4901 _ACEOF
4902
4903
4904
4905
4906 # We can't pass paths as command line arguments.
4907 # Mingw32 tries to be clever and will convert the paths for us.
4908 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4909 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4910 # This breaks GDB's relocatable path conversions since paths passed in
4911 # config.h would not get so translated, the path prefixes no longer match.
4912
4913   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4914   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4915   ac_define_dir=`eval echo $bindir`
4916   ac_define_dir=`eval echo $ac_define_dir`
4917
4918 cat >>confdefs.h <<_ACEOF
4919 #define BINDIR "$ac_define_dir"
4920 _ACEOF
4921
4922
4923
4924 # GDB's datadir relocation
4925
4926
4927
4928 # Check whether --with-gdb-datadir was given.
4929 if test "${with_gdb_datadir+set}" = set; then :
4930   withval=$with_gdb_datadir;
4931     GDB_DATADIR=$withval
4932 else
4933   GDB_DATADIR=${datadir}/gdb
4934 fi
4935
4936
4937   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4938   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4939   ac_define_dir=`eval echo $GDB_DATADIR`
4940   ac_define_dir=`eval echo $ac_define_dir`
4941
4942 cat >>confdefs.h <<_ACEOF
4943 #define GDB_DATADIR "$ac_define_dir"
4944 _ACEOF
4945
4946
4947
4948
4949   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4950      if test "x$prefix" = xNONE; then
4951         test_prefix=/usr/local
4952      else
4953         test_prefix=$prefix
4954      fi
4955   else
4956      test_prefix=$exec_prefix
4957   fi
4958   value=0
4959   case ${ac_define_dir} in
4960      "${test_prefix}"|"${test_prefix}/"*|\
4961         '${exec_prefix}'|'${exec_prefix}/'*)
4962      value=1
4963      ;;
4964   esac
4965
4966 cat >>confdefs.h <<_ACEOF
4967 #define GDB_DATADIR_RELOCATABLE $value
4968 _ACEOF
4969
4970
4971
4972
4973
4974 # Check whether --with-relocated-sources was given.
4975 if test "${with_relocated_sources+set}" = set; then :
4976   withval=$with_relocated_sources; reloc_srcdir="${withval}"
4977
4978   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4979   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4980   ac_define_dir=`eval echo $reloc_srcdir`
4981   ac_define_dir=`eval echo $ac_define_dir`
4982
4983 cat >>confdefs.h <<_ACEOF
4984 #define RELOC_SRCDIR "$ac_define_dir"
4985 _ACEOF
4986
4987
4988
4989 fi
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4993 $as_echo_n "checking for default auto-load directory... " >&6; }
4994
4995 # Check whether --with-auto-load-dir was given.
4996 if test "${with_auto_load_dir+set}" = set; then :
4997   withval=$with_auto_load_dir;
4998 else
4999   with_auto_load_dir='$debugdir:$datadir/auto-load'
5000 fi
5001
5002 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5003
5004   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5005   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5006   ac_define_dir=`eval echo $escape_dir`
5007   ac_define_dir=`eval echo $ac_define_dir`
5008
5009 cat >>confdefs.h <<_ACEOF
5010 #define AUTO_LOAD_DIR "$ac_define_dir"
5011 _ACEOF
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5015 $as_echo "$with_auto_load_dir" >&6; }
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5018 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5019
5020 # Check whether --with-auto-load-safe-path was given.
5021 if test "${with_auto_load_safe_path+set}" = set; then :
5022   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5023      with_auto_load_safe_path="/"
5024      fi
5025 else
5026   with_auto_load_safe_path="$with_auto_load_dir"
5027 fi
5028
5029 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5030
5031   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5032   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5033   ac_define_dir=`eval echo $escape_dir`
5034   ac_define_dir=`eval echo $ac_define_dir`
5035
5036 cat >>confdefs.h <<_ACEOF
5037 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5038 _ACEOF
5039
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5042 $as_echo "$with_auto_load_safe_path" >&6; }
5043
5044
5045
5046 subdirs="$subdirs testsuite"
5047
5048
5049 # Check whether to support alternative target configurations
5050 # Check whether --enable-targets was given.
5051 if test "${enable_targets+set}" = set; then :
5052   enableval=$enable_targets; case "${enableval}" in
5053   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5054             ;;
5055   no)       enable_targets= ;;
5056   *)        enable_targets=$enableval ;;
5057 esac
5058 fi
5059
5060
5061 # Check whether to enable 64-bit support on 32-bit hosts
5062 # Check whether --enable-64-bit-bfd was given.
5063 if test "${enable_64_bit_bfd+set}" = set; then :
5064   enableval=$enable_64_bit_bfd; case "${enableval}" in
5065   yes)  want64=true  ;;
5066   no)   want64=false ;;
5067   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5068 esac
5069 else
5070   want64=false
5071 fi
5072
5073 # Provide defaults for some variables set by the per-host and per-target
5074 # configuration.
5075 gdb_host_obs=posix-hdep.o
5076
5077 if test "${target}" = "${host}"; then
5078   gdb_native=yes
5079 else
5080   gdb_native=no
5081 fi
5082
5083 . $srcdir/configure.host
5084
5085 # Accumulate some settings from configure.tgt over all enabled targets
5086
5087 TARGET_OBS=
5088 all_targets=
5089 HAVE_NATIVE_GCORE_TARGET=
5090
5091 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5092 do
5093   if test "$targ_alias" = "all"; then
5094     all_targets=true
5095   else
5096     # Canonicalize the secondary target names.
5097     result=`$ac_config_sub $targ_alias 2>/dev/null`
5098     if test -n "$result"; then
5099         targ=$result
5100     else
5101         targ=$targ_alias
5102     fi
5103
5104     . ${srcdir}/configure.tgt
5105
5106     if test -z "${gdb_target_obs}"; then :
5107   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5108 fi
5109
5110     # Target-specific object files
5111     for i in ${gdb_target_obs}; do
5112         case " $TARGET_OBS " in
5113         *" ${i} "*) ;;
5114         *)
5115           TARGET_OBS="$TARGET_OBS ${i}"
5116           ;;
5117         esac
5118     done
5119
5120     # Check whether this target needs 64-bit CORE_ADDR
5121     if test x${want64} = xfalse; then
5122       . ${srcdir}/../bfd/config.bfd
5123     fi
5124
5125     # Check whether this target is native and supports gcore.
5126     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5127        && $gdb_have_gcore; then
5128       HAVE_NATIVE_GCORE_TARGET=1
5129     fi
5130   fi
5131 done
5132
5133 if test x${all_targets} = xtrue; then
5134
5135   # We want all 64-bit targets if we either:
5136   #  - run on a 64-bit host  or
5137   #  - already require 64-bit support for some other target  or
5138   #  - the --enable-64-bit-bfd option was supplied
5139   # Otherwise we only support all 32-bit targets.
5140   #
5141   # NOTE: This test must be in sync with the corresponding
5142   #       tests in BFD!
5143
5144   if test x${want64} = xfalse; then
5145     # The cast to long int works around a bug in the HP C Compiler
5146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5148 # This bug is HP SR number 8606223364.
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5150 $as_echo_n "checking size of long... " >&6; }
5151 if test "${ac_cv_sizeof_long+set}" = set; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5155
5156 else
5157   if test "$ac_cv_type_long" = yes; then
5158      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 { as_fn_set_status 77
5161 as_fn_error "cannot compute sizeof (long)
5162 See \`config.log' for more details." "$LINENO" 5; }; }
5163    else
5164      ac_cv_sizeof_long=0
5165    fi
5166 fi
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5170 $as_echo "$ac_cv_sizeof_long" >&6; }
5171
5172
5173
5174 cat >>confdefs.h <<_ACEOF
5175 #define SIZEOF_LONG $ac_cv_sizeof_long
5176 _ACEOF
5177
5178
5179     if test "x${ac_cv_sizeof_long}" = "x8"; then
5180       want64=true
5181     fi
5182   fi
5183   if test x${want64} = xtrue; then
5184     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5185   else
5186     TARGET_OBS='$(ALL_TARGET_OBS)'
5187   fi
5188 fi
5189
5190
5191
5192
5193 # For other settings, only the main target counts.
5194 gdb_sim=
5195 gdb_osabi=
5196 build_gdbserver=
5197 targ=$target; . ${srcdir}/configure.tgt
5198
5199 # Fetch the default architecture and default target vector from BFD.
5200 targ=$target; . $srcdir/../bfd/config.bfd
5201
5202 # We only want the first architecture, so strip off the others if
5203 # there is more than one.
5204 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5205
5206 if test "x$targ_archs" != x; then
5207
5208 cat >>confdefs.h <<_ACEOF
5209 #define DEFAULT_BFD_ARCH $targ_archs
5210 _ACEOF
5211
5212 fi
5213 if test "x$targ_defvec" != x; then
5214
5215 cat >>confdefs.h <<_ACEOF
5216 #define DEFAULT_BFD_VEC $targ_defvec
5217 _ACEOF
5218
5219 fi
5220
5221 # The CLI cannot be disabled yet, but may be in the future.
5222
5223 # Enable CLI.
5224 # Check whether --enable-gdbcli was given.
5225 if test "${enable_gdbcli+set}" = set; then :
5226   enableval=$enable_gdbcli; case $enableval in
5227     yes)
5228       ;;
5229     no)
5230       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5231     *)
5232       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5233   esac
5234 else
5235   enable_gdbcli=yes
5236 fi
5237
5238 if test x"$enable_gdbcli" = xyes; then
5239   if test -d $srcdir/cli; then
5240     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5241     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5242     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5243     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5244   fi
5245 fi
5246
5247 # Enable MI.
5248 # Check whether --enable-gdbmi was given.
5249 if test "${enable_gdbmi+set}" = set; then :
5250   enableval=$enable_gdbmi; case $enableval in
5251     yes | no)
5252       ;;
5253     *)
5254       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5255   esac
5256 else
5257   enable_gdbmi=yes
5258 fi
5259
5260 if test x"$enable_gdbmi" = xyes; then
5261   if test -d $srcdir/mi; then
5262     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5263     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5264     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5265     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5266   fi
5267 fi
5268
5269 # Enable TUI.
5270 # Check whether --enable-tui was given.
5271 if test "${enable_tui+set}" = set; then :
5272   enableval=$enable_tui; case $enableval in
5273     yes | no | auto)
5274       ;;
5275     *)
5276       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5277   esac
5278 else
5279   enable_tui=auto
5280 fi
5281
5282
5283 # Enable gdbtk.
5284 # Check whether --enable-gdbtk was given.
5285 if test "${enable_gdbtk+set}" = set; then :
5286   enableval=$enable_gdbtk; case $enableval in
5287     yes | no)
5288       ;;
5289     *)
5290       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5291   esac
5292 else
5293   if test -d $srcdir/gdbtk; then
5294     enable_gdbtk=yes
5295   else
5296     enable_gdbtk=no
5297   fi
5298 fi
5299
5300 # We unconditionally disable gdbtk tests on selected platforms.
5301 case $host_os in
5302   go32* | windows*)
5303     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5304 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5305     enable_gdbtk=no ;;
5306 esac
5307
5308 # Libunwind support for ia64.
5309
5310
5311 # Check whether --with-libunwind-ia64 was given.
5312 if test "${with_libunwind_ia64+set}" = set; then :
5313   withval=$with_libunwind_ia64;
5314 else
5315   with_libunwind_ia64=auto
5316 fi
5317
5318
5319 # Backward compatibility option.
5320 if test "${with_libunwind+set}" = set; then
5321   if test x"$with_libunwind_ia64" != xauto; then
5322     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5323   fi
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5325 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5326   with_libunwind_ia64="$with_libunwind"
5327 fi
5328
5329 case "$with_libunwind_ia64" in
5330   yes | no)
5331     ;;
5332   auto)
5333     for ac_header in libunwind-ia64.h
5334 do :
5335   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5336 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5337   cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBUNWIND_IA64_H 1
5339 _ACEOF
5340
5341 fi
5342
5343 done
5344
5345     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5346     ;;
5347   *)
5348     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5349     ;;
5350 esac
5351
5352 if test x"$with_libunwind_ia64" = xyes; then
5353   for ac_header in libunwind-ia64.h
5354 do :
5355   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5356 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5357   cat >>confdefs.h <<_ACEOF
5358 #define HAVE_LIBUNWIND_IA64_H 1
5359 _ACEOF
5360
5361 fi
5362
5363 done
5364
5365   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5366     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5367   fi
5368   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5369   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5370   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5371 fi
5372
5373 opt_curses=no
5374
5375 # Check whether --with-curses was given.
5376 if test "${with_curses+set}" = set; then :
5377   withval=$with_curses; opt_curses=$withval
5378 fi
5379
5380
5381 prefer_curses=no
5382 if test "$opt_curses" = "yes"; then
5383   prefer_curses=yes
5384 fi
5385
5386 # Profiling support.
5387 # Check whether --enable-profiling was given.
5388 if test "${enable_profiling+set}" = set; then :
5389   enableval=$enable_profiling; case $enableval in
5390     yes | no)
5391       ;;
5392     *)
5393       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5394   esac
5395 else
5396   enable_profiling=no
5397 fi
5398
5399
5400 for ac_func in monstartup _mcleanup
5401 do :
5402   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5403 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5404 eval as_val=\$$as_ac_var
5405    if test "x$as_val" = x""yes; then :
5406   cat >>confdefs.h <<_ACEOF
5407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5408 _ACEOF
5409
5410 fi
5411 done
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5414 $as_echo_n "checking for _etext... " >&6; }
5415 if test "${ac_cv_var__etext+set}" = set; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h.  */
5420 #include <stdlib.h>
5421 extern char _etext;
5422
5423 int
5424 main ()
5425 {
5426 free (&_etext);
5427   ;
5428   return 0;
5429 }
5430 _ACEOF
5431 if ac_fn_c_try_link "$LINENO"; then :
5432   ac_cv_var__etext=yes
5433 else
5434   ac_cv_var__etext=no
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext \
5437     conftest$ac_exeext conftest.$ac_ext
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5440 $as_echo "$ac_cv_var__etext" >&6; }
5441 if test $ac_cv_var__etext = yes; then
5442
5443 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5444
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5447 $as_echo_n "checking for etext... " >&6; }
5448 if test "${ac_cv_var_etext+set}" = set; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h.  */
5453 #include <stdlib.h>
5454 extern char etext;
5455
5456 int
5457 main ()
5458 {
5459 free (&etext);
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_link "$LINENO"; then :
5465   ac_cv_var_etext=yes
5466 else
5467   ac_cv_var_etext=no
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext \
5470     conftest$ac_exeext conftest.$ac_ext
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5473 $as_echo "$ac_cv_var_etext" >&6; }
5474 if test $ac_cv_var_etext = yes; then
5475
5476 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5477
5478 fi
5479 if test "$enable_profiling" = yes ; then
5480   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5481     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5482   fi
5483   PROFILE_CFLAGS=-pg
5484   OLD_CFLAGS="$CFLAGS"
5485   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5486
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5488 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5489 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h.  */
5494
5495 int
5496 main ()
5497 {
5498 int x;
5499   ;
5500   return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504   ac_cv_cc_supports_pg=yes
5505 else
5506   ac_cv_cc_supports_pg=no
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5511 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5512
5513   if test $ac_cv_cc_supports_pg = no; then
5514     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5515   fi
5516
5517   CFLAGS="$OLD_CFLAGS"
5518 fi
5519
5520
5521
5522 # Check whether --with-pkgversion was given.
5523 if test "${with_pkgversion+set}" = set; then :
5524   withval=$with_pkgversion; case "$withval" in
5525       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5526       no)  PKGVERSION= ;;
5527       *)   PKGVERSION="($withval) " ;;
5528      esac
5529 else
5530   PKGVERSION="(GDB) "
5531
5532 fi
5533
5534
5535
5536
5537
5538 # Check whether --with-bugurl was given.
5539 if test "${with_bugurl+set}" = set; then :
5540   withval=$with_bugurl; case "$withval" in
5541       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5542       no)  BUGURL=
5543            ;;
5544       *)   BUGURL="$withval"
5545            ;;
5546      esac
5547 else
5548   BUGURL="http://www.gnu.org/software/gdb/bugs/"
5549
5550 fi
5551
5552   case ${BUGURL} in
5553   "")
5554     REPORT_BUGS_TO=
5555     REPORT_BUGS_TEXI=
5556     ;;
5557   *)
5558     REPORT_BUGS_TO="<$BUGURL>"
5559     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5560     ;;
5561   esac;
5562
5563
5564
5565
5566 cat >>confdefs.h <<_ACEOF
5567 #define PKGVERSION "$PKGVERSION"
5568 _ACEOF
5569
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5573 _ACEOF
5574
5575
5576 # --------------------- #
5577 # Checks for programs.  #
5578 # --------------------- #
5579
5580 for ac_prog in gawk mawk nawk awk
5581 do
5582   # Extract the first word of "$ac_prog", so it can be a program name with args.
5583 set dummy $ac_prog; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_AWK+set}" = set; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   if test -n "$AWK"; then
5590   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595   IFS=$as_save_IFS
5596   test -z "$as_dir" && as_dir=.
5597     for ac_exec_ext in '' $ac_executable_extensions; do
5598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599     ac_cv_prog_AWK="$ac_prog"
5600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601     break 2
5602   fi
5603 done
5604   done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 AWK=$ac_cv_prog_AWK
5610 if test -n "$AWK"; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5612 $as_echo "$AWK" >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619   test -n "$AWK" && break
5620 done
5621
5622 # Find a good install program.  We prefer a C program (faster),
5623 # so one script is as good as another.  But avoid the broken or
5624 # incompatible versions:
5625 # SysV /etc/install, /usr/sbin/install
5626 # SunOS /usr/etc/install
5627 # IRIX /sbin/install
5628 # AIX /bin/install
5629 # AmigaOS /C/install, which installs bootblocks on floppy discs
5630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5633 # OS/2's system install, which has a completely different semantic
5634 # ./install, which can be erroneously created by make from ./install.sh.
5635 # Reject install programs that cannot install multiple files.
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5637 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5638 if test -z "$INSTALL"; then
5639 if test "${ac_cv_path_install+set}" = set; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647     # Account for people who put trailing slashes in PATH elements.
5648 case $as_dir/ in #((
5649   ./ | .// | /[cC]/* | \
5650   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5651   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5652   /usr/ucb/* ) ;;
5653   *)
5654     # OSF1 and SCO ODT 3.0 have their own names for install.
5655     # Don't use installbsd from OSF since it installs stuff as root
5656     # by default.
5657     for ac_prog in ginstall scoinst install; do
5658       for ac_exec_ext in '' $ac_executable_extensions; do
5659         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5660           if test $ac_prog = install &&
5661             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5662             # AIX install.  It has an incompatible calling convention.
5663             :
5664           elif test $ac_prog = install &&
5665             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5666             # program-specific install script used by HP pwplus--don't use.
5667             :
5668           else
5669             rm -rf conftest.one conftest.two conftest.dir
5670             echo one > conftest.one
5671             echo two > conftest.two
5672             mkdir conftest.dir
5673             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5674               test -s conftest.one && test -s conftest.two &&
5675               test -s conftest.dir/conftest.one &&
5676               test -s conftest.dir/conftest.two
5677             then
5678               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5679               break 3
5680             fi
5681           fi
5682         fi
5683       done
5684     done
5685     ;;
5686 esac
5687
5688   done
5689 IFS=$as_save_IFS
5690
5691 rm -rf conftest.one conftest.two conftest.dir
5692
5693 fi
5694   if test "${ac_cv_path_install+set}" = set; then
5695     INSTALL=$ac_cv_path_install
5696   else
5697     # As a last resort, use the slow shell script.  Don't cache a
5698     # value for INSTALL within a source directory, because that will
5699     # break other packages using the cache if that directory is
5700     # removed, or if the value is a relative name.
5701     INSTALL=$ac_install_sh
5702   fi
5703 fi
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5705 $as_echo "$INSTALL" >&6; }
5706
5707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5708 # It thinks the first close brace ends the variable substitution.
5709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5710
5711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5712
5713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5716 $as_echo_n "checking whether ln -s works... " >&6; }
5717 LN_S=$as_ln_s
5718 if test "$LN_S" = "ln -s"; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5720 $as_echo "yes" >&6; }
5721 else
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5723 $as_echo "no, using $LN_S" >&6; }
5724 fi
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$RANLIB"; then
5735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5757 $as_echo "$RANLIB" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766   ac_ct_RANLIB=$RANLIB
5767   # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -n "$ac_ct_RANLIB"; then
5775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_prog_ac_ct_RANLIB="ranlib"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5797 $as_echo "$ac_ct_RANLIB" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803   if test "x$ac_ct_RANLIB" = x; then
5804     RANLIB=":"
5805   else
5806     case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812     RANLIB=$ac_ct_RANLIB
5813   fi
5814 else
5815   RANLIB="$ac_cv_prog_RANLIB"
5816 fi
5817
5818 for ac_prog in 'bison -y' byacc
5819 do
5820   # Extract the first word of "$ac_prog", so it can be a program name with args.
5821 set dummy $ac_prog; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if test "${ac_cv_prog_YACC+set}" = set; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   if test -n "$YACC"; then
5828   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835     for ac_exec_ext in '' $ac_executable_extensions; do
5836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837     ac_cv_prog_YACC="$ac_prog"
5838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842   done
5843 IFS=$as_save_IFS
5844
5845 fi
5846 fi
5847 YACC=$ac_cv_prog_YACC
5848 if test -n "$YACC"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5850 $as_echo "$YACC" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855
5856
5857   test -n "$YACC" && break
5858 done
5859 test -n "$YACC" || YACC="yacc"
5860
5861
5862 if test -n "$ac_tool_prefix"; then
5863   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}ar; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if test "${ac_cv_prog_AR+set}" = set; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   if test -n "$AR"; then
5871   ac_cv_prog_AR="$AR" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878     for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_prog_AR="${ac_tool_prefix}ar"
5881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885   done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 AR=$ac_cv_prog_AR
5891 if test -n "$AR"; then
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5893 $as_echo "$AR" >&6; }
5894 else
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898
5899
5900 fi
5901 if test -z "$ac_cv_prog_AR"; then
5902   ac_ct_AR=$AR
5903   # Extract the first word of "ar", so it can be a program name with args.
5904 set dummy ar; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   if test -n "$ac_ct_AR"; then
5911   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918     for ac_exec_ext in '' $ac_executable_extensions; do
5919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920     ac_cv_prog_ac_ct_AR="ar"
5921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925   done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5931 if test -n "$ac_ct_AR"; then
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5933 $as_echo "$ac_ct_AR" >&6; }
5934 else
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939   if test "x$ac_ct_AR" = x; then
5940     AR=""
5941   else
5942     case $cross_compiling:$ac_tool_warned in
5943 yes:)
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946 ac_tool_warned=yes ;;
5947 esac
5948     AR=$ac_ct_AR
5949   fi
5950 else
5951   AR="$ac_cv_prog_AR"
5952 fi
5953
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$DLLTOOL"; then
5963   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 DLLTOOL=$ac_cv_prog_DLLTOOL
5983 if test -n "$DLLTOOL"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5985 $as_echo "$DLLTOOL" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_DLLTOOL"; then
5994   ac_ct_DLLTOOL=$DLLTOOL
5995   # Extract the first word of "dlltool", so it can be a program name with args.
5996 set dummy dlltool; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test -n "$ac_ct_DLLTOOL"; then
6003   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6023 if test -n "$ac_ct_DLLTOOL"; then
6024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6025 $as_echo "$ac_ct_DLLTOOL" >&6; }
6026 else
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_DLLTOOL" = x; then
6032     DLLTOOL=""
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040     DLLTOOL=$ac_ct_DLLTOOL
6041   fi
6042 else
6043   DLLTOOL="$ac_cv_prog_DLLTOOL"
6044 fi
6045
6046 if test -n "$ac_tool_prefix"; then
6047   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}windres; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   if test -n "$WINDRES"; then
6055   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062     for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069   done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 WINDRES=$ac_cv_prog_WINDRES
6075 if test -n "$WINDRES"; then
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6077 $as_echo "$WINDRES" >&6; }
6078 else
6079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083
6084 fi
6085 if test -z "$ac_cv_prog_WINDRES"; then
6086   ac_ct_WINDRES=$WINDRES
6087   # Extract the first word of "windres", so it can be a program name with args.
6088 set dummy windres; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   if test -n "$ac_ct_WINDRES"; then
6095   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102     for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_ac_ct_WINDRES="windres"
6105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109   done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6115 if test -n "$ac_ct_WINDRES"; then
6116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6117 $as_echo "$ac_ct_WINDRES" >&6; }
6118 else
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123   if test "x$ac_ct_WINDRES" = x; then
6124     WINDRES=""
6125   else
6126     case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6131 esac
6132     WINDRES=$ac_ct_WINDRES
6133   fi
6134 else
6135   WINDRES="$ac_cv_prog_WINDRES"
6136 fi
6137
6138
6139 # Needed for GNU/Hurd.
6140 if test -n "$ac_tool_prefix"; then
6141   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}mig; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_MIG+set}" = set; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$MIG"; then
6149   ac_cv_prog_MIG="$MIG" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_MIG="${ac_tool_prefix}mig"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 MIG=$ac_cv_prog_MIG
6169 if test -n "$MIG"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6171 $as_echo "$MIG" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_MIG"; then
6180   ac_ct_MIG=$MIG
6181   # Extract the first word of "mig", so it can be a program name with args.
6182 set dummy mig; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$ac_ct_MIG"; then
6189   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_ac_ct_MIG="mig"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6209 if test -n "$ac_ct_MIG"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6211 $as_echo "$ac_ct_MIG" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217   if test "x$ac_ct_MIG" = x; then
6218     MIG=""
6219   else
6220     case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226     MIG=$ac_ct_MIG
6227   fi
6228 else
6229   MIG="$ac_cv_prog_MIG"
6230 fi
6231
6232
6233 # ---------------------- #
6234 # Checks for libraries.  #
6235 # ---------------------- #
6236
6237 # We might need to link with -lm; most simulators need it.
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6239 $as_echo_n "checking for main in -lm... " >&6; }
6240 if test "${ac_cv_lib_m_main+set}" = set; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   ac_check_lib_save_LIBS=$LIBS
6244 LIBS="-lm  $LIBS"
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h.  */
6247
6248
6249 int
6250 main ()
6251 {
6252 return main ();
6253   ;
6254   return 0;
6255 }
6256 _ACEOF
6257 if ac_fn_c_try_link "$LINENO"; then :
6258   ac_cv_lib_m_main=yes
6259 else
6260   ac_cv_lib_m_main=no
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext \
6263     conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6265 fi
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6267 $as_echo "$ac_cv_lib_m_main" >&6; }
6268 if test "x$ac_cv_lib_m_main" = x""yes; then :
6269   cat >>confdefs.h <<_ACEOF
6270 #define HAVE_LIBM 1
6271 _ACEOF
6272
6273   LIBS="-lm $LIBS"
6274
6275 fi
6276
6277
6278 # We need to link with -lw to get `wctype' on Solaris before Solaris
6279 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
6280 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6281 # is known to have this problem).  Therefore we avoid libw if we can.
6282 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6283 if test "x$ac_cv_func_wctype" = x""yes; then :
6284
6285 else
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6287 $as_echo_n "checking for wctype in -lw... " >&6; }
6288 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   ac_check_lib_save_LIBS=$LIBS
6292 LIBS="-lw  $LIBS"
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h.  */
6295
6296 /* Override any GCC internal prototype to avoid an error.
6297    Use char because int might match the return type of a GCC
6298    builtin and then its argument prototype would still apply.  */
6299 #ifdef __cplusplus
6300 extern "C"
6301 #endif
6302 char wctype ();
6303 int
6304 main ()
6305 {
6306 return wctype ();
6307   ;
6308   return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_link "$LINENO"; then :
6312   ac_cv_lib_w_wctype=yes
6313 else
6314   ac_cv_lib_w_wctype=no
6315 fi
6316 rm -f core conftest.err conftest.$ac_objext \
6317     conftest$ac_exeext conftest.$ac_ext
6318 LIBS=$ac_check_lib_save_LIBS
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6321 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6322 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6323   cat >>confdefs.h <<_ACEOF
6324 #define HAVE_LIBW 1
6325 _ACEOF
6326
6327   LIBS="-lw $LIBS"
6328
6329 fi
6330
6331 fi
6332
6333
6334 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6336 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6337 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   ac_func_search_save_LIBS=$LIBS
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h.  */
6343
6344 /* Override any GCC internal prototype to avoid an error.
6345    Use char because int might match the return type of a GCC
6346    builtin and then its argument prototype would still apply.  */
6347 #ifdef __cplusplus
6348 extern "C"
6349 #endif
6350 char gethostbyname ();
6351 int
6352 main ()
6353 {
6354 return gethostbyname ();
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 for ac_lib in '' nsl; do
6360   if test -z "$ac_lib"; then
6361     ac_res="none required"
6362   else
6363     ac_res=-l$ac_lib
6364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6365   fi
6366   if ac_fn_c_try_link "$LINENO"; then :
6367   ac_cv_search_gethostbyname=$ac_res
6368 fi
6369 rm -f core conftest.err conftest.$ac_objext \
6370     conftest$ac_exeext
6371   if test "${ac_cv_search_gethostbyname+set}" = set; then :
6372   break
6373 fi
6374 done
6375 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6376
6377 else
6378   ac_cv_search_gethostbyname=no
6379 fi
6380 rm conftest.$ac_ext
6381 LIBS=$ac_func_search_save_LIBS
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6384 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6385 ac_res=$ac_cv_search_gethostbyname
6386 if test "$ac_res" != no; then :
6387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6388
6389 fi
6390
6391
6392 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6394 $as_echo_n "checking for library containing socketpair... " >&6; }
6395 if test "${ac_cv_search_socketpair+set}" = set; then :
6396   $as_echo_n "(cached) " >&6
6397 else
6398   ac_func_search_save_LIBS=$LIBS
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h.  */
6401
6402 /* Override any GCC internal prototype to avoid an error.
6403    Use char because int might match the return type of a GCC
6404    builtin and then its argument prototype would still apply.  */
6405 #ifdef __cplusplus
6406 extern "C"
6407 #endif
6408 char socketpair ();
6409 int
6410 main ()
6411 {
6412 return socketpair ();
6413   ;
6414   return 0;
6415 }
6416 _ACEOF
6417 for ac_lib in '' socket; do
6418   if test -z "$ac_lib"; then
6419     ac_res="none required"
6420   else
6421     ac_res=-l$ac_lib
6422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6423   fi
6424   if ac_fn_c_try_link "$LINENO"; then :
6425   ac_cv_search_socketpair=$ac_res
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext \
6428     conftest$ac_exeext
6429   if test "${ac_cv_search_socketpair+set}" = set; then :
6430   break
6431 fi
6432 done
6433 if test "${ac_cv_search_socketpair+set}" = set; then :
6434
6435 else
6436   ac_cv_search_socketpair=no
6437 fi
6438 rm conftest.$ac_ext
6439 LIBS=$ac_func_search_save_LIBS
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6442 $as_echo "$ac_cv_search_socketpair" >&6; }
6443 ac_res=$ac_cv_search_socketpair
6444 if test "$ac_res" != no; then :
6445   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6446
6447 fi
6448
6449
6450 # Link in zlib if we can.  This allows us to read compressed debug sections.
6451
6452   # See if the user specified whether he wants zlib support or not.
6453
6454 # Check whether --with-zlib was given.
6455 if test "${with_zlib+set}" = set; then :
6456   withval=$with_zlib;
6457 else
6458   with_zlib=auto
6459 fi
6460
6461
6462   if test "$with_zlib" != "no"; then
6463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6464 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6465 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   ac_func_search_save_LIBS=$LIBS
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h.  */
6471
6472 /* Override any GCC internal prototype to avoid an error.
6473    Use char because int might match the return type of a GCC
6474    builtin and then its argument prototype would still apply.  */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 char zlibVersion ();
6479 int
6480 main ()
6481 {
6482 return zlibVersion ();
6483   ;
6484   return 0;
6485 }
6486 _ACEOF
6487 for ac_lib in '' z; do
6488   if test -z "$ac_lib"; then
6489     ac_res="none required"
6490   else
6491     ac_res=-l$ac_lib
6492     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6493   fi
6494   if ac_fn_c_try_link "$LINENO"; then :
6495   ac_cv_search_zlibVersion=$ac_res
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext \
6498     conftest$ac_exeext
6499   if test "${ac_cv_search_zlibVersion+set}" = set; then :
6500   break
6501 fi
6502 done
6503 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6504
6505 else
6506   ac_cv_search_zlibVersion=no
6507 fi
6508 rm conftest.$ac_ext
6509 LIBS=$ac_func_search_save_LIBS
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6512 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6513 ac_res=$ac_cv_search_zlibVersion
6514 if test "$ac_res" != no; then :
6515   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6516   for ac_header in zlib.h
6517 do :
6518   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6519 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6520   cat >>confdefs.h <<_ACEOF
6521 #define HAVE_ZLIB_H 1
6522 _ACEOF
6523
6524 fi
6525
6526 done
6527
6528 fi
6529
6530     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6531       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6532     fi
6533   fi
6534
6535
6536 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6538 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6539 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   ac_func_search_save_LIBS=$LIBS
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h.  */
6545
6546 /* Override any GCC internal prototype to avoid an error.
6547    Use char because int might match the return type of a GCC
6548    builtin and then its argument prototype would still apply.  */
6549 #ifdef __cplusplus
6550 extern "C"
6551 #endif
6552 char dlgetmodinfo ();
6553 int
6554 main ()
6555 {
6556 return dlgetmodinfo ();
6557   ;
6558   return 0;
6559 }
6560 _ACEOF
6561 for ac_lib in '' dl xpdl; do
6562   if test -z "$ac_lib"; then
6563     ac_res="none required"
6564   else
6565     ac_res=-l$ac_lib
6566     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6567   fi
6568   if ac_fn_c_try_link "$LINENO"; then :
6569   ac_cv_search_dlgetmodinfo=$ac_res
6570 fi
6571 rm -f core conftest.err conftest.$ac_objext \
6572     conftest$ac_exeext
6573   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6574   break
6575 fi
6576 done
6577 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6578
6579 else
6580   ac_cv_search_dlgetmodinfo=no
6581 fi
6582 rm conftest.$ac_ext
6583 LIBS=$ac_func_search_save_LIBS
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6586 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6587 ac_res=$ac_cv_search_dlgetmodinfo
6588 if test "$ac_res" != no; then :
6589   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6590
6591 fi
6592
6593
6594
6595
6596
6597 # Check whether --with-libiconv-prefix was given.
6598 if test "${with_libiconv_prefix+set}" = set; then :
6599   withval=$with_libiconv_prefix;
6600     for dir in `echo "$withval" | tr : ' '`; do
6601       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6602       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6603     done
6604
6605 fi
6606
6607
6608   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6609   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6610
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6612 $as_echo_n "checking for iconv... " >&6; }
6613 if test "${am_cv_func_iconv+set}" = set; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616
6617     am_cv_func_iconv="no, consider installing GNU libiconv"
6618     am_cv_lib_iconv=no
6619     am_cv_use_build_libiconv=no
6620     am_cv_build_libiconv_path=
6621
6622     # If libiconv is part of the build tree, then try using it over
6623     # any system iconv.
6624     if test -d ../libiconv; then
6625       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6626         am_save_LIBS="$LIBS"
6627         am_save_CPPFLAGS="$CPPFLAGS"
6628         LIBS="$LIBS $lib_dir/libiconv.a"
6629         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h.  */
6632 #include <stdlib.h>
6633 #include <iconv.h>
6634 int
6635 main ()
6636 {
6637 iconv_t cd = iconv_open("","");
6638            iconv(cd,NULL,NULL,NULL,NULL);
6639            iconv_close(cd);
6640   ;
6641   return 0;
6642 }
6643 _ACEOF
6644 if ac_fn_c_try_link "$LINENO"; then :
6645   am_cv_use_build_libiconv=yes
6646           am_cv_build_libiconv_path=$lib_dir/libiconv.a
6647           am_cv_lib_iconv=yes
6648           am_cv_func_iconv=yes
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext \
6651     conftest$ac_exeext conftest.$ac_ext
6652         LIBS="$am_save_LIBS"
6653         CPPFLAGS="$am_save_CPPFLAGS"
6654         if test "$am_cv_use_build_libiconv" = "yes"; then
6655           break
6656         fi
6657       done
6658     fi
6659
6660     # Next, try to find iconv in libc.
6661     if test "$am_cv_func_iconv" != yes; then
6662       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h.  */
6664 #include <stdlib.h>
6665 #include <iconv.h>
6666 int
6667 main ()
6668 {
6669 iconv_t cd = iconv_open("","");
6670          iconv(cd,NULL,NULL,NULL,NULL);
6671          iconv_close(cd);
6672   ;
6673   return 0;
6674 }
6675 _ACEOF
6676 if ac_fn_c_try_link "$LINENO"; then :
6677   am_cv_func_iconv=yes
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext \
6680     conftest$ac_exeext conftest.$ac_ext
6681     fi
6682
6683     # If iconv was not in libc, try -liconv.  In this case, arrange to
6684     # look in the libiconv prefix, if it was specified by the user.
6685     if test "$am_cv_func_iconv" != yes; then
6686       am_save_CPPFLAGS="$CPPFLAGS"
6687       am_save_LIBS="$LIBS"
6688       if test -n "$LIBICONV_INCLUDE"; then
6689         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6690         LIBS="$LIBS $LIBICONV_LIBDIR"
6691       fi
6692       LIBS="$LIBS -liconv"
6693       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h.  */
6695 #include <stdlib.h>
6696 #include <iconv.h>
6697 int
6698 main ()
6699 {
6700 iconv_t cd = iconv_open("","");
6701          iconv(cd,NULL,NULL,NULL,NULL);
6702          iconv_close(cd);
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 if ac_fn_c_try_link "$LINENO"; then :
6708   am_cv_lib_iconv=yes
6709         am_cv_func_iconv=yes
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext \
6712     conftest$ac_exeext conftest.$ac_ext
6713       LIBS="$am_save_LIBS"
6714       CPPFLAGS="$am_save_CPPFLAGS"
6715     fi
6716
6717 fi
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6719 $as_echo "$am_cv_func_iconv" >&6; }
6720
6721   # Set the various flags based on the cache variables.  We can't rely
6722   # on the flags to remain set from the above code, due to caching.
6723   LIBICONV=
6724   if test "$am_cv_lib_iconv" = yes; then
6725     LIBICONV="-liconv"
6726   else
6727     LIBICONV_LIBDIR=
6728     LIBICONV_INCLUDE=
6729   fi
6730   if test "$am_cv_use_build_libiconv" = yes; then
6731     LIBICONV="$am_cv_build_libiconv_path"
6732     LIBICONV_LIBDIR=""
6733     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6734   fi
6735   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6736   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6737
6738   if test "$am_cv_func_iconv" = yes; then
6739
6740 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6741
6742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6743 $as_echo_n "checking for iconv declaration... " >&6; }
6744     if test "${am_cv_proto_iconv+set}" = set; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747
6748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h.  */
6750
6751 #include <stdlib.h>
6752 #include <iconv.h>
6753 extern
6754 #ifdef __cplusplus
6755 "C"
6756 #endif
6757 #if defined(__STDC__) || defined(__cplusplus)
6758 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6759 #else
6760 size_t iconv();
6761 #endif
6762
6763 int
6764 main ()
6765 {
6766
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"; then :
6772   am_cv_proto_iconv_arg1=""
6773 else
6774   am_cv_proto_iconv_arg1="const"
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777       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);"
6778 fi
6779
6780     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6782          }$am_cv_proto_iconv" >&5
6783 $as_echo "${ac_t:-
6784          }$am_cv_proto_iconv" >&6; }
6785
6786 cat >>confdefs.h <<_ACEOF
6787 #define ICONV_CONST $am_cv_proto_iconv_arg1
6788 _ACEOF
6789
6790   fi
6791
6792
6793 # GDB may fork/exec the iconv program to get the list of supported character
6794 # sets.  Allow the user to specify where to find it.
6795 # There are several factors affecting the choice of option name:
6796 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6797 #   the build-time location of libiconv files.
6798 # - The program we need to find is iconv, which comes with glibc.  The user
6799 #   doesn't necessarily have libiconv installed.  Therefore naming this
6800 #   --with-libiconv-foo feels wrong.
6801 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6802 #   defined to work on directories not files (though it really doesn't know
6803 #   the difference).
6804 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6805 #   with --with-libiconv-prefix.
6806 # Putting these together is why the option name is --with-iconv-bin.
6807
6808
6809 # Check whether --with-iconv-bin was given.
6810 if test "${with_iconv_bin+set}" = set; then :
6811   withval=$with_iconv_bin; iconv_bin="${withval}"
6812
6813 cat >>confdefs.h <<_ACEOF
6814 #define ICONV_BIN "${iconv_bin}"
6815 _ACEOF
6816
6817
6818   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6819      if test "x$prefix" = xNONE; then
6820         test_prefix=/usr/local
6821      else
6822         test_prefix=$prefix
6823      fi
6824   else
6825      test_prefix=$exec_prefix
6826   fi
6827   value=0
6828   case ${iconv_bin} in
6829      "${test_prefix}"|"${test_prefix}/"*|\
6830         '${exec_prefix}'|'${exec_prefix}/'*)
6831      value=1
6832      ;;
6833   esac
6834
6835 cat >>confdefs.h <<_ACEOF
6836 #define ICONV_BIN_RELOCATABLE $value
6837 _ACEOF
6838
6839
6840
6841 fi
6842
6843
6844 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6845 # There is a very specific comment in /usr/include/curses.h explaining that
6846 # termcap routines built into libcurses must not be used.
6847 #
6848 # The symptoms we observed so far is GDB unexpectedly changing
6849 # the terminal settings when tgetent is called - this is particularly
6850 # visible as the output is missing carriage returns, and so rapidly
6851 # becomes very hard to read.
6852 #
6853 # The readline configure script has already decided that libtermcap
6854 # was enough for its purposes, and so decided to build readline using
6855 # libtermcap.  Since the TUI mode requires curses, building GDB with
6856 # TUI enabled results in both libraries to be used at the same time,
6857 # which is not allowed.  This basically means that GDB with TUI is
6858 # broken on alpha-osf.
6859
6860 case $host_os in
6861   osf* )
6862     if test x"$enable_tui" = xyes; then
6863       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6864     fi
6865     if test x"$enable_tui" = xauto; then
6866       enable_tui=no
6867     fi
6868     ;;
6869 esac
6870
6871 # For the TUI, we need enhanced curses functionality.
6872 if test x"$enable_tui" != xno; then
6873   prefer_curses=yes
6874 fi
6875
6876 curses_found=no
6877 if test x"$prefer_curses" = xyes; then
6878   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6879   # curses library because the latter might not provide all the
6880   # functionality we need.  However, this leads to problems on systems
6881   # where the linker searches /usr/local/lib, but the compiler doesn't
6882   # search /usr/local/include, if ncurses is installed in /usr/local.  A
6883   # default installation of ncurses on alpha*-dec-osf* will lead to such
6884   # a situation.
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6886 $as_echo_n "checking for library containing waddstr... " >&6; }
6887 if test "${ac_cv_search_waddstr+set}" = set; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   ac_func_search_save_LIBS=$LIBS
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h.  */
6893
6894 /* Override any GCC internal prototype to avoid an error.
6895    Use char because int might match the return type of a GCC
6896    builtin and then its argument prototype would still apply.  */
6897 #ifdef __cplusplus
6898 extern "C"
6899 #endif
6900 char waddstr ();
6901 int
6902 main ()
6903 {
6904 return waddstr ();
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 for ac_lib in '' ncurses cursesX curses; do
6910   if test -z "$ac_lib"; then
6911     ac_res="none required"
6912   else
6913     ac_res=-l$ac_lib
6914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6915   fi
6916   if ac_fn_c_try_link "$LINENO"; then :
6917   ac_cv_search_waddstr=$ac_res
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext \
6920     conftest$ac_exeext
6921   if test "${ac_cv_search_waddstr+set}" = set; then :
6922   break
6923 fi
6924 done
6925 if test "${ac_cv_search_waddstr+set}" = set; then :
6926
6927 else
6928   ac_cv_search_waddstr=no
6929 fi
6930 rm conftest.$ac_ext
6931 LIBS=$ac_func_search_save_LIBS
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6934 $as_echo "$ac_cv_search_waddstr" >&6; }
6935 ac_res=$ac_cv_search_waddstr
6936 if test "$ac_res" != no; then :
6937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6938
6939 fi
6940
6941
6942   if test "$ac_cv_search_waddstr" != no; then
6943     curses_found=yes
6944   fi
6945 fi
6946
6947 # Check whether we should enable the TUI, but only do so if we really
6948 # can.
6949 if test x"$enable_tui" != xno; then
6950   if test -d $srcdir/tui; then
6951     if test "$curses_found" != no; then
6952       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6953       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6954       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6955       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6956     else
6957       if test x"$enable_tui" = xyes; then
6958         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6959       else
6960         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6961 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6962       fi
6963     fi
6964   fi
6965 fi
6966
6967 # Since GDB uses Readline, we need termcap functionality.  In many
6968 # cases this will be provided by the curses library, but some systems
6969 # have a seperate termcap library, or no curses library at all.
6970
6971 case $host_os in
6972   cygwin*)
6973     if test -d $srcdir/libtermcap; then
6974       LIBS="../libtermcap/libtermcap.a $LIBS"
6975       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6976     fi ;;
6977   go32* | *djgpp*)
6978     ac_cv_search_tgetent="none required"
6979     ;;
6980   *mingw32*)
6981     ac_cv_search_tgetent="none required"
6982     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6983     ;;
6984 esac
6985
6986 # These are the libraries checked by Readline.
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6988 $as_echo_n "checking for library containing tgetent... " >&6; }
6989 if test "${ac_cv_search_tgetent+set}" = set; then :
6990   $as_echo_n "(cached) " >&6
6991 else
6992   ac_func_search_save_LIBS=$LIBS
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h.  */
6995
6996 /* Override any GCC internal prototype to avoid an error.
6997    Use char because int might match the return type of a GCC
6998    builtin and then its argument prototype would still apply.  */
6999 #ifdef __cplusplus
7000 extern "C"
7001 #endif
7002 char tgetent ();
7003 int
7004 main ()
7005 {
7006 return tgetent ();
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 for ac_lib in '' termcap tinfo curses ncurses; do
7012   if test -z "$ac_lib"; then
7013     ac_res="none required"
7014   else
7015     ac_res=-l$ac_lib
7016     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7017   fi
7018   if ac_fn_c_try_link "$LINENO"; then :
7019   ac_cv_search_tgetent=$ac_res
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext \
7022     conftest$ac_exeext
7023   if test "${ac_cv_search_tgetent+set}" = set; then :
7024   break
7025 fi
7026 done
7027 if test "${ac_cv_search_tgetent+set}" = set; then :
7028
7029 else
7030   ac_cv_search_tgetent=no
7031 fi
7032 rm conftest.$ac_ext
7033 LIBS=$ac_func_search_save_LIBS
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7036 $as_echo "$ac_cv_search_tgetent" >&6; }
7037 ac_res=$ac_cv_search_tgetent
7038 if test "$ac_res" != no; then :
7039   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7040
7041 fi
7042
7043
7044 if test "$ac_cv_search_tgetent" = no; then
7045   as_fn_error "no termcap library found" "$LINENO" 5
7046 fi
7047
7048
7049 # Check whether --with-system-readline was given.
7050 if test "${with_system_readline+set}" = set; then :
7051   withval=$with_system_readline;
7052 fi
7053
7054
7055 if test "$with_system_readline" = yes; then
7056   READLINE=-lreadline
7057   READLINE_DEPS=
7058   READLINE_CFLAGS=
7059   READLINE_TEXI_INCFLAG=
7060 else
7061   READLINE='$(READLINE_DIR)/libreadline.a'
7062   READLINE_DEPS='$(READLINE)'
7063   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7064   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7065 fi
7066
7067
7068
7069
7070
7071 # Generate jit-reader.h
7072
7073 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7074 TARGET_PTR=
7075
7076 # The cast to long int works around a bug in the HP C Compiler
7077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7079 # This bug is HP SR number 8606223364.
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7081 $as_echo_n "checking size of unsigned long long... " >&6; }
7082 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
7086
7087 else
7088   if test "$ac_cv_type_unsigned_long_long" = yes; then
7089      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091 { as_fn_set_status 77
7092 as_fn_error "cannot compute sizeof (unsigned long long)
7093 See \`config.log' for more details." "$LINENO" 5; }; }
7094    else
7095      ac_cv_sizeof_unsigned_long_long=0
7096    fi
7097 fi
7098
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7101 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7102
7103
7104
7105 cat >>confdefs.h <<_ACEOF
7106 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7107 _ACEOF
7108
7109
7110 # The cast to long int works around a bug in the HP C Compiler
7111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7113 # This bug is HP SR number 8606223364.
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7115 $as_echo_n "checking size of unsigned long... " >&6; }
7116 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
7120
7121 else
7122   if test "$ac_cv_type_unsigned_long" = yes; then
7123      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7125 { as_fn_set_status 77
7126 as_fn_error "cannot compute sizeof (unsigned long)
7127 See \`config.log' for more details." "$LINENO" 5; }; }
7128    else
7129      ac_cv_sizeof_unsigned_long=0
7130    fi
7131 fi
7132
7133 fi
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7135 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7136
7137
7138
7139 cat >>confdefs.h <<_ACEOF
7140 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7141 _ACEOF
7142
7143
7144 # The cast to long int works around a bug in the HP C Compiler
7145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7147 # This bug is HP SR number 8606223364.
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7149 $as_echo_n "checking size of unsigned __int128... " >&6; }
7150 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
7154
7155 else
7156   if test "$ac_cv_type_unsigned___int128" = yes; then
7157      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7159 { as_fn_set_status 77
7160 as_fn_error "cannot compute sizeof (unsigned __int128)
7161 See \`config.log' for more details." "$LINENO" 5; }; }
7162    else
7163      ac_cv_sizeof_unsigned___int128=0
7164    fi
7165 fi
7166
7167 fi
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7169 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7170
7171
7172
7173 cat >>confdefs.h <<_ACEOF
7174 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7175 _ACEOF
7176
7177
7178
7179 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7180   TARGET_PTR="unsigned long"
7181 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7182   TARGET_PTR="unsigned long long"
7183 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7184   TARGET_PTR="unsigned __int128"
7185 else
7186   TARGET_PTR="unsigned long"
7187 fi
7188
7189
7190 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7191
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7194 $as_echo_n "checking for library containing dlopen... " >&6; }
7195 if test "${ac_cv_search_dlopen+set}" = set; then :
7196   $as_echo_n "(cached) " >&6
7197 else
7198   ac_func_search_save_LIBS=$LIBS
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h.  */
7201
7202 /* Override any GCC internal prototype to avoid an error.
7203    Use char because int might match the return type of a GCC
7204    builtin and then its argument prototype would still apply.  */
7205 #ifdef __cplusplus
7206 extern "C"
7207 #endif
7208 char dlopen ();
7209 int
7210 main ()
7211 {
7212 return dlopen ();
7213   ;
7214   return 0;
7215 }
7216 _ACEOF
7217 for ac_lib in '' dl; do
7218   if test -z "$ac_lib"; then
7219     ac_res="none required"
7220   else
7221     ac_res=-l$ac_lib
7222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7223   fi
7224   if ac_fn_c_try_link "$LINENO"; then :
7225   ac_cv_search_dlopen=$ac_res
7226 fi
7227 rm -f core conftest.err conftest.$ac_objext \
7228     conftest$ac_exeext
7229   if test "${ac_cv_search_dlopen+set}" = set; then :
7230   break
7231 fi
7232 done
7233 if test "${ac_cv_search_dlopen+set}" = set; then :
7234
7235 else
7236   ac_cv_search_dlopen=no
7237 fi
7238 rm conftest.$ac_ext
7239 LIBS=$ac_func_search_save_LIBS
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7242 $as_echo "$ac_cv_search_dlopen" >&6; }
7243 ac_res=$ac_cv_search_dlopen
7244 if test "$ac_res" != no; then :
7245   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7246
7247 fi
7248
7249
7250
7251
7252 # Check whether --with-jit-reader-dir was given.
7253 if test "${with_jit_reader_dir+set}" = set; then :
7254   withval=$with_jit_reader_dir;
7255     JIT_READER_DIR=$withval
7256 else
7257   JIT_READER_DIR=${libdir}/gdb
7258 fi
7259
7260
7261   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7262   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7263   ac_define_dir=`eval echo $JIT_READER_DIR`
7264   ac_define_dir=`eval echo $ac_define_dir`
7265
7266 cat >>confdefs.h <<_ACEOF
7267 #define JIT_READER_DIR "$ac_define_dir"
7268 _ACEOF
7269
7270
7271
7272
7273   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7274      if test "x$prefix" = xNONE; then
7275         test_prefix=/usr/local
7276      else
7277         test_prefix=$prefix
7278      fi
7279   else
7280      test_prefix=$exec_prefix
7281   fi
7282   value=0
7283   case ${ac_define_dir} in
7284      "${test_prefix}"|"${test_prefix}/"*|\
7285         '${exec_prefix}'|'${exec_prefix}/'*)
7286      value=1
7287      ;;
7288   esac
7289
7290 cat >>confdefs.h <<_ACEOF
7291 #define JIT_READER_DIR_RELOCATABLE $value
7292 _ACEOF
7293
7294
7295
7296
7297
7298 # Check whether --with-expat was given.
7299 if test "${with_expat+set}" = set; then :
7300   withval=$with_expat;
7301 else
7302   with_expat=auto
7303 fi
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7306 $as_echo_n "checking whether to use expat... " >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7308 $as_echo "$with_expat" >&6; }
7309
7310 if test "${with_expat}" = no; then
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7312 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7313   HAVE_LIBEXPAT=no
7314 else
7315
7316       if test "X$prefix" = "XNONE"; then
7317     acl_final_prefix="$ac_default_prefix"
7318   else
7319     acl_final_prefix="$prefix"
7320   fi
7321   if test "X$exec_prefix" = "XNONE"; then
7322     acl_final_exec_prefix='${prefix}'
7323   else
7324     acl_final_exec_prefix="$exec_prefix"
7325   fi
7326   acl_save_prefix="$prefix"
7327   prefix="$acl_final_prefix"
7328   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7329   prefix="$acl_save_prefix"
7330
7331
7332 # Check whether --with-gnu-ld was given.
7333 if test "${with_gnu_ld+set}" = set; then :
7334   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7335 else
7336   with_gnu_ld=no
7337 fi
7338
7339 # Prepare PATH_SEPARATOR.
7340 # The user is always right.
7341 if test "${PATH_SEPARATOR+set}" != set; then
7342   echo "#! /bin/sh" >conf$$.sh
7343   echo  "exit 0"   >>conf$$.sh
7344   chmod +x conf$$.sh
7345   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7346     PATH_SEPARATOR=';'
7347   else
7348     PATH_SEPARATOR=:
7349   fi
7350   rm -f conf$$.sh
7351 fi
7352 ac_prog=ld
7353 if test "$GCC" = yes; then
7354   # Check if gcc -print-prog-name=ld gives a path.
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7356 $as_echo_n "checking for ld used by GCC... " >&6; }
7357   case $host in
7358   *-*-mingw*)
7359     # gcc leaves a trailing carriage return which upsets mingw
7360     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7361   *)
7362     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7363   esac
7364   case $ac_prog in
7365     # Accept absolute paths.
7366     [\\/]* | [A-Za-z]:[\\/]*)
7367       re_direlt='/[^/][^/]*/\.\./'
7368       # Canonicalize the path of ld
7369       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7370       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7371         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7372       done
7373       test -z "$LD" && LD="$ac_prog"
7374       ;;
7375   "")
7376     # If it fails, then pretend we aren't using GCC.
7377     ac_prog=ld
7378     ;;
7379   *)
7380     # If it is relative, then search for the first ld in PATH.
7381     with_gnu_ld=unknown
7382     ;;
7383   esac
7384 elif test "$with_gnu_ld" = yes; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7386 $as_echo_n "checking for GNU ld... " >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7389 $as_echo_n "checking for non-GNU ld... " >&6; }
7390 fi
7391 if test "${acl_cv_path_LD+set}" = set; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -z "$LD"; then
7395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7396   for ac_dir in $PATH; do
7397     test -z "$ac_dir" && ac_dir=.
7398     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7399       acl_cv_path_LD="$ac_dir/$ac_prog"
7400       # Check to see if the program is GNU ld.  I'd rather use --version,
7401       # but apparently some GNU ld's only accept -v.
7402       # Break only if it was the GNU/non-GNU ld that we prefer.
7403       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7404         test "$with_gnu_ld" != no && break
7405       else
7406         test "$with_gnu_ld" != yes && break
7407       fi
7408     fi
7409   done
7410   IFS="$ac_save_ifs"
7411 else
7412   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7413 fi
7414 fi
7415
7416 LD="$acl_cv_path_LD"
7417 if test -n "$LD"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7419 $as_echo "$LD" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7426 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7427 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7431 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7432   acl_cv_prog_gnu_ld=yes
7433 else
7434   acl_cv_prog_gnu_ld=no
7435 fi
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7438 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7439 with_gnu_ld=$acl_cv_prog_gnu_ld
7440
7441
7442
7443                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7444 $as_echo_n "checking for shared library run path origin... " >&6; }
7445 if test "${acl_cv_rpath+set}" = set; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448
7449     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7450     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7451     . ./conftest.sh
7452     rm -f ./conftest.sh
7453     acl_cv_rpath=done
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7457 $as_echo "$acl_cv_rpath" >&6; }
7458   wl="$acl_cv_wl"
7459   libext="$acl_cv_libext"
7460   shlibext="$acl_cv_shlibext"
7461   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7462   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7463   hardcode_direct="$acl_cv_hardcode_direct"
7464   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7465     # Check whether --enable-rpath was given.
7466 if test "${enable_rpath+set}" = set; then :
7467   enableval=$enable_rpath; :
7468 else
7469   enable_rpath=yes
7470 fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481     use_additional=yes
7482
7483   acl_save_prefix="$prefix"
7484   prefix="$acl_final_prefix"
7485   acl_save_exec_prefix="$exec_prefix"
7486   exec_prefix="$acl_final_exec_prefix"
7487
7488     eval additional_includedir=\"$includedir\"
7489     eval additional_libdir=\"$libdir\"
7490
7491   exec_prefix="$acl_save_exec_prefix"
7492   prefix="$acl_save_prefix"
7493
7494
7495 # Check whether --with-libexpat-prefix was given.
7496 if test "${with_libexpat_prefix+set}" = set; then :
7497   withval=$with_libexpat_prefix;
7498     if test "X$withval" = "Xno"; then
7499       use_additional=no
7500     else
7501       if test "X$withval" = "X"; then
7502
7503   acl_save_prefix="$prefix"
7504   prefix="$acl_final_prefix"
7505   acl_save_exec_prefix="$exec_prefix"
7506   exec_prefix="$acl_final_exec_prefix"
7507
7508           eval additional_includedir=\"$includedir\"
7509           eval additional_libdir=\"$libdir\"
7510
7511   exec_prefix="$acl_save_exec_prefix"
7512   prefix="$acl_save_prefix"
7513
7514       else
7515         additional_includedir="$withval/include"
7516         additional_libdir="$withval/lib"
7517       fi
7518     fi
7519
7520 fi
7521
7522       LIBEXPAT=
7523   LTLIBEXPAT=
7524   INCEXPAT=
7525   rpathdirs=
7526   ltrpathdirs=
7527   names_already_handled=
7528   names_next_round='expat '
7529   while test -n "$names_next_round"; do
7530     names_this_round="$names_next_round"
7531     names_next_round=
7532     for name in $names_this_round; do
7533       already_handled=
7534       for n in $names_already_handled; do
7535         if test "$n" = "$name"; then
7536           already_handled=yes
7537           break
7538         fi
7539       done
7540       if test -z "$already_handled"; then
7541         names_already_handled="$names_already_handled $name"
7542                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7543         eval value=\"\$HAVE_LIB$uppername\"
7544         if test -n "$value"; then
7545           if test "$value" = yes; then
7546             eval value=\"\$LIB$uppername\"
7547             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7548             eval value=\"\$LTLIB$uppername\"
7549             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7550           else
7551                                     :
7552           fi
7553         else
7554                               found_dir=
7555           found_la=
7556           found_so=
7557           found_a=
7558           if test $use_additional = yes; then
7559             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7560               found_dir="$additional_libdir"
7561               found_so="$additional_libdir/lib$name.$shlibext"
7562               if test -f "$additional_libdir/lib$name.la"; then
7563                 found_la="$additional_libdir/lib$name.la"
7564               fi
7565             else
7566               if test -f "$additional_libdir/lib$name.$libext"; then
7567                 found_dir="$additional_libdir"
7568                 found_a="$additional_libdir/lib$name.$libext"
7569                 if test -f "$additional_libdir/lib$name.la"; then
7570                   found_la="$additional_libdir/lib$name.la"
7571                 fi
7572               fi
7573             fi
7574           fi
7575           if test "X$found_dir" = "X"; then
7576             for x in $LDFLAGS $LTLIBEXPAT; do
7577
7578   acl_save_prefix="$prefix"
7579   prefix="$acl_final_prefix"
7580   acl_save_exec_prefix="$exec_prefix"
7581   exec_prefix="$acl_final_exec_prefix"
7582   eval x=\"$x\"
7583   exec_prefix="$acl_save_exec_prefix"
7584   prefix="$acl_save_prefix"
7585
7586               case "$x" in
7587                 -L*)
7588                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7589                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7590                     found_dir="$dir"
7591                     found_so="$dir/lib$name.$shlibext"
7592                     if test -f "$dir/lib$name.la"; then
7593                       found_la="$dir/lib$name.la"
7594                     fi
7595                   else
7596                     if test -f "$dir/lib$name.$libext"; then
7597                       found_dir="$dir"
7598                       found_a="$dir/lib$name.$libext"
7599                       if test -f "$dir/lib$name.la"; then
7600                         found_la="$dir/lib$name.la"
7601                       fi
7602                     fi
7603                   fi
7604                   ;;
7605               esac
7606               if test "X$found_dir" != "X"; then
7607                 break
7608               fi
7609             done
7610           fi
7611           if test "X$found_dir" != "X"; then
7612                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7613             if test "X$found_so" != "X"; then
7614                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7615                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7616               else
7617                                                                                 haveit=
7618                 for x in $ltrpathdirs; do
7619                   if test "X$x" = "X$found_dir"; then
7620                     haveit=yes
7621                     break
7622                   fi
7623                 done
7624                 if test -z "$haveit"; then
7625                   ltrpathdirs="$ltrpathdirs $found_dir"
7626                 fi
7627                                 if test "$hardcode_direct" = yes; then
7628                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7629                 else
7630                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7631                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7632                                                             haveit=
7633                     for x in $rpathdirs; do
7634                       if test "X$x" = "X$found_dir"; then
7635                         haveit=yes
7636                         break
7637                       fi
7638                     done
7639                     if test -z "$haveit"; then
7640                       rpathdirs="$rpathdirs $found_dir"
7641                     fi
7642                   else
7643                                                                                 haveit=
7644                     for x in $LDFLAGS $LIBEXPAT; do
7645
7646   acl_save_prefix="$prefix"
7647   prefix="$acl_final_prefix"
7648   acl_save_exec_prefix="$exec_prefix"
7649   exec_prefix="$acl_final_exec_prefix"
7650   eval x=\"$x\"
7651   exec_prefix="$acl_save_exec_prefix"
7652   prefix="$acl_save_prefix"
7653
7654                       if test "X$x" = "X-L$found_dir"; then
7655                         haveit=yes
7656                         break
7657                       fi
7658                     done
7659                     if test -z "$haveit"; then
7660                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7661                     fi
7662                     if test "$hardcode_minus_L" != no; then
7663                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7664                     else
7665                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7666                     fi
7667                   fi
7668                 fi
7669               fi
7670             else
7671               if test "X$found_a" != "X"; then
7672                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7673               else
7674                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7675               fi
7676             fi
7677                         additional_includedir=
7678             case "$found_dir" in
7679               */lib | */lib/)
7680                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7681                 additional_includedir="$basedir/include"
7682                 ;;
7683             esac
7684             if test "X$additional_includedir" != "X"; then
7685                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7686                 haveit=
7687                 if test "X$additional_includedir" = "X/usr/local/include"; then
7688                   if test -n "$GCC"; then
7689                     case $host_os in
7690                       linux*) haveit=yes;;
7691                     esac
7692                   fi
7693                 fi
7694                 if test -z "$haveit"; then
7695                   for x in $CPPFLAGS $INCEXPAT; do
7696
7697   acl_save_prefix="$prefix"
7698   prefix="$acl_final_prefix"
7699   acl_save_exec_prefix="$exec_prefix"
7700   exec_prefix="$acl_final_exec_prefix"
7701   eval x=\"$x\"
7702   exec_prefix="$acl_save_exec_prefix"
7703   prefix="$acl_save_prefix"
7704
7705                     if test "X$x" = "X-I$additional_includedir"; then
7706                       haveit=yes
7707                       break
7708                     fi
7709                   done
7710                   if test -z "$haveit"; then
7711                     if test -d "$additional_includedir"; then
7712                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7713                     fi
7714                   fi
7715                 fi
7716               fi
7717             fi
7718                         if test -n "$found_la"; then
7719                                                         save_libdir="$libdir"
7720               case "$found_la" in
7721                 */* | *\\*) . "$found_la" ;;
7722                 *) . "./$found_la" ;;
7723               esac
7724               libdir="$save_libdir"
7725                             for dep in $dependency_libs; do
7726                 case "$dep" in
7727                   -L*)
7728                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7729                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7730                       haveit=
7731                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7732                         if test -n "$GCC"; then
7733                           case $host_os in
7734                             linux*) haveit=yes;;
7735                           esac
7736                         fi
7737                       fi
7738                       if test -z "$haveit"; then
7739                         haveit=
7740                         for x in $LDFLAGS $LIBEXPAT; do
7741
7742   acl_save_prefix="$prefix"
7743   prefix="$acl_final_prefix"
7744   acl_save_exec_prefix="$exec_prefix"
7745   exec_prefix="$acl_final_exec_prefix"
7746   eval x=\"$x\"
7747   exec_prefix="$acl_save_exec_prefix"
7748   prefix="$acl_save_prefix"
7749
7750                           if test "X$x" = "X-L$additional_libdir"; then
7751                             haveit=yes
7752                             break
7753                           fi
7754                         done
7755                         if test -z "$haveit"; then
7756                           if test -d "$additional_libdir"; then
7757                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7758                           fi
7759                         fi
7760                         haveit=
7761                         for x in $LDFLAGS $LTLIBEXPAT; do
7762
7763   acl_save_prefix="$prefix"
7764   prefix="$acl_final_prefix"
7765   acl_save_exec_prefix="$exec_prefix"
7766   exec_prefix="$acl_final_exec_prefix"
7767   eval x=\"$x\"
7768   exec_prefix="$acl_save_exec_prefix"
7769   prefix="$acl_save_prefix"
7770
7771                           if test "X$x" = "X-L$additional_libdir"; then
7772                             haveit=yes
7773                             break
7774                           fi
7775                         done
7776                         if test -z "$haveit"; then
7777                           if test -d "$additional_libdir"; then
7778                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7779                           fi
7780                         fi
7781                       fi
7782                     fi
7783                     ;;
7784                   -R*)
7785                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7786                     if test "$enable_rpath" != no; then
7787                                                                   haveit=
7788                       for x in $rpathdirs; do
7789                         if test "X$x" = "X$dir"; then
7790                           haveit=yes
7791                           break
7792                         fi
7793                       done
7794                       if test -z "$haveit"; then
7795                         rpathdirs="$rpathdirs $dir"
7796                       fi
7797                                                                   haveit=
7798                       for x in $ltrpathdirs; do
7799                         if test "X$x" = "X$dir"; then
7800                           haveit=yes
7801                           break
7802                         fi
7803                       done
7804                       if test -z "$haveit"; then
7805                         ltrpathdirs="$ltrpathdirs $dir"
7806                       fi
7807                     fi
7808                     ;;
7809                   -l*)
7810                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7811                     ;;
7812                   *.la)
7813                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7814                     ;;
7815                   *)
7816                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7817                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7818                     ;;
7819                 esac
7820               done
7821             fi
7822           else
7823                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7824             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7825           fi
7826         fi
7827       fi
7828     done
7829   done
7830   if test "X$rpathdirs" != "X"; then
7831     if test -n "$hardcode_libdir_separator"; then
7832                         alldirs=
7833       for found_dir in $rpathdirs; do
7834         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7835       done
7836             acl_save_libdir="$libdir"
7837       libdir="$alldirs"
7838       eval flag=\"$hardcode_libdir_flag_spec\"
7839       libdir="$acl_save_libdir"
7840       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7841     else
7842             for found_dir in $rpathdirs; do
7843         acl_save_libdir="$libdir"
7844         libdir="$found_dir"
7845         eval flag=\"$hardcode_libdir_flag_spec\"
7846         libdir="$acl_save_libdir"
7847         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7848       done
7849     fi
7850   fi
7851   if test "X$ltrpathdirs" != "X"; then
7852             for found_dir in $ltrpathdirs; do
7853       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7854     done
7855   fi
7856
7857
7858         ac_save_CPPFLAGS="$CPPFLAGS"
7859
7860   for element in $INCEXPAT; do
7861     haveit=
7862     for x in $CPPFLAGS; do
7863
7864   acl_save_prefix="$prefix"
7865   prefix="$acl_final_prefix"
7866   acl_save_exec_prefix="$exec_prefix"
7867   exec_prefix="$acl_final_exec_prefix"
7868   eval x=\"$x\"
7869   exec_prefix="$acl_save_exec_prefix"
7870   prefix="$acl_save_prefix"
7871
7872       if test "X$x" = "X$element"; then
7873         haveit=yes
7874         break
7875       fi
7876     done
7877     if test -z "$haveit"; then
7878       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7879     fi
7880   done
7881
7882
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7884 $as_echo_n "checking for libexpat... " >&6; }
7885 if test "${ac_cv_libexpat+set}" = set; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888
7889     ac_save_LIBS="$LIBS"
7890     LIBS="$LIBS $LIBEXPAT"
7891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h.  */
7893 #include "expat.h"
7894 int
7895 main ()
7896 {
7897 XML_Parser p = XML_ParserCreate (0);
7898   ;
7899   return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903   ac_cv_libexpat=yes
7904 else
7905   ac_cv_libexpat=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext \
7908     conftest$ac_exeext conftest.$ac_ext
7909     LIBS="$ac_save_LIBS"
7910
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7913 $as_echo "$ac_cv_libexpat" >&6; }
7914   if test "$ac_cv_libexpat" = yes; then
7915     HAVE_LIBEXPAT=yes
7916
7917 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7918
7919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7920 $as_echo_n "checking how to link with libexpat... " >&6; }
7921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7922 $as_echo "$LIBEXPAT" >&6; }
7923   else
7924     HAVE_LIBEXPAT=no
7925             CPPFLAGS="$ac_save_CPPFLAGS"
7926     LIBEXPAT=
7927     LTLIBEXPAT=
7928   fi
7929
7930
7931
7932
7933
7934
7935   if test "$HAVE_LIBEXPAT" != yes; then
7936     if test "$with_expat" = yes; then
7937       as_fn_error "expat is missing or unusable" "$LINENO" 5
7938     else
7939       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7940 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7941     fi
7942   else
7943     save_LIBS=$LIBS
7944     LIBS="$LIBS $LIBEXPAT"
7945     for ac_func in XML_StopParser
7946 do :
7947   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7948 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7949   cat >>confdefs.h <<_ACEOF
7950 #define HAVE_XML_STOPPARSER 1
7951 _ACEOF
7952
7953 fi
7954 done
7955
7956     LIBS=$save_LIBS
7957   fi
7958 fi
7959
7960
7961
7962
7963
7964
7965 # Check whether --with-python was given.
7966 if test "${with_python+set}" = set; then :
7967   withval=$with_python;
7968 else
7969   with_python=auto
7970 fi
7971
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7973 $as_echo_n "checking whether to use python... " >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7975 $as_echo "$with_python" >&6; }
7976
7977 if test "${with_python}" = no; then
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7979 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7980   have_libpython=no
7981 else
7982   case "${with_python}" in
7983   [\\/]* | ?:[\\/]*)
7984     if test -d ${with_python}; then
7985       # Assume the python binary is ${with_python}/bin/python.
7986       python_prog="${with_python}/bin/python"
7987       python_prefix=
7988       # If python does not exit ${with_python}/bin, then try in
7989       # ${with_python}.  On Windows/MinGW, this is where the Python
7990       # executable is.
7991       if test ! -x "${python_prog}"; then
7992         python_prog="${with_python}/python"
7993         python_prefix=
7994       fi
7995       if test ! -x "${python_prog}"; then
7996         # Fall back to gdb 7.0/7.1 behaviour.
7997         python_prog=missing
7998         python_prefix=${with_python}
7999       fi
8000     elif test -x "${with_python}"; then
8001       # While we can't run python compiled for $host (unless host == build),
8002       # the user could write a script that provides the needed information,
8003       # so we support that.
8004       python_prog=${with_python}
8005       python_prefix=
8006     else
8007       as_fn_error "invalid value for --with-python" "$LINENO" 5
8008     fi
8009     ;;
8010   */*)
8011     # Disallow --with-python=foo/bar.
8012     as_fn_error "invalid value for --with-python" "$LINENO" 5
8013     ;;
8014   *)
8015     # The user has either specified auto, yes, or the name of the python
8016     # program assumed to be in $PATH.
8017     python_prefix=
8018     case "${with_python}" in
8019     yes | auto)
8020       if test ${build} = ${host}; then
8021         # Extract the first word of "python", so it can be a program name with args.
8022 set dummy python; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   case $python_prog_path in
8029   [\\/]* | ?:[\\/]*)
8030   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8031   ;;
8032   *)
8033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047
8048   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8049   ;;
8050 esac
8051 fi
8052 python_prog_path=$ac_cv_path_python_prog_path
8053 if test -n "$python_prog_path"; then
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8055 $as_echo "$python_prog_path" >&6; }
8056 else
8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8059 fi
8060
8061
8062         if test "${python_prog_path}" = missing; then
8063           python_prog=missing
8064         else
8065           python_prog=${python_prog_path}
8066         fi
8067       else
8068         # Not much we can do except assume the cross-compiler will find the
8069         # right files.
8070         python_prog=missing
8071       fi
8072       ;;
8073     *)
8074       # While we can't run python compiled for $host (unless host == build),
8075       # the user could write a script that provides the needed information,
8076       # so we support that.
8077       python_prog="${with_python}"
8078       # Extract the first word of "${python_prog}", so it can be a program name with args.
8079 set dummy ${python_prog}; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   case $python_prog_path in
8086   [\\/]* | ?:[\\/]*)
8087   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8088   ;;
8089   *)
8090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8092 do
8093   IFS=$as_save_IFS
8094   test -z "$as_dir" && as_dir=.
8095     for ac_exec_ext in '' $ac_executable_extensions; do
8096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099     break 2
8100   fi
8101 done
8102   done
8103 IFS=$as_save_IFS
8104
8105   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8106   ;;
8107 esac
8108 fi
8109 python_prog_path=$ac_cv_path_python_prog_path
8110 if test -n "$python_prog_path"; then
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8112 $as_echo "$python_prog_path" >&6; }
8113 else
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 fi
8117
8118
8119       if test "${python_prog_path}" = missing; then
8120         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8121       fi
8122       ;;
8123     esac
8124   esac
8125
8126   if test "${python_prog}" != missing; then
8127     # We have a python program to use, but it may be too old.
8128     # Don't flag an error for --with-python=auto (the default).
8129     have_python_config=yes
8130     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8131     if test $? != 0; then
8132       have_python_config=failed
8133       if test "${with_python}" != auto; then
8134         as_fn_error "failure running python-config --includes" "$LINENO" 5
8135       fi
8136     fi
8137     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8138     if test $? != 0; then
8139       have_python_config=failed
8140       if test "${with_python}" != auto; then
8141         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8142       fi
8143     fi
8144     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8145     if test $? != 0; then
8146       have_python_config=failed
8147       if test "${with_python}" != auto; then
8148         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8149       fi
8150     fi
8151   else
8152     # We do not have a python executable we can use to determine where
8153     # to find the Python headers and libs.  We cannot guess the include
8154     # path from the python_prefix either, because that include path
8155     # depends on the Python version.  So, there is nothing much we can
8156     # do except assume that the compiler will be able to find those files.
8157     python_includes=
8158     python_libs=
8159     have_python_config=no
8160   fi
8161
8162   # If we have python-config, only try the configuration it provides.
8163   # Otherwise fallback on the old way of trying different versions of
8164   # python in turn.
8165
8166   have_libpython=no
8167   if test "${have_python_config}" = yes; then
8168     # Determine the Python version by extracting "-lpython<version>"
8169     # part of the python_libs. <version> is usually X.Y with X and Y
8170     # being decimal numbers, but can also be XY (seen on Windows).
8171     #
8172     # The extraction is performed using sed with a regular expression.
8173     # Initially, the regexp used was using the '?' quantifier to make
8174     # the dot in the version number optional.  Unfortunately, this
8175     # does not work with non-GNU versions of sed because, because of
8176     # what looks like a limitation (the '?' quantifier does not work
8177     # with back-references).  We work around this limitation by using
8178     # the '*' quantifier instead.  It means that, in theory, we might
8179     # match unexpected version strings such as "-lpython2..7", but
8180     # this seems unlikely in practice.  And even if that happens,
8181     # an error will be triggered later on, when checking that version
8182     # number.
8183     python_version=`echo " ${python_libs} " \
8184                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8185     case "${python_version}" in
8186     python*)
8187
8188   version=${python_version}
8189
8190   new_CPPFLAGS=${python_includes}
8191   new_LIBS=${python_libs}
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8193 $as_echo_n "checking for ${version}... " >&6; }
8194   save_CPPFLAGS=$CPPFLAGS
8195   save_LIBS=$LIBS
8196   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8197   LIBS="$LIBS $new_LIBS"
8198   found_usable_python=no
8199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h.  */
8201 #include "Python.h"
8202 int
8203 main ()
8204 {
8205 Py_Initialize ();
8206   ;
8207   return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"; then :
8211   have_libpython=${version}
8212                   found_usable_python=yes
8213                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8214                   PYTHON_LIBS=$new_LIBS
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext \
8217     conftest$ac_exeext conftest.$ac_ext
8218   CPPFLAGS=$save_CPPFLAGS
8219   LIBS=$save_LIBS
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8221 $as_echo "${found_usable_python}" >&6; }
8222
8223       ;;
8224     *)
8225       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8226       ;;
8227     esac
8228   elif test "${have_python_config}" != failed; then
8229     if test "${have_libpython}" = no; then
8230
8231   version=python2.7
8232
8233   new_CPPFLAGS=${python_includes}
8234   new_LIBS="${python_libs} -lpython2.7"
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8236 $as_echo_n "checking for ${version}... " >&6; }
8237   save_CPPFLAGS=$CPPFLAGS
8238   save_LIBS=$LIBS
8239   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8240   LIBS="$LIBS $new_LIBS"
8241   found_usable_python=no
8242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h.  */
8244 #include "Python.h"
8245 int
8246 main ()
8247 {
8248 Py_Initialize ();
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254   have_libpython=${version}
8255                   found_usable_python=yes
8256                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8257                   PYTHON_LIBS=$new_LIBS
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext \
8260     conftest$ac_exeext conftest.$ac_ext
8261   CPPFLAGS=$save_CPPFLAGS
8262   LIBS=$save_LIBS
8263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8264 $as_echo "${found_usable_python}" >&6; }
8265
8266     fi
8267     if test "${have_libpython}" = no; then
8268
8269   version=python2.6
8270
8271   new_CPPFLAGS=${python_includes}
8272   new_LIBS="${python_libs} -lpython2.6"
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8274 $as_echo_n "checking for ${version}... " >&6; }
8275   save_CPPFLAGS=$CPPFLAGS
8276   save_LIBS=$LIBS
8277   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8278   LIBS="$LIBS $new_LIBS"
8279   found_usable_python=no
8280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h.  */
8282 #include "Python.h"
8283 int
8284 main ()
8285 {
8286 Py_Initialize ();
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292   have_libpython=${version}
8293                   found_usable_python=yes
8294                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8295                   PYTHON_LIBS=$new_LIBS
8296 fi
8297 rm -f core conftest.err conftest.$ac_objext \
8298     conftest$ac_exeext conftest.$ac_ext
8299   CPPFLAGS=$save_CPPFLAGS
8300   LIBS=$save_LIBS
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8302 $as_echo "${found_usable_python}" >&6; }
8303
8304     fi
8305     if test ${have_libpython} = no; then
8306
8307   version=python2.5
8308
8309   new_CPPFLAGS=${python_includes}
8310   new_LIBS="${python_libs} -lpython2.5"
8311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8312 $as_echo_n "checking for ${version}... " >&6; }
8313   save_CPPFLAGS=$CPPFLAGS
8314   save_LIBS=$LIBS
8315   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8316   LIBS="$LIBS $new_LIBS"
8317   found_usable_python=no
8318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320 #include "Python.h"
8321 int
8322 main ()
8323 {
8324 Py_Initialize ();
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"; then :
8330   have_libpython=${version}
8331                   found_usable_python=yes
8332                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8333                   PYTHON_LIBS=$new_LIBS
8334 fi
8335 rm -f core conftest.err conftest.$ac_objext \
8336     conftest$ac_exeext conftest.$ac_ext
8337   CPPFLAGS=$save_CPPFLAGS
8338   LIBS=$save_LIBS
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8340 $as_echo "${found_usable_python}" >&6; }
8341
8342     fi
8343     if test ${have_libpython} = no; then
8344
8345   version=python2.4
8346
8347   new_CPPFLAGS=${python_includes}
8348   new_LIBS="${python_libs} -lpython2.4"
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8350 $as_echo_n "checking for ${version}... " >&6; }
8351   save_CPPFLAGS=$CPPFLAGS
8352   save_LIBS=$LIBS
8353   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8354   LIBS="$LIBS $new_LIBS"
8355   found_usable_python=no
8356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h.  */
8358 #include "Python.h"
8359 int
8360 main ()
8361 {
8362 Py_Initialize ();
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 if ac_fn_c_try_link "$LINENO"; then :
8368   have_libpython=${version}
8369                   found_usable_python=yes
8370                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8371                   PYTHON_LIBS=$new_LIBS
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374     conftest$ac_exeext conftest.$ac_ext
8375   CPPFLAGS=$save_CPPFLAGS
8376   LIBS=$save_LIBS
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8378 $as_echo "${found_usable_python}" >&6; }
8379
8380     fi
8381   fi
8382   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8383
8384 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8385
8386   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8387
8388 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8389
8390   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8391
8392 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8393
8394   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8395
8396 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8397
8398   fi
8399
8400   if test "${have_libpython}" = no; then
8401     case "${with_python}" in
8402     yes)
8403       as_fn_error "python is missing or unusable" "$LINENO" 5
8404       ;;
8405     auto)
8406       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8407 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8408       ;;
8409     *)
8410       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8411       ;;
8412     esac
8413   else
8414     if test -n "${python_prefix}"; then
8415
8416 cat >>confdefs.h <<_ACEOF
8417 #define WITH_PYTHON_PATH "${python_prefix}"
8418 _ACEOF
8419
8420
8421   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8422      if test "x$prefix" = xNONE; then
8423         test_prefix=/usr/local
8424      else
8425         test_prefix=$prefix
8426      fi
8427   else
8428      test_prefix=$exec_prefix
8429   fi
8430   value=0
8431   case ${python_prefix} in
8432      "${test_prefix}"|"${test_prefix}/"*|\
8433         '${exec_prefix}'|'${exec_prefix}/'*)
8434      value=1
8435      ;;
8436   esac
8437
8438 cat >>confdefs.h <<_ACEOF
8439 #define PYTHON_PATH_RELOCATABLE $value
8440 _ACEOF
8441
8442
8443     fi
8444   fi
8445 fi
8446
8447 if test "${have_libpython}" != no; then
8448
8449 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8450
8451   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8452   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8453   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8454   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8455   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8456
8457   # Flags needed to compile Python code (taken from python-config --cflags).
8458   # We cannot call python-config directly because it will output whatever was
8459   # used when compiling the Python interpreter itself, including flags which
8460   # would make the python-related objects be compiled differently from the
8461   # rest of GDB (e.g., -O2 and -fPIC).
8462   if test "${GCC}" = yes; then
8463     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8464   fi
8465
8466   if test "x${tentative_python_cflags}" != x; then
8467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8468 $as_echo_n "checking compiler flags for python code... " >&6; }
8469     for flag in ${tentative_python_cflags}; do
8470       # Check that the compiler accepts it
8471       saved_CFLAGS="$CFLAGS"
8472       CFLAGS="$CFLAGS $flag"
8473       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h.  */
8475
8476 int
8477 main ()
8478 {
8479
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488       CFLAGS="$saved_CFLAGS"
8489     done
8490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8491 $as_echo "${PYTHON_CFLAGS}" >&6; }
8492   fi
8493
8494   # On IRIX, type siginfo is not defined.  Instead, sys/siginfo.h provides:
8495   #    #if _SGIAPI
8496   #    #define siginfo __siginfo
8497   #    #endif
8498   # The problem is that including Python causes some XOPEN macros to be
8499   # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8500   # to false.  So, we work around this issue by defining siginfo ourself
8501   # though the command-line.
8502   #
8503   # On x64 Windows, Python's include headers, and pyconfig.h in
8504   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8505   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
8506   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
8507   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8508   # The issue was reported to the Python community, but still isn't
8509   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8510
8511   case "$gdb_host" in
8512     irix*) if test "${GCC}" = yes; then
8513              CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8514            fi
8515            ;;
8516     mingw64)
8517            if test "${GCC}" = yes; then
8518              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8519            fi
8520            ;;
8521   esac
8522
8523   # Note that "python -m threading" cannot be used to check for
8524   # threading support due to a bug in Python 2.7.3
8525   # (http://bugs.python.org/issue15567).
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8527 $as_echo_n "checking whether python supports threads... " >&6; }
8528   saved_CPPFLAGS="${CPPFLAGS}"
8529   CPPFLAGS="${PYTHON_CPPFLAGS}"
8530   # Note that the test is reversed so that python_has_threads=yes on
8531   # unexpected failures.
8532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h.  */
8534
8535 #include <Python.h>
8536 #ifdef WITH_THREAD
8537 # error
8538 #endif
8539
8540 _ACEOF
8541 if ac_fn_c_try_cpp "$LINENO"; then :
8542   python_has_threads=no
8543 else
8544   python_has_threads=yes
8545 fi
8546 rm -f conftest.err conftest.$ac_ext
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
8548 $as_echo "${python_has_threads}" >&6; }
8549   CPPFLAGS="${saved_CPPFLAGS}"
8550 else
8551   # Even if Python support is not compiled in, we need to have these files
8552   # included.
8553   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8554   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8555         python/py-prettyprint.c python/py-auto-load.c"
8556 fi
8557
8558
8559
8560
8561 # Provide a --enable-libmcheck/--disable-libmcheck set of options
8562 # allowing a user to enable this option even when building releases,
8563 # or to disable it when building a snapshot.
8564 # Check whether --enable-libmcheck was given.
8565 if test "${enable_libmcheck+set}" = set; then :
8566   enableval=$enable_libmcheck; case "${enableval}" in
8567      yes | y) ENABLE_LIBMCHECK="yes" ;;
8568      no | n)  ENABLE_LIBMCHECK="no" ;;
8569      *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
8570    esac
8571 fi
8572
8573
8574 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
8575 # but turn it off if Python is enabled with threads, since -lmcheck is
8576 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
8577 # and for releases.
8578 if test -z "${ENABLE_LIBMCHECK}" \
8579         -a \( "${have_libpython}" = "no" \
8580              -o "${python_has_threads}" = "no" \) \
8581     && $development; then
8582   ENABLE_LIBMCHECK=yes
8583 fi
8584
8585 if test "$ENABLE_LIBMCHECK" = "yes" ; then
8586   if test "${have_libpython}" != "no" -a "${python_has_threads}" = "yes" ; then
8587     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
8588 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
8589   fi
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
8591 $as_echo_n "checking for main in -lmcheck... " >&6; }
8592 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-lmcheck  $LIBS"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h.  */
8599
8600
8601 int
8602 main ()
8603 {
8604 return main ();
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 if ac_fn_c_try_link "$LINENO"; then :
8610   ac_cv_lib_mcheck_main=yes
8611 else
8612   ac_cv_lib_mcheck_main=no
8613 fi
8614 rm -f core conftest.err conftest.$ac_objext \
8615     conftest$ac_exeext conftest.$ac_ext
8616 LIBS=$ac_check_lib_save_LIBS
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
8619 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
8620 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
8621   cat >>confdefs.h <<_ACEOF
8622 #define HAVE_LIBMCHECK 1
8623 _ACEOF
8624
8625   LIBS="-lmcheck $LIBS"
8626
8627 fi
8628
8629 fi
8630
8631 # ------------------------- #
8632 # Checks for header files.  #
8633 # ------------------------- #
8634
8635 ac_header_dirent=no
8636 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8637   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8639 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h.  */
8645 #include <sys/types.h>
8646 #include <$ac_hdr>
8647
8648 int
8649 main ()
8650 {
8651 if ((DIR *) 0)
8652 return 0;
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 if ac_fn_c_try_compile "$LINENO"; then :
8658   eval "$as_ac_Header=yes"
8659 else
8660   eval "$as_ac_Header=no"
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 eval ac_res=\$$as_ac_Header
8665                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8666 $as_echo "$ac_res" >&6; }
8667 eval as_val=\$$as_ac_Header
8668    if test "x$as_val" = x""yes; then :
8669   cat >>confdefs.h <<_ACEOF
8670 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8671 _ACEOF
8672
8673 ac_header_dirent=$ac_hdr; break
8674 fi
8675
8676 done
8677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8678 if test $ac_header_dirent = dirent.h; then
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8680 $as_echo_n "checking for library containing opendir... " >&6; }
8681 if test "${ac_cv_search_opendir+set}" = set; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   ac_func_search_save_LIBS=$LIBS
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h.  */
8687
8688 /* Override any GCC internal prototype to avoid an error.
8689    Use char because int might match the return type of a GCC
8690    builtin and then its argument prototype would still apply.  */
8691 #ifdef __cplusplus
8692 extern "C"
8693 #endif
8694 char opendir ();
8695 int
8696 main ()
8697 {
8698 return opendir ();
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 for ac_lib in '' dir; do
8704   if test -z "$ac_lib"; then
8705     ac_res="none required"
8706   else
8707     ac_res=-l$ac_lib
8708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8709   fi
8710   if ac_fn_c_try_link "$LINENO"; then :
8711   ac_cv_search_opendir=$ac_res
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext \
8714     conftest$ac_exeext
8715   if test "${ac_cv_search_opendir+set}" = set; then :
8716   break
8717 fi
8718 done
8719 if test "${ac_cv_search_opendir+set}" = set; then :
8720
8721 else
8722   ac_cv_search_opendir=no
8723 fi
8724 rm conftest.$ac_ext
8725 LIBS=$ac_func_search_save_LIBS
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8728 $as_echo "$ac_cv_search_opendir" >&6; }
8729 ac_res=$ac_cv_search_opendir
8730 if test "$ac_res" != no; then :
8731   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8732
8733 fi
8734
8735 else
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8737 $as_echo_n "checking for library containing opendir... " >&6; }
8738 if test "${ac_cv_search_opendir+set}" = set; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   ac_func_search_save_LIBS=$LIBS
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h.  */
8744
8745 /* Override any GCC internal prototype to avoid an error.
8746    Use char because int might match the return type of a GCC
8747    builtin and then its argument prototype would still apply.  */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char opendir ();
8752 int
8753 main ()
8754 {
8755 return opendir ();
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 for ac_lib in '' x; do
8761   if test -z "$ac_lib"; then
8762     ac_res="none required"
8763   else
8764     ac_res=-l$ac_lib
8765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8766   fi
8767   if ac_fn_c_try_link "$LINENO"; then :
8768   ac_cv_search_opendir=$ac_res
8769 fi
8770 rm -f core conftest.err conftest.$ac_objext \
8771     conftest$ac_exeext
8772   if test "${ac_cv_search_opendir+set}" = set; then :
8773   break
8774 fi
8775 done
8776 if test "${ac_cv_search_opendir+set}" = set; then :
8777
8778 else
8779   ac_cv_search_opendir=no
8780 fi
8781 rm conftest.$ac_ext
8782 LIBS=$ac_func_search_save_LIBS
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8785 $as_echo "$ac_cv_search_opendir" >&6; }
8786 ac_res=$ac_cv_search_opendir
8787 if test "$ac_res" != no; then :
8788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8789
8790 fi
8791
8792 fi
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8795 $as_echo_n "checking for ANSI C header files... " >&6; }
8796 if test "${ac_cv_header_stdc+set}" = set; then :
8797   $as_echo_n "(cached) " >&6
8798 else
8799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h.  */
8801 #include <stdlib.h>
8802 #include <stdarg.h>
8803 #include <string.h>
8804 #include <float.h>
8805
8806 int
8807 main ()
8808 {
8809
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 if ac_fn_c_try_compile "$LINENO"; then :
8815   ac_cv_header_stdc=yes
8816 else
8817   ac_cv_header_stdc=no
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820
8821 if test $ac_cv_header_stdc = yes; then
8822   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825 #include <string.h>
8826
8827 _ACEOF
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829   $EGREP "memchr" >/dev/null 2>&1; then :
8830
8831 else
8832   ac_cv_header_stdc=no
8833 fi
8834 rm -f conftest*
8835
8836 fi
8837
8838 if test $ac_cv_header_stdc = yes; then
8839   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h.  */
8842 #include <stdlib.h>
8843
8844 _ACEOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846   $EGREP "free" >/dev/null 2>&1; then :
8847
8848 else
8849   ac_cv_header_stdc=no
8850 fi
8851 rm -f conftest*
8852
8853 fi
8854
8855 if test $ac_cv_header_stdc = yes; then
8856   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8857   if test "$cross_compiling" = yes; then :
8858   :
8859 else
8860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h.  */
8862 #include <ctype.h>
8863 #include <stdlib.h>
8864 #if ((' ' & 0x0FF) == 0x020)
8865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8867 #else
8868 # define ISLOWER(c) \
8869                    (('a' <= (c) && (c) <= 'i') \
8870                      || ('j' <= (c) && (c) <= 'r') \
8871                      || ('s' <= (c) && (c) <= 'z'))
8872 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8873 #endif
8874
8875 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8876 int
8877 main ()
8878 {
8879   int i;
8880   for (i = 0; i < 256; i++)
8881     if (XOR (islower (i), ISLOWER (i))
8882         || toupper (i) != TOUPPER (i))
8883       return 2;
8884   return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_run "$LINENO"; then :
8888
8889 else
8890   ac_cv_header_stdc=no
8891 fi
8892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8893   conftest.$ac_objext conftest.beam conftest.$ac_ext
8894 fi
8895
8896 fi
8897 fi
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8899 $as_echo "$ac_cv_header_stdc" >&6; }
8900 if test $ac_cv_header_stdc = yes; then
8901
8902 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8903
8904 fi
8905
8906 # elf_hp.h is for HP/UX 64-bit shared library support.
8907 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8908                   thread_db.h signal.h stddef.h \
8909                   stdlib.h string.h memory.h strings.h sys/fault.h \
8910                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8911                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8912                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8913                   sys/types.h sys/wait.h wait.h termios.h termio.h \
8914                   sgtty.h unistd.h elf_hp.h locale.h \
8915                   dlfcn.h sys/un.h linux/perf_event.h
8916 do :
8917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8919 eval as_val=\$$as_ac_Header
8920    if test "x$as_val" = x""yes; then :
8921   cat >>confdefs.h <<_ACEOF
8922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 fi
8926
8927 done
8928
8929 for ac_header in link.h
8930 do :
8931   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8932 # include <sys/types.h>
8933 #endif
8934 #if HAVE_NLIST_H
8935 # include <nlist.h>
8936 #endif
8937
8938 "
8939 if test "x$ac_cv_header_link_h" = x""yes; then :
8940   cat >>confdefs.h <<_ACEOF
8941 #define HAVE_LINK_H 1
8942 _ACEOF
8943
8944 fi
8945
8946 done
8947
8948 for ac_header in sys/proc.h
8949 do :
8950   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8951 # include <sys/param.h>
8952 #endif
8953
8954 "
8955 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8956   cat >>confdefs.h <<_ACEOF
8957 #define HAVE_SYS_PROC_H 1
8958 _ACEOF
8959
8960 fi
8961
8962 done
8963
8964 for ac_header in sys/user.h
8965 do :
8966   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8967 # include <sys/param.h>
8968 #endif
8969
8970 "
8971 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8972   cat >>confdefs.h <<_ACEOF
8973 #define HAVE_SYS_USER_H 1
8974 _ACEOF
8975
8976 fi
8977
8978 done
8979
8980
8981 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8982 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8983 # think that we don't have <curses.h> if we're using GCC.
8984 case $host_os in
8985   solaris2.[789])
8986     if test "$GCC" = yes; then
8987
8988 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8989
8990     fi ;;
8991 esac
8992 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8993 do :
8994   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8996 eval as_val=\$$as_ac_Header
8997    if test "x$as_val" = x""yes; then :
8998   cat >>confdefs.h <<_ACEOF
8999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9000 _ACEOF
9001
9002 fi
9003
9004 done
9005
9006 for ac_header in term.h
9007 do :
9008   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9009 # include <curses.h>
9010 #endif
9011
9012 "
9013 if test "x$ac_cv_header_term_h" = x""yes; then :
9014   cat >>confdefs.h <<_ACEOF
9015 #define HAVE_TERM_H 1
9016 _ACEOF
9017
9018 fi
9019
9020 done
9021
9022
9023 # ------------------------- #
9024 # Checks for declarations.  #
9025 # ------------------------- #
9026
9027 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9028 if test "x$ac_cv_have_decl_free" = x""yes; then :
9029   ac_have_decl=1
9030 else
9031   ac_have_decl=0
9032 fi
9033
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_DECL_FREE $ac_have_decl
9036 _ACEOF
9037 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9038 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9039   ac_have_decl=1
9040 else
9041   ac_have_decl=0
9042 fi
9043
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_DECL_MALLOC $ac_have_decl
9046 _ACEOF
9047 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9048 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9049   ac_have_decl=1
9050 else
9051   ac_have_decl=0
9052 fi
9053
9054 cat >>confdefs.h <<_ACEOF
9055 #define HAVE_DECL_REALLOC $ac_have_decl
9056 _ACEOF
9057 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9058 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
9059   ac_have_decl=1
9060 else
9061   ac_have_decl=0
9062 fi
9063
9064 cat >>confdefs.h <<_ACEOF
9065 #define HAVE_DECL_STRERROR $ac_have_decl
9066 _ACEOF
9067 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9068 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9069   ac_have_decl=1
9070 else
9071   ac_have_decl=0
9072 fi
9073
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_DECL_STRSTR $ac_have_decl
9076 _ACEOF
9077 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9078 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9079   ac_have_decl=1
9080 else
9081   ac_have_decl=0
9082 fi
9083
9084 cat >>confdefs.h <<_ACEOF
9085 #define HAVE_DECL_GETOPT $ac_have_decl
9086 _ACEOF
9087 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9088 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9089   ac_have_decl=1
9090 else
9091   ac_have_decl=0
9092 fi
9093
9094 cat >>confdefs.h <<_ACEOF
9095 #define HAVE_DECL_SNPRINTF $ac_have_decl
9096 _ACEOF
9097 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9098 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9099   ac_have_decl=1
9100 else
9101   ac_have_decl=0
9102 fi
9103
9104 cat >>confdefs.h <<_ACEOF
9105 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9106 _ACEOF
9107
9108
9109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9110 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9111 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9112   $as_echo_n "(cached) " >&6
9113 else
9114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h.  */
9116 #include <locale.h>
9117 int
9118 main ()
9119 {
9120 return LC_MESSAGES
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 if ac_fn_c_try_link "$LINENO"; then :
9126   am_cv_val_LC_MESSAGES=yes
9127 else
9128   am_cv_val_LC_MESSAGES=no
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext \
9131     conftest$ac_exeext conftest.$ac_ext
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9134 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9135   if test $am_cv_val_LC_MESSAGES = yes; then
9136
9137 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9138
9139   fi
9140
9141
9142 # ----------------------- #
9143 # Checks for structures.  #
9144 # ----------------------- #
9145
9146 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9147 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9148
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9151 _ACEOF
9152
9153
9154 fi
9155 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9156 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9157
9158 cat >>confdefs.h <<_ACEOF
9159 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9160 _ACEOF
9161
9162
9163 fi
9164
9165
9166 # ------------------ #
9167 # Checks for types.  #
9168 # ------------------ #
9169
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9171 $as_echo_n "checking return type of signal handlers... " >&6; }
9172 if test "${ac_cv_type_signal+set}" = set; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h.  */
9177 #include <sys/types.h>
9178 #include <signal.h>
9179
9180 int
9181 main ()
9182 {
9183 return *(signal (0, 0)) (0) == 1;
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189   ac_cv_type_signal=int
9190 else
9191   ac_cv_type_signal=void
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9196 $as_echo "$ac_cv_type_signal" >&6; }
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define RETSIGTYPE $ac_cv_type_signal
9200 _ACEOF
9201
9202
9203 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9204 #include <sys/socket.h>
9205
9206 "
9207 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9208
9209 cat >>confdefs.h <<_ACEOF
9210 #define HAVE_SOCKLEN_T 1
9211 _ACEOF
9212
9213
9214 fi
9215
9216
9217 # ------------------------------------- #
9218 # Checks for compiler characteristics.  #
9219 # ------------------------------------- #
9220
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9222 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9223 if test "${ac_cv_c_const+set}" = set; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h.  */
9228
9229 int
9230 main ()
9231 {
9232 /* FIXME: Include the comments suggested by Paul. */
9233 #ifndef __cplusplus
9234   /* Ultrix mips cc rejects this.  */
9235   typedef int charset[2];
9236   const charset cs;
9237   /* SunOS 4.1.1 cc rejects this.  */
9238   char const *const *pcpcc;
9239   char **ppc;
9240   /* NEC SVR4.0.2 mips cc rejects this.  */
9241   struct point {int x, y;};
9242   static struct point const zero = {0,0};
9243   /* AIX XL C 1.02.0.0 rejects this.
9244      It does not let you subtract one const X* pointer from another in
9245      an arm of an if-expression whose if-part is not a constant
9246      expression */
9247   const char *g = "string";
9248   pcpcc = &g + (g ? g-g : 0);
9249   /* HPUX 7.0 cc rejects these. */
9250   ++pcpcc;
9251   ppc = (char**) pcpcc;
9252   pcpcc = (char const *const *) ppc;
9253   { /* SCO 3.2v4 cc rejects this.  */
9254     char *t;
9255     char const *s = 0 ? (char *) 0 : (char const *) 0;
9256
9257     *t++ = 0;
9258     if (s) return 0;
9259   }
9260   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9261     int x[] = {25, 17};
9262     const int *foo = &x[0];
9263     ++foo;
9264   }
9265   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9266     typedef const int *iptr;
9267     iptr p = 0;
9268     ++p;
9269   }
9270   { /* AIX XL C 1.02.0.0 rejects this saying
9271        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9272     struct s { int j; const int *ap[3]; };
9273     struct s *b; b->j = 5;
9274   }
9275   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9276     const int foo = 10;
9277     if (!foo) return 0;
9278   }
9279   return !cs[0] && !zero.x;
9280 #endif
9281
9282   ;
9283   return 0;
9284 }
9285 _ACEOF
9286 if ac_fn_c_try_compile "$LINENO"; then :
9287   ac_cv_c_const=yes
9288 else
9289   ac_cv_c_const=no
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 fi
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9294 $as_echo "$ac_cv_c_const" >&6; }
9295 if test $ac_cv_c_const = no; then
9296
9297 $as_echo "#define const /**/" >>confdefs.h
9298
9299 fi
9300
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9302 $as_echo_n "checking for inline... " >&6; }
9303 if test "${ac_cv_c_inline+set}" = set; then :
9304   $as_echo_n "(cached) " >&6
9305 else
9306   ac_cv_c_inline=no
9307 for ac_kw in inline __inline__ __inline; do
9308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h.  */
9310 #ifndef __cplusplus
9311 typedef int foo_t;
9312 static $ac_kw foo_t static_foo () {return 0; }
9313 $ac_kw foo_t foo () {return 0; }
9314 #endif
9315
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"; then :
9318   ac_cv_c_inline=$ac_kw
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9321   test "$ac_cv_c_inline" != no && break
9322 done
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9326 $as_echo "$ac_cv_c_inline" >&6; }
9327
9328 case $ac_cv_c_inline in
9329   inline | yes) ;;
9330   *)
9331     case $ac_cv_c_inline in
9332       no) ac_val=;;
9333       *) ac_val=$ac_cv_c_inline;;
9334     esac
9335     cat >>confdefs.h <<_ACEOF
9336 #ifndef __cplusplus
9337 #define inline $ac_val
9338 #endif
9339 _ACEOF
9340     ;;
9341 esac
9342
9343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9344 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9345 if test "${ac_cv_c_bigendian+set}" = set; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   ac_cv_c_bigendian=unknown
9349     # See if we're dealing with a universal compiler.
9350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h.  */
9352 #ifndef __APPLE_CC__
9353                not a universal capable compiler
9354              #endif
9355              typedef int dummy;
9356
9357 _ACEOF
9358 if ac_fn_c_try_compile "$LINENO"; then :
9359
9360         # Check for potential -arch flags.  It is not universal unless
9361         # there are at least two -arch flags with different values.
9362         ac_arch=
9363         ac_prev=
9364         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9365          if test -n "$ac_prev"; then
9366            case $ac_word in
9367              i?86 | x86_64 | ppc | ppc64)
9368                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9369                  ac_arch=$ac_word
9370                else
9371                  ac_cv_c_bigendian=universal
9372                  break
9373                fi
9374                ;;
9375            esac
9376            ac_prev=
9377          elif test "x$ac_word" = "x-arch"; then
9378            ac_prev=arch
9379          fi
9380        done
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383     if test $ac_cv_c_bigendian = unknown; then
9384       # See if sys/param.h defines the BYTE_ORDER macro.
9385       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h.  */
9387 #include <sys/types.h>
9388              #include <sys/param.h>
9389
9390 int
9391 main ()
9392 {
9393 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9394                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9395                      && LITTLE_ENDIAN)
9396               bogus endian macros
9397              #endif
9398
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"; then :
9404   # It does; now see whether it defined to BIG_ENDIAN or not.
9405          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h.  */
9407 #include <sys/types.h>
9408                 #include <sys/param.h>
9409
9410 int
9411 main ()
9412 {
9413 #if BYTE_ORDER != BIG_ENDIAN
9414                  not big endian
9415                 #endif
9416
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 if ac_fn_c_try_compile "$LINENO"; then :
9422   ac_cv_c_bigendian=yes
9423 else
9424   ac_cv_c_bigendian=no
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429     fi
9430     if test $ac_cv_c_bigendian = unknown; then
9431       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h.  */
9434 #include <limits.h>
9435
9436 int
9437 main ()
9438 {
9439 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9440               bogus endian macros
9441              #endif
9442
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 if ac_fn_c_try_compile "$LINENO"; then :
9448   # It does; now see whether it defined to _BIG_ENDIAN or not.
9449          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h.  */
9451 #include <limits.h>
9452
9453 int
9454 main ()
9455 {
9456 #ifndef _BIG_ENDIAN
9457                  not big endian
9458                 #endif
9459
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_compile "$LINENO"; then :
9465   ac_cv_c_bigendian=yes
9466 else
9467   ac_cv_c_bigendian=no
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 fi
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472     fi
9473     if test $ac_cv_c_bigendian = unknown; then
9474       # Compile a test program.
9475       if test "$cross_compiling" = yes; then :
9476   # Try to guess by grepping values from an object file.
9477          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h.  */
9479 short int ascii_mm[] =
9480                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9481                 short int ascii_ii[] =
9482                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9483                 int use_ascii (int i) {
9484                   return ascii_mm[i] + ascii_ii[i];
9485                 }
9486                 short int ebcdic_ii[] =
9487                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9488                 short int ebcdic_mm[] =
9489                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9490                 int use_ebcdic (int i) {
9491                   return ebcdic_mm[i] + ebcdic_ii[i];
9492                 }
9493                 extern int foo;
9494
9495 int
9496 main ()
9497 {
9498 return use_ascii (foo) == use_ebcdic (foo);
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 if ac_fn_c_try_compile "$LINENO"; then :
9504   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9505               ac_cv_c_bigendian=yes
9506             fi
9507             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9508               if test "$ac_cv_c_bigendian" = unknown; then
9509                 ac_cv_c_bigendian=no
9510               else
9511                 # finding both strings is unlikely to happen, but who knows?
9512                 ac_cv_c_bigendian=unknown
9513               fi
9514             fi
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 else
9518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h.  */
9520 $ac_includes_default
9521 int
9522 main ()
9523 {
9524
9525              /* Are we little or big endian?  From Harbison&Steele.  */
9526              union
9527              {
9528                long int l;
9529                char c[sizeof (long int)];
9530              } u;
9531              u.l = 1;
9532              return u.c[sizeof (long int) - 1] == 1;
9533
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_run "$LINENO"; then :
9539   ac_cv_c_bigendian=no
9540 else
9541   ac_cv_c_bigendian=yes
9542 fi
9543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9544   conftest.$ac_objext conftest.beam conftest.$ac_ext
9545 fi
9546
9547     fi
9548 fi
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9550 $as_echo "$ac_cv_c_bigendian" >&6; }
9551  case $ac_cv_c_bigendian in #(
9552    yes)
9553      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9554 ;; #(
9555    no)
9556       ;; #(
9557    universal)
9558
9559 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9560
9561      ;; #(
9562    *)
9563      as_fn_error "unknown endianness
9564  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9565  esac
9566
9567
9568 # ------------------------------ #
9569 # Checks for library functions.  #
9570 # ------------------------------ #
9571
9572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9573 # for constant arguments.  Useless!
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9575 $as_echo_n "checking for working alloca.h... " >&6; }
9576 if test "${ac_cv_working_alloca_h+set}" = set; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h.  */
9581 #include <alloca.h>
9582 int
9583 main ()
9584 {
9585 char *p = (char *) alloca (2 * sizeof (int));
9586                           if (p) return 0;
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"; then :
9592   ac_cv_working_alloca_h=yes
9593 else
9594   ac_cv_working_alloca_h=no
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext \
9597     conftest$ac_exeext conftest.$ac_ext
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9600 $as_echo "$ac_cv_working_alloca_h" >&6; }
9601 if test $ac_cv_working_alloca_h = yes; then
9602
9603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9604
9605 fi
9606
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9608 $as_echo_n "checking for alloca... " >&6; }
9609 if test "${ac_cv_func_alloca_works+set}" = set; then :
9610   $as_echo_n "(cached) " >&6
9611 else
9612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h.  */
9614 #ifdef __GNUC__
9615 # define alloca __builtin_alloca
9616 #else
9617 # ifdef _MSC_VER
9618 #  include <malloc.h>
9619 #  define alloca _alloca
9620 # else
9621 #  ifdef HAVE_ALLOCA_H
9622 #   include <alloca.h>
9623 #  else
9624 #   ifdef _AIX
9625  #pragma alloca
9626 #   else
9627 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9628 char *alloca ();
9629 #    endif
9630 #   endif
9631 #  endif
9632 # endif
9633 #endif
9634
9635 int
9636 main ()
9637 {
9638 char *p = (char *) alloca (1);
9639                                     if (p) return 0;
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645   ac_cv_func_alloca_works=yes
9646 else
9647   ac_cv_func_alloca_works=no
9648 fi
9649 rm -f core conftest.err conftest.$ac_objext \
9650     conftest$ac_exeext conftest.$ac_ext
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9653 $as_echo "$ac_cv_func_alloca_works" >&6; }
9654
9655 if test $ac_cv_func_alloca_works = yes; then
9656
9657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9658
9659 else
9660   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9661 # that cause trouble.  Some versions do not even contain alloca or
9662 # contain a buggy version.  If you still want to use their alloca,
9663 # use ar to extract alloca.o from them instead of compiling alloca.c.
9664
9665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9666
9667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9668
9669
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9672 if test "${ac_cv_os_cray+set}" = set; then :
9673   $as_echo_n "(cached) " >&6
9674 else
9675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h.  */
9677 #if defined CRAY && ! defined CRAY2
9678 webecray
9679 #else
9680 wenotbecray
9681 #endif
9682
9683 _ACEOF
9684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9685   $EGREP "webecray" >/dev/null 2>&1; then :
9686   ac_cv_os_cray=yes
9687 else
9688   ac_cv_os_cray=no
9689 fi
9690 rm -f conftest*
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9694 $as_echo "$ac_cv_os_cray" >&6; }
9695 if test $ac_cv_os_cray = yes; then
9696   for ac_func in _getb67 GETB67 getb67; do
9697     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9699 eval as_val=\$$as_ac_var
9700    if test "x$as_val" = x""yes; then :
9701
9702 cat >>confdefs.h <<_ACEOF
9703 #define CRAY_STACKSEG_END $ac_func
9704 _ACEOF
9705
9706     break
9707 fi
9708
9709   done
9710 fi
9711
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9713 $as_echo_n "checking stack direction for C alloca... " >&6; }
9714 if test "${ac_cv_c_stack_direction+set}" = set; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   if test "$cross_compiling" = yes; then :
9718   ac_cv_c_stack_direction=0
9719 else
9720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h.  */
9722 $ac_includes_default
9723 int
9724 find_stack_direction ()
9725 {
9726   static char *addr = 0;
9727   auto char dummy;
9728   if (addr == 0)
9729     {
9730       addr = &dummy;
9731       return find_stack_direction ();
9732     }
9733   else
9734     return (&dummy > addr) ? 1 : -1;
9735 }
9736
9737 int
9738 main ()
9739 {
9740   return find_stack_direction () < 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_run "$LINENO"; then :
9744   ac_cv_c_stack_direction=1
9745 else
9746   ac_cv_c_stack_direction=-1
9747 fi
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749   conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 fi
9751
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9754 $as_echo "$ac_cv_c_stack_direction" >&6; }
9755 cat >>confdefs.h <<_ACEOF
9756 #define STACK_DIRECTION $ac_cv_c_stack_direction
9757 _ACEOF
9758
9759
9760 fi
9761
9762 for ac_header in stdlib.h unistd.h
9763 do :
9764   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9766 eval as_val=\$$as_ac_Header
9767    if test "x$as_val" = x""yes; then :
9768   cat >>confdefs.h <<_ACEOF
9769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9770 _ACEOF
9771
9772 fi
9773
9774 done
9775
9776 for ac_func in getpagesize
9777 do :
9778   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9779 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9780   cat >>confdefs.h <<_ACEOF
9781 #define HAVE_GETPAGESIZE 1
9782 _ACEOF
9783
9784 fi
9785 done
9786
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9788 $as_echo_n "checking for working mmap... " >&6; }
9789 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   if test "$cross_compiling" = yes; then :
9793   ac_cv_func_mmap_fixed_mapped=no
9794 else
9795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h.  */
9797 $ac_includes_default
9798 /* malloc might have been renamed as rpl_malloc. */
9799 #undef malloc
9800
9801 /* Thanks to Mike Haertel and Jim Avera for this test.
9802    Here is a matrix of mmap possibilities:
9803         mmap private not fixed
9804         mmap private fixed at somewhere currently unmapped
9805         mmap private fixed at somewhere already mapped
9806         mmap shared not fixed
9807         mmap shared fixed at somewhere currently unmapped
9808         mmap shared fixed at somewhere already mapped
9809    For private mappings, we should verify that changes cannot be read()
9810    back from the file, nor mmap's back from the file at a different
9811    address.  (There have been systems where private was not correctly
9812    implemented like the infamous i386 svr4.0, and systems where the
9813    VM page cache was not coherent with the file system buffer cache
9814    like early versions of FreeBSD and possibly contemporary NetBSD.)
9815    For shared mappings, we should conversely verify that changes get
9816    propagated back to all the places they're supposed to be.
9817
9818    Grep wants private fixed already mapped.
9819    The main things grep needs to know about mmap are:
9820    * does it exist and is it safe to write into the mmap'd area
9821    * how to use it (BSD variants)  */
9822
9823 #include <fcntl.h>
9824 #include <sys/mman.h>
9825
9826 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9827 char *malloc ();
9828 #endif
9829
9830 /* This mess was copied from the GNU getpagesize.h.  */
9831 #ifndef HAVE_GETPAGESIZE
9832 /* Assume that all systems that can run configure have sys/param.h.  */
9833 # ifndef HAVE_SYS_PARAM_H
9834 #  define HAVE_SYS_PARAM_H 1
9835 # endif
9836
9837 # ifdef _SC_PAGESIZE
9838 #  define getpagesize() sysconf(_SC_PAGESIZE)
9839 # else /* no _SC_PAGESIZE */
9840 #  ifdef HAVE_SYS_PARAM_H
9841 #   include <sys/param.h>
9842 #   ifdef EXEC_PAGESIZE
9843 #    define getpagesize() EXEC_PAGESIZE
9844 #   else /* no EXEC_PAGESIZE */
9845 #    ifdef NBPG
9846 #     define getpagesize() NBPG * CLSIZE
9847 #     ifndef CLSIZE
9848 #      define CLSIZE 1
9849 #     endif /* no CLSIZE */
9850 #    else /* no NBPG */
9851 #     ifdef NBPC
9852 #      define getpagesize() NBPC
9853 #     else /* no NBPC */
9854 #      ifdef PAGESIZE
9855 #       define getpagesize() PAGESIZE
9856 #      endif /* PAGESIZE */
9857 #     endif /* no NBPC */
9858 #    endif /* no NBPG */
9859 #   endif /* no EXEC_PAGESIZE */
9860 #  else /* no HAVE_SYS_PARAM_H */
9861 #   define getpagesize() 8192   /* punt totally */
9862 #  endif /* no HAVE_SYS_PARAM_H */
9863 # endif /* no _SC_PAGESIZE */
9864
9865 #endif /* no HAVE_GETPAGESIZE */
9866
9867 int
9868 main ()
9869 {
9870   char *data, *data2, *data3;
9871   int i, pagesize;
9872   int fd;
9873
9874   pagesize = getpagesize ();
9875
9876   /* First, make a file with some known garbage in it. */
9877   data = (char *) malloc (pagesize);
9878   if (!data)
9879     return 1;
9880   for (i = 0; i < pagesize; ++i)
9881     *(data + i) = rand ();
9882   umask (0);
9883   fd = creat ("conftest.mmap", 0600);
9884   if (fd < 0)
9885     return 1;
9886   if (write (fd, data, pagesize) != pagesize)
9887     return 1;
9888   close (fd);
9889
9890   /* Next, try to mmap the file at a fixed address which already has
9891      something else allocated at it.  If we can, also make sure that
9892      we see the same garbage.  */
9893   fd = open ("conftest.mmap", O_RDWR);
9894   if (fd < 0)
9895     return 1;
9896   data2 = (char *) malloc (2 * pagesize);
9897   if (!data2)
9898     return 1;
9899   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9900   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9901                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9902     return 1;
9903   for (i = 0; i < pagesize; ++i)
9904     if (*(data + i) != *(data2 + i))
9905       return 1;
9906
9907   /* Finally, make sure that changes to the mapped area do not
9908      percolate back to the file as seen by read().  (This is a bug on
9909      some variants of i386 svr4.0.)  */
9910   for (i = 0; i < pagesize; ++i)
9911     *(data2 + i) = *(data2 + i) + 1;
9912   data3 = (char *) malloc (pagesize);
9913   if (!data3)
9914     return 1;
9915   if (read (fd, data3, pagesize) != pagesize)
9916     return 1;
9917   for (i = 0; i < pagesize; ++i)
9918     if (*(data + i) != *(data3 + i))
9919       return 1;
9920   close (fd);
9921   return 0;
9922 }
9923 _ACEOF
9924 if ac_fn_c_try_run "$LINENO"; then :
9925   ac_cv_func_mmap_fixed_mapped=yes
9926 else
9927   ac_cv_func_mmap_fixed_mapped=no
9928 fi
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9930   conftest.$ac_objext conftest.beam conftest.$ac_ext
9931 fi
9932
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9935 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9937
9938 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9939
9940 fi
9941 rm -f conftest.mmap
9942
9943 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9944 if test "x$ac_cv_type_pid_t" = x""yes; then :
9945
9946 else
9947
9948 cat >>confdefs.h <<_ACEOF
9949 #define pid_t int
9950 _ACEOF
9951
9952 fi
9953
9954 for ac_header in vfork.h
9955 do :
9956   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9957 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9958   cat >>confdefs.h <<_ACEOF
9959 #define HAVE_VFORK_H 1
9960 _ACEOF
9961
9962 fi
9963
9964 done
9965
9966 for ac_func in fork vfork
9967 do :
9968   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9970 eval as_val=\$$as_ac_var
9971    if test "x$as_val" = x""yes; then :
9972   cat >>confdefs.h <<_ACEOF
9973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9974 _ACEOF
9975
9976 fi
9977 done
9978
9979 if test "x$ac_cv_func_fork" = xyes; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9981 $as_echo_n "checking for working fork... " >&6; }
9982 if test "${ac_cv_func_fork_works+set}" = set; then :
9983   $as_echo_n "(cached) " >&6
9984 else
9985   if test "$cross_compiling" = yes; then :
9986   ac_cv_func_fork_works=cross
9987 else
9988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h.  */
9990 $ac_includes_default
9991 int
9992 main ()
9993 {
9994
9995           /* By Ruediger Kuhlmann. */
9996           return fork () < 0;
9997
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 if ac_fn_c_try_run "$LINENO"; then :
10003   ac_cv_func_fork_works=yes
10004 else
10005   ac_cv_func_fork_works=no
10006 fi
10007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10008   conftest.$ac_objext conftest.beam conftest.$ac_ext
10009 fi
10010
10011 fi
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10013 $as_echo "$ac_cv_func_fork_works" >&6; }
10014
10015 else
10016   ac_cv_func_fork_works=$ac_cv_func_fork
10017 fi
10018 if test "x$ac_cv_func_fork_works" = xcross; then
10019   case $host in
10020     *-*-amigaos* | *-*-msdosdjgpp*)
10021       # Override, as these systems have only a dummy fork() stub
10022       ac_cv_func_fork_works=no
10023       ;;
10024     *)
10025       ac_cv_func_fork_works=yes
10026       ;;
10027   esac
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10029 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10030 fi
10031 ac_cv_func_vfork_works=$ac_cv_func_vfork
10032 if test "x$ac_cv_func_vfork" = xyes; then
10033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10034 $as_echo_n "checking for working vfork... " >&6; }
10035 if test "${ac_cv_func_vfork_works+set}" = set; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   if test "$cross_compiling" = yes; then :
10039   ac_cv_func_vfork_works=cross
10040 else
10041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h.  */
10043 /* Thanks to Paul Eggert for this test.  */
10044 $ac_includes_default
10045 #include <sys/wait.h>
10046 #ifdef HAVE_VFORK_H
10047 # include <vfork.h>
10048 #endif
10049 /* On some sparc systems, changes by the child to local and incoming
10050    argument registers are propagated back to the parent.  The compiler
10051    is told about this with #include <vfork.h>, but some compilers
10052    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10053    static variable whose address is put into a register that is
10054    clobbered by the vfork.  */
10055 static void
10056 #ifdef __cplusplus
10057 sparc_address_test (int arg)
10058 # else
10059 sparc_address_test (arg) int arg;
10060 #endif
10061 {
10062   static pid_t child;
10063   if (!child) {
10064     child = vfork ();
10065     if (child < 0) {
10066       perror ("vfork");
10067       _exit(2);
10068     }
10069     if (!child) {
10070       arg = getpid();
10071       write(-1, "", 0);
10072       _exit (arg);
10073     }
10074   }
10075 }
10076
10077 int
10078 main ()
10079 {
10080   pid_t parent = getpid ();
10081   pid_t child;
10082
10083   sparc_address_test (0);
10084
10085   child = vfork ();
10086
10087   if (child == 0) {
10088     /* Here is another test for sparc vfork register problems.  This
10089        test uses lots of local variables, at least as many local
10090        variables as main has allocated so far including compiler
10091        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10092        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10093        reuse the register of parent for one of the local variables,
10094        since it will think that parent can't possibly be used any more
10095        in this routine.  Assigning to the local variable will thus
10096        munge parent in the parent process.  */
10097     pid_t
10098       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10099       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10100     /* Convince the compiler that p..p7 are live; otherwise, it might
10101        use the same hardware register for all 8 local variables.  */
10102     if (p != p1 || p != p2 || p != p3 || p != p4
10103         || p != p5 || p != p6 || p != p7)
10104       _exit(1);
10105
10106     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10107        from child file descriptors.  If the child closes a descriptor
10108        before it execs or exits, this munges the parent's descriptor
10109        as well.  Test for this by closing stdout in the child.  */
10110     _exit(close(fileno(stdout)) != 0);
10111   } else {
10112     int status;
10113     struct stat st;
10114
10115     while (wait(&status) != child)
10116       ;
10117     return (
10118          /* Was there some problem with vforking?  */
10119          child < 0
10120
10121          /* Did the child fail?  (This shouldn't happen.)  */
10122          || status
10123
10124          /* Did the vfork/compiler bug occur?  */
10125          || parent != getpid()
10126
10127          /* Did the file descriptor bug occur?  */
10128          || fstat(fileno(stdout), &st) != 0
10129          );
10130   }
10131 }
10132 _ACEOF
10133 if ac_fn_c_try_run "$LINENO"; then :
10134   ac_cv_func_vfork_works=yes
10135 else
10136   ac_cv_func_vfork_works=no
10137 fi
10138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10139   conftest.$ac_objext conftest.beam conftest.$ac_ext
10140 fi
10141
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10144 $as_echo "$ac_cv_func_vfork_works" >&6; }
10145
10146 fi;
10147 if test "x$ac_cv_func_fork_works" = xcross; then
10148   ac_cv_func_vfork_works=$ac_cv_func_vfork
10149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10150 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10151 fi
10152
10153 if test "x$ac_cv_func_vfork_works" = xyes; then
10154
10155 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10156
10157 else
10158
10159 $as_echo "#define vfork fork" >>confdefs.h
10160
10161 fi
10162 if test "x$ac_cv_func_fork_works" = xyes; then
10163
10164 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10165
10166 fi
10167
10168 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10169                 pipe poll pread pread64 pwrite readlink resize_term \
10170                 sbrk setpgid setpgrp setsid \
10171                 sigaction sigprocmask sigsetmask socketpair syscall \
10172                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10173                 setrlimit getrlimit posix_madvise waitpid lstat \
10174                 fdwalk pipe2
10175 do :
10176   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10178 eval as_val=\$$as_ac_var
10179    if test "x$as_val" = x""yes; then :
10180   cat >>confdefs.h <<_ACEOF
10181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10182 _ACEOF
10183
10184 fi
10185 done
10186
10187
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10189 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10190 if test "${am_cv_langinfo_codeset+set}" = set; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h.  */
10195 #include <langinfo.h>
10196 int
10197 main ()
10198 {
10199 char* cs = nl_langinfo(CODESET);
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205   am_cv_langinfo_codeset=yes
10206 else
10207   am_cv_langinfo_codeset=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext \
10210     conftest$ac_exeext conftest.$ac_ext
10211
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10214 $as_echo "$am_cv_langinfo_codeset" >&6; }
10215   if test $am_cv_langinfo_codeset = yes; then
10216
10217 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10218
10219   fi
10220
10221
10222 # Check the return and argument types of ptrace.  No canned test for
10223 # this, so roll our own.
10224 gdb_ptrace_headers='
10225 #if HAVE_SYS_TYPES_H
10226 # include <sys/types.h>
10227 #endif
10228 #if HAVE_SYS_PTRACE_H
10229 # include <sys/ptrace.h>
10230 #endif
10231 #if HAVE_UNISTD_H
10232 # include <unistd.h>
10233 #endif
10234 '
10235 # There is no point in checking if we don't have a prototype.
10236 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10237 "
10238 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10239   ac_have_decl=1
10240 else
10241   ac_have_decl=0
10242 fi
10243
10244 cat >>confdefs.h <<_ACEOF
10245 #define HAVE_DECL_PTRACE $ac_have_decl
10246 _ACEOF
10247 if test $ac_have_decl = 1; then :
10248
10249 else
10250
10251   : ${gdb_cv_func_ptrace_ret='int'}
10252   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10253
10254 fi
10255
10256 # Check return type.  Varargs (used on GNU/Linux) conflict with the
10257 # empty argument list, so check for that explicitly.
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10259 $as_echo_n "checking return type of ptrace... " >&6; }
10260 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10261   $as_echo_n "(cached) " >&6
10262 else
10263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h.  */
10265 $gdb_ptrace_headers
10266 int
10267 main ()
10268 {
10269 extern long ptrace (enum __ptrace_request, ...);
10270   ;
10271   return 0;
10272 }
10273 _ACEOF
10274 if ac_fn_c_try_compile "$LINENO"; then :
10275   gdb_cv_func_ptrace_ret='long'
10276 else
10277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h.  */
10279 $gdb_ptrace_headers
10280 int
10281 main ()
10282 {
10283 extern int ptrace ();
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 if ac_fn_c_try_compile "$LINENO"; then :
10289   gdb_cv_func_ptrace_ret='int'
10290 else
10291   gdb_cv_func_ptrace_ret='long'
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10298 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10299
10300 cat >>confdefs.h <<_ACEOF
10301 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10302 _ACEOF
10303
10304 # Check argument types.
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10306 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10307 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310
10311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h.  */
10313 $gdb_ptrace_headers
10314 int
10315 main ()
10316 {
10317 extern long ptrace (enum __ptrace_request, ...);
10318   ;
10319   return 0;
10320 }
10321 _ACEOF
10322 if ac_fn_c_try_compile "$LINENO"; then :
10323   gdb_cv_func_ptrace_args='int,int,long,long'
10324 else
10325
10326 for gdb_arg1 in 'int' 'long'; do
10327  for gdb_arg2 in 'pid_t' 'int' 'long'; do
10328   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10329    for gdb_arg4 in 'int' 'long'; do
10330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h.  */
10332 $gdb_ptrace_headers
10333 int
10334 main ()
10335 {
10336
10337 extern $gdb_cv_func_ptrace_ret
10338   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10339
10340   ;
10341   return 0;
10342 }
10343 _ACEOF
10344 if ac_fn_c_try_compile "$LINENO"; then :
10345   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10346     break 4;
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349     for gdb_arg5 in 'int *' 'int' 'long'; do
10350      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h.  */
10352 $gdb_ptrace_headers
10353 int
10354 main ()
10355 {
10356
10357 extern $gdb_cv_func_ptrace_ret
10358   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10359
10360   ;
10361   return 0;
10362 }
10363 _ACEOF
10364 if ac_fn_c_try_compile "$LINENO"; then :
10365
10366 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10367     break 5;
10368 fi
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370     done
10371    done
10372   done
10373  done
10374 done
10375 # Provide a safe default value.
10376 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10377
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10382 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10383 ac_save_IFS=$IFS; IFS=','
10384 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10385 IFS=$ac_save_IFS
10386 shift
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define PTRACE_TYPE_ARG3 $3
10390 _ACEOF
10391
10392 if test -n "$5"; then
10393
10394 cat >>confdefs.h <<_ACEOF
10395 #define PTRACE_TYPE_ARG5 $5
10396 _ACEOF
10397
10398 fi
10399
10400 if test "$cross_compiling" = no; then
10401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10402 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10403 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10404   $as_echo_n "(cached) " >&6
10405 else
10406   if test "$cross_compiling" = yes; then :
10407   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10408 else
10409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411 $ac_includes_default
10412 int
10413 main ()
10414 {
10415 /* If this system has a BSD-style setpgrp which takes arguments,
10416   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10417   exit successfully. */
10418   return setpgrp (1,1) != -1;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_run "$LINENO"; then :
10424   ac_cv_func_setpgrp_void=no
10425 else
10426   ac_cv_func_setpgrp_void=yes
10427 fi
10428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10429   conftest.$ac_objext conftest.beam conftest.$ac_ext
10430 fi
10431
10432 fi
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10434 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10435 if test $ac_cv_func_setpgrp_void = yes; then
10436
10437 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10438
10439 fi
10440
10441 else
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10443 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10444 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10445   $as_echo_n "(cached) " >&6
10446 else
10447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h.  */
10449
10450 #include <unistd.h>
10451
10452 int
10453 main ()
10454 {
10455
10456   if (setpgrp(1,1) == -1)
10457     exit (0);
10458   else
10459     exit (1);
10460
10461   ;
10462   return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10466   ac_cv_func_setpgrp_void=no
10467 else
10468   ac_cv_func_setpgrp_void=yes
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 fi
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10473 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10474 if test $ac_cv_func_setpgrp_void = yes; then
10475   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10476
10477 fi
10478 fi
10479
10480 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
10481 # since sigsetjmp might only be defined as a macro.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10483 $as_echo_n "checking for sigsetjmp... " >&6; }
10484 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10485   $as_echo_n "(cached) " >&6
10486 else
10487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h.  */
10489
10490 #include <setjmp.h>
10491
10492 int
10493 main ()
10494 {
10495 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10496   ;
10497   return 0;
10498 }
10499 _ACEOF
10500 if ac_fn_c_try_compile "$LINENO"; then :
10501   gdb_cv_func_sigsetjmp=yes
10502 else
10503   gdb_cv_func_sigsetjmp=no
10504 fi
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10508 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10509 if test $gdb_cv_func_sigsetjmp = yes; then
10510
10511 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10512
10513 fi
10514
10515 # Assume we'll default to using the included libiberty regex.
10516 gdb_use_included_regex=yes
10517
10518 # However, if the system regex is GNU regex, then default to *not*
10519 # using the included regex.
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10521 $as_echo_n "checking for GNU regex... " >&6; }
10522 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10523   $as_echo_n "(cached) " >&6
10524 else
10525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h.  */
10527 #include <gnu-versions.h>
10528 int
10529 main ()
10530 {
10531 #define REGEX_INTERFACE_VERSION 1
10532 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10533 # error "Version mismatch"
10534 #endif
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_compile "$LINENO"; then :
10540   gdb_cv_have_gnu_regex=yes
10541 else
10542   gdb_cv_have_gnu_regex=no
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10547 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10548 if test $gdb_cv_have_gnu_regex = yes; then
10549   gdb_use_included_regex=no
10550 fi
10551
10552
10553 # Check whether --with-included-regex was given.
10554 if test "${with_included_regex+set}" = set; then :
10555   withval=$with_included_regex; gdb_with_regex=$withval
10556 else
10557   gdb_with_regex=$gdb_use_included_regex
10558 fi
10559
10560 if test "$gdb_with_regex" = yes; then
10561
10562 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10563
10564 fi
10565
10566 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10567 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10568 #include <sys/proc.h>
10569
10570 "
10571 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10572
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_STRUCT_THREAD_TD_PCB 1
10575 _ACEOF
10576
10577
10578 fi
10579
10580
10581 # See if <sys/lwp.h> defines `struct lwp`.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10583 $as_echo_n "checking for struct lwp... " >&6; }
10584 if test "${gdb_cv_struct_lwp+set}" = set; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h.  */
10589 #include <sys/param.h>
10590 #include <sys/lwp.h>
10591 int
10592 main ()
10593 {
10594 struct lwp l;
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_compile "$LINENO"; then :
10600   gdb_cv_struct_lwp=yes
10601 else
10602   gdb_cv_struct_lwp=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 fi
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10607 $as_echo "$gdb_cv_struct_lwp" >&6; }
10608 if test $gdb_cv_struct_lwp = yes; then
10609
10610 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10611
10612 fi
10613
10614 # See if <machine/reg.h> degines `struct reg'.
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10616 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10617 if test "${gdb_cv_struct_reg+set}" = set; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h.  */
10622 #include <sys/types.h>
10623 #include <machine/reg.h>
10624 int
10625 main ()
10626 {
10627 struct reg r;
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633   gdb_cv_struct_reg=yes
10634 else
10635   gdb_cv_struct_reg=no
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10640 $as_echo "$gdb_cv_struct_reg" >&6; }
10641 if test $gdb_cv_struct_reg = yes; then
10642
10643 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10644
10645 fi
10646
10647 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10648 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10649 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10650 "
10651 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10652
10653 cat >>confdefs.h <<_ACEOF
10654 #define HAVE_STRUCT_REG_R_FS 1
10655 _ACEOF
10656
10657
10658 fi
10659 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10660 "
10661 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10662
10663 cat >>confdefs.h <<_ACEOF
10664 #define HAVE_STRUCT_REG_R_GS 1
10665 _ACEOF
10666
10667
10668 fi
10669
10670
10671 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
10672 # Older amd64 Linux's don't have the fs_base and gs_base members of
10673 # `struct user_regs_struct'.
10674 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
10675 "
10676 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
10677
10678 cat >>confdefs.h <<_ACEOF
10679 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
10680 _ACEOF
10681
10682
10683 fi
10684 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
10685 "
10686 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
10687
10688 cat >>confdefs.h <<_ACEOF
10689 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
10690 _ACEOF
10691
10692
10693 fi
10694
10695
10696 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10698 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10699 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10700   $as_echo_n "(cached) " >&6
10701 else
10702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h.  */
10704 #include <sys/ptrace.h>
10705 int
10706 main ()
10707 {
10708 PTRACE_GETREGS;
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714   gdb_cv_have_ptrace_getregs=yes
10715 else
10716   gdb_cv_have_ptrace_getregs=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719 fi
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10722 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10723 if test $gdb_cv_have_ptrace_getregs = yes; then
10724
10725 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10726
10727 fi
10728
10729 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10731 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10732 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10733   $as_echo_n "(cached) " >&6
10734 else
10735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h.  */
10737 #include <sys/ptrace.h>
10738 int
10739 main ()
10740 {
10741 PTRACE_GETFPXREGS;
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_c_try_compile "$LINENO"; then :
10747   gdb_cv_have_ptrace_getfpxregs=yes
10748 else
10749   gdb_cv_have_ptrace_getfpxregs=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 fi
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10755 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10756 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10757
10758 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10759
10760 fi
10761
10762 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10764 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10765 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770 #include <sys/types.h>
10771 #include <sys/ptrace.h>
10772 int
10773 main ()
10774 {
10775 PT_GETDBREGS;
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 if ac_fn_c_try_compile "$LINENO"; then :
10781   gdb_cv_have_pt_getdbregs=yes
10782 else
10783   gdb_cv_have_pt_getdbregs=no
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 fi
10787
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10789 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10790 if test $gdb_cv_have_pt_getdbregs = yes; then
10791
10792 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10793
10794 fi
10795
10796 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10798 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10799 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10800   $as_echo_n "(cached) " >&6
10801 else
10802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h.  */
10804 #include <sys/types.h>
10805 #include <sys/ptrace.h>
10806 int
10807 main ()
10808 {
10809 PT_GETXMMREGS;
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_c_try_compile "$LINENO"; then :
10815   gdb_cv_have_pt_getxmmregs=yes
10816 else
10817   gdb_cv_have_pt_getxmmregs=no
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 fi
10821
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10823 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10824 if test $gdb_cv_have_pt_getxmmregs = yes; then
10825
10826 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10827
10828 fi
10829
10830 # Detect which type of /proc is in use, such as for Solaris.
10831
10832 if test "${target}" = "${host}"; then
10833   case "${host}" in
10834   *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10835
10836 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10837
10838       ;;
10839   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10840
10841 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10842
10843       ;;
10844   mips-sgi-irix5*)
10845       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10846
10847 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10848
10849       ;;
10850   esac
10851 fi
10852
10853 if test "$ac_cv_header_sys_procfs_h" = yes; then
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10855 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10856  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10857   $as_echo_n "(cached) " >&6
10858 else
10859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h.  */
10861
10862 #define _SYSCALL32
10863 /* Needed for new procfs interface on sparc-solaris.  */
10864 #define _STRUCTURED_PROC 1
10865 #include <sys/procfs.h>
10866 int
10867 main ()
10868 {
10869 pstatus_t avar
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_compile "$LINENO"; then :
10875   bfd_cv_have_sys_procfs_type_pstatus_t=yes
10876 else
10877   bfd_cv_have_sys_procfs_type_pstatus_t=no
10878
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 fi
10882
10883  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10884
10885 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10886
10887  fi
10888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10889 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10890
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10892 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10893  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10894   $as_echo_n "(cached) " >&6
10895 else
10896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h.  */
10898
10899 #define _SYSCALL32
10900 /* Needed for new procfs interface on sparc-solaris.  */
10901 #define _STRUCTURED_PROC 1
10902 #include <sys/procfs.h>
10903 int
10904 main ()
10905 {
10906 prrun_t avar
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_compile "$LINENO"; then :
10912   bfd_cv_have_sys_procfs_type_prrun_t=yes
10913 else
10914   bfd_cv_have_sys_procfs_type_prrun_t=no
10915
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 fi
10919
10920  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10921
10922 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10923
10924  fi
10925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10926 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10927
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10929 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10930  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h.  */
10935
10936 #define _SYSCALL32
10937 /* Needed for new procfs interface on sparc-solaris.  */
10938 #define _STRUCTURED_PROC 1
10939 #include <sys/procfs.h>
10940 int
10941 main ()
10942 {
10943 gregset_t avar
10944   ;
10945   return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_compile "$LINENO"; then :
10949   bfd_cv_have_sys_procfs_type_gregset_t=yes
10950 else
10951   bfd_cv_have_sys_procfs_type_gregset_t=no
10952
10953 fi
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 fi
10956
10957  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10958
10959 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10960
10961  fi
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10963 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10964
10965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10966 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10967  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10968   $as_echo_n "(cached) " >&6
10969 else
10970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h.  */
10972
10973 #define _SYSCALL32
10974 /* Needed for new procfs interface on sparc-solaris.  */
10975 #define _STRUCTURED_PROC 1
10976 #include <sys/procfs.h>
10977 int
10978 main ()
10979 {
10980 fpregset_t avar
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_compile "$LINENO"; then :
10986   bfd_cv_have_sys_procfs_type_fpregset_t=yes
10987 else
10988   bfd_cv_have_sys_procfs_type_fpregset_t=no
10989
10990 fi
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 fi
10993
10994  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10995
10996 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10997
10998  fi
10999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11000 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11001
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11003 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11004  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11005   $as_echo_n "(cached) " >&6
11006 else
11007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h.  */
11009
11010 #define _SYSCALL32
11011 /* Needed for new procfs interface on sparc-solaris.  */
11012 #define _STRUCTURED_PROC 1
11013 #include <sys/procfs.h>
11014 int
11015 main ()
11016 {
11017 prgregset_t avar
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_compile "$LINENO"; then :
11023   bfd_cv_have_sys_procfs_type_prgregset_t=yes
11024 else
11025   bfd_cv_have_sys_procfs_type_prgregset_t=no
11026
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 fi
11030
11031  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11032
11033 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11034
11035  fi
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11037 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11038
11039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11040 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11041  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h.  */
11046
11047 #define _SYSCALL32
11048 /* Needed for new procfs interface on sparc-solaris.  */
11049 #define _STRUCTURED_PROC 1
11050 #include <sys/procfs.h>
11051 int
11052 main ()
11053 {
11054 prfpregset_t avar
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_compile "$LINENO"; then :
11060   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11061 else
11062   bfd_cv_have_sys_procfs_type_prfpregset_t=no
11063
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 fi
11067
11068  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11069
11070 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11071
11072  fi
11073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11074 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11075
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11077 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11078  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 #define _SYSCALL32
11085 /* Needed for new procfs interface on sparc-solaris.  */
11086 #define _STRUCTURED_PROC 1
11087 #include <sys/procfs.h>
11088 int
11089 main ()
11090 {
11091 prgregset32_t avar
11092   ;
11093   return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_compile "$LINENO"; then :
11097   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11098 else
11099   bfd_cv_have_sys_procfs_type_prgregset32_t=no
11100
11101 fi
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 fi
11104
11105  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11106
11107 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11108
11109  fi
11110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11111 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11112
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11114 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11115  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11116   $as_echo_n "(cached) " >&6
11117 else
11118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h.  */
11120
11121 #define _SYSCALL32
11122 /* Needed for new procfs interface on sparc-solaris.  */
11123 #define _STRUCTURED_PROC 1
11124 #include <sys/procfs.h>
11125 int
11126 main ()
11127 {
11128 prfpregset32_t avar
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_compile "$LINENO"; then :
11134   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11135 else
11136   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11137
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11140 fi
11141
11142  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11143
11144 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11145
11146  fi
11147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11148 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11149
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11151 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11152  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h.  */
11157
11158 #define _SYSCALL32
11159 /* Needed for new procfs interface on sparc-solaris.  */
11160 #define _STRUCTURED_PROC 1
11161 #include <sys/procfs.h>
11162 int
11163 main ()
11164 {
11165 lwpid_t avar
11166   ;
11167   return 0;
11168 }
11169 _ACEOF
11170 if ac_fn_c_try_compile "$LINENO"; then :
11171   bfd_cv_have_sys_procfs_type_lwpid_t=yes
11172 else
11173   bfd_cv_have_sys_procfs_type_lwpid_t=no
11174
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 fi
11178
11179  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11180
11181 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11182
11183  fi
11184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11185 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11186
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11188 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11189  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11190   $as_echo_n "(cached) " >&6
11191 else
11192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h.  */
11194
11195 #define _SYSCALL32
11196 /* Needed for new procfs interface on sparc-solaris.  */
11197 #define _STRUCTURED_PROC 1
11198 #include <sys/procfs.h>
11199 int
11200 main ()
11201 {
11202 psaddr_t avar
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_c_try_compile "$LINENO"; then :
11208   bfd_cv_have_sys_procfs_type_psaddr_t=yes
11209 else
11210   bfd_cv_have_sys_procfs_type_psaddr_t=no
11211
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 fi
11215
11216  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11217
11218 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11219
11220  fi
11221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11222 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11223
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11225 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11226  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h.  */
11231
11232 #define _SYSCALL32
11233 /* Needed for new procfs interface on sparc-solaris.  */
11234 #define _STRUCTURED_PROC 1
11235 #include <sys/procfs.h>
11236 int
11237 main ()
11238 {
11239 prsysent_t avar
11240   ;
11241   return 0;
11242 }
11243 _ACEOF
11244 if ac_fn_c_try_compile "$LINENO"; then :
11245   bfd_cv_have_sys_procfs_type_prsysent_t=yes
11246 else
11247   bfd_cv_have_sys_procfs_type_prsysent_t=no
11248
11249 fi
11250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11251 fi
11252
11253  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11254
11255 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11256
11257  fi
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11259 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11260
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11262 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11263  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h.  */
11268
11269 #define _SYSCALL32
11270 /* Needed for new procfs interface on sparc-solaris.  */
11271 #define _STRUCTURED_PROC 1
11272 #include <sys/procfs.h>
11273 int
11274 main ()
11275 {
11276 pr_sigset_t avar
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 if ac_fn_c_try_compile "$LINENO"; then :
11282   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11283 else
11284   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11285
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 fi
11289
11290  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11291
11292 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11293
11294  fi
11295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11296 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11297
11298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11299 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11300  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11301   $as_echo_n "(cached) " >&6
11302 else
11303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h.  */
11305
11306 #define _SYSCALL32
11307 /* Needed for new procfs interface on sparc-solaris.  */
11308 #define _STRUCTURED_PROC 1
11309 #include <sys/procfs.h>
11310 int
11311 main ()
11312 {
11313 pr_sigaction64_t avar
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_c_try_compile "$LINENO"; then :
11319   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11320 else
11321   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11322
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 fi
11326
11327  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11328
11329 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11330
11331  fi
11332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11333 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11334
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11336 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11337  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11338   $as_echo_n "(cached) " >&6
11339 else
11340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h.  */
11342
11343 #define _SYSCALL32
11344 /* Needed for new procfs interface on sparc-solaris.  */
11345 #define _STRUCTURED_PROC 1
11346 #include <sys/procfs.h>
11347 int
11348 main ()
11349 {
11350 pr_siginfo64_t avar
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_compile "$LINENO"; then :
11356   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11357 else
11358   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11359
11360 fi
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 fi
11363
11364  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11365
11366 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11367
11368  fi
11369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11370 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11371
11372
11373
11374
11375
11376   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11378 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11379     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11380   $as_echo_n "(cached) " >&6
11381 else
11382   if test "$cross_compiling" = yes; then :
11383   gdb_cv_prfpregset_t_broken=yes
11384 else
11385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h.  */
11387 #include <sys/procfs.h>
11388        int main ()
11389        {
11390          if (sizeof (prfpregset_t) == sizeof (void *))
11391            return 1;
11392          return 0;
11393        }
11394 _ACEOF
11395 if ac_fn_c_try_run "$LINENO"; then :
11396   gdb_cv_prfpregset_t_broken=no
11397 else
11398   gdb_cv_prfpregset_t_broken=yes
11399 fi
11400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11401   conftest.$ac_objext conftest.beam conftest.$ac_ext
11402 fi
11403
11404 fi
11405
11406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11407 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11408     if test $gdb_cv_prfpregset_t_broken = yes; then
11409
11410 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11411
11412     fi
11413   fi
11414
11415
11416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11417 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11418   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11419   $as_echo_n "(cached) " >&6
11420 else
11421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423 #include <unistd.h>
11424 #include <sys/types.h>
11425 #include <sys/procfs.h>
11426
11427 int
11428 main ()
11429 {
11430
11431     int dummy;;
11432     dummy = ioctl(0, PIOCSET, &dummy);
11433
11434   ;
11435   return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_compile "$LINENO"; then :
11439   gdb_cv_have_procfs_piocset=yes
11440 else
11441   gdb_cv_have_procfs_piocset=no
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 fi
11445
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11447 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11448   if test $gdb_cv_have_procfs_piocset = yes; then
11449
11450 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11451
11452   fi
11453 fi
11454
11455 if test ${host} = ${target} ; then
11456
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11458 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11459   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11460   $as_echo_n "(cached) " >&6
11461 else
11462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h.  */
11464 #include <link.h>
11465 int
11466 main ()
11467 {
11468 struct link_map lm; (void) lm.l_addr;
11469   ;
11470   return 0;
11471 }
11472 _ACEOF
11473 if ac_fn_c_try_compile "$LINENO"; then :
11474   gdb_cv_have_struct_link_map_with_l_members=yes
11475 else
11476   gdb_cv_have_struct_link_map_with_l_members=no
11477 fi
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11479 fi
11480
11481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11482 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11483   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11484
11485 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11486
11487   fi
11488
11489
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11491 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11492   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11493   $as_echo_n "(cached) " >&6
11494 else
11495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h.  */
11497 #include <sys/types.h>
11498 #include <link.h>
11499 int
11500 main ()
11501 {
11502 struct link_map lm; (void) lm.lm_addr;
11503   ;
11504   return 0;
11505 }
11506 _ACEOF
11507 if ac_fn_c_try_compile "$LINENO"; then :
11508   gdb_cv_have_struct_link_map_with_lm_members=yes
11509 else
11510   gdb_cv_have_struct_link_map_with_lm_members=no
11511 fi
11512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 fi
11514
11515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11516 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11517   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11518
11519 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11520
11521   fi
11522
11523
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11525 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11526   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h.  */
11531 #include <sys/types.h>
11532 #ifdef HAVE_NLIST_H
11533 #include <nlist.h>
11534 #endif
11535 #include <link.h>
11536 int
11537 main ()
11538 {
11539 struct so_map lm; (void) lm.som_addr;
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_compile "$LINENO"; then :
11545   gdb_cv_have_struct_so_map_with_som_members=yes
11546 else
11547   gdb_cv_have_struct_so_map_with_som_members=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 fi
11551
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11553 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11554   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11555
11556 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11557
11558   fi
11559
11560
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11562 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11563   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11564   $as_echo_n "(cached) " >&6
11565 else
11566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h.  */
11568 #define _SYSCALL32
11569 #include <sys/link.h>
11570 int
11571 main ()
11572 {
11573 struct link_map32 l;
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 if ac_fn_c_try_compile "$LINENO"; then :
11579   gdb_cv_have_struct_link_map32=yes
11580 else
11581   gdb_cv_have_struct_link_map32=no
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584 fi
11585
11586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11587 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11588   if test $gdb_cv_have_struct_link_map32 = yes; then
11589
11590 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11591
11592
11593 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11594
11595   fi
11596 fi
11597
11598 # Check if the compiler supports the `long long' type.
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11601 $as_echo_n "checking for long long support in compiler... " >&6; }
11602 if test "${gdb_cv_c_long_long+set}" = set; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607 extern long long foo;
11608 int
11609 main ()
11610 {
11611 switch (foo & 2) { case 0: return 1; }
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_compile "$LINENO"; then :
11617   gdb_cv_c_long_long=yes
11618 else
11619   gdb_cv_c_long_long=no
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 fi
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11624 $as_echo "$gdb_cv_c_long_long" >&6; }
11625 if test $gdb_cv_c_long_long != yes; then
11626   # libdecnumber requires long long.
11627   as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
11628 fi
11629
11630 # Check if the compiler and runtime support printing long longs.
11631
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11633 $as_echo_n "checking for long long support in printf... " >&6; }
11634 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11635   $as_echo_n "(cached) " >&6
11636 else
11637   if test "$cross_compiling" = yes; then :
11638   gdb_cv_printf_has_long_long=no
11639 else
11640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h.  */
11642 $ac_includes_default
11643 int
11644 main ()
11645 {
11646 char buf[32];
11647   long long l = 0;
11648   l = (l << 16) + 0x0123;
11649   l = (l << 16) + 0x4567;
11650   l = (l << 16) + 0x89ab;
11651   l = (l << 16) + 0xcdef;
11652   sprintf (buf, "0x%016llx", l);
11653   return (strcmp ("0x0123456789abcdef", buf));
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_run "$LINENO"; then :
11659   gdb_cv_printf_has_long_long=yes
11660 else
11661   gdb_cv_printf_has_long_long=no
11662 fi
11663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11664   conftest.$ac_objext conftest.beam conftest.$ac_ext
11665 fi
11666
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11669 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11670 if test $gdb_cv_printf_has_long_long = yes; then
11671
11672 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11673
11674 fi
11675
11676 # Check if the compiler and runtime support printing decfloats.
11677
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11679 $as_echo_n "checking for decfloat support in printf... " >&6; }
11680 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11681   $as_echo_n "(cached) " >&6
11682 else
11683   if test "$cross_compiling" = yes; then :
11684   gdb_cv_printf_has_decfloat=no
11685 else
11686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h.  */
11688 $ac_includes_default
11689 int
11690 main ()
11691 {
11692 char buf[64];
11693   _Decimal32 d32 = 1.2345df;
11694   _Decimal64 d64 = 1.2345dd;
11695   _Decimal128 d128 = 1.2345dl;
11696   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11697   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_c_try_run "$LINENO"; then :
11703   gdb_cv_printf_has_decfloat=yes
11704 else
11705   gdb_cv_printf_has_decfloat=no
11706 fi
11707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11708   conftest.$ac_objext conftest.beam conftest.$ac_ext
11709 fi
11710
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11713 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11714 if test $gdb_cv_printf_has_decfloat = yes; then
11715
11716 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11717
11718 fi
11719
11720 # Check if the compiler supports the `long double' type.  We can't use
11721 # AC_C_LONG_DOUBLE because that one does additional checks on the
11722 # constants defined in <float.h> that fail on some systems,
11723 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11726 $as_echo_n "checking for long double support in compiler... " >&6; }
11727 if test "${gdb_cv_c_long_double+set}" = set; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h.  */
11732 long double foo;
11733 _ACEOF
11734 if ac_fn_c_try_compile "$LINENO"; then :
11735   gdb_cv_c_long_double=yes
11736 else
11737   gdb_cv_c_long_double=no
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 fi
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11742 $as_echo "$gdb_cv_c_long_double" >&6; }
11743 if test $gdb_cv_c_long_double = yes; then
11744
11745 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11746
11747 fi
11748
11749 # Check if the compiler and runtime support printing long doubles.
11750
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11752 $as_echo_n "checking for long double support in printf... " >&6; }
11753 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11754   $as_echo_n "(cached) " >&6
11755 else
11756   if test "$cross_compiling" = yes; then :
11757   gdb_cv_printf_has_long_double=no
11758 else
11759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h.  */
11761 $ac_includes_default
11762 int
11763 main ()
11764 {
11765 char buf[16];
11766   long double f = 3.141592653;
11767   sprintf (buf, "%Lg", f);
11768   return (strncmp ("3.14159", buf, 7));
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 if ac_fn_c_try_run "$LINENO"; then :
11774   gdb_cv_printf_has_long_double=yes
11775 else
11776   gdb_cv_printf_has_long_double=no
11777 fi
11778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11779   conftest.$ac_objext conftest.beam conftest.$ac_ext
11780 fi
11781
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11784 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11785 if test $gdb_cv_printf_has_long_double = yes; then
11786
11787 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11788
11789 fi
11790
11791 # Check if the compiler and runtime support scanning long doubles.
11792
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11794 $as_echo_n "checking for long double support in scanf... " >&6; }
11795 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11796   $as_echo_n "(cached) " >&6
11797 else
11798   if test "$cross_compiling" = yes; then :
11799   gdb_cv_scanf_has_long_double=no
11800 else
11801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h.  */
11803 #include <stdio.h>
11804 int
11805 main ()
11806 {
11807 char *buf = "3.141592653";
11808   long double f = 0;
11809   sscanf (buf, "%Lg", &f);
11810   return !(f > 3.14159 && f < 3.14160);
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 if ac_fn_c_try_run "$LINENO"; then :
11816   gdb_cv_scanf_has_long_double=yes
11817 else
11818   gdb_cv_scanf_has_long_double=no
11819 fi
11820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11821   conftest.$ac_objext conftest.beam conftest.$ac_ext
11822 fi
11823
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11826 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11827 if test $gdb_cv_scanf_has_long_double = yes; then
11828
11829 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11830
11831 fi
11832
11833 case ${host_os} in
11834 aix*)
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11836 $as_echo_n "checking for -bbigtoc option... " >&6; }
11837 if test "${gdb_cv_bigtoc+set}" = set; then :
11838   $as_echo_n "(cached) " >&6
11839 else
11840
11841     SAVE_LDFLAGS=$LDFLAGS
11842
11843     case $GCC in
11844     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11845     *) gdb_cv_bigtoc=-bbigtoc ;;
11846     esac
11847
11848     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11849     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11850 /* end confdefs.h.  */
11851
11852 int
11853 main ()
11854 {
11855 int i;
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_link "$LINENO"; then :
11861
11862 else
11863   gdb_cv_bigtoc=
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext \
11866     conftest$ac_exeext conftest.$ac_ext
11867     LDFLAGS="${SAVE_LDFLAGS}"
11868
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11871 $as_echo "$gdb_cv_bigtoc" >&6; }
11872   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11873   ;;
11874 esac
11875
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11877 $as_echo_n "checking for the dynamic export flag... " >&6; }
11878 dynamic_list=false
11879 if test "${gdb_native}" = yes; then
11880    # The dynamically loaded libthread_db needs access to symbols in the gdb
11881    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
11882    # may not be supported there.
11883    old_LDFLAGS="$LDFLAGS"
11884    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11885    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11886    LDFLAGS="$LDFLAGS $RDYNAMIC"
11887    if test "${have_libpython}" = no; then
11888      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h.  */
11890
11891 int
11892 main ()
11893 {
11894
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900   dynamic_list=true
11901 fi
11902 rm -f core conftest.err conftest.$ac_objext \
11903     conftest$ac_exeext conftest.$ac_ext
11904    else
11905      # Workaround http://bugs.python.org/issue4434 where static
11906      # libpythonX.Y.a would get its symbols required for
11907      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11908      # Problem does not happen for the recommended libpythonX.Y.so linkage.
11909      old_CFLAGS="$CFLAGS"
11910      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11911      old_LIBS="$LIBS"
11912      LIBS="$LIBS $PYTHON_LIBS"
11913      if test "$cross_compiling" = yes; then :
11914   true
11915 else
11916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917 /* end confdefs.h.  */
11918 #include "${have_libpython}/Python.h"
11919 int
11920 main ()
11921 {
11922 int err;
11923           Py_Initialize ();
11924           err = PyRun_SimpleString ("import itertools\n");
11925           Py_Finalize ();
11926           return err == 0 ? 0 : 1;
11927   ;
11928   return 0;
11929 }
11930 _ACEOF
11931 if ac_fn_c_try_run "$LINENO"; then :
11932   dynamic_list=true
11933 fi
11934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11935   conftest.$ac_objext conftest.beam conftest.$ac_ext
11936 fi
11937
11938      LIBS="$old_LIBS"
11939      CFLAGS="$old_CFLAGS"
11940    fi
11941    LDFLAGS="$old_LDFLAGS"
11942 fi
11943 if $dynamic_list; then
11944   found="-Wl,--dynamic-list"
11945   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11946 else
11947   found="-rdynamic"
11948   RDYNAMIC="-rdynamic"
11949 fi
11950
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11952 $as_echo "$found" >&6; }
11953
11954
11955 if test ${build} = ${host} -a ${host} = ${target} ; then
11956    case ${host_os} in
11957    solaris*)
11958       # See if thread_db library is around for Solaris thread debugging.
11959       # Note that we must explicitly test for version 1 of the library
11960       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11961       # the same API.
11962       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11963 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11964       if test -f /usr/lib/libthread_db.so.1 ; then
11965          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11967
11968 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11969
11970          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11971          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11972          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11973 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11974 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   ac_check_lib_save_LIBS=$LIBS
11978 LIBS="-ldl  $LIBS"
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983    Use char because int might match the return type of a GCC
11984    builtin and then its argument prototype would still apply.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char dlopen ();
11989 int
11990 main ()
11991 {
11992 return dlopen ();
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_c_try_link "$LINENO"; then :
11998   ac_cv_lib_dl_dlopen=yes
11999 else
12000   ac_cv_lib_dl_dlopen=no
12001 fi
12002 rm -f core conftest.err conftest.$ac_objext \
12003     conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12007 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12008 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12009   cat >>confdefs.h <<_ACEOF
12010 #define HAVE_LIBDL 1
12011 _ACEOF
12012
12013   LIBS="-ldl $LIBS"
12014
12015 fi
12016
12017          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12018          # Sun randomly tweaked the prototypes in <proc_service.h>
12019          # at one point.
12020          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12021 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12022          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12023   $as_echo_n "(cached) " >&6
12024 else
12025
12026             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h.  */
12028
12029                 #include <proc_service.h>
12030                 ps_err_e ps_pdwrite
12031                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
12032
12033 int
12034 main ()
12035 {
12036
12037   ;
12038   return 0;
12039 }
12040 _ACEOF
12041 if ac_fn_c_try_compile "$LINENO"; then :
12042   gdb_cv_proc_service_is_old=no
12043 else
12044   gdb_cv_proc_service_is_old=yes
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047
12048 fi
12049
12050          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12051 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12052          if test $gdb_cv_proc_service_is_old = yes; then
12053
12054 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12055
12056          fi
12057       else
12058          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12060       fi
12061       ;;
12062    aix*)
12063       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12064 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12065       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12066   $as_echo_n "(cached) " >&6
12067 else
12068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h.  */
12070 #include <sys/pthdebug.h>
12071 int
12072 main ()
12073 {
12074 #ifndef PTHDB_VERSION_3
12075                                     #error
12076                                     #endif
12077   ;
12078   return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082   gdb_cv_have_aix_thread_debug=yes
12083 else
12084   gdb_cv_have_aix_thread_debug=no
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 fi
12088
12089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12090 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12091       if test $gdb_cv_have_aix_thread_debug = yes; then
12092          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12093          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12094          LIBS="$LIBS -lpthdebug"
12095
12096          # Older versions of AIX do not provide the declaration for
12097          # the getthrds function (it appears that it was introduced
12098          # with AIX 6.x).
12099          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12100 "
12101 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12102   ac_have_decl=1
12103 else
12104   ac_have_decl=0
12105 fi
12106
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_DECL_GETTHRDS $ac_have_decl
12109 _ACEOF
12110
12111       fi
12112       ;;
12113    esac
12114
12115 fi
12116
12117 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12118    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12119 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12120 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12121   $as_echo_n "(cached) " >&6
12122 else
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 #include <thread_db.h>
12126 int
12127 main ()
12128 {
12129 int i = TD_NOTALLOC;
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135   gdb_cv_thread_db_h_has_td_notalloc=yes
12136 else
12137   gdb_cv_thread_db_h_has_td_notalloc=no
12138
12139 fi
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141
12142 fi
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12144 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12146 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12147 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h.  */
12152 #include <thread_db.h>
12153 int
12154 main ()
12155 {
12156 int i = TD_VERSION;
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_compile "$LINENO"; then :
12162   gdb_cv_thread_db_h_has_td_version=yes
12163 else
12164   gdb_cv_thread_db_h_has_td_version=no
12165
12166 fi
12167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12171 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12173 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12174 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h.  */
12179 #include <thread_db.h>
12180 int
12181 main ()
12182 {
12183 int i = TD_NOTLS;
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_compile "$LINENO"; then :
12189   gdb_cv_thread_db_h_has_td_notls=yes
12190 else
12191   gdb_cv_thread_db_h_has_td_notls=no
12192
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12198 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12199 fi
12200 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12201
12202 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12203
12204 fi
12205 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12206
12207 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12208
12209 fi
12210 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12211
12212 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12213
12214 fi
12215
12216 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12218 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12219 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12220   $as_echo_n "(cached) " >&6
12221 else
12222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h.  */
12224 #include <sys/syscall.h>
12225 int
12226 main ()
12227 {
12228 int i = __NR_tkill;
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_compile "$LINENO"; then :
12234   gdb_cv_sys_syscall_h_has_tkill=yes
12235 else
12236   gdb_cv_sys_syscall_h_has_tkill=no
12237
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12243 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12244 fi
12245 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12246
12247 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12248
12249 fi
12250
12251 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12252 "
12253 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12254   ac_have_decl=1
12255 else
12256   ac_have_decl=0
12257 fi
12258
12259 cat >>confdefs.h <<_ACEOF
12260 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12261 _ACEOF
12262
12263
12264 if test "$cross_compiling" = yes; then :
12265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h.  */
12267 #include <sys/personality.h>
12268 int
12269 main ()
12270 {
12271
12272 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
12273 #       define ADDR_NO_RANDOMIZE 0x0040000
12274 #      endif
12275        /* Test the flag could be set and stays set.  */
12276        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12277        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12278            return 1
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_link "$LINENO"; then :
12284   have_personality=true
12285 else
12286   have_personality=false
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext \
12289     conftest$ac_exeext conftest.$ac_ext
12290 else
12291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h.  */
12293 #include <sys/personality.h>
12294 int
12295 main ()
12296 {
12297
12298 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
12299 #       define ADDR_NO_RANDOMIZE 0x0040000
12300 #      endif
12301        /* Test the flag could be set and stays set.  */
12302        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12303        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12304            return 1
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 if ac_fn_c_try_run "$LINENO"; then :
12310   have_personality=true
12311 else
12312   have_personality=false
12313 fi
12314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12315   conftest.$ac_objext conftest.beam conftest.$ac_ext
12316 fi
12317
12318 if $have_personality
12319 then
12320
12321 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12322
12323 fi
12324
12325
12326 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12327 # except that the argument to --with-sysroot is optional.
12328 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12329 if test "x$with_sysroot" = xyes; then
12330   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12331 fi
12332
12333 # Check whether --with-sysroot was given.
12334 if test "${with_sysroot+set}" = set; then :
12335   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12336 else
12337   TARGET_SYSTEM_ROOT=
12338 fi
12339
12340
12341   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12342   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12343   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12344   ac_define_dir=`eval echo $ac_define_dir`
12345
12346 cat >>confdefs.h <<_ACEOF
12347 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12348 _ACEOF
12349
12350
12351
12352
12353   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12354      if test "x$prefix" = xNONE; then
12355         test_prefix=/usr/local
12356      else
12357         test_prefix=$prefix
12358      fi
12359   else
12360      test_prefix=$exec_prefix
12361   fi
12362   value=0
12363   case ${ac_define_dir} in
12364      "${test_prefix}"|"${test_prefix}/"*|\
12365         '${exec_prefix}'|'${exec_prefix}/'*)
12366      value=1
12367      ;;
12368   esac
12369
12370 cat >>confdefs.h <<_ACEOF
12371 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12372 _ACEOF
12373
12374
12375
12376
12377
12378 # Check whether --with-system-gdbinit was given.
12379 if test "${with_system_gdbinit+set}" = set; then :
12380   withval=$with_system_gdbinit;
12381     SYSTEM_GDBINIT=$withval
12382 else
12383   SYSTEM_GDBINIT=
12384 fi
12385
12386
12387   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12388   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12389   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12390   ac_define_dir=`eval echo $ac_define_dir`
12391
12392 cat >>confdefs.h <<_ACEOF
12393 #define SYSTEM_GDBINIT "$ac_define_dir"
12394 _ACEOF
12395
12396
12397
12398
12399   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12400      if test "x$prefix" = xNONE; then
12401         test_prefix=/usr/local
12402      else
12403         test_prefix=$prefix
12404      fi
12405   else
12406      test_prefix=$exec_prefix
12407   fi
12408   value=0
12409   case ${ac_define_dir} in
12410      "${test_prefix}"|"${test_prefix}/"*|\
12411         '${exec_prefix}'|'${exec_prefix}/'*)
12412      value=1
12413      ;;
12414   esac
12415
12416 cat >>confdefs.h <<_ACEOF
12417 #define SYSTEM_GDBINIT_RELOCATABLE $value
12418 _ACEOF
12419
12420
12421
12422
12423 # Check whether --enable-werror was given.
12424 if test "${enable_werror+set}" = set; then :
12425   enableval=$enable_werror; case "${enableval}" in
12426      yes | y) ERROR_ON_WARNING="yes" ;;
12427      no | n)  ERROR_ON_WARNING="no" ;;
12428      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12429    esac
12430 fi
12431
12432
12433 # Enable -Werror by default when using gcc.  Turn it off for releases.
12434 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12435     ERROR_ON_WARNING=yes
12436 fi
12437
12438 WERROR_CFLAGS=""
12439 if test "${ERROR_ON_WARNING}" = yes ; then
12440     WERROR_CFLAGS="-Werror"
12441 fi
12442
12443 # The entries after -Wno-pointer-sign are disabled warnings which may
12444 # be enabled in the future, which can not currently be used to build
12445 # GDB.
12446 # NOTE: If you change this list, remember to update
12447 # gdb/doc/gdbint.texinfo.
12448 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12449 -Wformat-nonliteral -Wpointer-sign \
12450 -Wno-unused -Wunused-value -Wunused-function \
12451 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
12452 -Wdeclaration-after-statement -Wempty-body"
12453
12454 # Enable -Wno-format by default when using gcc on mingw since many
12455 # GCC versions complain about %I64.
12456 case "${host}" in
12457   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12458 esac
12459
12460 # Check whether --enable-build-warnings was given.
12461 if test "${enable_build_warnings+set}" = set; then :
12462   enableval=$enable_build_warnings; case "${enableval}" in
12463   yes)  ;;
12464   no)   build_warnings="-w";;
12465   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12466         build_warnings="${build_warnings} ${t}";;
12467   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12468         build_warnings="${t} ${build_warnings}";;
12469   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12470 esac
12471 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12472   echo "Setting compiler warning flags = $build_warnings" 6>&1
12473 fi
12474 fi
12475 # Check whether --enable-gdb-build-warnings was given.
12476 if test "${enable_gdb_build_warnings+set}" = set; then :
12477   enableval=$enable_gdb_build_warnings; case "${enableval}" in
12478   yes)  ;;
12479   no)   build_warnings="-w";;
12480   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12481         build_warnings="${build_warnings} ${t}";;
12482   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12483         build_warnings="${t} ${build_warnings}";;
12484   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12485 esac
12486 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12487   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12488 fi
12489 fi
12490 WARN_CFLAGS=""
12491 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12492 then
12493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12494 $as_echo_n "checking compiler warning flags... " >&6; }
12495     # Separate out the -Werror flag as some files just cannot be
12496     # compiled with it enabled.
12497     for w in ${build_warnings}; do
12498         case $w in
12499         -Werr*) WERROR_CFLAGS=-Werror ;;
12500         *) # Check that GCC accepts it
12501             saved_CFLAGS="$CFLAGS"
12502             CFLAGS="$CFLAGS $w"
12503             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h.  */
12505
12506 int
12507 main ()
12508 {
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_compile "$LINENO"; then :
12515   WARN_CFLAGS="${WARN_CFLAGS} $w"
12516 fi
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518             CFLAGS="$saved_CFLAGS"
12519         esac
12520     done
12521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12522 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12523 fi
12524
12525
12526
12527 # In the Cygwin environment, we need some additional flags.
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12529 $as_echo_n "checking for cygwin... " >&6; }
12530 if test "${gdb_cv_os_cygwin+set}" = set; then :
12531   $as_echo_n "(cached) " >&6
12532 else
12533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h.  */
12535
12536 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12537 lose
12538 #endif
12539 _ACEOF
12540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12541   $EGREP "lose" >/dev/null 2>&1; then :
12542   gdb_cv_os_cygwin=yes
12543 else
12544   gdb_cv_os_cygwin=no
12545 fi
12546 rm -f conftest*
12547
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12550 $as_echo "$gdb_cv_os_cygwin" >&6; }
12551
12552
12553 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12554 case ${host} in
12555   *go32* ) SER_HARDWIRE=ser-go32.o ;;
12556   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12557   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12558 esac
12559
12560
12561 # libreadline needs libuser32.a in a cygwin environment
12562 WIN32LIBS=
12563 if test x$gdb_cv_os_cygwin = xyes; then
12564     WIN32LIBS="-luser32"
12565     case "${target}" in
12566         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12567         ;;
12568     esac
12569 fi
12570
12571 # The ser-tcp.c module requires sockets.
12572 case ${host} in
12573   *mingw32*)
12574
12575 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12576
12577     WIN32LIBS="$WIN32LIBS -lws2_32"
12578     ;;
12579 esac
12580
12581
12582 # Add ELF support to GDB, but only if BFD includes ELF support.
12583
12584   OLD_CFLAGS=$CFLAGS
12585   OLD_LDFLAGS=$LDFLAGS
12586   OLD_LIBS=$LIBS
12587   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12588   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
12589   # always want our bfd.
12590   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12591   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12592   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12593   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12594   if test "$plugins" = "yes"; then
12595     LIBS="-ldl $LIBS"
12596   fi
12597   LIBS="-lbfd -liberty $intl $LIBS"
12598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12599 $as_echo_n "checking for ELF support in BFD... " >&6; }
12600 if test "${gdb_cv_var_elf+set}" = set; then :
12601   $as_echo_n "(cached) " >&6
12602 else
12603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h.  */
12605 #include <stdlib.h>
12606   #include "bfd.h"
12607   #include "elf-bfd.h"
12608
12609 int
12610 main ()
12611 {
12612 return bfd_get_elf_phdr_upper_bound (NULL);
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_c_try_link "$LINENO"; then :
12618   gdb_cv_var_elf=yes
12619 else
12620   gdb_cv_var_elf=no
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext \
12623     conftest$ac_exeext conftest.$ac_ext
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12626 $as_echo "$gdb_cv_var_elf" >&6; }
12627   CFLAGS=$OLD_CFLAGS
12628   LDFLAGS=$OLD_LDFLAGS
12629   LIBS=$OLD_LIBS
12630 if test $gdb_cv_var_elf = yes; then
12631   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12632
12633 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12634
12635   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12636   if test "$plugins" = "yes"; then
12637     LIBS="-ldl $LIBS"
12638   fi
12639 fi
12640
12641 # Add macho support to GDB, but only if BFD includes it.
12642
12643   OLD_CFLAGS=$CFLAGS
12644   OLD_LDFLAGS=$LDFLAGS
12645   OLD_LIBS=$LIBS
12646   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12647   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
12648   # always want our bfd.
12649   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12650   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12651   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12652   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12653   if test "$plugins" = "yes"; then
12654     LIBS="-ldl $LIBS"
12655   fi
12656   LIBS="-lbfd -liberty $intl $LIBS"
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
12658 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
12659 if test "${gdb_cv_var_macho+set}" = set; then :
12660   $as_echo_n "(cached) " >&6
12661 else
12662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h.  */
12664 #include <stdlib.h>
12665   #include "bfd.h"
12666   #include "mach-o.h"
12667
12668 int
12669 main ()
12670 {
12671 return bfd_mach_o_lookup_command (NULL, 0, NULL);
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 if ac_fn_c_try_link "$LINENO"; then :
12677   gdb_cv_var_macho=yes
12678 else
12679   gdb_cv_var_macho=no
12680 fi
12681 rm -f core conftest.err conftest.$ac_objext \
12682     conftest$ac_exeext conftest.$ac_ext
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
12685 $as_echo "$gdb_cv_var_macho" >&6; }
12686   CFLAGS=$OLD_CFLAGS
12687   LDFLAGS=$OLD_LDFLAGS
12688   LIBS=$OLD_LIBS
12689 if test $gdb_cv_var_macho = yes; then
12690   CONFIG_OBS="$CONFIG_OBS machoread.o"
12691 fi
12692
12693 # Add SOM support to GDB, but only if BFD includes it.
12694
12695   OLD_CFLAGS=$CFLAGS
12696   OLD_LDFLAGS=$LDFLAGS
12697   OLD_LIBS=$LIBS
12698   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12699   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
12700   # always want our bfd.
12701   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12702   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12703   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12704   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12705   if test "$plugins" = "yes"; then
12706     LIBS="-ldl $LIBS"
12707   fi
12708   LIBS="-lbfd -liberty $intl $LIBS"
12709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
12710 $as_echo_n "checking for SOM support in BFD... " >&6; }
12711 if test "${gdb_cv_var_som+set}" = set; then :
12712   $as_echo_n "(cached) " >&6
12713 else
12714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h.  */
12716 #include <stdlib.h>
12717   #include "bfd.h"
12718   #include "som.h"
12719
12720 int
12721 main ()
12722 {
12723 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 if ac_fn_c_try_link "$LINENO"; then :
12729   gdb_cv_var_som=yes
12730 else
12731   gdb_cv_var_som=no
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext \
12734     conftest$ac_exeext conftest.$ac_ext
12735 fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
12737 $as_echo "$gdb_cv_var_som" >&6; }
12738   CFLAGS=$OLD_CFLAGS
12739   LDFLAGS=$OLD_LDFLAGS
12740   LIBS=$OLD_LIBS
12741 if test $gdb_cv_var_som = yes; then
12742   CONFIG_OBS="$CONFIG_OBS somread.o"
12743 fi
12744
12745 # Add any host-specific objects to GDB.
12746 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12747
12748 # If building on ELF, look for lzma support for embedded compressed debug info.
12749 if test $gdb_cv_var_elf = yes; then
12750
12751 # Check whether --with-lzma was given.
12752 if test "${with_lzma+set}" = set; then :
12753   withval=$with_lzma;
12754 else
12755   with_lzma=auto
12756 fi
12757
12758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
12759 $as_echo_n "checking whether to use lzma... " >&6; }
12760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
12761 $as_echo "$with_lzma" >&6; }
12762
12763   if test "${with_lzma}" != no; then
12764
12765
12766
12767
12768
12769
12770
12771
12772     use_additional=yes
12773
12774   acl_save_prefix="$prefix"
12775   prefix="$acl_final_prefix"
12776   acl_save_exec_prefix="$exec_prefix"
12777   exec_prefix="$acl_final_exec_prefix"
12778
12779     eval additional_includedir=\"$includedir\"
12780     eval additional_libdir=\"$libdir\"
12781
12782   exec_prefix="$acl_save_exec_prefix"
12783   prefix="$acl_save_prefix"
12784
12785
12786 # Check whether --with-liblzma-prefix was given.
12787 if test "${with_liblzma_prefix+set}" = set; then :
12788   withval=$with_liblzma_prefix;
12789     if test "X$withval" = "Xno"; then
12790       use_additional=no
12791     else
12792       if test "X$withval" = "X"; then
12793
12794   acl_save_prefix="$prefix"
12795   prefix="$acl_final_prefix"
12796   acl_save_exec_prefix="$exec_prefix"
12797   exec_prefix="$acl_final_exec_prefix"
12798
12799           eval additional_includedir=\"$includedir\"
12800           eval additional_libdir=\"$libdir\"
12801
12802   exec_prefix="$acl_save_exec_prefix"
12803   prefix="$acl_save_prefix"
12804
12805       else
12806         additional_includedir="$withval/include"
12807         additional_libdir="$withval/lib"
12808       fi
12809     fi
12810
12811 fi
12812
12813       LIBLZMA=
12814   LTLIBLZMA=
12815   INCLZMA=
12816   rpathdirs=
12817   ltrpathdirs=
12818   names_already_handled=
12819   names_next_round='lzma '
12820   while test -n "$names_next_round"; do
12821     names_this_round="$names_next_round"
12822     names_next_round=
12823     for name in $names_this_round; do
12824       already_handled=
12825       for n in $names_already_handled; do
12826         if test "$n" = "$name"; then
12827           already_handled=yes
12828           break
12829         fi
12830       done
12831       if test -z "$already_handled"; then
12832         names_already_handled="$names_already_handled $name"
12833                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12834         eval value=\"\$HAVE_LIB$uppername\"
12835         if test -n "$value"; then
12836           if test "$value" = yes; then
12837             eval value=\"\$LIB$uppername\"
12838             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
12839             eval value=\"\$LTLIB$uppername\"
12840             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
12841           else
12842                                     :
12843           fi
12844         else
12845                               found_dir=
12846           found_la=
12847           found_so=
12848           found_a=
12849           if test $use_additional = yes; then
12850             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12851               found_dir="$additional_libdir"
12852               found_so="$additional_libdir/lib$name.$shlibext"
12853               if test -f "$additional_libdir/lib$name.la"; then
12854                 found_la="$additional_libdir/lib$name.la"
12855               fi
12856             else
12857               if test -f "$additional_libdir/lib$name.$libext"; then
12858                 found_dir="$additional_libdir"
12859                 found_a="$additional_libdir/lib$name.$libext"
12860                 if test -f "$additional_libdir/lib$name.la"; then
12861                   found_la="$additional_libdir/lib$name.la"
12862                 fi
12863               fi
12864             fi
12865           fi
12866           if test "X$found_dir" = "X"; then
12867             for x in $LDFLAGS $LTLIBLZMA; do
12868
12869   acl_save_prefix="$prefix"
12870   prefix="$acl_final_prefix"
12871   acl_save_exec_prefix="$exec_prefix"
12872   exec_prefix="$acl_final_exec_prefix"
12873   eval x=\"$x\"
12874   exec_prefix="$acl_save_exec_prefix"
12875   prefix="$acl_save_prefix"
12876
12877               case "$x" in
12878                 -L*)
12879                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12880                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12881                     found_dir="$dir"
12882                     found_so="$dir/lib$name.$shlibext"
12883                     if test -f "$dir/lib$name.la"; then
12884                       found_la="$dir/lib$name.la"
12885                     fi
12886                   else
12887                     if test -f "$dir/lib$name.$libext"; then
12888                       found_dir="$dir"
12889                       found_a="$dir/lib$name.$libext"
12890                       if test -f "$dir/lib$name.la"; then
12891                         found_la="$dir/lib$name.la"
12892                       fi
12893                     fi
12894                   fi
12895                   ;;
12896               esac
12897               if test "X$found_dir" != "X"; then
12898                 break
12899               fi
12900             done
12901           fi
12902           if test "X$found_dir" != "X"; then
12903                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
12904             if test "X$found_so" != "X"; then
12905                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12906                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12907               else
12908                                                                                 haveit=
12909                 for x in $ltrpathdirs; do
12910                   if test "X$x" = "X$found_dir"; then
12911                     haveit=yes
12912                     break
12913                   fi
12914                 done
12915                 if test -z "$haveit"; then
12916                   ltrpathdirs="$ltrpathdirs $found_dir"
12917                 fi
12918                                 if test "$hardcode_direct" = yes; then
12919                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12920                 else
12921                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12922                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12923                                                             haveit=
12924                     for x in $rpathdirs; do
12925                       if test "X$x" = "X$found_dir"; then
12926                         haveit=yes
12927                         break
12928                       fi
12929                     done
12930                     if test -z "$haveit"; then
12931                       rpathdirs="$rpathdirs $found_dir"
12932                     fi
12933                   else
12934                                                                                 haveit=
12935                     for x in $LDFLAGS $LIBLZMA; do
12936
12937   acl_save_prefix="$prefix"
12938   prefix="$acl_final_prefix"
12939   acl_save_exec_prefix="$exec_prefix"
12940   exec_prefix="$acl_final_exec_prefix"
12941   eval x=\"$x\"
12942   exec_prefix="$acl_save_exec_prefix"
12943   prefix="$acl_save_prefix"
12944
12945                       if test "X$x" = "X-L$found_dir"; then
12946                         haveit=yes
12947                         break
12948                       fi
12949                     done
12950                     if test -z "$haveit"; then
12951                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
12952                     fi
12953                     if test "$hardcode_minus_L" != no; then
12954                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
12955                     else
12956                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
12957                     fi
12958                   fi
12959                 fi
12960               fi
12961             else
12962               if test "X$found_a" != "X"; then
12963                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
12964               else
12965                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
12966               fi
12967             fi
12968                         additional_includedir=
12969             case "$found_dir" in
12970               */lib | */lib/)
12971                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12972                 additional_includedir="$basedir/include"
12973                 ;;
12974             esac
12975             if test "X$additional_includedir" != "X"; then
12976                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12977                 haveit=
12978                 if test "X$additional_includedir" = "X/usr/local/include"; then
12979                   if test -n "$GCC"; then
12980                     case $host_os in
12981                       linux*) haveit=yes;;
12982                     esac
12983                   fi
12984                 fi
12985                 if test -z "$haveit"; then
12986                   for x in $CPPFLAGS $INCLZMA; do
12987
12988   acl_save_prefix="$prefix"
12989   prefix="$acl_final_prefix"
12990   acl_save_exec_prefix="$exec_prefix"
12991   exec_prefix="$acl_final_exec_prefix"
12992   eval x=\"$x\"
12993   exec_prefix="$acl_save_exec_prefix"
12994   prefix="$acl_save_prefix"
12995
12996                     if test "X$x" = "X-I$additional_includedir"; then
12997                       haveit=yes
12998                       break
12999                     fi
13000                   done
13001                   if test -z "$haveit"; then
13002                     if test -d "$additional_includedir"; then
13003                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13004                     fi
13005                   fi
13006                 fi
13007               fi
13008             fi
13009                         if test -n "$found_la"; then
13010                                                         save_libdir="$libdir"
13011               case "$found_la" in
13012                 */* | *\\*) . "$found_la" ;;
13013                 *) . "./$found_la" ;;
13014               esac
13015               libdir="$save_libdir"
13016                             for dep in $dependency_libs; do
13017                 case "$dep" in
13018                   -L*)
13019                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13020                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13021                       haveit=
13022                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13023                         if test -n "$GCC"; then
13024                           case $host_os in
13025                             linux*) haveit=yes;;
13026                           esac
13027                         fi
13028                       fi
13029                       if test -z "$haveit"; then
13030                         haveit=
13031                         for x in $LDFLAGS $LIBLZMA; do
13032
13033   acl_save_prefix="$prefix"
13034   prefix="$acl_final_prefix"
13035   acl_save_exec_prefix="$exec_prefix"
13036   exec_prefix="$acl_final_exec_prefix"
13037   eval x=\"$x\"
13038   exec_prefix="$acl_save_exec_prefix"
13039   prefix="$acl_save_prefix"
13040
13041                           if test "X$x" = "X-L$additional_libdir"; then
13042                             haveit=yes
13043                             break
13044                           fi
13045                         done
13046                         if test -z "$haveit"; then
13047                           if test -d "$additional_libdir"; then
13048                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13049                           fi
13050                         fi
13051                         haveit=
13052                         for x in $LDFLAGS $LTLIBLZMA; do
13053
13054   acl_save_prefix="$prefix"
13055   prefix="$acl_final_prefix"
13056   acl_save_exec_prefix="$exec_prefix"
13057   exec_prefix="$acl_final_exec_prefix"
13058   eval x=\"$x\"
13059   exec_prefix="$acl_save_exec_prefix"
13060   prefix="$acl_save_prefix"
13061
13062                           if test "X$x" = "X-L$additional_libdir"; then
13063                             haveit=yes
13064                             break
13065                           fi
13066                         done
13067                         if test -z "$haveit"; then
13068                           if test -d "$additional_libdir"; then
13069                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
13070                           fi
13071                         fi
13072                       fi
13073                     fi
13074                     ;;
13075                   -R*)
13076                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13077                     if test "$enable_rpath" != no; then
13078                                                                   haveit=
13079                       for x in $rpathdirs; do
13080                         if test "X$x" = "X$dir"; then
13081                           haveit=yes
13082                           break
13083                         fi
13084                       done
13085                       if test -z "$haveit"; then
13086                         rpathdirs="$rpathdirs $dir"
13087                       fi
13088                                                                   haveit=
13089                       for x in $ltrpathdirs; do
13090                         if test "X$x" = "X$dir"; then
13091                           haveit=yes
13092                           break
13093                         fi
13094                       done
13095                       if test -z "$haveit"; then
13096                         ltrpathdirs="$ltrpathdirs $dir"
13097                       fi
13098                     fi
13099                     ;;
13100                   -l*)
13101                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13102                     ;;
13103                   *.la)
13104                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13105                     ;;
13106                   *)
13107                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
13108                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
13109                     ;;
13110                 esac
13111               done
13112             fi
13113           else
13114                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13115             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
13116           fi
13117         fi
13118       fi
13119     done
13120   done
13121   if test "X$rpathdirs" != "X"; then
13122     if test -n "$hardcode_libdir_separator"; then
13123                         alldirs=
13124       for found_dir in $rpathdirs; do
13125         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13126       done
13127             acl_save_libdir="$libdir"
13128       libdir="$alldirs"
13129       eval flag=\"$hardcode_libdir_flag_spec\"
13130       libdir="$acl_save_libdir"
13131       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13132     else
13133             for found_dir in $rpathdirs; do
13134         acl_save_libdir="$libdir"
13135         libdir="$found_dir"
13136         eval flag=\"$hardcode_libdir_flag_spec\"
13137         libdir="$acl_save_libdir"
13138         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
13139       done
13140     fi
13141   fi
13142   if test "X$ltrpathdirs" != "X"; then
13143             for found_dir in $ltrpathdirs; do
13144       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
13145     done
13146   fi
13147
13148
13149         ac_save_CPPFLAGS="$CPPFLAGS"
13150
13151   for element in $INCLZMA; do
13152     haveit=
13153     for x in $CPPFLAGS; do
13154
13155   acl_save_prefix="$prefix"
13156   prefix="$acl_final_prefix"
13157   acl_save_exec_prefix="$exec_prefix"
13158   exec_prefix="$acl_final_exec_prefix"
13159   eval x=\"$x\"
13160   exec_prefix="$acl_save_exec_prefix"
13161   prefix="$acl_save_prefix"
13162
13163       if test "X$x" = "X$element"; then
13164         haveit=yes
13165         break
13166       fi
13167     done
13168     if test -z "$haveit"; then
13169       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13170     fi
13171   done
13172
13173
13174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
13175 $as_echo_n "checking for liblzma... " >&6; }
13176 if test "${ac_cv_liblzma+set}" = set; then :
13177   $as_echo_n "(cached) " >&6
13178 else
13179
13180     ac_save_LIBS="$LIBS"
13181     LIBS="$LIBS $LIBLZMA"
13182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h.  */
13184 #include "lzma.h"
13185 int
13186 main ()
13187 {
13188 lzma_index_iter iter;
13189                            lzma_index_iter_init (&iter, 0);
13190                            lzma_mf_is_supported (LZMA_MF_HC3);
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196   ac_cv_liblzma=yes
13197 else
13198   ac_cv_liblzma=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext \
13201     conftest$ac_exeext conftest.$ac_ext
13202     LIBS="$ac_save_LIBS"
13203
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
13206 $as_echo "$ac_cv_liblzma" >&6; }
13207   if test "$ac_cv_liblzma" = yes; then
13208     HAVE_LIBLZMA=yes
13209
13210 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13211
13212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
13213 $as_echo_n "checking how to link with liblzma... " >&6; }
13214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
13215 $as_echo "$LIBLZMA" >&6; }
13216   else
13217     HAVE_LIBLZMA=no
13218             CPPFLAGS="$ac_save_CPPFLAGS"
13219     LIBLZMA=
13220     LTLIBLZMA=
13221   fi
13222
13223
13224
13225
13226
13227
13228     if test "$HAVE_LIBLZMA" != yes; then
13229       if test "$with_lzma" = yes; then
13230         as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
13231       fi
13232     fi
13233   fi
13234 fi
13235
13236 LIBGUI="../libgui/src/libgui.a"
13237 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13238
13239
13240
13241 WIN32LDAPP=
13242
13243
13244
13245 case "${host}" in
13246 *-*-cygwin* | *-*-mingw* )
13247     configdir="win"
13248     ;;
13249 *)
13250     configdir="unix"
13251     ;;
13252 esac
13253
13254 GDBTKLIBS=
13255 if test "${enable_gdbtk}" = "yes"; then
13256
13257     # Gdbtk must have an absolute path to srcdir in order to run
13258     # properly when not installed.
13259     here=`pwd`
13260     cd ${srcdir}
13261     GDBTK_SRC_DIR=`pwd`
13262     cd $here
13263
13264
13265     #
13266     # Ok, lets find the tcl configuration
13267     # First, look for one uninstalled.
13268     # the alternative search directory is invoked by --with-tcl
13269     #
13270
13271     if test x"${no_tcl}" = x ; then
13272         # we reset no_tcl in case something fails here
13273         no_tcl=true
13274
13275 # Check whether --with-tcl was given.
13276 if test "${with_tcl+set}" = set; then :
13277   withval=$with_tcl; with_tclconfig=${withval}
13278 fi
13279
13280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13281 $as_echo_n "checking for Tcl configuration... " >&6; }
13282         if test "${ac_cv_c_tclconfig+set}" = set; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285
13286
13287             # First check to see if --with-tcl was specified.
13288             case "${host}" in
13289                 *-*-cygwin*) platDir="win" ;;
13290                 *) platDir="unix" ;;
13291             esac
13292             if test x"${with_tclconfig}" != x ; then
13293                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13294                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13295                 else
13296                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13297                 fi
13298             fi
13299
13300             # then check for a private Tcl installation
13301             if test x"${ac_cv_c_tclconfig}" = x ; then
13302                 for i in \
13303                         ../tcl \
13304                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13305                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13306                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13307                         ../../tcl \
13308                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13309                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13310                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13311                         ../../../tcl \
13312                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13313                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13314                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13315                     if test -f "$i/$platDir/tclConfig.sh" ; then
13316                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13317                         break
13318                     fi
13319                 done
13320             fi
13321
13322             # on Darwin, check in Framework installation locations
13323             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13324                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13325                         `ls -d /Library/Frameworks 2>/dev/null` \
13326                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
13327                         `ls -d /System/Library/Frameworks 2>/dev/null` \
13328                         ; do
13329                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13330                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13331                         break
13332                     fi
13333                 done
13334             fi
13335
13336             # check in a few common install locations
13337             if test x"${ac_cv_c_tclconfig}" = x ; then
13338                 for i in `ls -d ${libdir} 2>/dev/null` \
13339                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
13340                         `ls -d ${prefix}/lib 2>/dev/null` \
13341                         `ls -d /usr/local/lib 2>/dev/null` \
13342                         `ls -d /usr/contrib/lib 2>/dev/null` \
13343                         `ls -d /usr/lib 2>/dev/null` \
13344                         ; do
13345                     if test -f "$i/tclConfig.sh" ; then
13346                         ac_cv_c_tclconfig=`(cd $i; pwd)`
13347                         break
13348                     fi
13349                 done
13350             fi
13351
13352             # check in a few other private locations
13353             if test x"${ac_cv_c_tclconfig}" = x ; then
13354                 for i in \
13355                         ${srcdir}/../tcl \
13356                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13357                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13358                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13359                     if test -f "$i/$platDir/tclConfig.sh" ; then
13360                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13361                     break
13362                 fi
13363                 done
13364             fi
13365
13366 fi
13367
13368
13369         if test x"${ac_cv_c_tclconfig}" = x ; then
13370             TCL_BIN_DIR="# no Tcl configs found"
13371             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13372 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13373         else
13374             no_tcl=
13375             TCL_BIN_DIR=${ac_cv_c_tclconfig}
13376             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13377 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13378         fi
13379     fi
13380
13381
13382     # If $no_tk is nonempty, then we can't do Tk, and there is no
13383     # point to doing Tcl.
13384
13385     #
13386     # Ok, lets find the tk configuration
13387     # First, look for one uninstalled.
13388     # the alternative search directory is invoked by --with-tk
13389     #
13390
13391     if test x"${no_tk}" = x ; then
13392         # we reset no_tk in case something fails here
13393         no_tk=true
13394
13395 # Check whether --with-tk was given.
13396 if test "${with_tk+set}" = set; then :
13397   withval=$with_tk; with_tkconfig=${withval}
13398 fi
13399
13400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13401 $as_echo_n "checking for Tk configuration... " >&6; }
13402         if test "${ac_cv_c_tkconfig+set}" = set; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405
13406
13407             # First check to see if --with-tkconfig was specified.
13408             if test x"${with_tkconfig}" != x ; then
13409                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13410                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13411                 else
13412                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13413                 fi
13414             fi
13415
13416             # then check for a private Tk library
13417             case "${host}" in
13418                 *-*-cygwin*) platDir="win" ;;
13419                 *) platDir="unix" ;;
13420             esac
13421             if test x"${ac_cv_c_tkconfig}" = x ; then
13422                 for i in \
13423                         ../tk \
13424                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13425                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13426                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13427                         ../../tk \
13428                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13429                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13430                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13431                         ../../../tk \
13432                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13433                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13434                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13435                     if test -f "$i/$platDir/tkConfig.sh" ; then
13436                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13437                         break
13438                     fi
13439                 done
13440             fi
13441
13442             # on Darwin, check in Framework installation locations
13443             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13444                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13445                         `ls -d /Library/Frameworks 2>/dev/null` \
13446                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
13447                         `ls -d /System/Library/Frameworks 2>/dev/null` \
13448                         ; do
13449                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
13450                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13451                         break
13452                     fi
13453                 done
13454             fi
13455
13456             # check in a few common install locations
13457             if test x"${ac_cv_c_tkconfig}" = x ; then
13458                 for i in `ls -d ${libdir} 2>/dev/null` \
13459                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
13460                         `ls -d ${prefix}/lib 2>/dev/null` \
13461                         `ls -d /usr/local/lib 2>/dev/null` \
13462                         `ls -d /usr/contrib/lib 2>/dev/null` \
13463                         `ls -d /usr/lib 2>/dev/null` \
13464                         ; do
13465                     if test -f "$i/tkConfig.sh" ; then
13466                         ac_cv_c_tkconfig=`(cd $i; pwd)`
13467                         break
13468                     fi
13469                 done
13470             fi
13471             # check in a few other private locations
13472             if test x"${ac_cv_c_tkconfig}" = x ; then
13473                 for i in \
13474                         ${srcdir}/../tk \
13475                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13476                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13477                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13478                     if test -f "$i/$platDir/tkConfig.sh" ; then
13479                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13480                         break
13481                     fi
13482                 done
13483             fi
13484
13485 fi
13486
13487
13488         if test x"${ac_cv_c_tkconfig}" = x ; then
13489             TK_BIN_DIR="# no Tk configs found"
13490             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13491 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13492         else
13493             no_tk=
13494             TK_BIN_DIR=${ac_cv_c_tkconfig}
13495             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13496 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13497         fi
13498     fi
13499
13500
13501     if test -z "${no_tcl}" -a -z "${no_tk}"; then
13502
13503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13504 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13505
13506     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13508 $as_echo "loading" >&6; }
13509         . ${TCL_BIN_DIR}/tclConfig.sh
13510     else
13511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13512 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13513     fi
13514
13515     # eval is required to do the TCL_DBGX substitution
13516     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13517     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13518
13519     # If the TCL_BIN_DIR is the build directory (not the install directory),
13520     # then set the common variable name to the value of the build variables.
13521     # For example, the variable TCL_LIB_SPEC will be set to the value
13522     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13523     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13524     # installed and uninstalled version of Tcl.
13525     if test -f "${TCL_BIN_DIR}/Makefile" ; then
13526         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13527         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13528         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13529     elif test "`uname -s`" = "Darwin"; then
13530         # If Tcl was built as a framework, attempt to use the libraries
13531         # from the framework at the given location so that linking works
13532         # against Tcl.framework installed in an arbitrary location.
13533         case ${TCL_DEFS} in
13534             *TCL_FRAMEWORK*)
13535                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13536                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13537                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13538                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13539                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13540                             break
13541                         fi
13542                     done
13543                 fi
13544                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13545                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13546                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13547                 fi
13548                 ;;
13549         esac
13550     fi
13551
13552     # eval is required to do the TCL_DBGX substitution
13553     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13554     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13555     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13556     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572         # Check for in-tree tcl
13573         here=`pwd`
13574         cd ${srcdir}/..
13575         topdir=`pwd`
13576         cd ${here}
13577
13578         intree="no"
13579         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13580           intree="yes"
13581         fi
13582
13583         # Find Tcl private headers
13584         if test x"${intree}" = xno; then
13585
13586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13587 $as_echo_n "checking for Tcl private headers... " >&6; }
13588   private_dir=""
13589   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13590   if test -f ${dir}/tclInt.h ; then
13591     private_dir=${dir}
13592   fi
13593
13594   if test x"${private_dir}" = x; then
13595     as_fn_error "could not find private Tcl headers" "$LINENO" 5
13596   else
13597     TCL_PRIVATE_INCLUDE="-I${private_dir}"
13598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13599 $as_echo "${private_dir}" >&6; }
13600   fi
13601
13602           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13603           TCL_LIBRARY="${TCL_LIB_SPEC}"
13604           TCL_DEPS=""
13605         else
13606           # If building tcl in the same src tree, private headers
13607           # are not needed, but we need to be sure to use the right
13608           # headers library
13609           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13610           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13611           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13612         fi
13613
13614
13615
13616
13617
13618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13619 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13620
13621     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13622         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13623 $as_echo "loading" >&6; }
13624         . ${TK_BIN_DIR}/tkConfig.sh
13625     else
13626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13627 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13628     fi
13629
13630     # eval is required to do the TK_DBGX substitution
13631     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13632     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13633
13634     # If the TK_BIN_DIR is the build directory (not the install directory),
13635     # then set the common variable name to the value of the build variables.
13636     # For example, the variable TK_LIB_SPEC will be set to the value
13637     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13638     # instead of TK_BUILD_LIB_SPEC since it will work with both an
13639     # installed and uninstalled version of Tcl.
13640     if test -f "${TK_BIN_DIR}/Makefile" ; then
13641         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13642         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
13643         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
13644     elif test "`uname -s`" = "Darwin"; then
13645         # If Tk was built as a framework, attempt to use the libraries
13646         # from the framework at the given location so that linking works
13647         # against Tk.framework installed in an arbitrary location.
13648         case ${TK_DEFS} in
13649             *TK_FRAMEWORK*)
13650                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13651                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
13652                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13653                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13654                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13655                             break
13656                         fi
13657                     done
13658                 fi
13659                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13660                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13661                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13662                 fi
13663                 ;;
13664         esac
13665     fi
13666
13667     # eval is required to do the TK_DBGX substitution
13668     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13669     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13670     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13671     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686         # Check for in-tree Tk
13687         intree="no"
13688         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13689           intree="yes"
13690         fi
13691
13692         # Find Tk private headers
13693         if test x"${intree}" = xno; then
13694
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13696 $as_echo_n "checking for Tk private headers... " >&6; }
13697   private_dir=""
13698   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13699   if test -f ${dir}/tkInt.h; then
13700     private_dir=${dir}
13701   fi
13702
13703   if test x"${private_dir}" = x; then
13704     as_fn_error "could not find Tk private headers" "$LINENO" 5
13705   else
13706     TK_PRIVATE_INCLUDE="-I${private_dir}"
13707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13708 $as_echo "${private_dir}" >&6; }
13709   fi
13710
13711           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13712           TK_LIBRARY=${TK_LIB_SPEC}
13713           TK_DEPS=""
13714         else
13715           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13716           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13717           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13718         fi
13719
13720
13721
13722
13723
13724         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13725
13726         # Include some libraries that Tcl and Tk want.
13727         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13728         # Yes, the ordering seems wrong here.  But it isn't.
13729         # TK_LIBS is the list of libraries that need to be linked
13730         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
13731         # were in LIBS then any link tests after this point would
13732         # try to include things like `$(LIBGUI)', which wouldn't work.
13733         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13734
13735         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13736         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13737         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13738         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13739         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13740         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13741         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13742
13743         if test x$gdb_cv_os_cygwin = xyes; then
13744           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13745           WIN32LDAPP="-Wl,--subsystem,console"
13746           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13747         fi
13748
13749         subdirs="$subdirs gdbtk"
13750
13751     fi
13752 fi
13753
13754
13755
13756
13757
13758
13759
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13762 $as_echo_n "checking for X... " >&6; }
13763
13764
13765 # Check whether --with-x was given.
13766 if test "${with_x+set}" = set; then :
13767   withval=$with_x;
13768 fi
13769
13770 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13771 if test "x$with_x" = xno; then
13772   # The user explicitly disabled X.
13773   have_x=disabled
13774 else
13775   case $x_includes,$x_libraries in #(
13776     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13777     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13778   $as_echo_n "(cached) " >&6
13779 else
13780   # One or both of the vars are not set, and there is no cached value.
13781 ac_x_includes=no ac_x_libraries=no
13782 rm -f -r conftest.dir
13783 if mkdir conftest.dir; then
13784   cd conftest.dir
13785   cat >Imakefile <<'_ACEOF'
13786 incroot:
13787         @echo incroot='${INCROOT}'
13788 usrlibdir:
13789         @echo usrlibdir='${USRLIBDIR}'
13790 libdir:
13791         @echo libdir='${LIBDIR}'
13792 _ACEOF
13793   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13794     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13795     for ac_var in incroot usrlibdir libdir; do
13796       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13797     done
13798     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13799     for ac_extension in a so sl dylib la dll; do
13800       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13801          test -f "$ac_im_libdir/libX11.$ac_extension"; then
13802         ac_im_usrlibdir=$ac_im_libdir; break
13803       fi
13804     done
13805     # Screen out bogus values from the imake configuration.  They are
13806     # bogus both because they are the default anyway, and because
13807     # using them would break gcc on systems where it needs fixed includes.
13808     case $ac_im_incroot in
13809         /usr/include) ac_x_includes= ;;
13810         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13811     esac
13812     case $ac_im_usrlibdir in
13813         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13814         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13815     esac
13816   fi
13817   cd ..
13818   rm -f -r conftest.dir
13819 fi
13820
13821 # Standard set of common directories for X headers.
13822 # Check X11 before X11Rn because it is often a symlink to the current release.
13823 ac_x_header_dirs='
13824 /usr/X11/include
13825 /usr/X11R7/include
13826 /usr/X11R6/include
13827 /usr/X11R5/include
13828 /usr/X11R4/include
13829
13830 /usr/include/X11
13831 /usr/include/X11R7
13832 /usr/include/X11R6
13833 /usr/include/X11R5
13834 /usr/include/X11R4
13835
13836 /usr/local/X11/include
13837 /usr/local/X11R7/include
13838 /usr/local/X11R6/include
13839 /usr/local/X11R5/include
13840 /usr/local/X11R4/include
13841
13842 /usr/local/include/X11
13843 /usr/local/include/X11R7
13844 /usr/local/include/X11R6
13845 /usr/local/include/X11R5
13846 /usr/local/include/X11R4
13847
13848 /usr/X386/include
13849 /usr/x386/include
13850 /usr/XFree86/include/X11
13851
13852 /usr/include
13853 /usr/local/include
13854 /usr/unsupported/include
13855 /usr/athena/include
13856 /usr/local/x11r5/include
13857 /usr/lpp/Xamples/include
13858
13859 /usr/openwin/include
13860 /usr/openwin/share/include'
13861
13862 if test "$ac_x_includes" = no; then
13863   # Guess where to find include files, by looking for Xlib.h.
13864   # First, try using that file with no special directory specified.
13865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h.  */
13867 #include <X11/Xlib.h>
13868 _ACEOF
13869 if ac_fn_c_try_cpp "$LINENO"; then :
13870   # We can compile using X headers with no special include directory.
13871 ac_x_includes=
13872 else
13873   for ac_dir in $ac_x_header_dirs; do
13874   if test -r "$ac_dir/X11/Xlib.h"; then
13875     ac_x_includes=$ac_dir
13876     break
13877   fi
13878 done
13879 fi
13880 rm -f conftest.err conftest.$ac_ext
13881 fi # $ac_x_includes = no
13882
13883 if test "$ac_x_libraries" = no; then
13884   # Check for the libraries.
13885   # See if we find them without any special options.
13886   # Don't add to $LIBS permanently.
13887   ac_save_LIBS=$LIBS
13888   LIBS="-lX11 $LIBS"
13889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h.  */
13891 #include <X11/Xlib.h>
13892 int
13893 main ()
13894 {
13895 XrmInitialize ()
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_link "$LINENO"; then :
13901   LIBS=$ac_save_LIBS
13902 # We can link X programs with no special library path.
13903 ac_x_libraries=
13904 else
13905   LIBS=$ac_save_LIBS
13906 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13907 do
13908   # Don't even attempt the hair of trying to link an X program!
13909   for ac_extension in a so sl dylib la dll; do
13910     if test -r "$ac_dir/libX11.$ac_extension"; then
13911       ac_x_libraries=$ac_dir
13912       break 2
13913     fi
13914   done
13915 done
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext \
13918     conftest$ac_exeext conftest.$ac_ext
13919 fi # $ac_x_libraries = no
13920
13921 case $ac_x_includes,$ac_x_libraries in #(
13922   no,* | *,no | *\'*)
13923     # Didn't find X, or a directory has "'" in its name.
13924     ac_cv_have_x="have_x=no";; #(
13925   *)
13926     # Record where we found X for the cache.
13927     ac_cv_have_x="have_x=yes\
13928         ac_x_includes='$ac_x_includes'\
13929         ac_x_libraries='$ac_x_libraries'"
13930 esac
13931 fi
13932 ;; #(
13933     *) have_x=yes;;
13934   esac
13935   eval "$ac_cv_have_x"
13936 fi # $with_x != no
13937
13938 if test "$have_x" != yes; then
13939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13940 $as_echo "$have_x" >&6; }
13941   no_x=yes
13942 else
13943   # If each of the values was on the command line, it overrides each guess.
13944   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13945   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13946   # Update the cache value to reflect the command line values.
13947   ac_cv_have_x="have_x=yes\
13948         ac_x_includes='$x_includes'\
13949         ac_x_libraries='$x_libraries'"
13950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13951 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13952 fi
13953
13954
13955 # Unlike the sim directory, whether a simulator is linked is controlled by
13956 # presence of a gdb_sim definition in the target configure.tgt entry.
13957 # This code just checks for a few cases where we'd like to ignore those
13958 # definitions, even when they're present in the '.mt' file.  These cases
13959 # are when --disable-sim is specified, or if the simulator directory is
13960 # not part of the source tree.
13961 #
13962 # Check whether --enable-sim was given.
13963 if test "${enable_sim+set}" = set; then :
13964   enableval=$enable_sim; echo "enable_sim = $enable_sim";
13965  echo "enableval = ${enableval}";
13966  case "${enableval}" in
13967   yes) ignore_sim=false ;;
13968   no)  ignore_sim=true ;;
13969   *)   ignore_sim=false ;;
13970  esac
13971 else
13972   ignore_sim=false
13973 fi
13974
13975
13976 if test ! -d "${srcdir}/../sim"; then
13977   ignore_sim=true
13978 fi
13979
13980 SIM=
13981 SIM_OBS=
13982 if test "${ignore_sim}" = "false"; then
13983   if test x"${gdb_sim}" != x ; then
13984     SIM="${gdb_sim}"
13985     SIM_OBS="remote-sim.o"
13986
13987 $as_echo "#define WITH_SIM 1" >>confdefs.h
13988
13989   fi
13990 fi
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005 # List of host floatformats.
14006
14007 cat >>confdefs.h <<_ACEOF
14008 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14009 _ACEOF
14010
14011
14012 cat >>confdefs.h <<_ACEOF
14013 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14014 _ACEOF
14015
14016
14017 cat >>confdefs.h <<_ACEOF
14018 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14019 _ACEOF
14020
14021
14022 # target_subdir is used by the testsuite to find the target libraries.
14023 target_subdir=
14024 if test "${host}" != "${target}"; then
14025     target_subdir="${target_alias}/"
14026 fi
14027
14028
14029 frags=
14030 if test "${gdb_native}" = "yes"; then
14031   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14032   if test ! -f ${host_makefile_frag}; then
14033     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14034   fi
14035   frags="$frags $host_makefile_frag"
14036 else
14037   host_makefile_frag=/dev/null
14038 fi
14039
14040
14041
14042
14043 if test "${gdb_native}" = "yes"; then
14044 # We pick this up from the host configuration file (.mh) because we
14045 # do not have a native configuration Makefile fragment.
14046 nativefile=`sed -n '
14047 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
14048 ' ${host_makefile_frag}`
14049 fi
14050
14051
14052 if test x"${gdb_osabi}" != x ; then
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define GDB_OSABI_DEFAULT $gdb_osabi
14056 _ACEOF
14057
14058 fi
14059
14060 # Enable multi-ice-gdb-server.
14061 # Check whether --enable-multi-ice was given.
14062 if test "${enable_multi_ice+set}" = set; then :
14063   enableval=$enable_multi_ice; case $enableval in
14064     yes | no)
14065       ;;
14066     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14067   esac
14068 fi
14069
14070 if test "x$enable_multi_ice" = xyes; then
14071    subdirs="$subdirs multi-ice"
14072
14073 fi
14074
14075 # Check whether --enable-gdbserver was given.
14076 if test "${enable_gdbserver+set}" = set; then :
14077   enableval=$enable_gdbserver; case "${enableval}" in
14078   yes| no|auto) ;;
14079   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
14080 esac
14081 else
14082   enable_gdbserver=auto
14083 fi
14084
14085
14086 # We only build gdbserver automatically in a native configuration, and
14087 # only if the user did not explicitly disable its build.
14088 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14090 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14091   if test "x$build_gdbserver" = xyes; then
14092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14093 $as_echo "yes" >&6; }
14094     subdirs="$subdirs gdbserver"
14095
14096     gdbserver_build_enabled=yes
14097   else
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099 $as_echo "no" >&6; }
14100   fi
14101 fi
14102
14103 # If the user explicitly request the gdbserver to be built, verify that
14104 # we were in fact able to enable it.
14105 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
14106   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
14107 fi
14108
14109 # Check for babeltrace and babeltrace-ctf
14110
14111 # Check whether --with-babeltrace was given.
14112 if test "${with_babeltrace+set}" = set; then :
14113   withval=$with_babeltrace;
14114 else
14115   with_babeltrace=auto
14116 fi
14117
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
14119 $as_echo_n "checking whether to use babeltrace... " >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
14121 $as_echo "$with_babeltrace" >&6; }
14122
14123 if test "x$with_babeltrace" = "xno"; then
14124   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
14125 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
14126 else
14127   # Append -Werror to CFLAGS so that configure can catch the warning
14128   # "assignment from incompatible pointer type", which is related to
14129   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
14130   # in GDB, while babeltrace 1.0.3 is broken.
14131   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
14132   # safe to save and restore CFLAGS here.
14133   saved_CFLAGS=$CFLAGS
14134   CFLAGS="$CFLAGS -Werror"
14135
14136
14137
14138
14139
14140
14141
14142
14143     use_additional=yes
14144
14145   acl_save_prefix="$prefix"
14146   prefix="$acl_final_prefix"
14147   acl_save_exec_prefix="$exec_prefix"
14148   exec_prefix="$acl_final_exec_prefix"
14149
14150     eval additional_includedir=\"$includedir\"
14151     eval additional_libdir=\"$libdir\"
14152
14153   exec_prefix="$acl_save_exec_prefix"
14154   prefix="$acl_save_prefix"
14155
14156
14157 # Check whether --with-libbabeltrace-prefix was given.
14158 if test "${with_libbabeltrace_prefix+set}" = set; then :
14159   withval=$with_libbabeltrace_prefix;
14160     if test "X$withval" = "Xno"; then
14161       use_additional=no
14162     else
14163       if test "X$withval" = "X"; then
14164
14165   acl_save_prefix="$prefix"
14166   prefix="$acl_final_prefix"
14167   acl_save_exec_prefix="$exec_prefix"
14168   exec_prefix="$acl_final_exec_prefix"
14169
14170           eval additional_includedir=\"$includedir\"
14171           eval additional_libdir=\"$libdir\"
14172
14173   exec_prefix="$acl_save_exec_prefix"
14174   prefix="$acl_save_prefix"
14175
14176       else
14177         additional_includedir="$withval/include"
14178         additional_libdir="$withval/lib"
14179       fi
14180     fi
14181
14182 fi
14183
14184       LIBBABELTRACE=
14185   LTLIBBABELTRACE=
14186   INCBABELTRACE=
14187   rpathdirs=
14188   ltrpathdirs=
14189   names_already_handled=
14190   names_next_round='babeltrace babeltrace-ctf'
14191   while test -n "$names_next_round"; do
14192     names_this_round="$names_next_round"
14193     names_next_round=
14194     for name in $names_this_round; do
14195       already_handled=
14196       for n in $names_already_handled; do
14197         if test "$n" = "$name"; then
14198           already_handled=yes
14199           break
14200         fi
14201       done
14202       if test -z "$already_handled"; then
14203         names_already_handled="$names_already_handled $name"
14204                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14205         eval value=\"\$HAVE_LIB$uppername\"
14206         if test -n "$value"; then
14207           if test "$value" = yes; then
14208             eval value=\"\$LIB$uppername\"
14209             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
14210             eval value=\"\$LTLIB$uppername\"
14211             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
14212           else
14213                                     :
14214           fi
14215         else
14216                               found_dir=
14217           found_la=
14218           found_so=
14219           found_a=
14220           if test $use_additional = yes; then
14221             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14222               found_dir="$additional_libdir"
14223               found_so="$additional_libdir/lib$name.$shlibext"
14224               if test -f "$additional_libdir/lib$name.la"; then
14225                 found_la="$additional_libdir/lib$name.la"
14226               fi
14227             else
14228               if test -f "$additional_libdir/lib$name.$libext"; then
14229                 found_dir="$additional_libdir"
14230                 found_a="$additional_libdir/lib$name.$libext"
14231                 if test -f "$additional_libdir/lib$name.la"; then
14232                   found_la="$additional_libdir/lib$name.la"
14233                 fi
14234               fi
14235             fi
14236           fi
14237           if test "X$found_dir" = "X"; then
14238             for x in $LDFLAGS $LTLIBBABELTRACE; do
14239
14240   acl_save_prefix="$prefix"
14241   prefix="$acl_final_prefix"
14242   acl_save_exec_prefix="$exec_prefix"
14243   exec_prefix="$acl_final_exec_prefix"
14244   eval x=\"$x\"
14245   exec_prefix="$acl_save_exec_prefix"
14246   prefix="$acl_save_prefix"
14247
14248               case "$x" in
14249                 -L*)
14250                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14251                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14252                     found_dir="$dir"
14253                     found_so="$dir/lib$name.$shlibext"
14254                     if test -f "$dir/lib$name.la"; then
14255                       found_la="$dir/lib$name.la"
14256                     fi
14257                   else
14258                     if test -f "$dir/lib$name.$libext"; then
14259                       found_dir="$dir"
14260                       found_a="$dir/lib$name.$libext"
14261                       if test -f "$dir/lib$name.la"; then
14262                         found_la="$dir/lib$name.la"
14263                       fi
14264                     fi
14265                   fi
14266                   ;;
14267               esac
14268               if test "X$found_dir" != "X"; then
14269                 break
14270               fi
14271             done
14272           fi
14273           if test "X$found_dir" != "X"; then
14274                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
14275             if test "X$found_so" != "X"; then
14276                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14277                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14278               else
14279                                                                                 haveit=
14280                 for x in $ltrpathdirs; do
14281                   if test "X$x" = "X$found_dir"; then
14282                     haveit=yes
14283                     break
14284                   fi
14285                 done
14286                 if test -z "$haveit"; then
14287                   ltrpathdirs="$ltrpathdirs $found_dir"
14288                 fi
14289                                 if test "$hardcode_direct" = yes; then
14290                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14291                 else
14292                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14293                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14294                                                             haveit=
14295                     for x in $rpathdirs; do
14296                       if test "X$x" = "X$found_dir"; then
14297                         haveit=yes
14298                         break
14299                       fi
14300                     done
14301                     if test -z "$haveit"; then
14302                       rpathdirs="$rpathdirs $found_dir"
14303                     fi
14304                   else
14305                                                                                 haveit=
14306                     for x in $LDFLAGS $LIBBABELTRACE; do
14307
14308   acl_save_prefix="$prefix"
14309   prefix="$acl_final_prefix"
14310   acl_save_exec_prefix="$exec_prefix"
14311   exec_prefix="$acl_final_exec_prefix"
14312   eval x=\"$x\"
14313   exec_prefix="$acl_save_exec_prefix"
14314   prefix="$acl_save_prefix"
14315
14316                       if test "X$x" = "X-L$found_dir"; then
14317                         haveit=yes
14318                         break
14319                       fi
14320                     done
14321                     if test -z "$haveit"; then
14322                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
14323                     fi
14324                     if test "$hardcode_minus_L" != no; then
14325                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
14326                     else
14327                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14328                     fi
14329                   fi
14330                 fi
14331               fi
14332             else
14333               if test "X$found_a" != "X"; then
14334                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
14335               else
14336                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
14337               fi
14338             fi
14339                         additional_includedir=
14340             case "$found_dir" in
14341               */lib | */lib/)
14342                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14343                 additional_includedir="$basedir/include"
14344                 ;;
14345             esac
14346             if test "X$additional_includedir" != "X"; then
14347                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14348                 haveit=
14349                 if test "X$additional_includedir" = "X/usr/local/include"; then
14350                   if test -n "$GCC"; then
14351                     case $host_os in
14352                       linux*) haveit=yes;;
14353                     esac
14354                   fi
14355                 fi
14356                 if test -z "$haveit"; then
14357                   for x in $CPPFLAGS $INCBABELTRACE; do
14358
14359   acl_save_prefix="$prefix"
14360   prefix="$acl_final_prefix"
14361   acl_save_exec_prefix="$exec_prefix"
14362   exec_prefix="$acl_final_exec_prefix"
14363   eval x=\"$x\"
14364   exec_prefix="$acl_save_exec_prefix"
14365   prefix="$acl_save_prefix"
14366
14367                     if test "X$x" = "X-I$additional_includedir"; then
14368                       haveit=yes
14369                       break
14370                     fi
14371                   done
14372                   if test -z "$haveit"; then
14373                     if test -d "$additional_includedir"; then
14374                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
14375                     fi
14376                   fi
14377                 fi
14378               fi
14379             fi
14380                         if test -n "$found_la"; then
14381                                                         save_libdir="$libdir"
14382               case "$found_la" in
14383                 */* | *\\*) . "$found_la" ;;
14384                 *) . "./$found_la" ;;
14385               esac
14386               libdir="$save_libdir"
14387                             for dep in $dependency_libs; do
14388                 case "$dep" in
14389                   -L*)
14390                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14391                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14392                       haveit=
14393                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14394                         if test -n "$GCC"; then
14395                           case $host_os in
14396                             linux*) haveit=yes;;
14397                           esac
14398                         fi
14399                       fi
14400                       if test -z "$haveit"; then
14401                         haveit=
14402                         for x in $LDFLAGS $LIBBABELTRACE; do
14403
14404   acl_save_prefix="$prefix"
14405   prefix="$acl_final_prefix"
14406   acl_save_exec_prefix="$exec_prefix"
14407   exec_prefix="$acl_final_exec_prefix"
14408   eval x=\"$x\"
14409   exec_prefix="$acl_save_exec_prefix"
14410   prefix="$acl_save_prefix"
14411
14412                           if test "X$x" = "X-L$additional_libdir"; then
14413                             haveit=yes
14414                             break
14415                           fi
14416                         done
14417                         if test -z "$haveit"; then
14418                           if test -d "$additional_libdir"; then
14419                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
14420                           fi
14421                         fi
14422                         haveit=
14423                         for x in $LDFLAGS $LTLIBBABELTRACE; do
14424
14425   acl_save_prefix="$prefix"
14426   prefix="$acl_final_prefix"
14427   acl_save_exec_prefix="$exec_prefix"
14428   exec_prefix="$acl_final_exec_prefix"
14429   eval x=\"$x\"
14430   exec_prefix="$acl_save_exec_prefix"
14431   prefix="$acl_save_prefix"
14432
14433                           if test "X$x" = "X-L$additional_libdir"; then
14434                             haveit=yes
14435                             break
14436                           fi
14437                         done
14438                         if test -z "$haveit"; then
14439                           if test -d "$additional_libdir"; then
14440                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
14441                           fi
14442                         fi
14443                       fi
14444                     fi
14445                     ;;
14446                   -R*)
14447                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14448                     if test "$enable_rpath" != no; then
14449                                                                   haveit=
14450                       for x in $rpathdirs; do
14451                         if test "X$x" = "X$dir"; then
14452                           haveit=yes
14453                           break
14454                         fi
14455                       done
14456                       if test -z "$haveit"; then
14457                         rpathdirs="$rpathdirs $dir"
14458                       fi
14459                                                                   haveit=
14460                       for x in $ltrpathdirs; do
14461                         if test "X$x" = "X$dir"; then
14462                           haveit=yes
14463                           break
14464                         fi
14465                       done
14466                       if test -z "$haveit"; then
14467                         ltrpathdirs="$ltrpathdirs $dir"
14468                       fi
14469                     fi
14470                     ;;
14471                   -l*)
14472                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14473                     ;;
14474                   *.la)
14475                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14476                     ;;
14477                   *)
14478                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
14479                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
14480                     ;;
14481                 esac
14482               done
14483             fi
14484           else
14485                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
14486             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
14487           fi
14488         fi
14489       fi
14490     done
14491   done
14492   if test "X$rpathdirs" != "X"; then
14493     if test -n "$hardcode_libdir_separator"; then
14494                         alldirs=
14495       for found_dir in $rpathdirs; do
14496         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14497       done
14498             acl_save_libdir="$libdir"
14499       libdir="$alldirs"
14500       eval flag=\"$hardcode_libdir_flag_spec\"
14501       libdir="$acl_save_libdir"
14502       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
14503     else
14504             for found_dir in $rpathdirs; do
14505         acl_save_libdir="$libdir"
14506         libdir="$found_dir"
14507         eval flag=\"$hardcode_libdir_flag_spec\"
14508         libdir="$acl_save_libdir"
14509         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
14510       done
14511     fi
14512   fi
14513   if test "X$ltrpathdirs" != "X"; then
14514             for found_dir in $ltrpathdirs; do
14515       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
14516     done
14517   fi
14518
14519
14520         ac_save_CPPFLAGS="$CPPFLAGS"
14521
14522   for element in $INCBABELTRACE; do
14523     haveit=
14524     for x in $CPPFLAGS; do
14525
14526   acl_save_prefix="$prefix"
14527   prefix="$acl_final_prefix"
14528   acl_save_exec_prefix="$exec_prefix"
14529   exec_prefix="$acl_final_exec_prefix"
14530   eval x=\"$x\"
14531   exec_prefix="$acl_save_exec_prefix"
14532   prefix="$acl_save_prefix"
14533
14534       if test "X$x" = "X$element"; then
14535         haveit=yes
14536         break
14537       fi
14538     done
14539     if test -z "$haveit"; then
14540       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14541     fi
14542   done
14543
14544
14545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
14546 $as_echo_n "checking for libbabeltrace... " >&6; }
14547 if test "${ac_cv_libbabeltrace+set}" = set; then :
14548   $as_echo_n "(cached) " >&6
14549 else
14550
14551     ac_save_LIBS="$LIBS"
14552     LIBS="$LIBS $LIBBABELTRACE"
14553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h.  */
14555 #include <babeltrace/babeltrace.h>
14556                          #include <babeltrace/ctf/events.h>
14557                          #include <babeltrace/ctf/iterator.h>
14558 int
14559 main ()
14560 {
14561 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
14562                         struct bt_ctf_event *event = NULL;
14563                         const struct bt_definition *scope;
14564
14565                         scope = bt_ctf_get_top_level_scope (event,
14566                                                            BT_STREAM_EVENT_HEADER);
14567                         bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
14568
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_link "$LINENO"; then :
14574   ac_cv_libbabeltrace=yes
14575 else
14576   ac_cv_libbabeltrace=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext \
14579     conftest$ac_exeext conftest.$ac_ext
14580     LIBS="$ac_save_LIBS"
14581
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
14584 $as_echo "$ac_cv_libbabeltrace" >&6; }
14585   if test "$ac_cv_libbabeltrace" = yes; then
14586     HAVE_LIBBABELTRACE=yes
14587
14588 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
14589
14590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
14591 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
14592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
14593 $as_echo "$LIBBABELTRACE" >&6; }
14594   else
14595     HAVE_LIBBABELTRACE=no
14596             CPPFLAGS="$ac_save_CPPFLAGS"
14597     LIBBABELTRACE=
14598     LTLIBBABELTRACE=
14599   fi
14600
14601
14602
14603
14604
14605
14606   CFLAGS=$saved_CFLAGS
14607
14608   if test "$HAVE_LIBBABELTRACE" != yes; then
14609      if test "$with_babeltrace" = yes; then
14610        as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
14611      else
14612        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
14613 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
14614      fi
14615   fi
14616 fi
14617
14618 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14619 # to an empty version.
14620
14621 files=
14622 links=
14623
14624 rm -f nm.h
14625 if test "${nativefile}" != ""; then
14626     case "${nativefile}" in
14627       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14628       * ) GDB_NM_FILE="${nativefile}"
14629     esac
14630     files="${files} ${GDB_NM_FILE}"
14631     links="${links} nm.h"
14632
14633 cat >>confdefs.h <<_ACEOF
14634 #define GDB_NM_FILE "${GDB_NM_FILE}"
14635 _ACEOF
14636
14637 fi
14638
14639
14640 ac_sources="$files"
14641 ac_dests="$links"
14642 while test -n "$ac_sources"; do
14643   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14644   set $ac_sources; ac_source=$1; shift; ac_sources=$*
14645   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14646 done
14647 ac_config_links="$ac_config_links $ac_config_links_1"
14648
14649
14650
14651
14652
14653 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14654
14655
14656 # Undo the $ec_script escaping suitable for Makefile.
14657 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
14658 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
14659 if test "x$GDB_TRANSFORM_NAME" = x; then
14660   GDB_TRANSFORM_NAME=gdb
14661 fi
14662
14663 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
14664 if test "x$GCORE_TRANSFORM_NAME" = x; then
14665   GCORE_TRANSFORM_NAME=gcore
14666 fi
14667
14668 ac_config_files="$ac_config_files gcore"
14669
14670
14671 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
14672
14673 ac_config_commands="$ac_config_commands default"
14674
14675 cat >confcache <<\_ACEOF
14676 # This file is a shell script that caches the results of configure
14677 # tests run on this system so they can be shared between configure
14678 # scripts and configure runs, see configure's option --config-cache.
14679 # It is not useful on other systems.  If it contains results you don't
14680 # want to keep, you may remove or edit it.
14681 #
14682 # config.status only pays attention to the cache file if you give it
14683 # the --recheck option to rerun configure.
14684 #
14685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14687 # following values.
14688
14689 _ACEOF
14690
14691 # The following way of writing the cache mishandles newlines in values,
14692 # but we know of no workaround that is simple, portable, and efficient.
14693 # So, we kill variables containing newlines.
14694 # Ultrix sh set writes to stderr and can't be redirected directly,
14695 # and sets the high bit in the cache file unless we assign to the vars.
14696 (
14697   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14698     eval ac_val=\$$ac_var
14699     case $ac_val in #(
14700     *${as_nl}*)
14701       case $ac_var in #(
14702       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14704       esac
14705       case $ac_var in #(
14706       _ | IFS | as_nl) ;; #(
14707       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14708       *) { eval $ac_var=; unset $ac_var;} ;;
14709       esac ;;
14710     esac
14711   done
14712
14713   (set) 2>&1 |
14714     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14715     *${as_nl}ac_space=\ *)
14716       # `set' does not quote correctly, so add quotes: double-quote
14717       # substitution turns \\\\ into \\, and sed turns \\ into \.
14718       sed -n \
14719         "s/'/'\\\\''/g;
14720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14721       ;; #(
14722     *)
14723       # `set' quotes correctly as required by POSIX, so do not add quotes.
14724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14725       ;;
14726     esac |
14727     sort
14728 ) |
14729   sed '
14730      /^ac_cv_env_/b end
14731      t clear
14732      :clear
14733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14734      t end
14735      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14736      :end' >>confcache
14737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14738   if test -w "$cache_file"; then
14739     test "x$cache_file" != "x/dev/null" &&
14740       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14741 $as_echo "$as_me: updating cache $cache_file" >&6;}
14742     cat confcache >$cache_file
14743   else
14744     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14746   fi
14747 fi
14748 rm -f confcache
14749
14750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14751 # Let make expand exec_prefix.
14752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14753
14754 DEFS=-DHAVE_CONFIG_H
14755
14756 ac_libobjs=
14757 ac_ltlibobjs=
14758 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14759   # 1. Remove the extension, and $U if already installed.
14760   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14761   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14762   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14763   #    will be set to the directory where LIBOBJS objects are built.
14764   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14765   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14766 done
14767 LIBOBJS=$ac_libobjs
14768
14769 LTLIBOBJS=$ac_ltlibobjs
14770
14771
14772 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14773   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14775 fi
14776 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14777   as_fn_error "conditional \"GMAKE\" was never defined.
14778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14779 fi
14780
14781
14782 : ${CONFIG_STATUS=./config.status}
14783 ac_write_fail=0
14784 ac_clean_files_save=$ac_clean_files
14785 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14787 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14788 as_write_fail=0
14789 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14790 #! $SHELL
14791 # Generated by $as_me.
14792 # Run this file to recreate the current configuration.
14793 # Compiler output produced by configure, useful for debugging
14794 # configure, is in config.log if it exists.
14795
14796 debug=false
14797 ac_cs_recheck=false
14798 ac_cs_silent=false
14799
14800 SHELL=\${CONFIG_SHELL-$SHELL}
14801 export SHELL
14802 _ASEOF
14803 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14804 ## -------------------- ##
14805 ## M4sh Initialization. ##
14806 ## -------------------- ##
14807
14808 # Be more Bourne compatible
14809 DUALCASE=1; export DUALCASE # for MKS sh
14810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14811   emulate sh
14812   NULLCMD=:
14813   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14814   # is contrary to our usage.  Disable this feature.
14815   alias -g '${1+"$@"}'='"$@"'
14816   setopt NO_GLOB_SUBST
14817 else
14818   case `(set -o) 2>/dev/null` in #(
14819   *posix*) :
14820     set -o posix ;; #(
14821   *) :
14822      ;;
14823 esac
14824 fi
14825
14826
14827 as_nl='
14828 '
14829 export as_nl
14830 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14831 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14834 # Prefer a ksh shell builtin over an external printf program on Solaris,
14835 # but without wasting forks for bash or zsh.
14836 if test -z "$BASH_VERSION$ZSH_VERSION" \
14837     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14838   as_echo='print -r --'
14839   as_echo_n='print -rn --'
14840 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14841   as_echo='printf %s\n'
14842   as_echo_n='printf %s'
14843 else
14844   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14845     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14846     as_echo_n='/usr/ucb/echo -n'
14847   else
14848     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14849     as_echo_n_body='eval
14850       arg=$1;
14851       case $arg in #(
14852       *"$as_nl"*)
14853         expr "X$arg" : "X\\(.*\\)$as_nl";
14854         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14855       esac;
14856       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14857     '
14858     export as_echo_n_body
14859     as_echo_n='sh -c $as_echo_n_body as_echo'
14860   fi
14861   export as_echo_body
14862   as_echo='sh -c $as_echo_body as_echo'
14863 fi
14864
14865 # The user is always right.
14866 if test "${PATH_SEPARATOR+set}" != set; then
14867   PATH_SEPARATOR=:
14868   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14869     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14870       PATH_SEPARATOR=';'
14871   }
14872 fi
14873
14874
14875 # IFS
14876 # We need space, tab and new line, in precisely that order.  Quoting is
14877 # there to prevent editors from complaining about space-tab.
14878 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14879 # splitting by setting IFS to empty value.)
14880 IFS=" ""        $as_nl"
14881
14882 # Find who we are.  Look in the path if we contain no directory separator.
14883 case $0 in #((
14884   *[\\/]* ) as_myself=$0 ;;
14885   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886 for as_dir in $PATH
14887 do
14888   IFS=$as_save_IFS
14889   test -z "$as_dir" && as_dir=.
14890     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14891   done
14892 IFS=$as_save_IFS
14893
14894      ;;
14895 esac
14896 # We did not find ourselves, most probably we were run as `sh COMMAND'
14897 # in which case we are not to be found in the path.
14898 if test "x$as_myself" = x; then
14899   as_myself=$0
14900 fi
14901 if test ! -f "$as_myself"; then
14902   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14903   exit 1
14904 fi
14905
14906 # Unset variables that we do not need and which cause bugs (e.g. in
14907 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14908 # suppresses any "Segmentation fault" message there.  '((' could
14909 # trigger a bug in pdksh 5.2.14.
14910 for as_var in BASH_ENV ENV MAIL MAILPATH
14911 do eval test x\${$as_var+set} = xset \
14912   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14913 done
14914 PS1='$ '
14915 PS2='> '
14916 PS4='+ '
14917
14918 # NLS nuisances.
14919 LC_ALL=C
14920 export LC_ALL
14921 LANGUAGE=C
14922 export LANGUAGE
14923
14924 # CDPATH.
14925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14926
14927
14928 # as_fn_error ERROR [LINENO LOG_FD]
14929 # ---------------------------------
14930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14932 # script with status $?, using 1 if that was 0.
14933 as_fn_error ()
14934 {
14935   as_status=$?; test $as_status -eq 0 && as_status=1
14936   if test "$3"; then
14937     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14938     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14939   fi
14940   $as_echo "$as_me: error: $1" >&2
14941   as_fn_exit $as_status
14942 } # as_fn_error
14943
14944
14945 # as_fn_set_status STATUS
14946 # -----------------------
14947 # Set $? to STATUS, without forking.
14948 as_fn_set_status ()
14949 {
14950   return $1
14951 } # as_fn_set_status
14952
14953 # as_fn_exit STATUS
14954 # -----------------
14955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14956 as_fn_exit ()
14957 {
14958   set +e
14959   as_fn_set_status $1
14960   exit $1
14961 } # as_fn_exit
14962
14963 # as_fn_unset VAR
14964 # ---------------
14965 # Portably unset VAR.
14966 as_fn_unset ()
14967 {
14968   { eval $1=; unset $1;}
14969 }
14970 as_unset=as_fn_unset
14971 # as_fn_append VAR VALUE
14972 # ----------------------
14973 # Append the text in VALUE to the end of the definition contained in VAR. Take
14974 # advantage of any shell optimizations that allow amortized linear growth over
14975 # repeated appends, instead of the typical quadratic growth present in naive
14976 # implementations.
14977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14978   eval 'as_fn_append ()
14979   {
14980     eval $1+=\$2
14981   }'
14982 else
14983   as_fn_append ()
14984   {
14985     eval $1=\$$1\$2
14986   }
14987 fi # as_fn_append
14988
14989 # as_fn_arith ARG...
14990 # ------------------
14991 # Perform arithmetic evaluation on the ARGs, and store the result in the
14992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14993 # must be portable across $(()) and expr.
14994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14995   eval 'as_fn_arith ()
14996   {
14997     as_val=$(( $* ))
14998   }'
14999 else
15000   as_fn_arith ()
15001   {
15002     as_val=`expr "$@" || test $? -eq 1`
15003   }
15004 fi # as_fn_arith
15005
15006
15007 if expr a : '\(a\)' >/dev/null 2>&1 &&
15008    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15009   as_expr=expr
15010 else
15011   as_expr=false
15012 fi
15013
15014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15015   as_basename=basename
15016 else
15017   as_basename=false
15018 fi
15019
15020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15021   as_dirname=dirname
15022 else
15023   as_dirname=false
15024 fi
15025
15026 as_me=`$as_basename -- "$0" ||
15027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15028          X"$0" : 'X\(//\)$' \| \
15029          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15030 $as_echo X/"$0" |
15031     sed '/^.*\/\([^/][^/]*\)\/*$/{
15032             s//\1/
15033             q
15034           }
15035           /^X\/\(\/\/\)$/{
15036             s//\1/
15037             q
15038           }
15039           /^X\/\(\/\).*/{
15040             s//\1/
15041             q
15042           }
15043           s/.*/./; q'`
15044
15045 # Avoid depending upon Character Ranges.
15046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15049 as_cr_digits='0123456789'
15050 as_cr_alnum=$as_cr_Letters$as_cr_digits
15051
15052 ECHO_C= ECHO_N= ECHO_T=
15053 case `echo -n x` in #(((((
15054 -n*)
15055   case `echo 'xy\c'` in
15056   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15057   xy)  ECHO_C='\c';;
15058   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15059        ECHO_T=' ';;
15060   esac;;
15061 *)
15062   ECHO_N='-n';;
15063 esac
15064
15065 rm -f conf$$ conf$$.exe conf$$.file
15066 if test -d conf$$.dir; then
15067   rm -f conf$$.dir/conf$$.file
15068 else
15069   rm -f conf$$.dir
15070   mkdir conf$$.dir 2>/dev/null
15071 fi
15072 if (echo >conf$$.file) 2>/dev/null; then
15073   if ln -s conf$$.file conf$$ 2>/dev/null; then
15074     as_ln_s='ln -s'
15075     # ... but there are two gotchas:
15076     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15077     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15078     # In both cases, we have to default to `cp -p'.
15079     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15080       as_ln_s='cp -p'
15081   elif ln conf$$.file conf$$ 2>/dev/null; then
15082     as_ln_s=ln
15083   else
15084     as_ln_s='cp -p'
15085   fi
15086 else
15087   as_ln_s='cp -p'
15088 fi
15089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15090 rmdir conf$$.dir 2>/dev/null
15091
15092
15093 # as_fn_mkdir_p
15094 # -------------
15095 # Create "$as_dir" as a directory, including parents if necessary.
15096 as_fn_mkdir_p ()
15097 {
15098
15099   case $as_dir in #(
15100   -*) as_dir=./$as_dir;;
15101   esac
15102   test -d "$as_dir" || eval $as_mkdir_p || {
15103     as_dirs=
15104     while :; do
15105       case $as_dir in #(
15106       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15107       *) as_qdir=$as_dir;;
15108       esac
15109       as_dirs="'$as_qdir' $as_dirs"
15110       as_dir=`$as_dirname -- "$as_dir" ||
15111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112          X"$as_dir" : 'X\(//\)[^/]' \| \
15113          X"$as_dir" : 'X\(//\)$' \| \
15114          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15115 $as_echo X"$as_dir" |
15116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15117             s//\1/
15118             q
15119           }
15120           /^X\(\/\/\)[^/].*/{
15121             s//\1/
15122             q
15123           }
15124           /^X\(\/\/\)$/{
15125             s//\1/
15126             q
15127           }
15128           /^X\(\/\).*/{
15129             s//\1/
15130             q
15131           }
15132           s/.*/./; q'`
15133       test -d "$as_dir" && break
15134     done
15135     test -z "$as_dirs" || eval "mkdir $as_dirs"
15136   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15137
15138
15139 } # as_fn_mkdir_p
15140 if mkdir -p . 2>/dev/null; then
15141   as_mkdir_p='mkdir -p "$as_dir"'
15142 else
15143   test -d ./-p && rmdir ./-p
15144   as_mkdir_p=false
15145 fi
15146
15147 if test -x / >/dev/null 2>&1; then
15148   as_test_x='test -x'
15149 else
15150   if ls -dL / >/dev/null 2>&1; then
15151     as_ls_L_option=L
15152   else
15153     as_ls_L_option=
15154   fi
15155   as_test_x='
15156     eval sh -c '\''
15157       if test -d "$1"; then
15158         test -d "$1/.";
15159       else
15160         case $1 in #(
15161         -*)set "./$1";;
15162         esac;
15163         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15164         ???[sx]*):;;*)false;;esac;fi
15165     '\'' sh
15166   '
15167 fi
15168 as_executable_p=$as_test_x
15169
15170 # Sed expression to map a string onto a valid CPP name.
15171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15172
15173 # Sed expression to map a string onto a valid variable name.
15174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15175
15176
15177 exec 6>&1
15178 ## ----------------------------------- ##
15179 ## Main body of $CONFIG_STATUS script. ##
15180 ## ----------------------------------- ##
15181 _ASEOF
15182 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15183
15184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15185 # Save the log message, to keep $0 and so on meaningful, and to
15186 # report actual input values of CONFIG_FILES etc. instead of their
15187 # values after options handling.
15188 ac_log="
15189 This file was extended by $as_me, which was
15190 generated by GNU Autoconf 2.64.  Invocation command line was
15191
15192   CONFIG_FILES    = $CONFIG_FILES
15193   CONFIG_HEADERS  = $CONFIG_HEADERS
15194   CONFIG_LINKS    = $CONFIG_LINKS
15195   CONFIG_COMMANDS = $CONFIG_COMMANDS
15196   $ $0 $@
15197
15198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15199 "
15200
15201 _ACEOF
15202
15203 case $ac_config_files in *"
15204 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15205 esac
15206
15207 case $ac_config_headers in *"
15208 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15209 esac
15210
15211
15212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 # Files that config.status was made for.
15214 config_files="$ac_config_files"
15215 config_headers="$ac_config_headers"
15216 config_links="$ac_config_links"
15217 config_commands="$ac_config_commands"
15218
15219 _ACEOF
15220
15221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15222 ac_cs_usage="\
15223 \`$as_me' instantiates files and other configuration actions
15224 from templates according to the current configuration.  Unless the files
15225 and actions are specified as TAGs, all are instantiated by default.
15226
15227 Usage: $0 [OPTION]... [TAG]...
15228
15229   -h, --help       print this help, then exit
15230   -V, --version    print version number and configuration settings, then exit
15231   -q, --quiet, --silent
15232                    do not print progress messages
15233   -d, --debug      don't remove temporary files
15234       --recheck    update $as_me by reconfiguring in the same conditions
15235       --file=FILE[:TEMPLATE]
15236                    instantiate the configuration file FILE
15237       --header=FILE[:TEMPLATE]
15238                    instantiate the configuration header FILE
15239
15240 Configuration files:
15241 $config_files
15242
15243 Configuration headers:
15244 $config_headers
15245
15246 Configuration links:
15247 $config_links
15248
15249 Configuration commands:
15250 $config_commands
15251
15252 Report bugs to the package provider."
15253
15254 _ACEOF
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 ac_cs_version="\\
15257 config.status
15258 configured by $0, generated by GNU Autoconf 2.64,
15259   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15260
15261 Copyright (C) 2009 Free Software Foundation, Inc.
15262 This config.status script is free software; the Free Software Foundation
15263 gives unlimited permission to copy, distribute and modify it."
15264
15265 ac_pwd='$ac_pwd'
15266 srcdir='$srcdir'
15267 INSTALL='$INSTALL'
15268 AWK='$AWK'
15269 test -n "\$AWK" || AWK=awk
15270 _ACEOF
15271
15272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273 # The default lists apply if the user does not specify any file.
15274 ac_need_defaults=:
15275 while test $# != 0
15276 do
15277   case $1 in
15278   --*=*)
15279     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15280     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15281     ac_shift=:
15282     ;;
15283   *)
15284     ac_option=$1
15285     ac_optarg=$2
15286     ac_shift=shift
15287     ;;
15288   esac
15289
15290   case $ac_option in
15291   # Handling of the options.
15292   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15293     ac_cs_recheck=: ;;
15294   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15295     $as_echo "$ac_cs_version"; exit ;;
15296   --debug | --debu | --deb | --de | --d | -d )
15297     debug=: ;;
15298   --file | --fil | --fi | --f )
15299     $ac_shift
15300     case $ac_optarg in
15301     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15302     esac
15303     as_fn_append CONFIG_FILES " '$ac_optarg'"
15304     ac_need_defaults=false;;
15305   --header | --heade | --head | --hea )
15306     $ac_shift
15307     case $ac_optarg in
15308     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15309     esac
15310     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15311     ac_need_defaults=false;;
15312   --he | --h)
15313     # Conflict between --help and --header
15314     as_fn_error "ambiguous option: \`$1'
15315 Try \`$0 --help' for more information.";;
15316   --help | --hel | -h )
15317     $as_echo "$ac_cs_usage"; exit ;;
15318   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15319   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15320     ac_cs_silent=: ;;
15321
15322   # This is an error.
15323   -*) as_fn_error "unrecognized option: \`$1'
15324 Try \`$0 --help' for more information." ;;
15325
15326   *) as_fn_append ac_config_targets " $1"
15327      ac_need_defaults=false ;;
15328
15329   esac
15330   shift
15331 done
15332
15333 ac_configure_extra_args=
15334
15335 if $ac_cs_silent; then
15336   exec 6>/dev/null
15337   ac_configure_extra_args="$ac_configure_extra_args --silent"
15338 fi
15339
15340 _ACEOF
15341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15342 if \$ac_cs_recheck; then
15343   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15344   shift
15345   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15346   CONFIG_SHELL='$SHELL'
15347   export CONFIG_SHELL
15348   exec "\$@"
15349 fi
15350
15351 _ACEOF
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 exec 5>>config.log
15354 {
15355   echo
15356   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15357 ## Running $as_me. ##
15358 _ASBOX
15359   $as_echo "$ac_log"
15360 } >&5
15361
15362 _ACEOF
15363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15364 #
15365 # INIT-COMMANDS
15366 #
15367 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15368
15369 _ACEOF
15370
15371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372
15373 # Handling of arguments.
15374 for ac_config_target in $ac_config_targets
15375 do
15376   case $ac_config_target in
15377     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15378     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
15379     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
15380     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
15381     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
15382     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15383     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
15384     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15385     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
15386     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15387
15388   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15389   esac
15390 done
15391
15392
15393 # If the user did not use the arguments to specify the items to instantiate,
15394 # then the envvar interface is used.  Set only those that are not.
15395 # We use the long form for the default assignment because of an extremely
15396 # bizarre bug on SunOS 4.1.3.
15397 if $ac_need_defaults; then
15398   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15399   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15400   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15401   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15402 fi
15403
15404 # Have a temporary directory for convenience.  Make it in the build tree
15405 # simply because there is no reason against having it here, and in addition,
15406 # creating and moving files from /tmp can sometimes cause problems.
15407 # Hook for its removal unless debugging.
15408 # Note that there is a small window in which the directory will not be cleaned:
15409 # after its creation but before its name has been assigned to `$tmp'.
15410 $debug ||
15411 {
15412   tmp=
15413   trap 'exit_status=$?
15414   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15415 ' 0
15416   trap 'as_fn_exit 1' 1 2 13 15
15417 }
15418 # Create a (secure) tmp directory for tmp files.
15419
15420 {
15421   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15422   test -n "$tmp" && test -d "$tmp"
15423 }  ||
15424 {
15425   tmp=./conf$$-$RANDOM
15426   (umask 077 && mkdir "$tmp")
15427 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15428
15429 # Set up the scripts for CONFIG_FILES section.
15430 # No need to generate them if there are no CONFIG_FILES.
15431 # This happens for instance with `./config.status config.h'.
15432 if test -n "$CONFIG_FILES"; then
15433
15434 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15435   ac_cs_awk_getline=:
15436   ac_cs_awk_pipe_init=
15437   ac_cs_awk_read_file='
15438       while ((getline aline < (F[key])) > 0)
15439         print(aline)
15440       close(F[key])'
15441   ac_cs_awk_pipe_fini=
15442 else
15443   ac_cs_awk_getline=false
15444   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15445   ac_cs_awk_read_file='
15446       print "|#_!!_#|"
15447       print "cat " F[key] " &&"
15448       '$ac_cs_awk_pipe_init
15449   # The final `:' finishes the AND list.
15450   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15451 fi
15452 ac_cr=`echo X | tr X '\015'`
15453 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15454 # But we know of no other shell where ac_cr would be empty at this
15455 # point, so we can use a bashism as a fallback.
15456 if test "x$ac_cr" = x; then
15457   eval ac_cr=\$\'\\r\'
15458 fi
15459 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15460 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15461   ac_cs_awk_cr='\r'
15462 else
15463   ac_cs_awk_cr=$ac_cr
15464 fi
15465
15466 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15467 _ACEOF
15468
15469 # Create commands to substitute file output variables.
15470 {
15471   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15472   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15473   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15474   echo "_ACAWK" &&
15475   echo "_ACEOF"
15476 } >conf$$files.sh &&
15477 . ./conf$$files.sh ||
15478   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15479 rm -f conf$$files.sh
15480
15481 {
15482   echo "cat >conf$$subs.awk <<_ACEOF" &&
15483   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15484   echo "_ACEOF"
15485 } >conf$$subs.sh ||
15486   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15487 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15488 ac_delim='%!_!# '
15489 for ac_last_try in false false false false false :; do
15490   . ./conf$$subs.sh ||
15491     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15492
15493   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15494   if test $ac_delim_n = $ac_delim_num; then
15495     break
15496   elif $ac_last_try; then
15497     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15498   else
15499     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15500   fi
15501 done
15502 rm -f conf$$subs.sh
15503
15504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15505 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15506 _ACEOF
15507 sed -n '
15508 h
15509 s/^/S["/; s/!.*/"]=/
15510 p
15511 g
15512 s/^[^!]*!//
15513 :repl
15514 t repl
15515 s/'"$ac_delim"'$//
15516 t delim
15517 :nl
15518 h
15519 s/\(.\{148\}\).*/\1/
15520 t more1
15521 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15522 p
15523 n
15524 b repl
15525 :more1
15526 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15527 p
15528 g
15529 s/.\{148\}//
15530 t nl
15531 :delim
15532 h
15533 s/\(.\{148\}\).*/\1/
15534 t more2
15535 s/["\\]/\\&/g; s/^/"/; s/$/"/
15536 p
15537 b
15538 :more2
15539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15540 p
15541 g
15542 s/.\{148\}//
15543 t delim
15544 ' <conf$$subs.awk | sed '
15545 /^[^""]/{
15546   N
15547   s/\n//
15548 }
15549 ' >>$CONFIG_STATUS || ac_write_fail=1
15550 rm -f conf$$subs.awk
15551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15552 _ACAWK
15553 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15554   for (key in S) S_is_set[key] = 1
15555   FS = "\a"
15556   \$ac_cs_awk_pipe_init
15557 }
15558 {
15559   line = $ 0
15560   nfields = split(line, field, "@")
15561   substed = 0
15562   len = length(field[1])
15563   for (i = 2; i < nfields; i++) {
15564     key = field[i]
15565     keylen = length(key)
15566     if (S_is_set[key]) {
15567       value = S[key]
15568       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15569       len += length(value) + length(field[++i])
15570       substed = 1
15571     } else
15572       len += 1 + keylen
15573   }
15574   if (nfields == 3 && !substed) {
15575     key = field[2]
15576     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15577       \$ac_cs_awk_read_file
15578       next
15579     }
15580   }
15581   print line
15582 }
15583 \$ac_cs_awk_pipe_fini
15584 _ACAWK
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15588   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15589 else
15590   cat
15591 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15592   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15593 _ACEOF
15594
15595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15597 # trailing colons and then remove the whole line if VPATH becomes empty
15598 # (actually we leave an empty line to preserve line numbers).
15599 if test "x$srcdir" = x.; then
15600   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15601 s/:*\$(srcdir):*/:/
15602 s/:*\${srcdir}:*/:/
15603 s/:*@srcdir@:*/:/
15604 s/^\([^=]*=[     ]*\):*/\1/
15605 s/:*$//
15606 s/^[^=]*=[       ]*$//
15607 }'
15608 fi
15609
15610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611 fi # test -n "$CONFIG_FILES"
15612
15613 # Set up the scripts for CONFIG_HEADERS section.
15614 # No need to generate them if there are no CONFIG_HEADERS.
15615 # This happens for instance with `./config.status Makefile'.
15616 if test -n "$CONFIG_HEADERS"; then
15617 cat >"$tmp/defines.awk" <<\_ACAWK ||
15618 BEGIN {
15619 _ACEOF
15620
15621 # Transform confdefs.h into an awk script `defines.awk', embedded as
15622 # here-document in config.status, that substitutes the proper values into
15623 # config.h.in to produce config.h.
15624
15625 # Create a delimiter string that does not exist in confdefs.h, to ease
15626 # handling of long lines.
15627 ac_delim='%!_!# '
15628 for ac_last_try in false false :; do
15629   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15630   if test -z "$ac_t"; then
15631     break
15632   elif $ac_last_try; then
15633     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15634   else
15635     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15636   fi
15637 done
15638
15639 # For the awk script, D is an array of macro values keyed by name,
15640 # likewise P contains macro parameters if any.  Preserve backslash
15641 # newline sequences.
15642
15643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15644 sed -n '
15645 s/.\{148\}/&'"$ac_delim"'/g
15646 t rset
15647 :rset
15648 s/^[     ]*#[    ]*define[       ][      ]*/ /
15649 t def
15650 d
15651 :def
15652 s/\\$//
15653 t bsnl
15654 s/["\\]/\\&/g
15655 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15656 D["\1"]=" \3"/p
15657 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15658 d
15659 :bsnl
15660 s/["\\]/\\&/g
15661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15662 D["\1"]=" \3\\\\\\n"\\/p
15663 t cont
15664 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15665 t cont
15666 d
15667 :cont
15668 n
15669 s/.\{148\}/&'"$ac_delim"'/g
15670 t clear
15671 :clear
15672 s/\\$//
15673 t bsnlc
15674 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15675 d
15676 :bsnlc
15677 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15678 b cont
15679 ' <confdefs.h | sed '
15680 s/'"$ac_delim"'/"\\\
15681 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15682
15683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684   for (key in D) D_is_set[key] = 1
15685   FS = "\a"
15686 }
15687 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15688   line = \$ 0
15689   split(line, arg, " ")
15690   if (arg[1] == "#") {
15691     defundef = arg[2]
15692     mac1 = arg[3]
15693   } else {
15694     defundef = substr(arg[1], 2)
15695     mac1 = arg[2]
15696   }
15697   split(mac1, mac2, "(") #)
15698   macro = mac2[1]
15699   prefix = substr(line, 1, index(line, defundef) - 1)
15700   if (D_is_set[macro]) {
15701     # Preserve the white space surrounding the "#".
15702     print prefix "define", macro P[macro] D[macro]
15703     next
15704   } else {
15705     # Replace #undef with comments.  This is necessary, for example,
15706     # in the case of _POSIX_SOURCE, which is predefined and required
15707     # on some systems where configure will not decide to define it.
15708     if (defundef == "undef") {
15709       print "/*", prefix defundef, macro, "*/"
15710       next
15711     }
15712   }
15713 }
15714 { print }
15715 _ACAWK
15716 _ACEOF
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15718   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15719 fi # test -n "$CONFIG_HEADERS"
15720
15721
15722 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15723 shift
15724 for ac_tag
15725 do
15726   case $ac_tag in
15727   :[FHLC]) ac_mode=$ac_tag; continue;;
15728   esac
15729   case $ac_mode$ac_tag in
15730   :[FHL]*:*);;
15731   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15732   :[FH]-) ac_tag=-:-;;
15733   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15734   esac
15735   ac_save_IFS=$IFS
15736   IFS=:
15737   set x $ac_tag
15738   IFS=$ac_save_IFS
15739   shift
15740   ac_file=$1
15741   shift
15742
15743   case $ac_mode in
15744   :L) ac_source=$1;;
15745   :[FH])
15746     ac_file_inputs=
15747     for ac_f
15748     do
15749       case $ac_f in
15750       -) ac_f="$tmp/stdin";;
15751       *) # Look for the file first in the build tree, then in the source tree
15752          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15753          # because $ac_f cannot contain `:'.
15754          test -f "$ac_f" ||
15755            case $ac_f in
15756            [\\/$]*) false;;
15757            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15758            esac ||
15759            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15760       esac
15761       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15762       as_fn_append ac_file_inputs " '$ac_f'"
15763     done
15764
15765     # Let's still pretend it is `configure' which instantiates (i.e., don't
15766     # use $as_me), people would be surprised to read:
15767     #    /* config.h.  Generated by config.status.  */
15768     configure_input='Generated from '`
15769           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15770         `' by configure.'
15771     if test x"$ac_file" != x-; then
15772       configure_input="$ac_file.  $configure_input"
15773       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15774 $as_echo "$as_me: creating $ac_file" >&6;}
15775     fi
15776     # Neutralize special characters interpreted by sed in replacement strings.
15777     case $configure_input in #(
15778     *\&* | *\|* | *\\* )
15779        ac_sed_conf_input=`$as_echo "$configure_input" |
15780        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15781     *) ac_sed_conf_input=$configure_input;;
15782     esac
15783
15784     case $ac_tag in
15785     *:-:* | *:-) cat >"$tmp/stdin" \
15786       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15787     esac
15788     ;;
15789   esac
15790
15791   ac_dir=`$as_dirname -- "$ac_file" ||
15792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15793          X"$ac_file" : 'X\(//\)[^/]' \| \
15794          X"$ac_file" : 'X\(//\)$' \| \
15795          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15796 $as_echo X"$ac_file" |
15797     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15798             s//\1/
15799             q
15800           }
15801           /^X\(\/\/\)[^/].*/{
15802             s//\1/
15803             q
15804           }
15805           /^X\(\/\/\)$/{
15806             s//\1/
15807             q
15808           }
15809           /^X\(\/\).*/{
15810             s//\1/
15811             q
15812           }
15813           s/.*/./; q'`
15814   as_dir="$ac_dir"; as_fn_mkdir_p
15815   ac_builddir=.
15816
15817 case "$ac_dir" in
15818 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15819 *)
15820   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15821   # A ".." for each directory in $ac_dir_suffix.
15822   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15823   case $ac_top_builddir_sub in
15824   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15825   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15826   esac ;;
15827 esac
15828 ac_abs_top_builddir=$ac_pwd
15829 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15830 # for backward compatibility:
15831 ac_top_builddir=$ac_top_build_prefix
15832
15833 case $srcdir in
15834   .)  # We are building in place.
15835     ac_srcdir=.
15836     ac_top_srcdir=$ac_top_builddir_sub
15837     ac_abs_top_srcdir=$ac_pwd ;;
15838   [\\/]* | ?:[\\/]* )  # Absolute name.
15839     ac_srcdir=$srcdir$ac_dir_suffix;
15840     ac_top_srcdir=$srcdir
15841     ac_abs_top_srcdir=$srcdir ;;
15842   *) # Relative name.
15843     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15844     ac_top_srcdir=$ac_top_build_prefix$srcdir
15845     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15846 esac
15847 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15848
15849
15850   case $ac_mode in
15851   :F)
15852   #
15853   # CONFIG_FILE
15854   #
15855
15856   case $INSTALL in
15857   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15858   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15859   esac
15860 _ACEOF
15861
15862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15863 # If the template does not know about datarootdir, expand it.
15864 # FIXME: This hack should be removed a few years after 2.60.
15865 ac_datarootdir_hack=; ac_datarootdir_seen=
15866 ac_sed_dataroot='
15867 /datarootdir/ {
15868   p
15869   q
15870 }
15871 /@datadir@/p
15872 /@docdir@/p
15873 /@infodir@/p
15874 /@localedir@/p
15875 /@mandir@/p'
15876 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15877 *datarootdir*) ac_datarootdir_seen=yes;;
15878 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15879   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15880 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15881 _ACEOF
15882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15883   ac_datarootdir_hack='
15884   s&@datadir@&$datadir&g
15885   s&@docdir@&$docdir&g
15886   s&@infodir@&$infodir&g
15887   s&@localedir@&$localedir&g
15888   s&@mandir@&$mandir&g
15889   s&\\\${datarootdir}&$datarootdir&g' ;;
15890 esac
15891 _ACEOF
15892
15893 # Neutralize VPATH when `$srcdir' = `.'.
15894 # Shell code in configure.ac might set extrasub.
15895 # FIXME: do we really want to maintain this feature?
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 ac_sed_extra="$ac_vpsub
15898 $extrasub
15899 _ACEOF
15900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901 :t
15902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15903 s|@configure_input@|$ac_sed_conf_input|;t t
15904 s&@top_builddir@&$ac_top_builddir_sub&;t t
15905 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15906 s&@srcdir@&$ac_srcdir&;t t
15907 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15908 s&@top_srcdir@&$ac_top_srcdir&;t t
15909 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15910 s&@builddir@&$ac_builddir&;t t
15911 s&@abs_builddir@&$ac_abs_builddir&;t t
15912 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15913 s&@INSTALL@&$ac_INSTALL&;t t
15914 $ac_datarootdir_hack
15915 "
15916 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15917 if $ac_cs_awk_getline; then
15918   $AWK -f "$tmp/subs.awk"
15919 else
15920   $AWK -f "$tmp/subs.awk" | $SHELL
15921 fi >$tmp/out \
15922   || as_fn_error "could not create $ac_file" "$LINENO" 5
15923
15924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15925   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15926   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15927   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15928 which seems to be undefined.  Please make sure it is defined." >&5
15929 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15930 which seems to be undefined.  Please make sure it is defined." >&2;}
15931
15932   rm -f "$tmp/stdin"
15933   case $ac_file in
15934   -) cat "$tmp/out" && rm -f "$tmp/out";;
15935   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15936   esac \
15937   || as_fn_error "could not create $ac_file" "$LINENO" 5
15938  ;;
15939   :H)
15940   #
15941   # CONFIG_HEADER
15942   #
15943   if test x"$ac_file" != x-; then
15944     {
15945       $as_echo "/* $configure_input  */" \
15946       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15947     } >"$tmp/config.h" \
15948       || as_fn_error "could not create $ac_file" "$LINENO" 5
15949     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15950       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15951 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15952     else
15953       rm -f "$ac_file"
15954       mv "$tmp/config.h" "$ac_file" \
15955         || as_fn_error "could not create $ac_file" "$LINENO" 5
15956     fi
15957   else
15958     $as_echo "/* $configure_input  */" \
15959       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15960       || as_fn_error "could not create -" "$LINENO" 5
15961   fi
15962  ;;
15963   :L)
15964   #
15965   # CONFIG_LINK
15966   #
15967
15968   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15969     :
15970   else
15971     # Prefer the file from the source tree if names are identical.
15972     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15973       ac_source=$srcdir/$ac_source
15974     fi
15975
15976     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15977 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15978
15979     if test ! -r "$ac_source"; then
15980       as_fn_error "$ac_source: file not found" "$LINENO" 5
15981     fi
15982     rm -f "$ac_file"
15983
15984     # Try a relative symlink, then a hard link, then a copy.
15985     case $srcdir in
15986     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15987         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15988     esac
15989     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15990       ln "$ac_source" "$ac_file" 2>/dev/null ||
15991       cp -p "$ac_source" "$ac_file" ||
15992       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15993   fi
15994  ;;
15995   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15996 $as_echo "$as_me: executing $ac_file commands" >&6;}
15997  ;;
15998   esac
15999
16000
16001   case $ac_file$ac_mode in
16002     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16003     "gcore":F) chmod +x gcore ;;
16004     "default":C)
16005 case x$CONFIG_HEADERS in
16006 xconfig.h:config.in)
16007 echo > stamp-h ;;
16008 esac
16009  ;;
16010
16011   esac
16012 done # for ac_tag
16013
16014
16015 as_fn_exit 0
16016 _ACEOF
16017 ac_clean_files=$ac_clean_files_save
16018
16019 test $ac_write_fail = 0 ||
16020   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16021
16022
16023 # configure is writing to config.log, and then calls config.status.
16024 # config.status does its own redirection, appending to config.log.
16025 # Unfortunately, on DOS this fails, as config.log is still kept open
16026 # by configure, so config.status won't be able to write to it; its
16027 # output is simply discarded.  So we exec the FD to /dev/null,
16028 # effectively closing config.log, so it can be properly (re)opened and
16029 # appended to by config.status.  When coming back to configure, we
16030 # need to make the FD available again.
16031 if test "$no_create" != yes; then
16032   ac_cs_success=:
16033   ac_config_status_args=
16034   test "$silent" = yes &&
16035     ac_config_status_args="$ac_config_status_args --quiet"
16036   exec 5>/dev/null
16037   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16038   exec 5>>config.log
16039   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16040   # would make configure fail if this is the last instruction.
16041   $ac_cs_success || as_fn_exit $?
16042 fi
16043
16044 #
16045 # CONFIG_SUBDIRS section.
16046 #
16047 if test "$no_recursion" != yes; then
16048
16049   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16050   # so they do not pile up.
16051   ac_sub_configure_args=
16052   ac_prev=
16053   eval "set x $ac_configure_args"
16054   shift
16055   for ac_arg
16056   do
16057     if test -n "$ac_prev"; then
16058       ac_prev=
16059       continue
16060     fi
16061     case $ac_arg in
16062     -cache-file | --cache-file | --cache-fil | --cache-fi \
16063     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16064       ac_prev=cache_file ;;
16065     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16066     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16067     | --c=*)
16068       ;;
16069     --config-cache | -C)
16070       ;;
16071     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16072       ac_prev=srcdir ;;
16073     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16074       ;;
16075     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16076       ac_prev=prefix ;;
16077     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16078       ;;
16079     --disable-option-checking)
16080       ;;
16081     *)
16082       case $ac_arg in
16083       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16084       esac
16085       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16086     esac
16087   done
16088
16089   # Always prepend --prefix to ensure using the same prefix
16090   # in subdir configurations.
16091   ac_arg="--prefix=$prefix"
16092   case $ac_arg in
16093   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16094   esac
16095   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16096
16097   # Pass --silent
16098   if test "$silent" = yes; then
16099     ac_sub_configure_args="--silent $ac_sub_configure_args"
16100   fi
16101
16102   # Always prepend --disable-option-checking to silence warnings, since
16103   # different subdirs can have different --enable and --with options.
16104   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16105
16106   ac_popdir=`pwd`
16107   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16108
16109     # Do not complain, so a configure script can configure whichever
16110     # parts of a large source tree are present.
16111     test -d "$srcdir/$ac_dir" || continue
16112
16113     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16114     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16115     $as_echo "$ac_msg" >&6
16116     as_dir="$ac_dir"; as_fn_mkdir_p
16117     ac_builddir=.
16118
16119 case "$ac_dir" in
16120 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16121 *)
16122   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16123   # A ".." for each directory in $ac_dir_suffix.
16124   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16125   case $ac_top_builddir_sub in
16126   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16127   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16128   esac ;;
16129 esac
16130 ac_abs_top_builddir=$ac_pwd
16131 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16132 # for backward compatibility:
16133 ac_top_builddir=$ac_top_build_prefix
16134
16135 case $srcdir in
16136   .)  # We are building in place.
16137     ac_srcdir=.
16138     ac_top_srcdir=$ac_top_builddir_sub
16139     ac_abs_top_srcdir=$ac_pwd ;;
16140   [\\/]* | ?:[\\/]* )  # Absolute name.
16141     ac_srcdir=$srcdir$ac_dir_suffix;
16142     ac_top_srcdir=$srcdir
16143     ac_abs_top_srcdir=$srcdir ;;
16144   *) # Relative name.
16145     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16146     ac_top_srcdir=$ac_top_build_prefix$srcdir
16147     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16148 esac
16149 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16150
16151
16152     cd "$ac_dir"
16153
16154     # Check for guested configure; otherwise get Cygnus style configure.
16155     if test -f "$ac_srcdir/configure.gnu"; then
16156       ac_sub_configure=$ac_srcdir/configure.gnu
16157     elif test -f "$ac_srcdir/configure"; then
16158       ac_sub_configure=$ac_srcdir/configure
16159     elif test -f "$ac_srcdir/configure.in"; then
16160       # This should be Cygnus configure.
16161       ac_sub_configure=$ac_aux_dir/configure
16162     else
16163       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16164 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16165       ac_sub_configure=
16166     fi
16167
16168     # The recursion is here.
16169     if test -n "$ac_sub_configure"; then
16170       # Make the cache file name correct relative to the subdirectory.
16171       case $cache_file in
16172       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16173       *) # Relative name.
16174         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16175       esac
16176
16177       { $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
16178 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16179       # The eval makes quoting arguments work.
16180       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16181            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16182         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16183     fi
16184
16185     cd "$ac_popdir"
16186   done
16187 fi
16188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16189   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16191 fi
16192
16193
16194 exit 0